/[escript]/trunk/finley/test/python/rectangle.py
ViewVC logotype

Annotation of /trunk/finley/test/python/rectangle.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6651 - (hide annotations)
Wed Feb 7 02:12:08 2018 UTC (3 years, 2 months ago) by jfenwick
File MIME type: text/x-python
File size: 1375 byte(s)
Make everyone sad by touching all the files

Copyright dates update

1 ksteube 1809
2 jfenwick 3981 ##############################################################################
3 ksteube 1312 #
4 jfenwick 6651 # Copyright (c) 2003-2018 by The University of Queensland
5 jfenwick 3981 # http://www.uq.edu.au
6 ksteube 1312 #
7 ksteube 1809 # Primary Business: Queensland, Australia
8 jfenwick 6112 # Licensed under the Apache License, version 2.0
9     # http://www.apache.org/licenses/LICENSE-2.0
10 ksteube 1312 #
11 jfenwick 3981 # Development until 2012 by Earth Systems Science Computational Center (ESSCC)
12 jfenwick 4657 # Development 2012-2013 by School of Earth Sciences
13     # Development from 2014 by Centre for Geoscience Computing (GeoComp)
14 jfenwick 3981 #
15     ##############################################################################
16 gross 934
17 sshaw 5706 from __future__ import print_function, division
18    
19 jfenwick 6651 __copyright__="""Copyright (c) 2003-2018 by The University of Queensland
20 jfenwick 3981 http://www.uq.edu.au
21 ksteube 1809 Primary Business: Queensland, Australia"""
22 jfenwick 6112 __license__="""Licensed under the Apache License, version 2.0
23     http://www.apache.org/licenses/LICENSE-2.0"""
24 jfenwick 2344 __url__="https://launchpad.net/escript-finley"
25 gross 934
26     from esys.escript import *
27     from esys.pycad import *
28     from esys.pycad.gmsh import Design
29     from esys.finley import MakeDomain
30    
31    
32     p0=Point(0.,0.)
33     p1=Point(1.,0.)
34     p2=Point(1.,1.)
35     p3=Point(0.,1.)
36    
37     l01=Line(p0,p1)
38     l12=Line(p1,p2)
39     l23=Line(p2,p3)
40     l30=Line(p3,p0)
41    
42     s=PlaneSurface(CurveLoop(l01,l12,l23,l30))
43     des=Design(dim=2, order=1, element_size = 1, keep_files=True)
44 gross 2748 des.setMeshFileName("rec.geo")
45 gross 934 des.addItems(s)
46    
47     dom=MakeDomain(des)
48     dom.write("rec.fly")

  ViewVC Help
Powered by ViewVC 1.1.26