Tempus
Version of the Day
Time Integration
|
A ModelEvaluator for residual evaluations given a state. This ModelEvaluator takes a state, x, and determines its residual, , which is suitable for a nonlinear solve. This is accomplished by computing the time derivative of the state, x_dot, (through Lambda functions), supplying the current time, and calling the application application ModelEvaluator, . More...
#include <Tempus_WrapperModelEvaluatorSecondOrder_decl.hpp>
Public Types | |
enum | SCHEME_TYPE { NEWMARK_IMPLICIT_AFORM, NEWMARK_IMPLICIT_DFORM } |
typedef Thyra::VectorBase< Scalar > | Vector |
Public Types inherited from Thyra::ModelEvaluator< class > | |
enum | EInArgsMembers |
enum | EInArgs_p_mp |
enum | EEvalType |
enum | EDerivativeMultiVectorOrientation |
enum | EDerivativeLinearOp |
enum | EDerivativeLinearity |
enum | ERankStatus |
enum | EOutArgsMembers |
enum | EOutArgsDfDp |
enum | EOutArgsDgDx_dot |
enum | EOutArgsDgDx |
enum | EOutArgsDgDp |
enum | EOutArgsDfDp_mp |
enum | EOutArgs_g_mp |
enum | EOutArgsDgDx_dot_mp |
enum | EOutArgsDgDx_mp |
enum | EOutArgsDgDp_mp |
typedef Teuchos::ScalarTraits < Scalar >::magnitudeType | ScalarMag |
Public Member Functions | |
WrapperModelEvaluatorSecondOrder (const Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > &appModel, const std::string schemeName) | |
Constructor. More... | |
void | setAppModel (const Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > &me) |
Set the underlying application ModelEvaluator. More... | |
Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > | getAppModel () const |
Get the underlying application model 'f'. More... | |
void | initializeNewmark (Teuchos::RCP< const Vector > v_pred, Teuchos::RCP< const Vector > d_pred, Scalar delta_t, Scalar t, Scalar beta, Scalar gamma) |
Set values needed in evalModelImpl. More... | |
Public Member Functions inherited from Tempus::WrapperModelEvaluator< Scalar > | |
Public Member Functions inherited from Thyra::StateFuncModelEvaluatorBase< Scalar > | |
RCP< const VectorSpaceBase < Scalar > > | get_p_space (int l) const |
RCP< const Teuchos::Array < std::string > > | get_p_names (int l) const |
RCP< const VectorSpaceBase < Scalar > > | get_g_space (int j) const |
Teuchos::ArrayView< const std::string > | get_g_names (int j) const |
ModelEvaluatorBase::InArgs < Scalar > | getNominalValues () const |
ModelEvaluatorBase::InArgs < Scalar > | getLowerBounds () const |
ModelEvaluatorBase::InArgs < Scalar > | getUpperBounds () const |
RCP< LinearOpBase< Scalar > > | create_W_op () const |
RCP< PreconditionerBase< Scalar > > | create_W_prec () const |
RCP< const LinearOpWithSolveFactoryBase < Scalar > > | get_W_factory () const |
void | reportFinalPoint (const ModelEvaluatorBase::InArgs< Scalar > &finalPoint, const bool wasSolved) |
Public Member Functions inherited from Thyra::ModelEvaluator< class > | |
virtual int | Np () const =0 |
virtual int | Ng () const =0 |
virtual RCP< const VectorSpaceBase< Scalar > > | get_f_multiplier_space () const =0 |
virtual RCP< const VectorSpaceBase< Scalar > > | get_g_multiplier_space (int j) const =0 |
virtual RCP < LinearOpWithSolveBase < Scalar > > | create_W () const =0 |
virtual RCP< LinearOpBase < Scalar > > | create_DfDp_op (int l) const =0 |
virtual RCP< LinearOpBase < Scalar > > | create_DgDx_dot_op (int j) const =0 |
virtual RCP< LinearOpBase < Scalar > > | create_DgDx_op (int j) const =0 |
virtual RCP< LinearOpBase < Scalar > > | create_DgDp_op (int j, int l) const =0 |
virtual ModelEvaluatorBase::OutArgs < Scalar > | createOutArgs () const =0 |
virtual void | evalModel (const ModelEvaluatorBase::InArgs< Scalar > &inArgs, const ModelEvaluatorBase::OutArgs< Scalar > &outArgs) const =0 |
ModelEvaluatorBase () | |
std::string | toString (ModelEvaluatorBase::EInArgsMembers) |
std::string | toString (ModelEvaluatorBase::EOutArgsMembers) |
std::string | toString (ModelEvaluatorBase::EDerivativeMultiVectorOrientation orientation) |
ModelEvaluatorBase::EDerivativeMultiVectorOrientation | getOtherDerivativeMultiVectorOrientation (ModelEvaluatorBase::EDerivativeMultiVectorOrientation orientation) |
Public Member Functions inherited from Teuchos::Describable | |
virtual std::string | description () const |
virtual void | describe (FancyOStream &out, const EVerbosityLevel verbLevel=verbLevel_default) const |
void | describe (std::ostream &out, const EVerbosityLevel verbLevel=verbLevel_default) const |
virtual | ~Describable () |
LabeledObject () | |
virtual | ~LabeledObject () |
virtual void | setObjectLabel (const std::string &objectLabel) |
virtual std::string | getObjectLabel () const |
DescribableStreamManipulatorState | describe (const Describable &describable, const EVerbosityLevel verbLevel=Describable::verbLevel_default) |
std::ostream & | operator<< (std::ostream &os, const DescribableStreamManipulatorState &d) |
Private Member Functions | |
WrapperModelEvaluatorSecondOrder () | |
Default constructor - not allowed. More... | |
Private Attributes | |
Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > | appModel_ |
Scalar | t_ |
Scalar | gamma_ |
Scalar | beta_ |
Scalar | delta_t_ |
Teuchos::RCP< const Vector > | d_pred_ |
Teuchos::RCP< const Vector > | v_pred_ |
Teuchos::RCP < Teuchos::FancyOStream > | out_ |
SCHEME_TYPE | schemeType_ |
Teuchos::RCP< TimeDerivative < Scalar > > | timeDer_ |
Thyra::ModelEvaluatorBase::InArgs < Scalar > | wrapperInArgs_ |
Thyra::ModelEvaluatorBase::OutArgs < Scalar > | wrapperOutArgs_ |
Overridden from Thyra::StateFuncModelEvaluatorBase | |
Teuchos::RCP < Thyra::LinearOpBase< Scalar > > | create_W_op () const |
Teuchos::RCP< const Thyra::LinearOpWithSolveFactoryBase < Scalar > > | get_W_factory () const |
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > | get_f_space () const |
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > | get_p_space (int p) const |
Get the p space. More... | |
Teuchos::RCP< const Teuchos::Array< std::string > > | get_p_names (int p) const |
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > | get_x_space () const |
Get the x-solution space. More... | |
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > | get_g_space (int i) const |
Get the g space. More... | |
Thyra::ModelEvaluatorBase::InArgs < Scalar > | getNominalValues () const |
virtual Thyra::ModelEvaluatorBase::InArgs < Scalar > | getInArgs () |
Get InArgs the wrapper ModelEvalutor. More... | |
virtual Thyra::ModelEvaluatorBase::OutArgs < Scalar > | getOutArgs () |
Get OutArgs the wrapper ModelEvalutor. More... | |
virtual void | setForSolve (const Teuchos::RCP< Thyra::VectorBase< Scalar > > &x, const Teuchos::RCP< Thyra::VectorBase< Scalar > > &xDot, const Scalar time, const Teuchos::RCP< ImplicitODEParameters< Scalar > > &p, const Teuchos::RCP< Thyra::VectorBase< Scalar > > &y=Teuchos::null, const int index=-1) |
Set parameters for application implicit ModelEvaluator solve. More... | |
Thyra::ModelEvaluatorBase::InArgs < Scalar > | createInArgs () const |
Thyra::ModelEvaluatorBase::OutArgs < Scalar > | createOutArgsImpl () const |
void | evalModelImpl (const Thyra::ModelEvaluatorBase::InArgs< Scalar > &inArgs, const Thyra::ModelEvaluatorBase::OutArgs< Scalar > &outArgs) const |
Additional Inherited Members | |
Static Public Attributes inherited from Thyra::ModelEvaluator< class > | |
static const int | NUM_E_IN_ARGS_MEMBERS |
static const int | NUM_E_OUT_ARGS_MEMBERS |
Static Public Attributes inherited from Teuchos::Describable | |
static const EVerbosityLevel | verbLevel_default |
A ModelEvaluator for residual evaluations given a state. This ModelEvaluator takes a state, x, and determines its residual, , which is suitable for a nonlinear solve. This is accomplished by computing the time derivative of the state, x_dot, (through Lambda functions), supplying the current time, and calling the application application ModelEvaluator, .
This class breaks the primary design principle for ModelEvaluators; it is not stateless!
Definition at line 33 of file Tempus_WrapperModelEvaluatorSecondOrder_decl.hpp.
typedef Thyra::VectorBase<Scalar> Tempus::WrapperModelEvaluatorSecondOrder< Scalar >::Vector |
Definition at line 36 of file Tempus_WrapperModelEvaluatorSecondOrder_decl.hpp.
enum Tempus::WrapperModelEvaluatorSecondOrder::SCHEME_TYPE |
Enumerator | |
---|---|
NEWMARK_IMPLICIT_AFORM | |
NEWMARK_IMPLICIT_DFORM |
Definition at line 192 of file Tempus_WrapperModelEvaluatorSecondOrder_decl.hpp.
|
inline |
Constructor.
Definition at line 39 of file Tempus_WrapperModelEvaluatorSecondOrder_decl.hpp.
|
private |
Default constructor - not allowed.
|
inlinevirtual |
Set the underlying application ModelEvaluator.
Implements Tempus::WrapperModelEvaluator< Scalar >.
Definition at line 65 of file Tempus_WrapperModelEvaluatorSecondOrder_decl.hpp.
|
inlinevirtual |
Get the underlying application model 'f'.
Implements Tempus::WrapperModelEvaluator< Scalar >.
Definition at line 74 of file Tempus_WrapperModelEvaluatorSecondOrder_decl.hpp.
|
inline |
Set values needed in evalModelImpl.
Definition at line 83 of file Tempus_WrapperModelEvaluatorSecondOrder_decl.hpp.
|
inlinevirtual |
Implements Thyra::ModelEvaluator< class >.
Definition at line 100 of file Tempus_WrapperModelEvaluatorSecondOrder_decl.hpp.
|
inlinevirtual |
Implements Thyra::ModelEvaluator< class >.
Definition at line 109 of file Tempus_WrapperModelEvaluatorSecondOrder_decl.hpp.
|
inlinevirtual |
Implements Thyra::ModelEvaluator< class >.
Definition at line 117 of file Tempus_WrapperModelEvaluatorSecondOrder_decl.hpp.
|
inlinevirtual |
Get the p space.
Implements Tempus::WrapperModelEvaluator< Scalar >.
Definition at line 125 of file Tempus_WrapperModelEvaluatorSecondOrder_decl.hpp.
|
inlinevirtual |
Implements Thyra::ModelEvaluator< class >.
Definition at line 133 of file Tempus_WrapperModelEvaluatorSecondOrder_decl.hpp.
|
inlinevirtual |
Get the x-solution space.
Implements Tempus::WrapperModelEvaluator< Scalar >.
Definition at line 141 of file Tempus_WrapperModelEvaluatorSecondOrder_decl.hpp.
|
inlinevirtual |
Get the g space.
Implements Tempus::WrapperModelEvaluator< Scalar >.
Definition at line 149 of file Tempus_WrapperModelEvaluatorSecondOrder_decl.hpp.
|
inlinevirtual |
Implements Thyra::ModelEvaluator< class >.
Definition at line 154 of file Tempus_WrapperModelEvaluatorSecondOrder_decl.hpp.
|
inlinevirtual |
Get InArgs the wrapper ModelEvalutor.
Definition at line 163 of file Tempus_WrapperModelEvaluatorSecondOrder_decl.hpp.
|
inlinevirtual |
Get OutArgs the wrapper ModelEvalutor.
Definition at line 169 of file Tempus_WrapperModelEvaluatorSecondOrder_decl.hpp.
|
inlinevirtual |
Set parameters for application implicit ModelEvaluator solve.
Implements Tempus::WrapperModelEvaluator< Scalar >.
Definition at line 175 of file Tempus_WrapperModelEvaluatorSecondOrder_decl.hpp.
|
virtual |
Implements Thyra::ModelEvaluator< class >.
Definition at line 17 of file Tempus_WrapperModelEvaluatorSecondOrder_impl.hpp.
Thyra::ModelEvaluatorBase::OutArgs< Scalar > Tempus::WrapperModelEvaluatorSecondOrder< Scalar >::createOutArgsImpl | ( | ) | const |
Definition at line 34 of file Tempus_WrapperModelEvaluatorSecondOrder_impl.hpp.
void Tempus::WrapperModelEvaluatorSecondOrder< Scalar >::evalModelImpl | ( | const Thyra::ModelEvaluatorBase::InArgs< Scalar > & | inArgs, |
const Thyra::ModelEvaluatorBase::OutArgs< Scalar > & | outArgs | ||
) | const |
Definition at line 51 of file Tempus_WrapperModelEvaluatorSecondOrder_impl.hpp.
|
private |
Definition at line 200 of file Tempus_WrapperModelEvaluatorSecondOrder_decl.hpp.
|
private |
Definition at line 201 of file Tempus_WrapperModelEvaluatorSecondOrder_decl.hpp.
|
private |
Definition at line 202 of file Tempus_WrapperModelEvaluatorSecondOrder_decl.hpp.
|
private |
Definition at line 203 of file Tempus_WrapperModelEvaluatorSecondOrder_decl.hpp.
|
private |
Definition at line 204 of file Tempus_WrapperModelEvaluatorSecondOrder_decl.hpp.
|
private |
Definition at line 205 of file Tempus_WrapperModelEvaluatorSecondOrder_decl.hpp.
|
private |
Definition at line 206 of file Tempus_WrapperModelEvaluatorSecondOrder_decl.hpp.
|
private |
Definition at line 207 of file Tempus_WrapperModelEvaluatorSecondOrder_decl.hpp.
|
private |
Definition at line 208 of file Tempus_WrapperModelEvaluatorSecondOrder_decl.hpp.
|
private |
Definition at line 210 of file Tempus_WrapperModelEvaluatorSecondOrder_decl.hpp.
|
private |
Definition at line 211 of file Tempus_WrapperModelEvaluatorSecondOrder_decl.hpp.
|
private |
Definition at line 212 of file Tempus_WrapperModelEvaluatorSecondOrder_decl.hpp.