MFEM
v4.6.0
Finite element discretization library

#include <ode.hpp>
Public Member Functions  
NewmarkSolver (double beta_=0.25, double gamma_=0.5)  
void  PrintProperties (std::ostream &out=mfem::out) 
void  Init (SecondOrderTimeDependentOperator &f_) override 
Associate a TimeDependentOperator with the ODE solver. More...  
void  Step (Vector &x, Vector &dxdt, double &t, double &dt) override 
Perform a time step from time t [in] to time t [out] based on the requested step size dt [in]. More...  
Public Member Functions inherited from mfem::SecondOrderODESolver  
SecondOrderODESolver ()  
virtual void  Run (Vector &x, Vector &dxdt, double &t, double &dt, double tf) 
Perform time integration from time t [in] to time tf [in]. More...  
virtual int  GetMaxStateSize () 
Function for getting and setting the state vectors. More...  
virtual int  GetStateSize () 
virtual const Vector &  GetStateVector (int i) 
virtual void  GetStateVector (int i, Vector &state) 
virtual void  SetStateVector (int i, Vector &state) 
virtual  ~SecondOrderODESolver () 
Additional Inherited Members  
Protected Attributes inherited from mfem::SecondOrderODESolver  
SecondOrderTimeDependentOperator *  f 
Pointer to the associated TimeDependentOperator. More...  
MemoryType  mem_type 
The classical newmark method. Newmark, N. M. (1959) A method of computation for structural dynamics. Journal of Engineering Mechanics, ASCE, 85 (EM3) 6794.

inline 

overridevirtual 
Associate a TimeDependentOperator with the ODE solver.
This method has to be called:
Reimplemented from mfem::SecondOrderODESolver.
void mfem::NewmarkSolver::PrintProperties  (  std::ostream &  out = 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.