 |
AGX Dynamics
2.38.0.2
|
Go to the documentation of this file.
23 class FrictionController;
50 Real frictionCoefficient,
84 ContextData m_contextData;
virtual void update(const NlmcpCallback::Args &args) const override
Update call when bounds and/or q may be updated given the current solution z.
Real calculateNormalImpact(const RealValarray &z) const
Translational or rotational friction controller for Hinge, Prismatic and CylindricalJoint.
virtual Bool initialize(const NlmcpCallback::Args &args) override
This method is a test for the non-linear solver if this callback is active for non-linear solve.
virtual void postIterativeSolve(const NlmcpCallback::Args &) const override
Before direct solve, after iterative solve.
virtual ~FrictionControllerNlCallback()
Real calculateNormalForce() const
static RangeReal calculateBound(Real normalImpact, Real frictionCoefficient, RangeReal minBound=RangeReal{ 0.0 })
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
Constraint solver callback interface with context and start rows for context.
bool useSecondaryConstraint
virtual Real calculateResidual(const NlmcpCallback::Args &args) const override
Calculate residual given current solution.
std::valarray< agx::Real > RealValarray
For this module, vectors are defined using valarray.
virtual void onSetContext(const NlmcpCallbackSolverData &) override
Called when context constraint has been set and all data is valid.
Solver callback class for elementary FrictionController.
Data from the solver the ConstraintNlmcpCallback is part of.
static ContextData findContextData(const FrictionController *frictionController, const ConstraintImplementation *context)
const AGXCORE_EXPORT InvalidIndexStruct InvalidIndex
FrictionControllerNlCallback(const FrictionController *frictionController)
Default constructor.