Tempus Version of the Day
Time Integration
|
Sine-Cosine model problem from Rythmos. This is a canonical Sine-Cosine differential equation. More...
#include <SinCosModel_decl.hpp>
Public Member Functions | |
SinCosModel (Teuchos::RCP< Teuchos::ParameterList > pList=Teuchos::null) | |
Thyra::ModelEvaluatorBase::InArgs< Scalar > | getExactSolution (double t) const |
Thyra::ModelEvaluatorBase::InArgs< Scalar > | getExactSensSolution (int j, double t) const |
Private functions overridden from ModelEvaluatorDefaultBase. | |
int | dim_ |
Number of state unknowns (2) | |
int | Np_ |
Number of parameter vectors (1) | |
int | np_ |
Number of parameters in this vector (2) | |
int | Ng_ |
Number of observation functions (1) | |
int | ng_ |
Number of elements in this observation function (1) | |
bool | haveIC_ |
false => no nominal values are provided (default=true) | |
bool | acceptModelParams_ |
Changes inArgs to require parameters. | |
bool | useDfDpAsTangent_ |
Treat DfDp OutArg as tangent (df/dx*dx/dp+df/dp) | |
bool | isInitialized_ |
Thyra::ModelEvaluatorBase::InArgs< Scalar > | inArgs_ |
Thyra::ModelEvaluatorBase::OutArgs< Scalar > | outArgs_ |
Thyra::ModelEvaluatorBase::InArgs< Scalar > | nominalValues_ |
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > | x_space_ |
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > | f_space_ |
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > | p_space_ |
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > | g_space_ |
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > | DxDp_space_ |
Scalar | a_ |
Model parameter. | |
Scalar | f_ |
Model parameter. | |
Scalar | L_ |
Model parameter. | |
Scalar | phi_ |
Parameter determined from the IC. | |
Scalar | b_ |
Parameter determined from the IC. | |
Scalar | t0_ic_ |
Time value where the initial condition is specified. | |
Scalar | x0_ic_ |
Initial condition for x0. | |
Scalar | x1_ic_ |
Initial condition for x1. | |
Thyra::ModelEvaluatorBase::OutArgs< Scalar > | createOutArgsImpl () const |
void | evalModelImpl (const Thyra::ModelEvaluatorBase::InArgs< Scalar > &inArgs_bar, const Thyra::ModelEvaluatorBase::OutArgs< Scalar > &outArgs_bar) const |
void | calculateCoeffFromIC_ () |
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 |
Teuchos::RCP< Thyra::LinearOpWithSolveBase< Scalar > > | create_W () const |
Teuchos::RCP< Thyra::LinearOpBase< Scalar > > | create_W_op () const |
Teuchos::RCP< const Thyra::LinearOpWithSolveFactoryBase< Scalar > > | get_W_factory () const |
Thyra::ModelEvaluatorBase::InArgs< Scalar > | createInArgs () const |
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > | get_p_space (int l) const |
Teuchos::RCP< const Teuchos::Array< std::string > > | get_p_names (int l) const |
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > | get_g_space (int j) const |
Public functions overridden from ParameterListAcceptor. | |
void | setParameterList (Teuchos::RCP< Teuchos::ParameterList > const ¶mList) |
Teuchos::RCP< const Teuchos::ParameterList > | getValidParameters () const |
void | setupInOutArgs_ () const |
Sine-Cosine model problem from Rythmos. This is a canonical Sine-Cosine differential equation.
with a few enhancements. We start with the exact solution to the differential equation
then the form of the model is
where the default parameter values are
determine the remaining coefficients
Therefore this model has three model parameters and two initial conditions which effect the exact solution as above.
where
The exact sensitivities,
and for the default initial conditions,
The time differentiated sensitivities,
Definition at line 109 of file SinCosModel_decl.hpp.
Tempus_Test::SinCosModel< Scalar >::SinCosModel | ( | Teuchos::RCP< Teuchos::ParameterList > | pList = Teuchos::null | ) |
Definition at line 30 of file SinCosModel_impl.hpp.
Thyra::ModelEvaluatorBase::InArgs< Scalar > Tempus_Test::SinCosModel< Scalar >::getExactSolution | ( | double | t | ) | const |
Definition at line 62 of file SinCosModel_impl.hpp.
Thyra::ModelEvaluatorBase::InArgs< Scalar > Tempus_Test::SinCosModel< Scalar >::getExactSensSolution | ( | int | j, |
double | t | ||
) | const |
Definition at line 98 of file SinCosModel_impl.hpp.
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > Tempus_Test::SinCosModel< Scalar >::get_x_space | ( | ) | const |
Definition at line 161 of file SinCosModel_impl.hpp.
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > Tempus_Test::SinCosModel< Scalar >::get_f_space | ( | ) | const |
Definition at line 168 of file SinCosModel_impl.hpp.
Thyra::ModelEvaluatorBase::InArgs< Scalar > Tempus_Test::SinCosModel< Scalar >::getNominalValues | ( | ) | const |
Definition at line 175 of file SinCosModel_impl.hpp.
Teuchos::RCP< Thyra::LinearOpWithSolveBase< Scalar > > Tempus_Test::SinCosModel< Scalar >::create_W | ( | ) | const |
Definition at line 184 of file SinCosModel_impl.hpp.
Teuchos::RCP< Thyra::LinearOpBase< Scalar > > Tempus_Test::SinCosModel< Scalar >::create_W_op | ( | ) | const |
Definition at line 227 of file SinCosModel_impl.hpp.
Teuchos::RCP< const Thyra::LinearOpWithSolveFactoryBase< Scalar > > Tempus_Test::SinCosModel< Scalar >::get_W_factory | ( | ) | const |
Definition at line 237 of file SinCosModel_impl.hpp.
Thyra::ModelEvaluatorBase::InArgs< Scalar > Tempus_Test::SinCosModel< Scalar >::createInArgs | ( | ) | const |
Definition at line 256 of file SinCosModel_impl.hpp.
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > Tempus_Test::SinCosModel< Scalar >::get_p_space | ( | int | l | ) | const |
Definition at line 437 of file SinCosModel_impl.hpp.
Teuchos::RCP< const Teuchos::Array< std::string > > Tempus_Test::SinCosModel< Scalar >::get_p_names | ( | int | l | ) | const |
Definition at line 452 of file SinCosModel_impl.hpp.
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > Tempus_Test::SinCosModel< Scalar >::get_g_space | ( | int | j | ) | const |
Definition at line 474 of file SinCosModel_impl.hpp.
void Tempus_Test::SinCosModel< Scalar >::setParameterList | ( | Teuchos::RCP< Teuchos::ParameterList > const & | paramList | ) |
Definition at line 556 of file SinCosModel_impl.hpp.
Teuchos::RCP< const Teuchos::ParameterList > Tempus_Test::SinCosModel< Scalar >::getValidParameters | ( | ) | const |
Definition at line 588 of file SinCosModel_impl.hpp.
|
private |
Definition at line 483 of file SinCosModel_impl.hpp.
|
private |
Definition at line 267 of file SinCosModel_impl.hpp.
|
private |
Definition at line 274 of file SinCosModel_impl.hpp.
|
private |
Definition at line 612 of file SinCosModel_impl.hpp.
|
protected |
Number of state unknowns (2)
Definition at line 160 of file SinCosModel_decl.hpp.
|
protected |
Number of parameter vectors (1)
Definition at line 161 of file SinCosModel_decl.hpp.
|
protected |
Number of parameters in this vector (2)
Definition at line 162 of file SinCosModel_decl.hpp.
|
protected |
Number of observation functions (1)
Definition at line 163 of file SinCosModel_decl.hpp.
|
protected |
Number of elements in this observation function (1)
Definition at line 164 of file SinCosModel_decl.hpp.
|
protected |
false => no nominal values are provided (default=true)
Definition at line 165 of file SinCosModel_decl.hpp.
|
protected |
Changes inArgs to require parameters.
Definition at line 166 of file SinCosModel_decl.hpp.
|
protected |
Treat DfDp OutArg as tangent (df/dx*dx/dp+df/dp)
Definition at line 167 of file SinCosModel_decl.hpp.
|
mutableprotected |
Definition at line 168 of file SinCosModel_decl.hpp.
|
mutableprotected |
Definition at line 169 of file SinCosModel_decl.hpp.
|
mutableprotected |
Definition at line 170 of file SinCosModel_decl.hpp.
|
mutableprotected |
Definition at line 171 of file SinCosModel_decl.hpp.
|
protected |
Definition at line 172 of file SinCosModel_decl.hpp.
|
protected |
Definition at line 173 of file SinCosModel_decl.hpp.
|
protected |
Definition at line 174 of file SinCosModel_decl.hpp.
|
protected |
Definition at line 175 of file SinCosModel_decl.hpp.
|
protected |
Definition at line 176 of file SinCosModel_decl.hpp.
|
protected |
Model parameter.
Definition at line 180 of file SinCosModel_decl.hpp.
|
protected |
Model parameter.
Definition at line 181 of file SinCosModel_decl.hpp.
|
protected |
Model parameter.
Definition at line 182 of file SinCosModel_decl.hpp.
|
protected |
Parameter determined from the IC.
Definition at line 183 of file SinCosModel_decl.hpp.
|
protected |
Parameter determined from the IC.
Definition at line 184 of file SinCosModel_decl.hpp.
|
protected |
Time value where the initial condition is specified.
Definition at line 185 of file SinCosModel_decl.hpp.
|
protected |
Initial condition for x0.
Definition at line 186 of file SinCosModel_decl.hpp.
|
protected |
Initial condition for x1.
Definition at line 187 of file SinCosModel_decl.hpp.