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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4154 - (show annotations)
Tue Jan 22 09:30:23 2013 UTC (6 years, 9 months ago) by jfenwick
File MIME type: text/x-python
File size: 1270 byte(s)
Round 1 of copyright fixes
1
2 ##############################################################################
3 #
4 # Copyright (c) 2003-2013 by University of Queensland
5 # http://www.uq.edu.au
6 #
7 # Primary Business: Queensland, Australia
8 # Licensed under the Open Software License version 3.0
9 # http://www.opensource.org/licenses/osl-3.0.php
10 #
11 # Development until 2012 by Earth Systems Science Computational Center (ESSCC)
12 # Development since 2012 by School of Earth Sciences
13 #
14 ##############################################################################
15
16 __copyright__="""Copyright (c) 2003-2013 by University of Queensland
17 http://www.uq.edu.au
18 Primary Business: Queensland, Australia"""
19 __license__="""Licensed under the Open Software License version 3.0
20 http://www.opensource.org/licenses/osl-3.0.php"""
21 __url__="https://launchpad.net/escript-finley"
22
23 from esys.escript import *
24 from esys.pycad import *
25 from esys.pycad.gmsh import Design
26 from esys.finley import MakeDomain
27
28
29 p0=Point(0.,0.)
30 p1=Point(1.,0.)
31 p2=Point(1.,1.)
32 p3=Point(0.,1.)
33
34 l01=Line(p0,p1)
35 l12=Line(p1,p2)
36 l23=Line(p2,p3)
37 l30=Line(p3,p0)
38
39 s=PlaneSurface(CurveLoop(l01,l12,l23,l30))
40 des=Design(dim=2, order=1, element_size = 1, keep_files=True)
41 des.setMeshFileName("rec.geo")
42 des.addItems(s)
43
44 dom=MakeDomain(des)
45 dom.write("rec.fly")

  ViewVC Help
Powered by ViewVC 1.1.26