Generic many-body constraint with callbacks for writing Jacobian and constraint data.
virtual ~GenericManyBodyConstraint()=default
virtual void onPostSolve() override
Callback from after the solve and the solutions been pushed to the elementary constraints.
virtual agx::Bool onPreSolve() override
Callback before this constraint reaches the solver (actually preSystemCallback).
virtual void onAddNotification() override
Callback when the constraint has been added to a simulation.
virtual void updateComplianceMatrix(GenericConstraintComplianceMatrix *matrix) override
Callback to write data.
virtual void onWriteData(agx::GenericConstraintData *constraintData)
Callback when to write Jacobian and constraint data if this constraint is active.
GenericManyBodyConstraint(agx::UInt numRows)
Construct given number of rows.
virtual void onRemoveNotification() override
Callback when the constraint has been removed from a simulation.