MBDyn-1.7.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
StepIntegrator Class Referenceabstract

#include <stepsol.h>

Inheritance diagram for StepIntegrator:
Collaboration diagram for StepIntegrator:

Classes

class  ErrGeneric
 

Public Types

enum  { DIFFERENTIAL = 0, ALGEBRAIC = 1 }
 
enum  StepChange { NEWSTEP, REPEATSTEP }
 

Public Member Functions

 StepIntegrator (const integer MaxIt, const doublereal dT, const doublereal dSolutionTol, const integer stp, const integer sts)
 
virtual ~StepIntegrator (void)
 
void SetDataManager (DataManager *pDatMan)
 
virtual integer GetIntegratorNumPreviousStates (void) const
 
virtual integer GetIntegratorNumUnknownStates (void) const
 
virtual integer GetIntegratorMaxIters (void) const
 
virtual doublereal GetIntegratorDTol (void) const
 
virtual doublereal GetIntegratorDSolTol (void) const
 
virtual void OutputTypes (const bool fpred)
 
virtual void SetDriveHandler (const DriveHandler *pDH)
 
virtual doublereal Advance (Solver *pS, const doublereal TStep, const doublereal dAlph, const StepChange StType, std::deque< MyVectorHandler * > &qX, std::deque< MyVectorHandler * > &qXPrime, MyVectorHandler *const pX, MyVectorHandler *const pXPrime, integer &EffIter, doublereal &Err, doublereal &SolErr)=0
 

Protected Member Functions

template<class T >
void UpdateLoop (const T *const t, void(T::*pUpd)(const int DCount, const DofOrder::Order Order, const VectorHandler *const pSol) const, const VectorHandler *const pSol=0) const
 

Protected Attributes

DataManagerpDM
 
const DataManager::DofVecTypepDofs
 
bool outputPred
 
integer MaxIters
 
doublereal dTol
 
doublereal dSolTol
 
integer steps
 
integer unkstates
 

Detailed Description

Definition at line 80 of file stepsol.h.

Member Enumeration Documentation

anonymous enum
Enumerator
DIFFERENTIAL 
ALGEBRAIC 

Definition at line 89 of file stepsol.h.

Enumerator
NEWSTEP 
REPEATSTEP 

Definition at line 90 of file stepsol.h.

Constructor & Destructor Documentation

StepIntegrator::StepIntegrator ( const integer  MaxIt,
const doublereal  dT,
const doublereal  dSolutionTol,
const integer  stp,
const integer  sts 
)

Definition at line 51 of file stepsol.cc.

References NO_OP.

56 : pDM(0),
57 pDofs(0),
58 outputPred(false),
59 MaxIters(MaxIt),
60 dTol(dT),
61 dSolTol(dSolutionTol),
62 steps(stp),
63 unkstates(sts)
64 {
65  NO_OP;
66 }
bool outputPred
Definition: stepsol.h:96
integer unkstates
Definition: stepsol.h:101
integer steps
Definition: stepsol.h:100
doublereal dSolTol
Definition: stepsol.h:99
#define NO_OP
Definition: myassert.h:74
const DataManager::DofVecType * pDofs
Definition: stepsol.h:94
DataManager * pDM
Definition: stepsol.h:93
integer MaxIters
Definition: stepsol.h:98
doublereal dTol
Definition: stepsol.h:99
StepIntegrator::~StepIntegrator ( void  )
virtual

Definition at line 68 of file stepsol.cc.

References NO_OP.

69 {
70  NO_OP;
71 }
#define NO_OP
Definition: myassert.h:74

Member Function Documentation

virtual doublereal StepIntegrator::Advance ( Solver pS,
const doublereal  TStep,
const doublereal  dAlph,
const StepChange  StType,
std::deque< MyVectorHandler * > &  qX,
std::deque< MyVectorHandler * > &  qXPrime,
MyVectorHandler *const  pX,
MyVectorHandler *const  pXPrime,
integer EffIter,
doublereal Err,
doublereal SolErr 
)
pure virtual
doublereal StepIntegrator::GetIntegratorDSolTol ( void  ) const
virtual

