DistanceGridForceField
Force applied by a distancegrid toward the exterior, the interior, or the surface
Templates:
Vec3d
Target: SofaDistanceGrid
namespace: sofa::component::forcefield
parents:
ForceField
Data:
| Name | Description | Default value |
|---|---|---|
| name | object name | unnamed |
| printLog | if true, emits extra messages at runtime. | 0 |
| tags | list of the subsets the objet belongs to | |
| bbox | this object bounding box | |
| componentState | The state of the component among (Dirty, Valid, Undefined, Loading, Invalid). | Undefined |
| listening | if true, handle the events, otherwise ignore the events | 0 |
| isCompliance | Consider the component as a compliance, else as a stiffness | 0 |
| rayleighStiffness | Rayleigh damping - stiffness matrix coefficient | 0 |
| filename | load distance grid from specified file | |
| scale | scaling factor for input file | 1 |
| box | Field bounding box defined by xmin,ymin,zmin, xmax,ymax,zmax | |
| nx | number of values on X axis | 64 |
| ny | number of values on Y axis | 64 |
| nz | number of values on Z axis | 64 |
| stiffnessIn | force stiffness when inside of the object | 500 |
| stiffnessOut | force stiffness when outside of the object | 0 |
| damping | force damping coefficient | 0.01 |
| maxdist | max distance of the surface after which no more force is applied | 1 |
| minArea | minimal area for each triangle, as seen from the direction of the local surface (i.e. a flipped triangle will have a negative area) | 0 |
| stiffnessArea | force stiffness if a triangle have an area less than minArea | 100 |
| minVolume | minimal volume for each tetrahedron (a flipped triangle will have a negative volume) | 0 |
| stiffnessVolume | force stiffness if a tetrahedron have an volume less than minVolume | 0 |
| color | display color.(default=[0.0,0.5,0.2,1.0]) | 0 0.5 0.2 1 |
| localRange | optional range of local DOF indices. Any computation involving only indices outside of this range are discarded (useful for parallelization using mesh partitionning) | -1 -1 |
| Visualization | ||
| draw | enable/disable drawing of distancegrid | 0 |
| drawPoints | enable/disable drawing of distancegrid | 0 |
| drawSize | display size if draw is enabled | 10 |
Links:
| Name | Description |
|---|---|
| context | Graph Node containing this object (or BaseContext::getDefault() if no graph is used) |
| slaves | Sub-objects used internally by this object |
| master | nullptr for regular objects, or master object for which this object is one sub-objects |
| mechanicalStates | List of mechanical states to which this component is associated |
| mstate | MechanicalState used by this component |