Tempus Version of the Day
Time Integration
|
ModelEvaluator implementation for the example van der Pol Problem. More...
#include <VanDerPol_ModelEvaluator_02.hpp>
Public Member Functions | |
VanDerPol_ModelEvaluator_02 () | |
Private functions overridden from ModelEvaluatorDefaultBase. | |
Thyra::ModelEvaluatorBase::InArgs< Scalar > | prototypicalInArgs_ |
Thyra::ModelEvaluatorBase::OutArgs< Scalar > | prototypicalOutArgs_ |
Prototypical OutArgs that just supports the evaluation vector (OUT_ARG_f) | |
Thyra::ModelEvaluatorBase::InArgs< Scalar > | nominalValues_ |
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > | x_space_ |
Solution vector space (a defaultSpmdVectorSpace of dimension 2) | |
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > | f_space_ |
Function evaluation vector space (a defaultSpmdVectorSpace of dimension 2) | |
int | dim_ |
Number of state unknowns (2) | |
Scalar | t0_ic_ |
initial time = 0 | |
Scalar | epsilon_ |
This is a model parameter ( ![]() | |
Scalar | x0_ic_ |
initial condition for ![]() | |
Scalar | x1_ic_ |
initial condition for ![]() | |
Thyra::ModelEvaluatorBase::OutArgs< Scalar > | createOutArgsImpl () const |
void | evalModelImpl (const Thyra::ModelEvaluatorBase::InArgs< Scalar > &inArgs_bar, const Thyra::ModelEvaluatorBase::OutArgs< Scalar > &outArgs_bar) const |
Public functions overridden from ModelEvaluator. | |
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > | get_x_space () const |
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > | get_f_space () const |
Thyra::ModelEvaluatorBase::InArgs< Scalar > | getNominalValues () const |
Thyra::ModelEvaluatorBase::InArgs< Scalar > | createInArgs () const |
ModelEvaluator implementation for the example van der Pol Problem.
This is a trimmed down version of the ModelEvaluator used in Tempus testing, Tempus_Test::VanDerPolModel, which exercises additional functionalities. In this ModelEvaluator, we are just trying to demonstrate the mechanisms needed for the simple time integration, e.g., explicit and implicit ODEs for the van der Pol Problem.
Definition at line 26 of file VanDerPol_ModelEvaluator_02.hpp.
VanDerPol_ModelEvaluator_02< Scalar >::VanDerPol_ModelEvaluator_02 | ( | ) |
Default Constructor sets the van der Pol Problem
constructs
Definition at line 24 of file VanDerPol_ModelEvaluator_02.cpp.
|
inline |
Definition at line 53 of file VanDerPol_ModelEvaluator_02.hpp.
|
inline |
Definition at line 55 of file VanDerPol_ModelEvaluator_02.hpp.
|
inline |
Definition at line 57 of file VanDerPol_ModelEvaluator_02.hpp.
|
inline |
Definition at line 59 of file VanDerPol_ModelEvaluator_02.hpp.
|
inlineprivate |
Definition at line 67 of file VanDerPol_ModelEvaluator_02.hpp.
|
private |
Evaluate the model based on if the InArgs.get_x_dot() is null or not. If it is null, evaluate the explicit ODE form of the model (
otherwise, evaluate the implicit ODE form,
Both return their result through the OutArgs.get_f().
Definition at line 81 of file VanDerPol_ModelEvaluator_02.cpp.
|
mutableprivate |
Prototypical InArgs that just supports
Definition at line 95 of file VanDerPol_ModelEvaluator_02.hpp.
|
mutableprivate |
Prototypical OutArgs that just supports the evaluation vector (OUT_ARG_f)
Definition at line 97 of file VanDerPol_ModelEvaluator_02.hpp.
|
private |
Nominal values (a.k.a. initial conditions for transient problems), and simply the prototypical InArgs with the initial condition vectors.
Definition at line 101 of file VanDerPol_ModelEvaluator_02.hpp.
|
private |
Solution vector space (a defaultSpmdVectorSpace of dimension 2)
Definition at line 103 of file VanDerPol_ModelEvaluator_02.hpp.
|
private |
Function evaluation vector space (a defaultSpmdVectorSpace of dimension 2)
Definition at line 105 of file VanDerPol_ModelEvaluator_02.hpp.
|
private |
Number of state unknowns (2)
Definition at line 107 of file VanDerPol_ModelEvaluator_02.hpp.
|
private |
initial time = 0
Definition at line 108 of file VanDerPol_ModelEvaluator_02.hpp.
|
private |
This is a model parameter (
Definition at line 109 of file VanDerPol_ModelEvaluator_02.hpp.
|
private |
initial condition for
Definition at line 110 of file VanDerPol_ModelEvaluator_02.hpp.
|
private |
initial condition for
Definition at line 111 of file VanDerPol_ModelEvaluator_02.hpp.