Tempus Version of the Day
Time Integration
|
Specialization of IMEX-Part ME for "combined" FSA method. More...
#include <Tempus_WrapperModelEvaluatorPairPartIMEX_CombinedFSA_decl.hpp>
Public Member Functions | |
WrapperModelEvaluatorPairPartIMEX_CombinedFSA (const Teuchos::RCP< const WrapperModelEvaluatorPairPartIMEX_Basic< Scalar > > &forwardModel, const Teuchos::RCP< const Teuchos::ParameterList > &pList=Teuchos::null) | |
Constructor. | |
virtual | ~WrapperModelEvaluatorPairPartIMEX_CombinedFSA () |
Destructor. | |
virtual void | initialize () |
Initialize after setting member data. | |
![]() | |
SensitivityModelEvaluatorBase () | |
Constructor. | |
virtual | ~SensitivityModelEvaluatorBase () |
Destructor. | |
virtual Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > | getForwardModel () const |
Get the underlying forward model. | |
virtual void | setForwardSolutionHistory (const Teuchos::RCP< const Tempus::SolutionHistory< Scalar > > &) |
Set solution history from forward state evaluation (for interpolation) | |
virtual void | setForwardSolutionState (const Teuchos::RCP< const Tempus::SolutionState< Scalar > > &) |
Set solution state from forward state evaluation (for frozen state) | |
virtual void | setSolver (const Teuchos::RCP< Thyra::NonlinearSolverBase< Scalar > > &, const bool) |
Set the solver of the underlying model if you want to reuse it. | |
![]() | |
WrapperModelEvaluatorPairPartIMEX_Basic () | |
Default constructor – Still requires setting the models and running initialize. | |
WrapperModelEvaluatorPairPartIMEX_Basic (const Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > &explicitModel, const Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > &implicitModel, int numExplicitOnlyBlocks=0, int parameterIndex=-1) | |
Constructor. | |
virtual | ~WrapperModelEvaluatorPairPartIMEX_Basic () |
Destructor. | |
virtual void | initialize () |
Initialize after setting member data. | |
virtual Teuchos::RCP< Thyra::LinearOpBase< Scalar > > | create_W_op () const |
Teuchos::RCP< const Thyra::LinearOpWithSolveFactoryBase< Scalar > > | get_W_factory () const |
virtual Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > | get_f_space () const |
virtual Thyra::ModelEvaluatorBase::InArgs< Scalar > | getNominalValues () const |
virtual Thyra::ModelEvaluatorBase::OutArgs< Scalar > | createOutArgsImpl () const |
virtual void | setAppModel (const Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > &me) |
Set the underlying application ModelEvaluator. | |
virtual Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > | getAppModel () const |
Get the underlying application ModelEvaluator. | |
virtual void | setInArgs (Thyra::ModelEvaluatorBase::InArgs< Scalar > inArgs) |
Set InArgs the wrapper ModelEvalutor. | |
virtual Thyra::ModelEvaluatorBase::InArgs< Scalar > | getInArgs () |
Get InArgs the wrapper ModelEvalutor. | |
virtual void | setOutArgs (Thyra::ModelEvaluatorBase::OutArgs< Scalar > outArgs) |
Set OutArgs the wrapper ModelEvalutor. | |
virtual Thyra::ModelEvaluatorBase::OutArgs< Scalar > | getOutArgs () |
Get OutArgs the wrapper ModelEvalutor. | |
virtual void | setForSolve (Teuchos::RCP< TimeDerivative< Scalar > > timeDer, Thyra::ModelEvaluatorBase::InArgs< Scalar > inArgs, Thyra::ModelEvaluatorBase::OutArgs< Scalar > outArgs, EVALUATION_TYPE=SOLVE_FOR_X) |
Set parameters for application implicit ModelEvaluator solve. | |
virtual Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > | get_x_space () const |
Get the x-solution space. | |
virtual Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > | get_g_space (int i) const |
Get the g space. | |
virtual void | setNumExplicitOnlyBlocks (int numExp) |
virtual void | setExplicitModel (const Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > &model) |
virtual void | setImplicitModel (const Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > &model) |
virtual Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > | getExplicitModel () const |
virtual Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > | getImplicitModel () const |
virtual int | getNumExplicitOnlyBlocks () const |
virtual void | setParameterIndex (int parameterIndex=-1) |
Set the parameter index for explicit-only vector. | |
virtual int | getParameterIndex () const |
Get the parameter index for explicit-only vector. | |
virtual void | setUseImplicitModel (bool tf) |
Set parameter to switch wrapperME base functions between explicit and implicit functions. | |
virtual bool | getUseImplicitModel () const |
Get parameter to switch wrapperME base functions between explicit and implicit functions. | |
![]() | |
virtual void | initialize ()=0 |
Initialize after setting member data. | |
![]() |
Overridden from Thyra::StateFuncModelEvaluatorBase | |
typedef WrapperModelEvaluatorPairPartIMEX_Basic< Scalar > | Base |
typedef Thyra::DefaultMultiVectorProductVectorSpace< Scalar > | DMVPVS |
typedef Thyra::DefaultMultiVectorProductVector< Scalar > | DMVPV |
typedef Thyra::ProductMultiVectorBase< Scalar > | PMVB |
typedef CombinedForwardSensitivityModelEvaluator< Scalar > | FSAME |
Teuchos::RCP< const WrapperModelEvaluatorPairPartIMEX_Basic< Scalar > > | forwardModel_ |
Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > | appExplicitModel_ |
Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > | appImplicitModel_ |
Teuchos::RCP< const FSAME > | fsaExplicitModel_ |
Teuchos::RCP< const FSAME > | fsaImplicitModel_ |
bool | use_dfdp_as_tangent_ |
int | y_tangent_index_ |
Teuchos::RCP< const DMVPVS > | explicit_y_dydp_prod_space_ |
Teuchos::RCP< const DMVPVS > | explicit_dydp_prod_space_ |
Teuchos::RCP< const DMVPVS > | imex_x_dxdp_prod_space_ |
Teuchos::RCP< Thyra::MultiVectorBase< Scalar > > | my_dfdp_mv_ |
Teuchos::RCP< Thyra::LinearOpBase< Scalar > > | my_dfdp_op_ |
virtual Thyra::ModelEvaluatorBase::InArgs< Scalar > | createInArgs () const |
virtual void | evalModelImpl (const Thyra::ModelEvaluatorBase::InArgs< Scalar > &inArgs, const Thyra::ModelEvaluatorBase::OutArgs< Scalar > &outArgs) const |
Teuchos::RCP< const Teuchos::ParameterList > | getValidParameters () const |
Methods that apply to both explicit and implicit terms. | |
virtual Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > | get_p_space (int i) const |
Get the p space. | |
virtual Teuchos::RCP< Thyra::VectorBase< Scalar > > | getIMEXVector (const Teuchos::RCP< Thyra::VectorBase< Scalar > > &full) const |
Extract IMEX vector from a full solution vector. | |
virtual Teuchos::RCP< const Thyra::VectorBase< Scalar > > | getIMEXVector (const Teuchos::RCP< const Thyra::VectorBase< Scalar > > &full) const |
Extract IMEX vector for reading. | |
virtual Teuchos::RCP< Thyra::VectorBase< Scalar > > | getExplicitOnlyVector (const Teuchos::RCP< Thyra::VectorBase< Scalar > > &full) const |
Extract explicit-only vector from a full solution vector. | |
virtual Teuchos::RCP< const Thyra::VectorBase< Scalar > > | getExplicitOnlyVector (const Teuchos::RCP< const Thyra::VectorBase< Scalar > > &full) const |
Extract explicit-only vector for reading. | |
Overridden from Tempus::SensitivityModelEvaluatorBase | |
virtual Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > | getForwardModel () const |
Get the underlying forward model. | |
Additional Inherited Members | |
![]() | |
void | setup (const Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > &explicitModel, const Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > &implicitModel, int numExplicitOnlyBlocks=0, int parameterIndex=-1) |
Setup ME when using default constructor – for derived classes. | |
![]() | |
Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > | explicitModel_ |
Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > | implicitModel_ |
Teuchos::RCP< TimeDerivative< Scalar > > | timeDer_ |
Thyra::ModelEvaluatorBase::InArgs< Scalar > | wrapperImplicitInArgs_ |
Thyra::ModelEvaluatorBase::OutArgs< Scalar > | wrapperImplicitOutArgs_ |
int | numExplicitOnlyBlocks_ |
int | parameterIndex_ |
implicit parameter index for explicit-only vector | |
bool | useImplicitModel_ |
if true, use implicitModel_ else explicitModel_ | |
Specialization of IMEX-Part ME for "combined" FSA method.
This specializes the implementation of several parts of WrapperModelEvaluatorPairPartIMEX_Basic for forward-sensitivity analysis with CombinedForwardSensitivityModelEvaluator. It deals with the product structure of the sensitivity solution vectors and incorporates the sensitivity of the implicit term with respect to the explicit-only vector.
Definition at line 32 of file Tempus_WrapperModelEvaluatorPairPartIMEX_CombinedFSA_decl.hpp.
|
protected |
Definition at line 107 of file Tempus_WrapperModelEvaluatorPairPartIMEX_CombinedFSA_decl.hpp.
|
protected |
Definition at line 108 of file Tempus_WrapperModelEvaluatorPairPartIMEX_CombinedFSA_decl.hpp.
|
protected |
Definition at line 109 of file Tempus_WrapperModelEvaluatorPairPartIMEX_CombinedFSA_decl.hpp.
|
protected |
Definition at line 110 of file Tempus_WrapperModelEvaluatorPairPartIMEX_CombinedFSA_decl.hpp.
|
protected |
Definition at line 111 of file Tempus_WrapperModelEvaluatorPairPartIMEX_CombinedFSA_decl.hpp.
Tempus::WrapperModelEvaluatorPairPartIMEX_CombinedFSA< Scalar >::WrapperModelEvaluatorPairPartIMEX_CombinedFSA | ( | const Teuchos::RCP< const WrapperModelEvaluatorPairPartIMEX_Basic< Scalar > > & | forwardModel, |
const Teuchos::RCP< const Teuchos::ParameterList > & | pList = Teuchos::null |
||
) |
Constructor.
Definition at line 18 of file Tempus_WrapperModelEvaluatorPairPartIMEX_CombinedFSA_impl.hpp.
|
inlinevirtual |
Destructor.
Definition at line 44 of file Tempus_WrapperModelEvaluatorPairPartIMEX_CombinedFSA_decl.hpp.
|
virtual |
Initialize after setting member data.
Reimplemented from Tempus::WrapperModelEvaluatorPairPartIMEX_Basic< Scalar >.
Definition at line 65 of file Tempus_WrapperModelEvaluatorPairPartIMEX_CombinedFSA_impl.hpp.
|
virtual |
Get the p space.
Reimplemented from Tempus::WrapperModelEvaluatorPairPartIMEX_Basic< Scalar >.
Definition at line 112 of file Tempus_WrapperModelEvaluatorPairPartIMEX_CombinedFSA_impl.hpp.
|
virtual |
Extract IMEX vector from a full solution vector.
Reimplemented from Tempus::WrapperModelEvaluatorPairPartIMEX_Basic< Scalar >.
Definition at line 127 of file Tempus_WrapperModelEvaluatorPairPartIMEX_CombinedFSA_impl.hpp.
|
virtual |
Extract IMEX vector for reading.
Reimplemented from Tempus::WrapperModelEvaluatorPairPartIMEX_Basic< Scalar >.
Definition at line 168 of file Tempus_WrapperModelEvaluatorPairPartIMEX_CombinedFSA_impl.hpp.
|
virtual |
Extract explicit-only vector from a full solution vector.
Reimplemented from Tempus::WrapperModelEvaluatorPairPartIMEX_Basic< Scalar >.
Definition at line 210 of file Tempus_WrapperModelEvaluatorPairPartIMEX_CombinedFSA_impl.hpp.
|
virtual |
Extract explicit-only vector for reading.
Reimplemented from Tempus::WrapperModelEvaluatorPairPartIMEX_Basic< Scalar >.
Definition at line 252 of file Tempus_WrapperModelEvaluatorPairPartIMEX_CombinedFSA_impl.hpp.
|
virtual |
Get the underlying forward model.
Reimplemented from Tempus::SensitivityModelEvaluatorBase< Scalar >.
Definition at line 295 of file Tempus_WrapperModelEvaluatorPairPartIMEX_CombinedFSA_impl.hpp.
|
virtual |
Reimplemented from Tempus::WrapperModelEvaluatorPairPartIMEX_Basic< Scalar >.
Definition at line 303 of file Tempus_WrapperModelEvaluatorPairPartIMEX_CombinedFSA_impl.hpp.
|
virtual |
Reimplemented from Tempus::WrapperModelEvaluatorPairPartIMEX_Basic< Scalar >.
Definition at line 329 of file Tempus_WrapperModelEvaluatorPairPartIMEX_CombinedFSA_impl.hpp.
Teuchos::RCP< const Teuchos::ParameterList > Tempus::WrapperModelEvaluatorPairPartIMEX_CombinedFSA< Scalar >::getValidParameters |
Definition at line 454 of file Tempus_WrapperModelEvaluatorPairPartIMEX_CombinedFSA_impl.hpp.
|
protected |
Definition at line 113 of file Tempus_WrapperModelEvaluatorPairPartIMEX_CombinedFSA_decl.hpp.
|
protected |
Definition at line 114 of file Tempus_WrapperModelEvaluatorPairPartIMEX_CombinedFSA_decl.hpp.
|
protected |
Definition at line 115 of file Tempus_WrapperModelEvaluatorPairPartIMEX_CombinedFSA_decl.hpp.
|
protected |
Definition at line 116 of file Tempus_WrapperModelEvaluatorPairPartIMEX_CombinedFSA_decl.hpp.
|
protected |
Definition at line 117 of file Tempus_WrapperModelEvaluatorPairPartIMEX_CombinedFSA_decl.hpp.
|
protected |
Definition at line 119 of file Tempus_WrapperModelEvaluatorPairPartIMEX_CombinedFSA_decl.hpp.
|
protected |
Definition at line 120 of file Tempus_WrapperModelEvaluatorPairPartIMEX_CombinedFSA_decl.hpp.
|
protected |
Definition at line 122 of file Tempus_WrapperModelEvaluatorPairPartIMEX_CombinedFSA_decl.hpp.
|
protected |
Definition at line 123 of file Tempus_WrapperModelEvaluatorPairPartIMEX_CombinedFSA_decl.hpp.
|
protected |
Definition at line 124 of file Tempus_WrapperModelEvaluatorPairPartIMEX_CombinedFSA_decl.hpp.
|
mutableprotected |
Definition at line 126 of file Tempus_WrapperModelEvaluatorPairPartIMEX_CombinedFSA_decl.hpp.
|
mutableprotected |
Definition at line 127 of file Tempus_WrapperModelEvaluatorPairPartIMEX_CombinedFSA_decl.hpp.