migflow.lmgc90Interface¶
-
class
migflow.lmgc90Interface.
ParticleProblem
(dim, period=0, xp=0, yp=0, restart=0)¶ Bases:
object
A class definition holding data of lmgc90 in a compatible form to use coupling with gmsh
Attributs are :
- number of objects (disks|sphere)
- volume of objects (disks|sphere)
- reference map on objects to models (diskx2rbdy2 | spher2rbdy3)
The methods are :
- iterate() : do one time iteration
- position() : give back position of all spher
- velocity() : give back velocity of all spher
- externalForces() : update external forces on particles
- getMeanRadius() : return the mean radius of particles
- getVolume() : give back the volume of all spher
- writeHeader() : write header file for plot
Initialize lmgc90
-
__del__
()¶
-
contact_forces
()¶
-
externalForces
()¶ Get an external forces array
-
iterate
(dt, forces, tol=None, gsit1=None, gsit2=None, freqWrite=0)¶ Do one step of a lmgc90 computation.
-
mass
()¶ Return the mass of the particles
-
position
()¶ Get current position of contactors and return it
-
r
()¶ Return the radius of the particles
-
set_boundary_velocity
(tag, v)¶
-
velocity
()¶ Get current velocity of body of contactor and return it Beware : it should not work very well with clusters !
-
volume
()¶ Return the volume of the particles
-
write_vtk
(odir, iiter, t)¶
-
write_vtk_lmgc
(filemame, i, t)¶
-
migflow.lmgc90Interface.
scontactTolmgc90
(dirname, dim, it=0, fric=0.0, assume_box=False)¶