Tempus
Version of the Day
Time Integration
|
van der Pol model formulated for the partitioned IMEX-RK. More...
#include <VanDerPol_IMEXPart_ImplicitModel_decl.hpp>
Public Member Functions | |
VanDerPol_IMEXPart_ImplicitModel (Teuchos::RCP< Teuchos::ParameterList > pList=Teuchos::null) | |
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 |
Private Member Functions | |
void | setupInOutArgs_ () const |
Private functions overridden from ModelEvaluatorDefaultBase. | |
Thyra::ModelEvaluatorBase::OutArgs < Scalar > | createOutArgsImpl () const |
void | evalModelImpl (const Thyra::ModelEvaluatorBase::InArgs< Scalar > &inArgs_bar, const Thyra::ModelEvaluatorBase::OutArgs< Scalar > &outArgs_bar) const |
Private Attributes | |
int | dim_ |
Number of state unknowns (1) More... | |
int | Np_ |
Number of parameter vectors (1) More... | |
int | np_ |
Number of parameters in this vector (1) More... | |
int | Ng_ |
Number of observation functions (0) More... | |
int | ng_ |
Number of elements in this observation function (0) More... | |
bool | haveIC_ |
false => no nominal values are provided (default=true) More... | |
bool | useDfDpAsTangent_ |
Treat DfDp OutArg as tangent (df/dx*dx/dp+df/dp) More... | |
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 > > | y_space_ |
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > | dxdp_space_ |
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > | dydp_space_ |
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > | g_space_ |
Scalar | epsilon_ |
This is a model parameter. More... | |
Scalar | t0_ic_ |
initial time More... | |
Scalar | x0_ic_ |
initial condition for x0 More... | |
Scalar | x1_ic_ |
initial condition for x1 More... | |
van der Pol model formulated for the partitioned IMEX-RK.
This is a canonical equation of a nonlinear oscillator (Hairer, Norsett, and Wanner, pp. 111-115, and Hairer and Wanner, pp. 4-5) for an electrical circuit. In implicit ODE form, , the scaled problem can be written as
where the initial conditions are
and the initial time derivatives are
For a partitioned IMEX-RK time stepper, we need to rewrite this in the following form
where , is the mass matrix, is the operator representing the "slow" physics (and evolved explicitly), and is the operator representing the "fast" physics. For the van der Pol problem, we can separate the terms as follows
where is the identity matrix.
Thus the explicit van der Pol model (VanDerPol_IMEX_ExplicitModel) formulated for the partitioned IMEX-RK is
and the implicit van der Pol model (VanDerPol_IMEXPart_ImplicitModel) formulated for the partitioned IMEX-RK is
Noting that is not needed.
Recalling the defintion of the iteration matrix, ,
where
we can write for the implicit van der Pol model (VanDerPol_IMEXPart_ImplicitModel)
Definition at line 102 of file VanDerPol_IMEXPart_ImplicitModel_decl.hpp.
Tempus_Test::VanDerPol_IMEXPart_ImplicitModel< Scalar >::VanDerPol_IMEXPart_ImplicitModel | ( | Teuchos::RCP< Teuchos::ParameterList > | pList = Teuchos::null | ) |
Definition at line 31 of file VanDerPol_IMEXPart_ImplicitModel_impl.hpp.
Teuchos::RCP< Thyra::LinearOpWithSolveBase< Scalar > > Tempus_Test::VanDerPol_IMEXPart_ImplicitModel< Scalar >::create_W | ( | ) | const |
Definition at line 91 of file VanDerPol_IMEXPart_ImplicitModel_impl.hpp.
Teuchos::RCP< Thyra::LinearOpBase< Scalar > > Tempus_Test::VanDerPol_IMEXPart_ImplicitModel< Scalar >::create_W_op | ( | ) | const |
Definition at line 124 of file VanDerPol_IMEXPart_ImplicitModel_impl.hpp.
Thyra::ModelEvaluatorBase::InArgs< Scalar > Tempus_Test::VanDerPol_IMEXPart_ImplicitModel< Scalar >::createInArgs | ( | ) | const |
Definition at line 146 of file VanDerPol_IMEXPart_ImplicitModel_impl.hpp.
|
private |
Definition at line 159 of file VanDerPol_IMEXPart_ImplicitModel_impl.hpp.
|
private |
Definition at line 169 of file VanDerPol_IMEXPart_ImplicitModel_impl.hpp.
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > Tempus_Test::VanDerPol_IMEXPart_ImplicitModel< Scalar >::get_f_space | ( | ) | const |
Definition at line 73 of file VanDerPol_IMEXPart_ImplicitModel_impl.hpp.
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > Tempus_Test::VanDerPol_IMEXPart_ImplicitModel< Scalar >::get_g_space | ( | int | j | ) | const |
Definition at line 337 of file VanDerPol_IMEXPart_ImplicitModel_impl.hpp.
Teuchos::RCP< const Teuchos::Array< std::string > > Tempus_Test::VanDerPol_IMEXPart_ImplicitModel< Scalar >::get_p_names | ( | int | l | ) | const |
Definition at line 316 of file VanDerPol_IMEXPart_ImplicitModel_impl.hpp.
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > Tempus_Test::VanDerPol_IMEXPart_ImplicitModel< Scalar >::get_p_space | ( | int | l | ) | const |
Definition at line 299 of file VanDerPol_IMEXPart_ImplicitModel_impl.hpp.
Teuchos::RCP< const Thyra::LinearOpWithSolveFactoryBase< Scalar > > Tempus_Test::VanDerPol_IMEXPart_ImplicitModel< Scalar >::get_W_factory | ( | ) | const |
Definition at line 135 of file VanDerPol_IMEXPart_ImplicitModel_impl.hpp.
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > Tempus_Test::VanDerPol_IMEXPart_ImplicitModel< Scalar >::get_x_space | ( | ) | const |
Definition at line 65 of file VanDerPol_IMEXPart_ImplicitModel_impl.hpp.
Thyra::ModelEvaluatorBase::InArgs< Scalar > Tempus_Test::VanDerPol_IMEXPart_ImplicitModel< Scalar >::getNominalValues | ( | ) | const |
Definition at line 81 of file VanDerPol_IMEXPart_ImplicitModel_impl.hpp.
Teuchos::RCP< const Teuchos::ParameterList > Tempus_Test::VanDerPol_IMEXPart_ImplicitModel< Scalar >::getValidParameters | ( | ) | const |
Definition at line 441 of file VanDerPol_IMEXPart_ImplicitModel_impl.hpp.
void Tempus_Test::VanDerPol_IMEXPart_ImplicitModel< Scalar >::setParameterList | ( | Teuchos::RCP< Teuchos::ParameterList > const & | paramList | ) |
Definition at line 416 of file VanDerPol_IMEXPart_ImplicitModel_impl.hpp.
|
private |
Definition at line 346 of file VanDerPol_IMEXPart_ImplicitModel_impl.hpp.
|
private |
Number of state unknowns (1)
Definition at line 147 of file VanDerPol_IMEXPart_ImplicitModel_decl.hpp.
|
private |
Definition at line 162 of file VanDerPol_IMEXPart_ImplicitModel_decl.hpp.
|
private |
Definition at line 163 of file VanDerPol_IMEXPart_ImplicitModel_decl.hpp.
|
private |
This is a model parameter.
Definition at line 167 of file VanDerPol_IMEXPart_ImplicitModel_decl.hpp.
|
private |
Definition at line 159 of file VanDerPol_IMEXPart_ImplicitModel_decl.hpp.
|
private |
Definition at line 164 of file VanDerPol_IMEXPart_ImplicitModel_decl.hpp.
|
private |
false => no nominal values are provided (default=true)
Definition at line 152 of file VanDerPol_IMEXPart_ImplicitModel_decl.hpp.
|
mutableprivate |
Definition at line 155 of file VanDerPol_IMEXPart_ImplicitModel_decl.hpp.
|
mutableprivate |
Definition at line 154 of file VanDerPol_IMEXPart_ImplicitModel_decl.hpp.
|
private |
Number of observation functions (0)
Definition at line 150 of file VanDerPol_IMEXPart_ImplicitModel_decl.hpp.
|
private |
Number of elements in this observation function (0)
Definition at line 151 of file VanDerPol_IMEXPart_ImplicitModel_decl.hpp.
|
mutableprivate |
Definition at line 157 of file VanDerPol_IMEXPart_ImplicitModel_decl.hpp.
|
private |
Number of parameter vectors (1)
Definition at line 148 of file VanDerPol_IMEXPart_ImplicitModel_decl.hpp.
|
private |
Number of parameters in this vector (1)
Definition at line 149 of file VanDerPol_IMEXPart_ImplicitModel_decl.hpp.
|
mutableprivate |
Definition at line 156 of file VanDerPol_IMEXPart_ImplicitModel_decl.hpp.
|
private |
Definition at line 160 of file VanDerPol_IMEXPart_ImplicitModel_decl.hpp.
|
private |
initial time
Definition at line 168 of file VanDerPol_IMEXPart_ImplicitModel_decl.hpp.
|
private |
Treat DfDp OutArg as tangent (df/dx*dx/dp+df/dp)
Definition at line 153 of file VanDerPol_IMEXPart_ImplicitModel_decl.hpp.
|
private |
initial condition for x0
Definition at line 169 of file VanDerPol_IMEXPart_ImplicitModel_decl.hpp.
|
private |
initial condition for x1
Definition at line 170 of file VanDerPol_IMEXPart_ImplicitModel_decl.hpp.
|
private |
Definition at line 158 of file VanDerPol_IMEXPart_ImplicitModel_decl.hpp.
|
private |
Definition at line 161 of file VanDerPol_IMEXPart_ImplicitModel_decl.hpp.