1 |
""" |
""" |
2 |
seismic wave propagation domain |
block with some fualts |
3 |
|
|
4 |
@var __author__: name of author |
@var __author__: name of author |
5 |
@var __licence__: licence agreement |
@var __licence__: licence agreement |
21 |
|
|
22 |
from esys.pycad import * |
from esys.pycad import * |
23 |
from esys.pycad.gmsh import Design |
from esys.pycad.gmsh import Design |
24 |
|
from esys.finley import MakeDomain |
25 |
|
|
26 |
l=100000. # width and length m (without obsorber) |
l=100000. # width and length m (without obsorber) |
27 |
h=30000. # width and length m (without obsorber) |
h=30000. # width and length m (without obsorber) |
48 |
m4=Line(q4,q1) |
m4=Line(q4,q1) |
49 |
c2=CurveLoop(m1,m2,m3,m4) |
c2=CurveLoop(m1,m2,m3,m4) |
50 |
c2.setLocalScale(0.1) |
c2.setLocalScale(0.1) |
51 |
dsgn=Design(element_size=h/3) |
dsgn=Design(element_size=h/5) |
52 |
dsgn.addItems(Volume(SurfaceLoop(*tuple(b.getSurfaces()+[PlaneSurface(c1),PlaneSurface(c2)])))) |
dsgn.addItems(Volume(SurfaceLoop(*tuple(b.getSurfaces()+[PlaneSurface(c1),PlaneSurface(c2)])))) |
53 |
dsgn.setScriptFileName("test.geo") |
dsgn.setScriptFileName("faults.geo") |
54 |
dsgn.setMeshFileName("test.msh") |
dsgn.setMeshFileName("faults.msh") |
55 |
print dsgn.getMeshHandler() |
dom=MakeDomain(dsgn,integrationOrder=-1, reducedIntegrationOrder=-1, optimizeLabeling=True) |
56 |
|
dom.write("faults.fly") |