Public Types |
| enum | Solver {
FixedPointTotal,
FixedPointSingle,
GaussSeidel,
LinearEquations,
RootFinding
} |
| | solver for contact equations
|
| enum | Strategy { global,
local
} |
| | relaxation strategies in solution of contact equations
|
| enum | LinAlg { LUDecomposition,
LevenbergMarquardt,
PseudoInverse
} |
| | linear algebra for Newton scheme in solution of contact equations
|
Public Member Functions |
|
| DynamicSystemSolver () |
| | constructor
|
| | DynamicSystemSolver (const std::string &projectName) |
| | constructor
|
|
virtual | ~DynamicSystemSolver () |
| | destructor
|
| void | initialize () |
| | Initialize the system.
|
|
void | setTruncateSimulationFiles (bool trunc) |
| void | init (InitStage stage) |
| | plots time series header
|
|
virtual int | solveConstraintsFixpointSingle () |
| | solve contact equations with single step fixed point scheme on acceleration level
|
|
virtual int | solveImpactsFixpointSingle (double dt=0) |
| | solve contact equations with single step fixed point scheme on velocity level
|
|
virtual int | solveConstraintsGaussSeidel () |
| | solve contact equations with Gauss-Seidel scheme on acceleration level
|
|
virtual int | solveImpactsGaussSeidel (double dt=0) |
| | solve contact equations with Gauss-Seidel scheme on velocity level
|
|
virtual int | solveConstraintsRootFinding () |
| | solve contact equations with Newton scheme on acceleration level
|
|
virtual int | solveImpactsRootFinding (double dt=0) |
| | solve contact equations with Newton scheme on velocity level
|
|
virtual void | checkConstraintsForTermination () |
| | validate force laws concerning given tolerances on acceleration level
|
|
virtual void | checkImpactsForTermination (double dt=0) |
| | validate force laws concerning given tolerances on velocity level
|
|
virtual void | updateh (double t, int i=0) |
|
virtual void | updateh0Fromh1 (double t) |
|
virtual void | updateW0FromW1 (double t) |
|
virtual void | updateV0FromV1 (double t) |
|
virtual void | updateM (double t, int i=0) |
|
virtual void | updateStateDependentVariables (double t) |
| virtual void | updater (double t, int j=0) |
| | update smooth link force law
|
|
virtual void | updatewb (double t, int j=0) |
|
virtual void | updateW (double t, int j=0) |
|
virtual void | updateV (double t, int j=0) |
|
virtual std::string | getType () const |
| | DEPRECATED.
|
|
virtual void | plot (const fmatvec::Vec &z, double t, double dt=1) |
|
virtual void | plot2 (const fmatvec::Vec &z, double t, double dt=1) |
|
virtual void | closePlot () |
| | closes plot file
|
| virtual int | solveConstraints () |
| | solves prox-functions on acceleration level using sparsity structure but not decoupled
|
|
virtual int | solveImpacts (double dt=0) |
| | solves prox-functions on velocity level using sparsity structure but not decoupled
|
|
void | setConstraintSolver (Solver solver_) |
|
void | setImpactSolver (Solver solver_) |
|
const Solver & | getImpactSolver () |
|
void | setTermination (bool term_) |
|
void | setStrategy (Strategy strategy_) |
|
void | setMaxIter (int iter) |
|
void | setHighIter (int iter) |
|
void | setNumJacProj (bool numJac_) |
|
void | setMaxDampingSteps (int maxDSteps) |
|
void | setLevenbergMarquardtParam (double lmParm_) |
|
void | setLinAlg (LinAlg linAlg_) |
|
void | setUseOldla (bool flag) |
|
void | setDecreaseLevels (const fmatvec::VecInt &decreaseLevels_) |
|
void | setCheckTermLevels (const fmatvec::VecInt &checkTermLevels_) |
|
void | setCheckGSize (bool checkGSize_) |
|
void | setLimitGSize (int limitGSize_) |
|
const fmatvec::SparseMat & | getGs () const |
|
fmatvec::SparseMat & | getGs () |
|
const fmatvec::SqrMat & | getG () const |
|
fmatvec::SqrMat & | getG () |
|
const fmatvec::Vec & | getb () const |
|
fmatvec::Vec & | getb () |
|
const fmatvec::SqrMat & | getJprox () const |
|
fmatvec::SqrMat & | getJprox () |
|
const fmatvec::Mat & | getWParent (int i=0) const |
|
const fmatvec::Mat & | getVParent (int i=0) const |
|
const fmatvec::Vec & | getlaParent () const |
|
const fmatvec::Vec & | getgdParent () const |
|
const fmatvec::Vec & | getresParent () const |
|
const fmatvec::Vec & | getrFactorParent () const |
| DynamicSystemSolver * | getDynamicSystemSolver () |
|
bool | getIntegratorExitRequest () |
|
int | getMaxIter () |
|
void | computeInitialCondition () |
| | compute initial condition for links for event driven integrator
|
| fmatvec::Vec | deltau (const fmatvec::Vec &zParent, double t, double dt) |
| fmatvec::Vec | deltaq (const fmatvec::Vec &zParent, double t, double dt) |
| fmatvec::Vec | deltax (const fmatvec::Vec &zParent, double t, double dt) |
| | return x-state difference for current time
|
|
virtual void | initz (fmatvec::Vec &z0) |
| | initialises state variables
|
| int | solveConstraintsLinearEquations () |
| int | solveImpactsLinearEquations (double dt=0) |
| virtual void | updateG (double t, int i=0) |
| | updates mass action matrix
|
|
void | decreaserFactors () |
| | decrease relaxation factors if mass action matrix is not diagonal dominant
|
| void | update (const fmatvec::Vec &z, double t, int options=0) |
| | update of dynamic system for time-stepping integrator
|
| virtual void | shift (fmatvec::Vec &z, const fmatvec::VecInt &jsv, double t) |
| | update for event driven integrator for event
|
| virtual void | zdot (const fmatvec::Vec &z, fmatvec::Vec &zd, double t) |
| | update for event driven integrator during smooth phase
|
| virtual fmatvec::Vec | zdot (const fmatvec::Vec &zParent, double t) |
| | standard invocation of smooth update for event driven integration
|
| virtual void | getsv (const fmatvec::Vec &z, fmatvec::Vec &svExt, double t) |
| | evaluation of stop vector
|
| void | getLinkStatus (fmatvec::VecInt &LinkStatusExt, double t) |
| | brief collect status of all set-valued links
|
| void | getLinkStatusReg (fmatvec::VecInt &LinkStatusRegExt, double t) |
| | brief collect status of all single-valued links
|
| void | projectGeneralizedPositions (double t, int mode) |
| | drift projection for positions
|
| void | projectGeneralizedVelocities (double t, int mode) |
| | drift projection for positions
|
| void | savela (double dt=1.0) |
| | save contact force parameter for use as starting value in next time step
|
| void | initla (double dt=1.0) |
| | load contact force parameter for use as starting value
|
|
double | computeKineticEnergy () |
| | compute kinetic energy of entire dynamic system
|
|
double | computePotentialEnergy () |
| | compute potential energy of entire dynamic system change? TODO
|
| void | addElement (Element *element_) |
| Element * | getElement (const std::string &name) |
| std::string | getSolverInfo () |
| void | setStopIfNoConvergence (bool flag, bool dropInfo=false) |
|
void | dropContactMatrices () |
| | writes a file with relevant matrices for debugging
|
|
void | setPartialEventDrivenSolver (bool peds_) |
| void | writez (std::string fileName, bool formatH5=true) |
| | writes state to a file
|
| void | readz0 (std::string fileName) |
| | reads state from a file
|
|
virtual void | initializeUsingXML (xercesc::DOMElement *element) |
|
virtual xercesc::DOMElement * | writeXMLFile (xercesc::DOMNode *element) |
|
void | writeXMLFile (const std::string &name) |
|
void | writeXMLFile () |
| void | setProjectionTolerance (double tol) |
| | set tolerance for projection of generalized position
|
| void | setgTol (double tol) |
| void | setgdTol (double tol) |
| void | setgddTol (double tol) |
| void | setlaTol (double tol) |
| void | setLaTol (double tol) |
| void | updatezRef (const fmatvec::Vec &ext) |
| | references to external state
|
| void | setFlushEvery (unsigned int every) |
| | set the number of plot-routine-calls after which all hdf5-files will be flushed
|
|
void | setAlwaysConsiderContact (bool alwaysConsiderContact_) |
|
void | setInverseKinetics (bool inverseKinetics_) |
|
fmatvec::Mat | dhdq (double t, int lb=0, int ub=0) |
|
fmatvec::Mat | dhdu (double t, int lb=0, int ub=0) |
|
fmatvec::Mat | dhdx (double t) |
|
fmatvec::Vec | dhdt (double t) |
|
void | setRootID (int ID) |
|
int | getRootID () const |
Static Public Member Functions |
|
static void | sigInterruptHandler (int) |
| | handler for user interrupt signal
|
|
static void | sigAbortHandler (int) |
| | handler for abort signals
|
|
static DynamicSystemSolver * | readXMLFile (const std::string &filename) |
Public Attributes |
| int(DynamicSystemSolver::* | solveConstraints_ )() |
| int(DynamicSystemSolver::* | solveImpacts_ )(double dt) |
Protected Member Functions |
| void | updatezdRef (const fmatvec::Vec &ext) |
| | references to differentiated external state
|
| void | updaterFactors () |
| | update relaxation factors for contact equations
|
| void | computeConstraintForces (double t) |
| | compute inverse kinetics constraint forces
|
Protected Attributes |
|
fmatvec::SymMat | MParent [2] |
| | mass matrix
|
|
fmatvec::SymMat | LLMParent [2] |
| | Cholesky decomposition of mass matrix.
|
|
fmatvec::Mat | TParent |
| | matrix of linear relation between differentiated positions and velocities
|
|
fmatvec::Mat | WParent [2] |
| | contact force directions
|
|
fmatvec::Mat | VParent [2] |
| | condensed contact force directions
|
|
fmatvec::Vec | wbParent |
| | TODO.
|
|
fmatvec::Vec | laParent |
| | contact force parameters
|
|
fmatvec::Vec | rFactorParent |
| | relaxation parameters for contact equations
|
|
fmatvec::Vec | sParent |
| | TODO.
|
|
fmatvec::Vec | resParent |
| | residuum of contact equations
|
|
fmatvec::Vec | gParent |
| | relative distances
|
|
fmatvec::Vec | gdParent |
| | relative velocities
|
|
fmatvec::Vec | zdParent |
| | differentiated state
|
|
fmatvec::Vec | udParent1 |
|
fmatvec::Vec | hParent [2] |
| | smooth, smooth with respect to objects, smooth with respect to links right hand side
|
|
fmatvec::Vec | rParent [2] |
| | nonsmooth right hand side
|
|
fmatvec::Vec | fParent |
| | right hand side of order one parameters
|
|
fmatvec::Vec | svParent |
| | stopvector (rootfunctions for event driven integration
|
|
fmatvec::VecInt | jsvParent |
| | boolean evaluation of stopvector
|
|
fmatvec::VecInt | LinkStatusParent |
| | status vector of set valued links with piecewise link equation (which piece is valid)
|
|
fmatvec::VecInt | LinkStatusRegParent |
| | status vector of single valued links
|
|
fmatvec::SparseMat | Gs |
| | sparse mass action matrix
|
|
fmatvec::SqrMat | Jprox |
| | JACOBIAN of contact equations for Newton scheme.
|
|
fmatvec::SqrMat | G |
| | mass action matrix
|
|
fmatvec::Vec | b |
| | TODO.
|
|
bool | term |
| | boolean to check for termination of contact equations solution
|
|
int | maxIter |
| | maximum number of contact iterations, high number of contact iterations for warnings, maximum number of damping steps for Newton scheme
|
|
int | highIter |
|
int | maxDampingSteps |
|
double | lmParm |
| | Levenberg-Marquard parameter.
|
|
Solver | contactSolver |
| | solver for contact equations on acceleration and velocity level
|
|
Solver | impactSolver |
|
Strategy | strategy |
| | relaxarion strategy for solution of fixed-point scheme
|
|
LinAlg | linAlg |
| | linear system solver used for Newton scheme in contact equations
|
|
bool | stopIfNoConvergence |
| | flag if the contact equations should be stopped if there is no convergence
|
|
bool | dropContactInfo |
| | flag if contact matrices for debugging should be dropped in no-convergence case
|
|
bool | useOldla |
| | flag if contac force parameter of last time step should be used
|
|
bool | numJac |
| | flag if Jacobian for Newton scheme should be calculated numerically
|
|
fmatvec::VecInt | decreaseLevels |
| | decreasing relaxation factors is done in levels containing the number of contact iterations as condition
|
|
fmatvec::VecInt | checkTermLevels |
| | TODO.
|
|
bool | checkGSize |
| | boolean if force action matrix should be resized in each step
|
|
int | limitGSize |
| | TODO.
|
|
int | warnLevel |
| | level for warning output (0-2)
|
|
bool | peds |
| | TODO, flag for occuring impact and sticking in event driven solver.
|
|
unsigned int | driftCount |
| | TODO, additional stop in event driven solver for drift correction.
|
|
unsigned int | flushEvery |
| | flushes all hdf5-files every x-times the plot-routine is called TODO
|
|
unsigned int | flushCount |
| | counts plot-calls until files to be flushed TODO
|
|
double | tolProj |
| | Tolerance for projection of generalized position.
|
|
fmatvec::Vec | laInverseKineticsParent |
| |
|
|
fmatvec::Mat | bInverseKineticsParent |
|
fmatvec::Mat | WInverseKineticsParent [2] |
| |
|
|
bool | alwaysConsiderContact |
|
bool | inverseKinetics |
|
fmatvec::Vec | corrParent |
|
int | rootID |
|
double | gTol |
|
double | gdTol |
|
double | gddTol |
|
double | laTol |
|
double | LaTol |
Private Member Functions |
|
void | constructor () |
| | set plot feature default values
|
| void | addToGraph (Graph *graph, fmatvec::SqrMat &A, int i, std::vector< Object * > &objList) |
| | adds list of objects to tree
|
Private Attributes |
|
bool | integratorExitRequest |
| | boolean signal evaluation for end integration set by program
|
|
bool | READZ0 |
| | is a state read from a file
|
|
bool | truncateSimulationFiles |
Static Private Attributes |
|
static bool | exitRequest |
| | boolean signal evaluation for end integration set by user
|