esys :: lsm :: sim :: WavePropagation :: PVisitor :: Class PVisitor
[hide private]
[frames] | no frames]

Class PVisitor

Objects of this class are used in conjunction with the WavePropagation.visitParticlesWithId method to collect model particle data. Objects simply collect the visited particle data into a list. Used in conjunction with the esys.lsm.sim.WavePropagation.WavePropagation.visitParticlesWithId method.

Instance Methods [hide private]
 
__init__(self)
Initialise with empty particle list.
 
__iter__(self)
Returns the iterator of the particle list.
 
visitAParticle(self, particle)
Simply adds the specified particle data to the visited list.
 
visitNRotSphere(self, p)
 
visitRotSphere(self, p)
Method Details [hide private]

visitAParticle(self, particle)

 

Simply adds the specified particle data to the visited list.

Parameters:
  • particle (esys.lsm.LsmPy.NRotSphere or esys.lsm.LsmPy.RotSphere) - Particle data.