17#ifndef AGX_REGULARIZATION_PARAMETERS_H
18#define AGX_REGULARIZATION_PARAMETERS_H
48 bool isHolonomic()
const;
125 int8_t getIndexSetState()
const;
151 return Real(4.0 / ( h * h * ( 1.0 + 4.0 * m_damping / h ) ) * m_compliance);
153 return Real(1.0) / h * m_compliance;
159 return (int8_t) ((m_type >> 8) & 0xff );
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
#define AGXPHYSICS_EXPORT
This class is an abstract base class for all classes that can be stored and retrieved from an Archive...
All ghost variables have compliance and damping attributes.
void setDampingHalfLife(agx::Real compliance, agx::Real h, agx::Real numSteps)
Utility method to set compliance and assign damping given time step used and the number of steps the ...
int8_t getIndexSetState() const
Used by the solver.
void setIndexSetState(int8_t state)
Used by the solver, should in general not be called by user code.
RegularizationParameters()
Default constructor.
void setDamping(agx::Real d)
Set the damping rate with suitable dimensionality given linear or angular variable.
agx::Real getDamping() const
agx::Real getCompliance() const
agx::Real getDiagonalPerturbation(agx::Real h) const
Internal method used by solvers.
void setCompliance(agx::Real c)
Set the value of compliance which is an inverse spring constant with suitable dimensionality given li...
void setType(VariableType type)
Assign new type.
void setDampingHalfLife(agx::Real h, agx::Real numSteps)
Utility method to assign damping given time step used and the number of steps the solver gets to fulf...
The agx namespace contains the dynamics/math part of the AGX Dynamics API.