28 class SparseRangeReal;
29 class ConstraintImplementation;
30 class DirectSolverData;
50 const agx::Real* iterativeSolutionContacts,
51 const agx::Real* iterativeSolutionBinaryConstraints,
52 const agx::Real* iterativeSolutionManyBodyConstraints,
57 iterativeSolutionContacts( iterativeSolutionContacts ),
58 iterativeSolutionBinaryConstraints( iterativeSolutionBinaryConstraints ),
59 iterativeSolutionManyBodyConstraints( iterativeSolutionManyBodyConstraints ),
60 solveDataH5( solveDataH5 )
174 return m_iterativeRow;
179 return m_sparseBoundsIndex;
277 UInt contextDirectRow,
278 UInt contextIterativeRow,
#define AGXPHYSICS_EXPORT
Constraint solver callback interface with context and start rows for context.
const agx::ConstraintImplementation * getContext() const
virtual void onSetContext(const NlmcpCallbackSolverData &solverData)
Called when context constraint has been set and all data is valid.
agx::UInt getContextIterativeRow() const
ConstraintNlmcpCallback()
virtual ~ConstraintNlmcpCallback()
agx::UInt getContextDirectRow() const
Interface class for solver callbacks.
agx::UInt getIterativeRow() const
agx::UInt getDirectRow() const
virtual void update(const agx::NlmcpCallback::Args &args) const =0
Update call when bounds and/or q may be updated given the current solution z.
virtual agx::Real calculateResidual(const agx::NlmcpCallback::Args &args) const =0
Calculate residual given current solution.
agx::UInt getNumRows() const
virtual ~NlmcpCallback()
Protected destructor, reference counted object.
NlmcpCallback()
Default constructor.
void setSparseBoundsIndex(agx::UInt sparseBoundsIndex)
virtual void postIterativeSolve(const agx::NlmcpCallback::Args &args) const =0
Before direct solve, after iterative solve.
agx::UInt getSparseBoundsIndex() const
virtual agx::Bool initialize(const agx::NlmcpCallback::Args &args)=0
This method is a test for the non-linear solver if this callback is active for non-linear solve.
void setDirectRow(agx::UInt directRow)
void setIterativeRow(agx::UInt iterativeRow)
void setNumRows(agx::UInt numRows)
Pointer to a entity instance of type Physics.RigidBody.
Base class providing referencing counted objects.
The rigid body class, combining a geometric model and a frame of reference.
Essentially a sparse array of bounds.
Smart pointer for handling referenced counted objects.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
std::valarray< agx::Real > RealValarray
For this module, vectors are defined using valarray.
Data from the solver the ConstraintNlmcpCallback is part of.
UInt32 getRigidBodyNumRows(Index globalIndex) const
Finds number of rows the given rigid body index has allocated in the solver.
UInt32 getPermutedDirectStartRow(const RigidBody *rb) const
const Physics::RigidBodyData & rigidBody
Global rigid body data.
UInt32 getNumRows(const RigidBody *rb) const
Finds number of rows the given rigid body has allocated in the solver.
NlmcpCallbackSolverData(const NlmcpCallbackSolverData &)=delete
UInt32 getPermutedDirectStartRow(const Physics::RigidBodyPtr &entity) const
UInt32 getNumRows(const Physics::RigidBodyPtr &entity) const
Finds number of rows the given rigid body entity has allocated in the solver.
const DirectSolverData & directSolverData
Direct solver data the ConstraintNlmcpCallback constraint is part of.
UInt32 getRigidBodyPermutedDirectStartRow(Index globalIndex) const
const agx::Real * iterativeSolutionContacts
Args(agx::RealValarray &q, const agx::RealValarray &z, const agx::SparseRangeReal &bounds, const agx::Real *iterativeSolutionContacts, const agx::Real *iterativeSolutionBinaryConstraints, const agx::Real *iterativeSolutionManyBodyConstraints, agx::INlSolveDataH5 *solveDataH5)
agx::INlSolveDataH5 * solveDataH5
const agx::Real * iterativeSolutionBinaryConstraints
const agx::Real * iterativeSolutionManyBodyConstraints
const agx::RealValarray & z
const agx::SparseRangeReal & bounds
Args(const Args &)=delete