|
AGXDynamics
2.31.1.0
|
#include <DirectSolverData.h>
Inheritance diagram for agx::DirectSolverData:Classes | |
| class | ContactGroups |
| Class that handles the grouping. More... | |
Public Types | |
| typedef agx::ref_ptr< ContactGroups > | ContactGroupsRef |
| typedef agx::HashTable< agx::UInt, agx::UIntVector > | StrongInteractionTable |
Public Member Functions | |
| DirectSolverData (agx::UInt numEquations, agx::UInt numBlockRows, agx::UInt numBlocks, agx::Solver::NlMcpConfig nlMcpConfig, agx::Bool gatherStatistics, INlSolveDataH5 *nlSolveDataH5) | |
| Construct given total number of equations in the direct system, number of block rows and the total number of blocks in the matrix. More... | |
| 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 |
| void | buildStrongInteractionTable (agx::Physics::InteractionGroupPtr islandGroup, agx::Physics::StrongInteractionData &strongInteractions, const agxData::IndexArray &globalToLocalIndexArray) |
| Builds table that maps a rigid body to the other bodies it interacts with. More... | |
| DirectSolverData * | clone () |
| Clones solver data. More... | |
| void | commitVelocities (const agxData::IndexArray &indices, agxData::Array< agx::Vec3 > &linearVelocities, agxData::Array< agx::Vec3 > &angularVelocities, const agxData::Array< agx::RigidBodyState > &states) const |
| Copy solution to velocity buffers. More... | |
| const agx::NlMixedCp::McpAlgorithm * | getAlgorithm () const |
| agx::DirectSolverData::ContactGroups * | getContactGroups () const |
| agx::IndexSet & | getIndexSet () |
| agx::LogicalStructure & | getLogicalStructure () |
| const agx::LogicalStructure & | getLogicalStructure () const |
| agx::SparseMatrix & | getMatrix () |
| const agx::SparseMatrix & | getMatrix () const |
| agx::UInt | getNumBlockRows () const |
| agx::RealValarray & | getQ () |
| const agx::RealValarray & | getQ () const |
| int | getReferenceCount () const |
| agx::RealValarray & | getSigns () |
| const agx::RealValarray & | getSigns () const |
| agx::RealValarray & | getSolution () |
| const agx::RealValarray & | getSolution () const |
| agx::SparseRangeReal & | getSparseBounds () |
| const agx::SparseRangeReal & | getSparseBounds () const |
| agx::StabilityReport * | getStabilityReport () const |
| const agx::DirectSolverData::StrongInteractionTable & | getStrongInteractionTable () const |
| void | initialize () |
| Initialize for a new solve. More... | |
| template<typename T > | |
| bool | is () const |
| Subclass test. 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 | setContactGroups (agx::DirectSolverData::ContactGroups *contactGroups) |
| Assign new contact groups object. More... | |
| const agx::RealValarray & | solve () |
| Solve the current configuration of the matrix, right hand side and bounds. 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 | |
| template<typename T > | |
| static bool | ValidateCast (const Referenced *object) |
Protected Member Functions | |
| DirectSolverData ()=delete | |
| virtual | ~DirectSolverData () |
| 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... | |
Definition at line 92 of file DirectSolverData.h.
Definition at line 126 of file DirectSolverData.h.
Definition at line 95 of file DirectSolverData.h.
| agx::DirectSolverData::DirectSolverData | ( | agx::UInt | numEquations, |
| agx::UInt | numBlockRows, | ||
| agx::UInt | numBlocks, | ||
| agx::Solver::NlMcpConfig | nlMcpConfig, | ||
| agx::Bool | gatherStatistics, | ||
| INlSolveDataH5 * | nlSolveDataH5 | ||
| ) |
Construct given total number of equations in the direct system, number of block rows and the total number of blocks in the matrix.
| numEquations | - total number of equations |
| numBlockRows | - total number of block rows in matrix |
| numBlocks | - total number of blocks in matrix |
| nlMcpConfig | - direct solver configuration |
|
protecteddelete |
|
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 |
| void agx::DirectSolverData::buildStrongInteractionTable | ( | agx::Physics::InteractionGroupPtr | islandGroup, |
| agx::Physics::StrongInteractionData & | strongInteractions, | ||
| const agxData::IndexArray & | globalToLocalIndexArray | ||
| ) |
Builds table that maps a rigid body to the other bodies it interacts with.
| strongInteractions | - strong interactions |
| globalToLocalIndexArray | - index array that maps global body indices to island indices |
| DirectSolverData* agx::DirectSolverData::clone | ( | ) |
Clones solver data.
| void agx::DirectSolverData::commitVelocities | ( | const agxData::IndexArray & | indices, |
| agxData::Array< agx::Vec3 > & | linearVelocities, | ||
| agxData::Array< agx::Vec3 > & | angularVelocities, | ||
| const agxData::Array< agx::RigidBodyState > & | states | ||
| ) | const |
Copy solution to velocity buffers.
| indices | - direct body local to global indices |
| linearVelocities | - linear velocity buffer |
| angularVelocities | - angular velocity buffer |
| states | - states |
|
protectedinherited |
| const agx::NlMixedCp::McpAlgorithm* agx::DirectSolverData::getAlgorithm | ( | ) | const |
| agx::DirectSolverData::ContactGroups* agx::DirectSolverData::getContactGroups | ( | ) | const |
|
staticprotectedinherited |
| agx::IndexSet& agx::DirectSolverData::getIndexSet | ( | ) |
| agx::LogicalStructure& agx::DirectSolverData::getLogicalStructure | ( | ) |
| const agx::LogicalStructure& agx::DirectSolverData::getLogicalStructure | ( | ) | const |
| agx::SparseMatrix& agx::DirectSolverData::getMatrix | ( | ) |
| const agx::SparseMatrix& agx::DirectSolverData::getMatrix | ( | ) | const |
| agx::UInt agx::DirectSolverData::getNumBlockRows | ( | ) | const |
| agx::RealValarray& agx::DirectSolverData::getQ | ( | ) |
| const agx::RealValarray& agx::DirectSolverData::getQ | ( | ) | const |
|
inherited |
| agx::RealValarray& agx::DirectSolverData::getSigns | ( | ) |
| const agx::RealValarray& agx::DirectSolverData::getSigns | ( | ) | const |
| agx::RealValarray& agx::DirectSolverData::getSolution | ( | ) |
| const agx::RealValarray& agx::DirectSolverData::getSolution | ( | ) | const |
| agx::SparseRangeReal& agx::DirectSolverData::getSparseBounds | ( | ) |
| const agx::SparseRangeReal& agx::DirectSolverData::getSparseBounds | ( | ) | const |
| agx::StabilityReport* agx::DirectSolverData::getStabilityReport | ( | ) | const |
| const agx::DirectSolverData::StrongInteractionTable& agx::DirectSolverData::getStrongInteractionTable | ( | ) | const |
| void agx::DirectSolverData::initialize | ( | ) |
Initialize for a new solve.
This method can be called many times, e.g., if this object is stored between time steps.
|
inherited |
Subclass test.
Referenced by agx::Object::getAutoScopedResource(), agxData::EntityStorage::getInstances(), and agx::Object::getResource().
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.
| void agx::DirectSolverData::setContactGroups | ( | agx::DirectSolverData::ContactGroups * | contactGroups | ) |
Assign new contact groups object.
|
staticprotectedinherited |
Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to.
| const agx::RealValarray& agx::DirectSolverData::solve | ( | ) |
Solve the current configuration of the matrix, right hand side and bounds.
The solution is stored and is accessible through getSolution().
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.
|
staticinherited |
|
protected |
Definition at line 265 of file DirectSolverData.h.
|
protected |
Definition at line 264 of file DirectSolverData.h.
|
mutableprotectedinherited |
Definition at line 240 of file Referenced.h.
|
protected |
Definition at line 263 of file DirectSolverData.h.
|
protected |
Definition at line 269 of file DirectSolverData.h.
|
protected |
Definition at line 261 of file DirectSolverData.h.
|
protected |
Definition at line 262 of file DirectSolverData.h.
|
protected |
Definition at line 260 of file DirectSolverData.h.
|
protected |
Definition at line 266 of file DirectSolverData.h.
|
mutableprotectedinherited |
Definition at line 239 of file Referenced.h.
|
mutableprotectedinherited |
Definition at line 241 of file Referenced.h.
|
protected |
Definition at line 267 of file DirectSolverData.h.
|
protected |
Definition at line 268 of file DirectSolverData.h.