UniformMass

Context: Sofa.Component.Mass

Define the same mass for all the particles

Data:
  • name : object name

  • printLog : if true, emits extra messages at runtime.

  • 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).

  • listening : if true, handle the events, otherwise ignore the events

  • isCompliance : Consider the component as a compliance, else as a stiffness

  • rayleighStiffness : Rayleigh damping - stiffness matrix coefficient

  • separateGravity : add separately gravity to velocity computation

  • rayleighMass : Rayleigh damping - mass matrix coefficient

  • vertexMass : Specify one single, positive, real value for the mass of each particle.

If unspecified or wrongly set, the totalMass information is used.
  • totalMass : Specify the total mass resulting from all particles.

If unspecified or wrongly set, the default value is used: totalMass = 1.0
  • filename : File storing the mass parameters [rigid objects only].

  • showGravityCenter : display the center of gravity of the system

  • showAxisSizeFactor : factor length of the axis displayed (only used for rigids)

  • compute_mapping_inertia : to be used if the mass is placed under a mapping

  • showInitialCenterOfGravity : display the initial center of gravity of the system

  • showX0 : display the rest positions

  • localRange : optional range of local DOF indices.

Any computation involving only indices outside of this range are discarded (useful for parallelization using mesh partitionning)

  • indices : optional local DOF indices. Any computation involving only indices outside of this list are discarded

  • preserveTotalMass : Prevent totalMass from decreasing when removing particles.

Links:
  • 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

  • topology : link to the topology container