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

Implements ODE: 1.0{u} = 6.0*t+2.0, u(0) = 0,. More...

Inheritance diagram for LinearTimeSecondOrderODE< SystemBase >:
[legend]

Public Member Functions

 LinearTimeSecondOrderODE (EquationSystems &es, const std::string &name_in, const unsigned int number_in)
 
virtual Number F (FEMContext &context, 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 LinearTimeSecondOrderODE< SystemBase >

Implements ODE: 1.0{u} = 6.0*t+2.0, u(0) = 0,.

{u}(0) = 0

Definition at line 57 of file second_order_unsteady_solver_test.C.

Constructor & Destructor Documentation

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

Definition at line 60 of file second_order_unsteady_solver_test.C.

63  : SystemBase(es, name_in, number_in)
64  {}

Member Function Documentation

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

Definition at line 69 of file second_order_unsteady_solver_test.C.

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

Definition at line 66 of file second_order_unsteady_solver_test.C.

67  { return -6.0*context.get_time()-2.0; }
template<typename SystemBase >
virtual Number LinearTimeSecondOrderODE< SystemBase >::M ( FEMContext &  ,
unsigned  int 
)
virtual

Definition at line 72 of file second_order_unsteady_solver_test.C.

73  { return 1.0; }
template<typename SystemBase >
virtual Number LinearTimeSecondOrderODE< SystemBase >::u ( Real  t)
virtual

Definition at line 75 of file second_order_unsteady_solver_test.C.

76  { return t*t*t+t*t; }

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