|
AGX Dynamics
2.35.0.1
|
Algorithm for hybrid solve. More...
#include <SolveAlgorithms.h>
Inheritance diagram for agx::HybridSolver:Public Member Functions | |
| HybridSolver (agx::Solver *solver) | |
| Construct a hybrid solve algorithm based on a previous solver (use same settings) More... | |
Public Member Functions inherited from agx::SolveAlgorithm | |
| void | calculateNumTasks (const agx::SolveAlgorithm::Task *task, const agx::SolveAlgorithm::Task::ConditionData &conditionData, agx::UInt &numEmptyTasks, agx::UInt &numSingleTasks, agx::UInt &numGroupTasks, agx::UInt &numCustomTasks) const |
| After create method, this recursive method can be called to pre-calculate the number of types in the tree for a given island. More... | |
| virtual void | generateJobs (agx::JobGenerator &generator, const SolveAlgorithm::Task::ConditionData &conditionData, agx::Physics::SolveIslandPtr island, const agx::Physics::SolveGroupData &solveGroup) |
| Generate jobs given the tree structure built by the implemented solve algorithm. More... | |
| virtual agx::SolveAlgorithm::Task * | instantiate () |
| Initializes a solve algorithm and/or returns the root task. More... | |
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... | |
Protected Member Functions | |
| virtual | ~HybridSolver () |
| Reference counted. More... | |
| virtual SolveAlgorithm::Task * | create (bool useComplexImpactStage) override |
| Creates tree structure of this type of solver. More... | |
Protected Member Functions inherited from agx::SolveAlgorithm | |
| SolveAlgorithm (Solver *solver) | |
| Protected constructor for pure virtual object. More... | |
| virtual | ~SolveAlgorithm () |
| Reference counted object, protected destructor. More... | |
| virtual void | generateJobs (agx::SolveAlgorithm::Task *task, const agx::SolveAlgorithm::Task::ConditionData &conditionData, agx::JobGroup *parentJobGroup, agx::JobGroupPtrVector &dependentJobs, agx::JobGenerator &generator, agx::Physics::SolveIslandPtr island, const agx::Physics::SolveGroupData &solveGroup) |
| Recursive part of generateJobs. More... | |
| agx::Solver * | getSolver () |
Protected Member Functions inherited from agx::Referenced | |
| virtual | ~Referenced () |
| Destructor. More... | |
| void | allocateObserverVector () const |
| void | deleteUsingDeleteHandler () const |
Protected Attributes | |
| agx::UInt | m_numDryFrictionIterations |
| agx::UInt | m_numImpactIterations |
| agx::UInt | m_numPPGSIterations |
| agx::UInt | m_numRestingIterations |
Protected Attributes inherited from agx::SolveAlgorithm | |
| agx::SolveAlgorithm::TaskRef | m_root |
| agx::Solver * | m_solver |
Protected Attributes inherited from agx::Referenced | |
| Mutex | m_mutex |
| ObserverContainer | m_observers |
| AtomicValue | m_refCount |
Additional Inherited Members | |
Public Types inherited from agx::SolveAlgorithm | |
| typedef agx::ref_ptr< SolveAlgorithm::Task > | TaskRef |
| enum | Type { EMPTY , PURE_DIRECT , PURE_ITERATIVE , HYBRID } |
| Solve algorithm type "guessed" by findSolveAlgorithm. More... | |
Static Public Member Functions inherited from agx::SolveAlgorithm | |
| static agx::SolveAlgorithm::Type | findSolveAlgorithm (agx::Physics::SolveIslandPtr island, UInt numZones) |
| Static method to find the optimal solve algorithm for an island. More... | |
Static Public Member Functions inherited from agx::Referenced | |
| template<typename T > | |
| static bool | ValidateCast (const Referenced *object) |
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... | |
Algorithm for hybrid solve.
I.e., a combination of direct and iterative solves etc..
Definition at line 366 of file SolveAlgorithms.h.
| agx::HybridSolver::HybridSolver | ( | agx::Solver * | solver | ) |
Construct a hybrid solve algorithm based on a previous solver (use same settings)
|
protectedvirtual |
Reference counted.
Protected destructor.
|
overrideprotectedvirtual |
Creates tree structure of this type of solver.
Implements agx::SolveAlgorithm.
|
protected |
Definition at line 389 of file SolveAlgorithms.h.
|
protected |
Definition at line 387 of file SolveAlgorithms.h.
|
protected |
Definition at line 390 of file SolveAlgorithms.h.
|
protected |
Definition at line 388 of file SolveAlgorithms.h.