Definition at line 105 of file stepsol.cc.

References dSolTol.

Referenced by InverseSolver::Restart(), and Solver::Restart().

106 {
107  return dSolTol;
108 }
doublereal dSolTol
Definition: stepsol.h:99
doublereal StepIntegrator::GetIntegratorDTol ( void  ) const
virtual

Definition at line 99 of file stepsol.cc.

References dTol.

Referenced by InverseSolver::Restart(), and Solver::Restart().

100 {
101  return dTol;
102 }
doublereal dTol
Definition: stepsol.h:99
integer StepIntegrator::GetIntegratorMaxIters ( void  ) const
virtual

Definition at line 93 of file stepsol.cc.

References MaxIters.

Referenced by InverseSolver::Advance(), Solver::Advance(), InverseSolver::Restart(), Solver::Restart(), and Solver::Start().

94 {
95  return MaxIters;
96 }
integer MaxIters
Definition: stepsol.h:98
integer StepIntegrator::GetIntegratorNumPreviousStates ( void  ) const
virtual

Definition at line 81 of file stepsol.cc.

References steps.

Referenced by InverseSolver::Prepare(), and Solver::Prepare().

82 {
83  return steps;
84 }
integer steps
Definition: stepsol.h:100
integer StepIntegrator::GetIntegratorNumUnknownStates ( void  ) const
virtual

Definition at line 87 of file stepsol.cc.

References unkstates.

Referenced by InverseSolver::Prepare(), Solver::Prepare(), and Solver::Start().

88 {
89  return unkstates;
90 }
integer unkstates
Definition: stepsol.h:101
void StepIntegrator::OutputTypes ( const bool  fpred)
virtual

Definition at line 111 of file stepsol.cc.

References outputPred.

Referenced by InverseSolver::Prepare(), and Solver::Prepare().

112 {
113  outputPred = fpred;
114 }
bool outputPred
Definition: stepsol.h:96
void StepIntegrator::SetDataManager ( DataManager pDatMan)

Definition at line 74 of file stepsol.cc.

References DataManager::GetDofs(), pDM, and pDofs.

Referenced by InverseSolver::Prepare(), and Solver::Prepare().

75 {
76  pDM = pDatMan;
77  pDofs = &pDM->GetDofs();
78 }
const DataManager::DofVecType * pDofs
Definition: stepsol.h:94
DataManager * pDM
Definition: stepsol.h:93
const DofVecType & GetDofs(void) const
Definition: dataman.h:806

Here is the call graph for this function:

void StepIntegrator::SetDriveHandler ( const DriveHandler pDH)
virtual

Reimplemented in HopeSolver, MultistepSolver, and TunableThirdOrderIntegrator.

Definition at line 117 of file stepsol.cc.

References NO_OP.

Referenced by InverseSolver::Prepare(), and Solver::Prepare().

118 {
119  NO_OP;
120 }
#define NO_OP
Definition: myassert.h:74
template<class T >
void StepIntegrator::UpdateLoop ( const T *const  t,
void(T::*)(const int DCount, const DofOrder::Order Order, const VectorHandler *const pSol) const  pUpd,
const VectorHandler *const  pSol = 0 
) const
protected

Member Data Documentation

bool StepIntegrator::outputPred
protected

Definition at line 96 of file stepsol.h.

Referenced by Step1Integrator::Advance(), Step2Integrator::Advance(), and OutputTypes().

integer StepIntegrator::steps
protected

Definition at line 100 of file stepsol.h.

Referenced by GetIntegratorNumPreviousStates().

integer StepIntegrator::unkstates
protected

Definition at line 101 of file stepsol.h.

Referenced by GetIntegratorNumUnknownStates().


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