|
AGX Dynamics
2.37.2.0
|
Solver callback class for elementary FrictionController. More...
#include <FrictionControllerNlCallback.h>
Inheritance diagram for agx::FrictionControllerNlCallback:Classes | |
| struct | ContextData |
Public Member Functions | |
| FrictionControllerNlCallback (const agx::FrictionController *frictionController) | |
| Default constructor. More... | |
| agx::Real | calculateNormalForce () const |
| agx::Real | calculateNormalForce (const agx::ConstraintImplementation *context) const |
| virtual agx::Real | calculateResidual (const agx::NlmcpCallback::Args &args) const override |
| Calculate residual given current solution. More... | |
| virtual agx::Bool | initialize (const agx::NlmcpCallback::Args &args) override |
| This method is a test for the non-linear solver if this callback is active for non-linear solve. More... | |
| virtual void | postIterativeSolve (const agx::NlmcpCallback::Args &) const override |
| Before direct solve, after iterative solve. More... | |
| virtual void | update (const agx::NlmcpCallback::Args &args) const override |
| Update call when bounds and/or q may be updated given the current solution z. More... | |
Public Member Functions inherited from agx::ConstraintNlmcpCallback | |
| const agx::ConstraintImplementation * | getContext () const |
| agx::UInt | getContextDirectRow () const |
| agx::UInt | getContextIterativeRow () const |
Public Member Functions inherited from agx::NlmcpCallback | |
| agx::UInt | getDirectRow () const |
| agx::UInt | getIterativeRow () const |
| agx::UInt | getNumRows () const |
| agx::UInt | getSparseBoundsIndex () const |
| void | setDirectRow (agx::UInt directRow) |
| void | setIterativeRow (agx::UInt iterativeRow) |
| void | setNumRows (agx::UInt numRows) |
| void | setSparseBoundsIndex (agx::UInt sparseBoundsIndex) |
Public Member Functions inherited from agx::Referenced | |
| Referenced () | |
| Default constructor. More... | |
| Referenced (const Referenced &) | |
| template<typename T > | |
| T * | as () |
| Subclass casting. More... | |
| template<typename T > | |
| const T * | as () const |
| template<typename T > | |
| T * | asSafe () |
| Safe subclass casting, return nullptr if template type does not match. More... | |
| template<typename T > | |
| const T * | asSafe () const |
| int | getReferenceCount () const |
| template<typename T > | |
| bool | is () const |
| Subclass test. More... | |
| Referenced & | operator= (const Referenced &) |
| Assignment operator. Will increment the number of references to the referenced object. More... | |
| void | reference (void *ptr=nullptr) const |
| Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it. More... | |
| void | unreference (void *ptr=nullptr) const |
| Decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
| void | unreference_nodelete () const |
| Decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
Static Public Member Functions | |
| static agx::Real | calculateNormalForce (const agx::ConstraintImplementation *context, ContextData contextData) |
| static ContextData | findContextData (const agx::FrictionController *frictionController, const agx::ConstraintImplementation *context) |
Static Public Member Functions inherited from agx::Referenced | |
| template<typename T > | |
| static bool | ValidateCast (const Referenced *object) |
Protected Member Functions | |
| virtual | ~FrictionControllerNlCallback () |
| agx::Real | calculateNormalImpact (const agx::RealValarray &z) const |
| virtual void | onSetContext (const NlmcpCallbackSolverData &) override |
| Called when context constraint has been set and all data is valid. More... | |
Protected Member Functions inherited from agx::ConstraintNlmcpCallback | |
| ConstraintNlmcpCallback () | |
| virtual | ~ConstraintNlmcpCallback () |
Protected Member Functions inherited from agx::NlmcpCallback | |
| NlmcpCallback () | |
| Default constructor. More... | |
| virtual | ~NlmcpCallback () |
| Protected destructor, reference counted object. More... | |
Protected Member Functions inherited from agx::Referenced | |
| virtual | ~Referenced () |
| Destructor. More... | |
| void | allocateObserverVector () const |
| void | deleteUsingDeleteHandler () const |
Additional Inherited Members | |
Static Protected Member Functions inherited from agx::Referenced | |
| static DeleteHandler * | getDeleteHandler () |
| static void | setDeleteHandler (DeleteHandler *handler) |
| Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to. More... | |
Protected Attributes inherited from agx::Referenced | |
| Mutex | m_mutex |
| ObserverContainer | m_observers |
| AtomicValue | m_refCount |
Solver callback class for elementary FrictionController.
Definition at line 28 of file FrictionControllerNlCallback.h.
| agx::FrictionControllerNlCallback::FrictionControllerNlCallback | ( | const agx::FrictionController * | frictionController | ) |
Default constructor.
|
protectedvirtual |
|
static |
| agx::Real agx::FrictionControllerNlCallback::calculateNormalForce | ( | ) | const |
| agx::Real agx::FrictionControllerNlCallback::calculateNormalForce | ( | const agx::ConstraintImplementation * | context | ) | const |
|
protected |
|
overridevirtual |
Calculate residual given current solution.
Implements agx::NlmcpCallback.
|
static |
|
overridevirtual |
This method is a test for the non-linear solver if this callback is active for non-linear solve.
Implements agx::NlmcpCallback.
|
overrideprotectedvirtual |
Called when context constraint has been set and all data is valid.
| solverData | - solver related data our context is part of |
Reimplemented from agx::ConstraintNlmcpCallback.
|
overridevirtual |
Before direct solve, after iterative solve.
Implements agx::NlmcpCallback.
|
overridevirtual |
Update call when bounds and/or q may be updated given the current solution z.
Implements agx::NlmcpCallback.