This component belongs to the category of ForceField. The ConstantForceField is a simple force field applying the same constant force on each node. This force field is not integrated over the domain of our object, but simply distributed over the number of nodes.
- indices: list of node indices where the forces are applied and distributed
- force: single value corresponding to the constant force applied on each node
- totalForce: single value corresponding to total force for all points, i.e. the sum of the forces distributed uniformly over the nodes
- forces: vector containing the force amplitude applied at each node
As a Forcefield, the ConstantForceField requires a MechanicalObject and the associated solvers (integration scheme and linear solver), as well as a PointSetTopologyContainer.
This component is used as follows in XML format:
or using SofaPython3:
With a description of each data
An example scene involving a ConstantForceField is available in examples/Components/forcefield/ConstantForceField.scn
Last modified: 30 November 2021