|
AGXDynamics
2.31.1.0
|
Scale box friction model solver callback. More...
#include <NlmcpCallback.h>
Inheritance diagram for agx::ScaleBoxCallback:Public Member Functions | |
| ScaleBoxCallback (const agx::FrictionModel *frictionModel, agx::UInt numNormals, const agx::Vec3 &frictionCoefficients) | |
| 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 |
| virtual agx::Real | calculateResidual (const agx::NlmcpCallback::Args &args) const override |
| Calculate residual given current solution. More... | |
| agx::UInt | getDirectRow () const |
| agx::UInt | getIterativeRow () const |
| agx::UInt | getNumRows () const |
| int | getReferenceCount () const |
| agx::UInt | getSparseBoundsIndex () const |
| 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... | |
| template<typename T > | |
| bool | is () const |
| Subclass test. More... | |
| virtual void | postIterativeSolve (const agx::NlmcpCallback::Args &args) const override |
| Before direct solve, after iterative solve. 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 | setDirectRow (agx::UInt directRow) |
| void | setIterativeRow (agx::UInt iterativeRow) |
| void | setNumRows (agx::UInt numRows) |
| void | setSparseBoundsIndex (agx::UInt sparseBoundsIndex) |
| 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... | |
| 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... | |
Static Public Member Functions | |
| template<typename T > | |
| static bool | ValidateCast (const Referenced *object) |
Protected Member Functions | |
| virtual | ~ScaleBoxCallback () |
| void | allocateObserverVector () const |
| void | deleteUsingDeleteHandler () const |
Static Protected Member Functions | |
| 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 | |
| agx::Real | m_frictionCoefficients [2] |
| const agx::FrictionModel * | m_frictionModel |
| Mutex | m_mutex |
| agx::UInt | m_numNormals |
| ObserverContainer | m_observers |
| AtomicValue | m_refCount |
Scale box friction model solver callback.
Updates bounds during non-linear direct solves.
Definition at line 223 of file NlmcpCallback.h.
| agx::ScaleBoxCallback::ScaleBoxCallback | ( | const agx::FrictionModel * | frictionModel, |
| agx::UInt | numNormals, | ||
| const agx::Vec3 & | frictionCoefficients | ||
| ) |
|
protectedvirtual |
|
protectedinherited |
|
inherited |
Subclass casting.
Template type must match actual type, dynamic_cast assertion will fail otherwise.
Referenced by agx::InternalData::get(), agxVehicle::Track::getNode(), agx::InternalData::getOrCreate(), and agx::InternalData::hasData().
|
inherited |
|
inherited |
Safe subclass casting, return nullptr if template type does not match.
Referenced by agxUtil::CollectBodiesAndWiresVisitor::visit().
|
inherited |
|
overridevirtual |
Calculate residual given current solution.
Implements agx::NlmcpCallback.
|
protectedinherited |
|
staticprotectedinherited |
|
inherited |
Definition at line 159 of file NlmcpCallback.h.
|
inherited |
Definition at line 164 of file NlmcpCallback.h.
|
inherited |
Definition at line 174 of file NlmcpCallback.h.
|
inherited |
|
inherited |
Definition at line 169 of file NlmcpCallback.h.
|
overridevirtual |
This method is a test for the non-linear solver if this callback is active for non-linear solve.
Implements agx::NlmcpCallback.
|
inherited |
Subclass test.
Referenced by agx::Object::getAutoScopedResource(), agxData::EntityStorage::getInstances(), and agx::Object::getResource().
|
overridevirtual |
Before direct solve, after iterative solve.
Implements agx::NlmcpCallback.
Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it.
This method should be used with care, always balanced with the same number of calls to unreference.
|
staticprotectedinherited |
Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to.
Decrement the reference count by one, indicating that a pointer to this object is referencing it.
If the reference count goes to zero, it is assumed that this object is no longer referenced and is automatically deleted.
This method should be used with care, always balanced with the same number of calls to reference.
Referenced by agxData::EntityRef< ContactMaterialPtr >::~EntityRef().
|
inherited |
Decrement the reference count by one, indicating that a pointer to this object is referencing it.
However, do not delete it, even if ref count goes to 0. Warning, unref_nodelete() should only be called if the user knows exactly who will be responsible for, one should prefer unref() over unref_nodelete() as the later can lead to memory leaks.
|
overridevirtual |
Update call when bounds and/or q may be updated given the current solution z.
Implements agx::NlmcpCallback.
|
staticinherited |
|
protected |
Definition at line 240 of file NlmcpCallback.h.
|
protected |
Definition at line 241 of file NlmcpCallback.h.
|
mutableprotectedinherited |
Definition at line 240 of file Referenced.h.
|
protected |
Definition at line 239 of file NlmcpCallback.h.
|
mutableprotectedinherited |
Definition at line 239 of file Referenced.h.
|
mutableprotectedinherited |
Definition at line 241 of file Referenced.h.