Thyra-based Model Evaluator for Tempus solves. More...
#include <Piro_TempusSolver.hpp>
Public Member Functions | |
TempusSolver (const Teuchos::RCP< Tempus::IntegratorBasic< Scalar > > &stateIntegrator, const Teuchos::RCP< Tempus::Stepper< Scalar > > &stateStepper, const Teuchos::RCP< Thyra::NonlinearSolverBase< Scalar > > &timeStepSolver, const Teuchos::RCP< Thyra::ModelEvaluator< Scalar > > &model, Scalar initialTime, Scalar finalTime, const Teuchos::RCP< Thyra::ModelEvaluator< Scalar > > &initialConditionModel=Teuchos::null, Teuchos::EVerbosityLevel verbosityLevel=Teuchos::VERB_DEFAULT) | |
Initialize using prebuilt objects - supplying initial time value. | |
void | initialize (const Teuchos::RCP< Teuchos::ParameterList > &appParams, const Teuchos::RCP< Thyra::ModelEvaluator< Scalar > > &model) |
void | addStepperFactory (const std::string &stepperName, const Teuchos::RCP< Piro::TempusStepperFactory< Scalar > > &stepperFactories) |
void | addStepControlFactory (const std::string &stepControlName, const Teuchos::RCP< Piro::TempusStepControlFactory< Scalar > > &step_control_strategy) |
void | setStartTime (const Scalar start_time) |
Set start time for time-integration. | |
Scalar | getStartTime () const |
Get start time for time-integration. | |
void | setFinalTime (const Scalar final_time) |
Set final time for time-integration. | |
Scalar | getFinalTime () const |
Get final time for time-integration. | |
void | setInitTimeStep (const Scalar init_time_step) |
Set initial time step for time-integration. | |
Scalar | getInitTimeStep () const |
Get initial time step for time-integration. | |
void | setInitialState (Scalar t0, Teuchos::RCP< Thyra::VectorBase< Scalar > > x0, Teuchos::RCP< Thyra::VectorBase< Scalar > > xdot0=Teuchos::null, Teuchos::RCP< Thyra::VectorBase< Scalar > > xdotdot0=Teuchos::null) |
Set initial time, initial solution, velocity and acceleration. | |
void | setInitialGuess (Teuchos::RCP< const Thyra::VectorBase< Scalar > > initial_guess=Teuchos::null) |
Set initial guess for Newton method. | |
Teuchos::RCP < Tempus::SolutionHistory < Scalar > > | getSolutionHistory () const |
Return RCP to Tempus::SolutionHistory. | |
Teuchos::RCP < Thyra::NonlinearSolverBase < Scalar > > | getSolver () const |
Return Thyra nonlinear solver underlying Tempus::Stepper object. | |
Tempus::Status | getTempusIntegratorStatus () const |
Constructors/initializers | |
TempusSolver () | |
Initializes the internals, though the object is a blank slate. To initialize it call initialize | |
TempusSolver (const Teuchos::RCP< Teuchos::ParameterList > &appParams, const Teuchos::RCP< Thyra::ModelEvaluator< Scalar > > &model, bool computeSensitivities, const Teuchos::RCP< Piro::ObserverBase< Scalar > > &piroObserver=Teuchos::null) | |
Initialize with internally built objects according to the given parameter list. | |
TempusSolver (const Teuchos::RCP< Tempus::IntegratorBasic< Scalar > > &stateIntegrator, const Teuchos::RCP< Tempus::Stepper< Scalar > > &stateStepper, const Teuchos::RCP< Thyra::NonlinearSolverBase< Scalar > > &timeStepSolver, const Teuchos::RCP< Thyra::ModelEvaluator< Scalar > > &model, Scalar finalTime, const Teuchos::RCP< Thyra::ModelEvaluator< Scalar > > &initialConditionModel=Teuchos::null, Teuchos::EVerbosityLevel verbosityLevel=Teuchos::VERB_DEFAULT) | |
Initialize using prebuilt objects. | |
Overridden from Thyra::ModelEvaluatorBase. | |
Thyra::ModelEvaluatorBase::InArgs < Scalar > | getNominalValues () const |
Thyra::ModelEvaluatorBase::InArgs < Scalar > | createInArgs () const |
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > | get_p_space (int l) const |
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > | get_g_space (int j) const |
Thyra-based Model Evaluator for Tempus solves.