AGX Dynamics  2.35.0.1
agx::PureIterativeSolver Class Reference

Algorithm for pure iterative solve. More...

#include <SolveAlgorithms.h>

+ Inheritance diagram for agx::PureIterativeSolver:

Public Member Functions

 PureIterativeSolver (Solver *solver)
 Construct pure iterative solver. 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 ~PureIterativeSolver ()
 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_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...
 

Detailed Description

Algorithm for pure iterative solve.

I.e., it is not possible to couple other types of solvers with this solver.

Definition at line 311 of file SolveAlgorithms.h.

Constructor & Destructor Documentation

◆ PureIterativeSolver()

agx::PureIterativeSolver::PureIterativeSolver ( Solver *  solver)

Construct pure iterative solver.

◆ ~PureIterativeSolver()

virtual agx::PureIterativeSolver::~PureIterativeSolver ( )
protectedvirtual

Reference counted.

Protected destructor.

Member Function Documentation

◆ create()

virtual SolveAlgorithm::Task* agx::PureIterativeSolver::create ( bool  useComplexImpactStage)
overrideprotectedvirtual

Creates tree structure of this type of solver.

Returns
the root task of a pure iterative solver

Implements agx::SolveAlgorithm.

Member Data Documentation

◆ m_numImpactIterations

agx::UInt agx::PureIterativeSolver::m_numImpactIterations
protected

Definition at line 332 of file SolveAlgorithms.h.

◆ m_numPPGSIterations

agx::UInt agx::PureIterativeSolver::m_numPPGSIterations
protected

Definition at line 334 of file SolveAlgorithms.h.

◆ m_numRestingIterations

agx::UInt agx::PureIterativeSolver::m_numRestingIterations
protected

Definition at line 333 of file SolveAlgorithms.h.


The documentation for this class was generated from the following file: