#include "Thyra_ModelEvaluator.hpp"
#include "Thyra_StateFuncModelEvaluatorBase.hpp"
#include "Teuchos_ParameterListAcceptorDefaultBase.hpp"
#include "Teuchos_ParameterList.hpp"
Go to the source code of this file.
|  | 
| class | Tempus_Test::HarmonicOscillatorModel< Scalar > | 
|  | Consider the ODE: 
![\[ m\ddot{x} + c\dot{x} + kx=f \]](form_350.png)   where  is a constant,  is a constant damping parameter,  is a constant forcing parameter, and  is a constant mass parameter, with initial conditions are: 
   It is straight-forward to show that the exact solution to this ODE is:  
   where  ,  and  . While it is possible to derive the solution to this ODE for the case when  and  , we do not consider that case here. When  ,  , and  , our ODE simplies to a canonical differential equation model of a ball thrown up in the air, with a parabolic trajectory solution, namely 
![\[ x(t) = t(1-0.5t) \]](form_365.png)   where ![$t\in [0,2]$](form_366.png) . An EpetraExt version of this simplified version of the test is implemented in Piro::MockModelEval_B (see Trilinos/packages/piro/test), where it is used to test the Piro (EpetraExt) Newmark-Beta scheme (see input_Solver_NB.xml input file). When  and  , this test is equivalent to the SinCos model..  More... 
 | 
|  |