Trees | Indices | Help |
|
---|
|
|
|||
MyExpSourcePrms | |||
MyCircularSourcePrms | |||
MyLinearSineSourcePrms | |||
PVisitor Objects of this class are used in conjunction with the waveProp.visitParticlesWithId method to collect model particle data. |
|
|||
|
|
|||
radius = 1.0
|
|||
particles = CubicBlock([nx, ny, nz], radius)
|
|||
bBox = particles.getParticleBBox()
|
|||
centrePt = bBox.getMinPt()+ bBox.getMaxPt()* 0.5
|
|||
connections = DistConnections(0.25, 0, particles)
|
|||
waveProp = WavePropagation(domainBox= bBox, do2d= (nz== 1), nu
|
|||
tag = 1
|
|||
approxSourcePosn = bBox.getMinPt()+ bBox.getMaxPt()* 0.5
|
|||
sourcePosn = waveProp.sourceList [0].getInitialPosn()
|
|||
wallBondSpringK = 1.0
|
|||
pt1 = Vec3(bBox.getMinPt())
|
|||
pt2 = Vec3(sourcePosn)
|
|||
numSeismos = 20
|
|||
diff = pt2-pt1
|
|||
interSeismoDistance = max([radius* 2, diff.norm()/ float(numSe
|
|||
incr = diff/ diff.norm()* interSeismoDistance
|
|||
seismographPosnList = []
|
|||
numTimeSteps = 4000
|
|||
idList = [p.getId() for p in particles]
|
|||
j = 0
|
|||
t1 = None
|
|
Writes particle displacement data to file. Each line of the file is 'px py pz dx dy dz' where p=(px,py,pz) is the particle position and d=(dx,dy,dz) is the current particle displacement (ie position relative to initial position).
|
|
waveProp
|
interSeismoDistance
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Apr 5 22:26:51 2012 | http://epydoc.sourceforge.net |