Core settings
Time Step
dt (double)timeStep
Current Time
t (double)currentTime
Shape Function
ShapeFunction (string)shapeFunction
shapeFunction can be either Linear, RegularQuadLinear, BSpline
Splitting
splitting (bool)Active (bool)splitTouchingMP (double)SplitValue
Constitutive Model
model (string)modelName (string)modelRef (...list of parameters that depend on modelName...)
List of parameters for each modelName:
HookeElasticity: (double)Young (double)PoissonVonMisesElastoPlasticity: (double)Young (double)Poisson (double)PlasticYieldStressMohrCoulomb: (double)Young (double)Poisson (double)FrictionAngle (double)Cohesion (double)DilatancyAngle
Commands
set_grid (int)Nx (int)Ny (double)gridSpacing
set_MP_grid (int)group (string)modelName (double)massDensity (double)x0 (double)y0 (double)x1 (double)y1 (double)sizeOfBoxes
set_MP_polygon (int)group (int)nbVertices (string)modelName (double)massDensity (double)sizeOfBoxes (... (double)x (double)y ...)
The part (...) is repeated 'nbVertices' times
add_MP_ShallowPath (int)group (int)nbPathPoints (double)height (string)modelName (double)rho (double)size (...list of nbPathPoints (vec2r)point...)
move_MP (double)x0 (double)y0 (double)dx (double)dy (double)theta
Note that a negative value of theta rotates clockwise.
reset_model (int)group (string__)modelName (_double)rho (double)x0 (double)y0 (double)x1 (double)y1
set_BC_column (int)columnNumber (int)line0 (int)line1 (0/1)Xfixed (0/1)Yfixed
set_BC_line (int)lineNumber (int)column0 (int)column1 (0/1)Xfixed (0/1)Yfixed
set_properties (double)mu (double)Kn (double)e2 (double)Kt
This command is actually deprecated and will be replaced soon!!
set_K0_stress (double)Poisson (double)MassDensity
Obstacles (Rigid Bodies)
Obstacle (string)type (...list of parameters that depend on type...)
List of parameters for each type:
Line: (double)x0 (double)y0 (double)x1 (double)y1Circle: (vec2r)center (double)RLeftBiplanar: (vec2r)from1 (double)l1 (double)l2 (double)R (double, degrees)angle
Spies (Processing)
Spy (string)spyName (...list of parameters that depend on spyName...)
List of parameters for each spyName:
Work: (int)recordPeriod (string)fileName (double)Xmin (double)Xmax (int)nbBins
Vtk Outputs
VtkOutput (string)output (...list of eventual parameters that depend on output...)
List of outputs:
deltaVolumeforceContactmeanPressure(default)raw_totalStrainraw_totalStressraw_velocitysmoothed_totalStress(default)smoothed_velocity(default)totalDisplacement