/[escript]/trunk/doc/examples/usersguide/quad.py
ViewVC logotype

Annotation of /trunk/doc/examples/usersguide/quad.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3892 - (hide annotations)
Tue Apr 10 08:57:23 2012 UTC (6 years, 10 months ago) by jfenwick
File MIME type: text/x-python
File size: 1540 byte(s)
Merged changes across from the attempt2 branch.
This version builds and passes python2 tests.
It also passes most python3 tests.



1 ksteube 1809
2     ########################################################
3     #
4 jfenwick 2881 # Copyright (c) 2003-2010 by University of Queensland
5 ksteube 1809 # 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 jfenwick 2881 __copyright__="""Copyright (c) 2003-2010 by University of Queensland
15 ksteube 1809 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 jfenwick 2344 __url__="https://launchpad.net/escript-finley"
21 ksteube 1809
22 gross 1010 """
23     a simple 1x1 quad`
24    
25 jfenwick 2625 :var __author__: name of author
26     :var __licence__: licence agreement
27     :var __url__: url entry point on documentation
28     :var __version__: version
29     :var __date__: date of the version
30 gross 1010 """
31    
32     __author__="Lutz Gross, l.gross@uq.edu.au"
33    
34     from esys.pycad import *
35     from esys.pycad.gmsh import Design
36     from esys.finley import MakeDomain
37 gross 1034 p0=Point(0.,0.,0.)
38     p1=Point(1.,0.,0.)
39 gross 1010 p2=Point(1.,1.,0.)
40     p3=Point(0.,1.,0.)
41     l01=Line(p0,p1)
42     l12=Line(p1,p2)
43     l23=Line(p2,p3)
44     l30=Line(p3,p0)
45     c=CurveLoop(l01,l12,l23,l30)
46     s=PlaneSurface(c)
47 gross 2683
48     d=Design(dim=2,element_size=0.05)
49     d.setScriptFileName("quad.geo")
50     d.setMeshFileName("quad.msh")
51     d.addItems(s)
52    
53 gross 1010 pl1=PropertySet("sides",l01,l23)
54 gross 1044 pl2=PropertySet("top_and_bottom",l12,l30)
55 gross 2683 d.addItems(pl1,pl2)
56 gross 1716
57 gross 2683 dom=MakeDomain(d)
58 gross 1010 dom.write("quad.fly")

Properties

Name Value
svn:mergeinfo /branches/pasowrap/doc/examples/usersguide/quad.py:3661-3674 /branches/py3_attempt2/doc/examples/usersguide/quad.py:3871-3891 /branches/restext/pycad/examples/quad.py:2610-2624 /branches/ripleygmg_from_3668/doc/examples/usersguide/quad.py:3669-3791 /branches/stage3.0/pycad/examples/quad.py:2569-2590 /release/3.0/pycad/examples/quad.py:2591-2601

  ViewVC Help
Powered by ViewVC 1.1.26