/[escript]/trunk/pycad/examples/faults.py
ViewVC logotype

Diff of /trunk/pycad/examples/faults.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

trunk/pycad/examples/structure.py revision 932 by gross, Fri Jan 19 09:27:15 2007 UTC trunk/pycad/examples/faults.py revision 1312 by ksteube, Mon Sep 24 06:18:44 2007 UTC
# Line 1  Line 1 
1    #
2    # $Id$
3    #
4    #######################################################
5    #
6    #           Copyright 2003-2007 by ACceSS MNRF
7    #       Copyright 2007 by University of Queensland
8    #
9    #                http://esscc.uq.edu.au
10    #        Primary Business: Queensland, Australia
11    #  Licensed under the Open Software License version 3.0
12    #     http://www.opensource.org/licenses/osl-3.0.php
13    #
14    #######################################################
15    #
16    
17  """  """
18  seismic wave propagation domain  block with some fualts
19    
20  @var __author__: name of author  @var __author__: name of author
21  @var __licence__: licence agreement  @var __licence__: licence agreement
# Line 21  __date__="$Date$" Line 37  __date__="$Date$"
37    
38  from esys.pycad import *  from esys.pycad import *
39  from esys.pycad.gmsh import Design  from esys.pycad.gmsh import Design
40    from esys.finley import MakeDomain
41    
42  l=100000.           # width and length m (without obsorber)  l=100000.           # width and length m (without obsorber)
43  h=30000.            # width and length m (without obsorber)  h=30000.            # width and length m (without obsorber)
# Line 47  m3=Line(q3,q4) Line 64  m3=Line(q3,q4)
64  m4=Line(q4,q1)  m4=Line(q4,q1)
65  c2=CurveLoop(m1,m2,m3,m4)  c2=CurveLoop(m1,m2,m3,m4)
66  c2.setLocalScale(0.1)  c2.setLocalScale(0.1)
67  dsgn=Design(element_size=h/3)  dsgn=Design(element_size=h/5)
68  dsgn.addItems(Volume(SurfaceLoop(*tuple(b.getSurfaces()+[PlaneSurface(c1),PlaneSurface(c2)]))))  dsgn.addItems(Volume(SurfaceLoop(*tuple(b.getSurfaces()+[PlaneSurface(c1),PlaneSurface(c2)]))))
69  dsgn.setScriptFileName("test.geo")  dsgn.setScriptFileName("faults.geo")
70  dsgn.setMeshFileName("test.msh")  dsgn.setMeshFileName("faults.msh")
71  print dsgn.getMeshHandler()  dom=MakeDomain(dsgn,integrationOrder=-1, reducedIntegrationOrder=-1, optimizeLabeling=True)
72    dom.write("faults.fly")

Legend:
Removed from v.932  
changed lines
  Added in v.1312

  ViewVC Help
Powered by ViewVC 1.1.26