libMesh
Public Member Functions | List of all members
ConstantSecondOrderODE< SystemBase > Class Template Reference

Implements ODE: 3.14{u} = 2.71, u(0) = 0,. More...

Inheritance diagram for ConstantSecondOrderODE< SystemBase >:
[legend]

Public Member Functions

 ConstantSecondOrderODE (EquationSystems &es, const std::string &name_in, const unsigned int number_in)
 
virtual Number F (FEMContext &, unsigned int) libmesh_override
 
virtual Number C (FEMContext &, unsigned int) libmesh_override
 
virtual Number M (FEMContext &, unsigned int) libmesh_override
 
virtual Number u (Real t) libmesh_override
 

Detailed Description

template<typename SystemBase>
class ConstantSecondOrderODE< SystemBase >

Implements ODE: 3.14{u} = 2.71, u(0) = 0,.

{u}(0) = 0

Definition at line 33 of file second_order_unsteady_solver_test.C.

Constructor & Destructor Documentation

template<typename SystemBase >
ConstantSecondOrderODE< SystemBase >::ConstantSecondOrderODE ( EquationSystems &  es,
const std::string &  name_in,
const unsigned int  number_in 
)

Definition at line 36 of file second_order_unsteady_solver_test.C.

39  : SystemBase(es, name_in, number_in)
40  {}

Member Function Documentation

template<typename SystemBase >
virtual Number ConstantSecondOrderODE< SystemBase >::C ( FEMContext &  ,
unsigned  int 
)
virtual

Definition at line 45 of file second_order_unsteady_solver_test.C.

46  { return 0.0; }
template<typename SystemBase >
virtual Number ConstantSecondOrderODE< SystemBase >::F ( FEMContext &  ,
unsigned  int 
)
virtual

Definition at line 42 of file second_order_unsteady_solver_test.C.

43  { return -2.71; }
template<typename SystemBase >
virtual Number ConstantSecondOrderODE< SystemBase >::M ( FEMContext &  ,
unsigned  int 
)
virtual

Definition at line 48 of file second_order_unsteady_solver_test.C.

49  { return 3.14; }
template<typename SystemBase >
virtual Number ConstantSecondOrderODE< SystemBase >::u ( Real  t)
virtual

Definition at line 51 of file second_order_unsteady_solver_test.C.

52  { return 2.71/3.14*0.5*t*t; }

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