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:
<ConstantForceField indices="0 1 2" forces="-1 -1 0 1 -1 0 1 1 0" />
or using SofaPython3:
'ConstantForceField', indices=[0 1 2], forces=[[-1 -1 0] [1 -1 0] [1 1 0]])node.addObject(
With a description of each data
An example scene involving a ConstantForceField is available in examples/Components/forcefield/ConstantForceField.scn
Last modified: 26 October 2023