![]() |
MFEM v4.8.0
Finite element discretization library
|
#include <ode.hpp>
Public Member Functions | |
NewmarkSolver (real_t beta_=0.25, real_t gamma_=0.5, bool no_mult_=false) | |
void | PrintProperties (std::ostream &os=mfem::out) |
void | Step (Vector &x, Vector &dxdt, real_t &t, real_t &dt) override |
Perform a time step from time t [in] to time t [out] based on the requested step size dt [in]. | |
![]() | |
SecondOrderODESolver () | |
virtual void | Init (SecondOrderTimeDependentOperator &f) |
Associate a TimeDependentOperator with the ODE solver. | |
void | EulerStep (Vector &x, Vector &dxdt, real_t &t, real_t &dt) |
void | MidPointStep (Vector &x, Vector &dxdt, real_t &t, real_t &dt) |
virtual void | Run (Vector &x, Vector &dxdt, real_t &t, real_t &dt, real_t tf) |
Perform time integration from time t [in] to time tf [in]. | |
ODEStateData & | GetState () |
Functions for getting the state vectors. | |
const ODEStateData & | GetState () const |
int | GetStateSize () |
Returns how many State vectors the ODE requires. | |
virtual | ~SecondOrderODESolver () |
Additional Inherited Members | |
![]() | |
static MFEM_EXPORT SecondOrderODESolver * | Select (const int ode_solver_type) |
Function selecting the desired SecondOrderODESolver. | |
![]() | |
static MFEM_EXPORT std::string | Types |
Help info for SecondOrderODESolver options. | |
![]() | |
SecondOrderTimeDependentOperator * | f |
Pointer to the associated TimeDependentOperator. | |
MemoryType | mem_type |
ODEStateDataVector | state |
The classical newmark method. Newmark, N. M. (1959) A method of computation for structural dynamics. Journal of Engineering Mechanics, ASCE, 85 (EM3) 67-94.
void mfem::NewmarkSolver::PrintProperties | ( | std::ostream & | os = mfem::out | ) |
|
overridevirtual |
Perform a time step from time t [in] to time t [out] based on the requested step size dt [in].
[in,out] | x | Approximate solution. |
[in,out] | dxdt | Approximate rate. |
[in,out] | t | Time associated with the approximate solution x and rate @ dxdt |
[in,out] | dt | Time step size. |
The following rules describe the common behavior of the method:
Implements mfem::SecondOrderODESolver.