RShape / Mesh¶
The RShape driver is built from a .stl (stereolithography) or .shp (shape) file, as a mesh of faces. It allows a
quick setup of complex geometries, for example from CAD. The faces of an RShape driver are processed as a
sphero-polyhedron: a thin layer (the Minkowski radius) is added around each face.
register_stl_mesh / register_rshape¶
| Parameter | Description |
|---|---|
id |
driver index |
filename |
input file (.stl or .shp) |
minkowski |
Minkowski radius |
binary |
binary (true) or ascii (false, default) STL file; ignored for .shp files |
scale |
scale factor applied to the shape, default 1 |
deform |
non-uniform deformation factors along x, y and z, [x, y, z], strictly positive, default [1, 1, 1] |
state |
center, velocity, angular velocity and orientation, default {center: [0,0,0], vel: [0,0,0], vrot: [0,0,0], quat: [1,0,0,0]}; mass, surface, inertia and moment for some motions |
params |
motion parameters, default { motion_type: STATIONARY } |
STATIONARY¶
LINEAR_MOTION¶
TABULATED¶
LINEAR_FORCE_MOTION¶
Note
The mass of the driver must be given.
LINEAR_COMPRESSIVE_MOTION¶
Note
The mass and the surface of the driver must be given. Without surface, exaDEM proposes the sum of the
areas of the faces of the RShape.
SHAKER¶
Example: example/spheres/shaker/shaker_stl.msp.
EXPRESSION¶
Example (the RSA package is required): example/spheres/stl-mesh/tore_expression_motion.msp.
An expression can also impose a moment:
Example: example/polyhedra/imposed_driver_moment/driver_expr_mom.msp, corresponding to the next section. Another
example, example/spheres/cylinder_stl, is a funny variant of the
rotating drum show-case:
Constant moment with sample retroaction¶
A constant moment can be applied while accounting for the retroaction of the sample on the driver. The driver definition must include:
center: the rotation center of the driver;inertia: the rotational inertia of the driver;mass: the mass of the driver.
As for the angular velocity, this mechanism is not a motion_type.
Note
The applied moment is restricted to the direction given in the moment slot: only the component along this
direction is applied.
Examples:
- right:
example/polyhedra/imposed_driver_moment/driver_counter_mom.msp; - left:
example/polyhedra/imposed_driver_moment/driver_applied_mom.msp.