/[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 1809 - (show annotations)
Thu Sep 25 06:43:44 2008 UTC (10 years, 11 months ago) by ksteube
File MIME type: text/x-python
File size: 1182 byte(s)
Copyright updated in all python files

1
2 ########################################################
3 #
4 # Copyright (c) 2003-2008 by University of Queensland
5 # Earth Systems Science Computational Center (ESSCC)
6 # http://www.uq.edu.au/esscc
7 #
8 # Primary Business: Queensland, Australia
9 # Licensed under the Open Software License version 3.0
10 # http://www.opensource.org/licenses/osl-3.0.php
11 #
12 ########################################################
13
14 __copyright__="""Copyright (c) 2003-2008 by University of Queensland
15 Earth Systems Science Computational Center (ESSCC)
16 http://www.uq.edu.au/esscc
17 Primary Business: Queensland, Australia"""
18 __license__="""Licensed under the Open Software License version 3.0
19 http://www.opensource.org/licenses/osl-3.0.php"""
20 __url__="http://www.uq.edu.au/esscc/escript-finley"
21
22 from esys.escript import *
23 from esys.pycad import *
24 from esys.pycad.gmsh import Design
25 from esys.finley import MakeDomain
26
27
28 p0=Point(0.,0.)
29 p1=Point(1.,0.)
30 p2=Point(1.,1.)
31 p3=Point(0.,1.)
32
33 l01=Line(p0,p1)
34 l12=Line(p1,p2)
35 l23=Line(p2,p3)
36 l30=Line(p3,p0)
37
38 s=PlaneSurface(CurveLoop(l01,l12,l23,l30))
39 des=Design(dim=2, order=1, element_size = 1, keep_files=True)
40 des.addItems(s)
41
42 dom=MakeDomain(des)
43 dom.write("rec.fly")

  ViewVC Help
Powered by ViewVC 1.1.26