Description
Base class for timesteppers, i.e., time integrators that can advance a system state.
It operates on systems inherited from ChIntegrable.
#include <ChTimestepper.h>
Public Types | |
enum | Type { EULER_IMPLICIT_LINEARIZED, EULER_IMPLICIT_PROJECTED, EULER_IMPLICIT, TRAPEZOIDAL, TRAPEZOIDAL_LINEARIZED, HHT, HEUN, RUNGEKUTTA45, EULER_EXPLICIT, LEAPFROG, NEWMARK, CUSTOM } |
Available methods for time integration (time steppers). | |
Public Member Functions | |
ChTimestepper (ChIntegrable *intgr=nullptr) | |
Constructor. | |
virtual | ~ChTimestepper () |
Destructor. | |
virtual Type | GetType () const |
Return type of the integration method. More... | |
virtual void | Advance (const double dt)=0 |
Performs an integration timestep. More... | |
virtual ChVectorDynamic & | GetLagrangeMultipliers () |
Access the lagrangian multipliers, if any. | |
virtual void | SetIntegrable (ChIntegrable *intgr) |
Set the integrable object. | |
ChIntegrable * | GetIntegrable () |
Get the integrable object. | |
virtual double | GetTime () const |
Get the current time. | |
virtual void | SetTime (double mt) |
Set the current time. | |
void | SetVerbose (bool verb) |
Turn on/off logging of messages. | |
virtual void | ArchiveOut (ChArchiveOut &archive) |
Method to allow serialization of transient data to archives. | |
virtual void | ArchiveIn (ChArchiveIn &archive) |
Method to allow de-serialization of transient data from archives. | |
Static Public Member Functions | |
static std::string | GetTypeAsString (Type type) |
Return the integrator type as a string. | |
Protected Attributes | |
ChIntegrable * | integrable |
double | T |
ChVectorDynamic | L |
bool | verbose |
bool | Qc_do_clamp |
double | Qc_clamping |
Friends | |
class | ChSystem |
Member Function Documentation
◆ Advance()
|
pure virtual |
Performs an integration timestep.
- Parameters
-
dt timestep to advance
Implemented in chrono::ChTimestepperNewmark, chrono::ChTimestepperTrapezoidalLinearized2, chrono::ChTimestepperTrapezoidalLinearized, chrono::ChTimestepperTrapezoidal, chrono::ChTimestepperEulerImplicitProjected, chrono::ChTimestepperEulerImplicitLinearized, chrono::ChTimestepperEulerImplicit, chrono::ChTimestepperLeapfrog, chrono::ChTimestepperHeun, chrono::ChTimestepperRungeKuttaExpl, chrono::ChTimestepperEulerSemiImplicit, chrono::ChTimestepperEulerExplIIorder, chrono::ChTimestepperEulerExpl, and chrono::ChTimestepperHHT.
◆ GetType()
|
inlinevirtual |
Return type of the integration method.
Default is CUSTOM. Derived classes should override this function.
Reimplemented in chrono::ChTimestepperNewmark, chrono::ChTimestepperTrapezoidalLinearized, chrono::ChTimestepperTrapezoidal, chrono::ChTimestepperEulerImplicitProjected, chrono::ChTimestepperEulerImplicitLinearized, chrono::ChTimestepperEulerImplicit, chrono::ChTimestepperLeapfrog, chrono::ChTimestepperHeun, chrono::ChTimestepperRungeKuttaExpl, chrono::ChTimestepperEulerExplIIorder, and chrono::ChTimestepperHHT.
The documentation for this class was generated from the following files:
- /builds/uwsbel/chrono/src/chrono/timestepper/ChTimestepper.h
- /builds/uwsbel/chrono/src/chrono/timestepper/ChTimestepper.cpp