Tempus
Version of the Day
Time Integration
|
TimeStepControl manages the time step size. There several mechanicisms that effect the time step size and handled with this class: More...
#include <Tempus_Integrator.hpp>
Public Member Functions | |
TimeStepControl (Teuchos::RCP< Teuchos::ParameterList > pList=Teuchos::null) | |
Constructor. More... | |
virtual | ~TimeStepControl () |
Destructor. More... | |
virtual void | initialize (Teuchos::RCP< Teuchos::ParameterList > pList=Teuchos::null) |
virtual void | getNextTimeStep (const Teuchos::RCP< SolutionHistory< Scalar > > &solutionHistory, Status &integratorStatus) |
Determine the time step size. More... | |
virtual bool | timeInRange (const Scalar time) const |
Check if time is within minimum and maximum time. More... | |
virtual bool | indexInRange (const int iStep) const |
Check if time step index is within minimum and maximum index. More... | |
virtual void | setTimeStepControlStrategy (Teuchos::RCP< TimeStepControlStrategy< Scalar > > tscs=Teuchos::null) |
Set the TimeStepControlStrategy. More... | |
Overridden from Teuchos::ParameterListAccepto{} | |
void | setParameterList (const Teuchos::RCP< Teuchos::ParameterList > &pl) |
Teuchos::RCP< const Teuchos::ParameterList > | getValidParameters () const |
Teuchos::RCP < Teuchos::ParameterList > | getNonconstParameterList () |
Teuchos::RCP < Teuchos::ParameterList > | unsetParameterList () |
Overridden from Teuchos::Describable | |
std::string | description () const |
void | describe (Teuchos::FancyOStream &out, const Teuchos::EVerbosityLevel verbLevel) const |
Get ParameterList values | |
virtual Scalar | getInitTime () const |
virtual Scalar | getFinalTime () const |
virtual Scalar | getMinTimeStep () const |
virtual Scalar | getInitTimeStep () const |
virtual Scalar | getMaxTimeStep () const |
virtual int | getInitIndex () const |
virtual int | getFinalIndex () const |
virtual Scalar | getMaxAbsError () const |
virtual Scalar | getMaxRelError () const |
virtual int | getMinOrder () const |
virtual int | getInitOrder () const |
virtual int | getMaxOrder () const |
virtual std::string | getStepType () const |
virtual bool | getOutputExactly () const |
virtual std::vector< int > | getOutputIndices () const |
virtual std::vector< Scalar > | getOutputTimes () const |
virtual int | getMaxFailures () const |
virtual int | getMaxConsecFailures () const |
virtual int | getNumTimeSteps () const |
virtual Teuchos::RCP < TimeStepControlStrategyComposite < Scalar > > | getTimeStepControlStrategy () const |
virtual int | getOutputIndexInterval () |
virtual double | getOutputTimeInterval () |
Set ParameterList values | |
virtual void | setInitTime (Scalar InitTime) |
virtual void | setFinalTime (Scalar FinalTime) |
virtual void | setMinTimeStep (Scalar MinTimeStep) |
virtual void | setInitTimeStep (Scalar InitTimeStep) |
virtual void | setMaxTimeStep (Scalar MaxTimeStep) |
virtual void | setInitIndex (int InitIndex) |
virtual void | setFinalIndex (int FinalIndex) |
virtual void | setMaxAbsError (Scalar MaxAbsError) |
virtual void | setMaxRelError (Scalar MaxRelError) |
virtual void | setMinOrder (int MinOrder) |
virtual void | setInitOrder (int InitOrder) |
virtual void | setMaxOrder (int MaxOrder) |
virtual void | setStepType (std::string StepType) |
virtual void | setOutputExactly (bool OutputExactly) |
virtual void | setOutputIndices (std::vector< int > OutputIndices) |
virtual void | setOutputTimes (std::vector< Scalar > OutputTimes) |
virtual void | setMaxFailures (int MaxFailures) |
virtual void | setMaxConsecFailures (int MaxConsecFailures) |
virtual void | setNumTimeSteps (int numTimeSteps) |
virtual void | setOutputIndexInterval (int OutputIndexInterval) |
virtual void | setOutputTimeInterval (double OutputTimeInterval) |
virtual void | setPrintDtChanges (bool printDtChanges) |
virtual bool | getPrintDtChanges () const |
Protected Attributes | |
Teuchos::RCP < Teuchos::ParameterList > | tscPL_ |
std::vector< int > | outputIndices_ |
Vector of output indices. More... | |
std::vector< Scalar > | outputTimes_ |
Vector of output times. More... | |
int | outputIndexInterval_ |
double | outputTimeInterval_ |
bool | outputAdjustedDt_ |
Flag indicating that dt was adjusted for output. More... | |
Scalar | dtAfterOutput_ |
dt to reinstate after output step. More... | |
Teuchos::RCP < TimeStepControlStrategyComposite < Scalar > > | stepControlStrategy_ |
bool | printDtChanges_ |
TimeStepControl manages the time step size. There several mechanicisms that effect the time step size and handled with this class:
Definition at line 26 of file Tempus_Integrator.hpp.
Tempus::TimeStepControl< Scalar >::TimeStepControl | ( | Teuchos::RCP< Teuchos::ParameterList > | pList = Teuchos::null | ) |
Constructor.
Definition at line 30 of file Tempus_TimeStepControl_impl.hpp.
|
inlinevirtual |
Destructor.
Definition at line 54 of file Tempus_TimeStepControl_decl.hpp.
void Tempus::TimeStepControl< Scalar >::describe | ( | Teuchos::FancyOStream & | out, |
const Teuchos::EVerbosityLevel | verbLevel | ||
) | const |
Definition at line 292 of file Tempus_TimeStepControl_impl.hpp.
std::string Tempus::TimeStepControl< Scalar >::description | ( | ) | const |
Definition at line 284 of file Tempus_TimeStepControl_impl.hpp.
|
inlinevirtual |
Definition at line 103 of file Tempus_TimeStepControl_decl.hpp.
|
inlinevirtual |
Definition at line 93 of file Tempus_TimeStepControl_decl.hpp.
|
inlinevirtual |
Definition at line 101 of file Tempus_TimeStepControl_decl.hpp.
|
inlinevirtual |
Definition at line 111 of file Tempus_TimeStepControl_decl.hpp.
|
inlinevirtual |
Definition at line 91 of file Tempus_TimeStepControl_decl.hpp.
|
inlinevirtual |
Definition at line 97 of file Tempus_TimeStepControl_decl.hpp.
|
inlinevirtual |
Definition at line 105 of file Tempus_TimeStepControl_decl.hpp.
|
inlinevirtual |
Definition at line 125 of file Tempus_TimeStepControl_decl.hpp.
|
inlinevirtual |
Definition at line 123 of file Tempus_TimeStepControl_decl.hpp.
|
inlinevirtual |
Definition at line 113 of file Tempus_TimeStepControl_decl.hpp.
|
inlinevirtual |
Definition at line 107 of file Tempus_TimeStepControl_decl.hpp.
|
inlinevirtual |
Definition at line 99 of file Tempus_TimeStepControl_decl.hpp.
|
inlinevirtual |
Definition at line 109 of file Tempus_TimeStepControl_decl.hpp.
|
inlinevirtual |
Definition at line 95 of file Tempus_TimeStepControl_decl.hpp.
|
virtual |
Determine the time step size.
Definition at line 43 of file Tempus_TimeStepControl_impl.hpp.
Teuchos::RCP< Teuchos::ParameterList > Tempus::TimeStepControl< Scalar >::getNonconstParameterList | ( | ) |
Definition at line 597 of file Tempus_TimeStepControl_impl.hpp.
|
inlinevirtual |
Definition at line 128 of file Tempus_TimeStepControl_decl.hpp.
|
inlinevirtual |
Definition at line 117 of file Tempus_TimeStepControl_decl.hpp.
|
inlinevirtual |
Definition at line 132 of file Tempus_TimeStepControl_decl.hpp.
|
inlinevirtual |
Definition at line 119 of file Tempus_TimeStepControl_decl.hpp.
|
inlinevirtual |
Definition at line 134 of file Tempus_TimeStepControl_decl.hpp.
|
inlinevirtual |
Definition at line 121 of file Tempus_TimeStepControl_decl.hpp.
|
inlinevirtual |
Definition at line 202 of file Tempus_TimeStepControl_decl.hpp.
|
inlinevirtual |
Definition at line 115 of file Tempus_TimeStepControl_decl.hpp.
|
inlinevirtual |
Definition at line 131 of file Tempus_TimeStepControl_decl.hpp.
Teuchos::RCP< const Teuchos::ParameterList > Tempus::TimeStepControl< Scalar >::getValidParameters | ( | ) | const |
Definition at line 533 of file Tempus_TimeStepControl_impl.hpp.
|
virtual |
Check if time step index is within minimum and maximum index.
Definition at line 250 of file Tempus_TimeStepControl_impl.hpp.
|
inlinevirtual |
Definition at line 56 of file Tempus_TimeStepControl_decl.hpp.
|
inlinevirtual |
Definition at line 152 of file Tempus_TimeStepControl_decl.hpp.
|
inlinevirtual |
Definition at line 142 of file Tempus_TimeStepControl_decl.hpp.
|
inlinevirtual |
Definition at line 150 of file Tempus_TimeStepControl_decl.hpp.
|
inlinevirtual |
Definition at line 160 of file Tempus_TimeStepControl_decl.hpp.
|
inlinevirtual |
Definition at line 140 of file Tempus_TimeStepControl_decl.hpp.
|
inlinevirtual |
Definition at line 146 of file Tempus_TimeStepControl_decl.hpp.
|
inlinevirtual |
Definition at line 154 of file Tempus_TimeStepControl_decl.hpp.
|
inlinevirtual |
Definition at line 190 of file Tempus_TimeStepControl_decl.hpp.
|
inlinevirtual |
Definition at line 188 of file Tempus_TimeStepControl_decl.hpp.
|
inlinevirtual |
Definition at line 162 of file Tempus_TimeStepControl_decl.hpp.
|
inlinevirtual |
Definition at line 156 of file Tempus_TimeStepControl_decl.hpp.
|
inlinevirtual |
Definition at line 148 of file Tempus_TimeStepControl_decl.hpp.
|
inlinevirtual |
Definition at line 158 of file Tempus_TimeStepControl_decl.hpp.
|
inlinevirtual |
Definition at line 144 of file Tempus_TimeStepControl_decl.hpp.
|
virtual |
Definition at line 257 of file Tempus_TimeStepControl_impl.hpp.
|
inlinevirtual |
Definition at line 166 of file Tempus_TimeStepControl_decl.hpp.
|
inlinevirtual |
Definition at line 194 of file Tempus_TimeStepControl_decl.hpp.
|
inlinevirtual |
Definition at line 168 of file Tempus_TimeStepControl_decl.hpp.
|
inlinevirtual |
Definition at line 197 of file Tempus_TimeStepControl_decl.hpp.
|
inlinevirtual |
Definition at line 176 of file Tempus_TimeStepControl_decl.hpp.
void Tempus::TimeStepControl< Scalar >::setParameterList | ( | const Teuchos::RCP< Teuchos::ParameterList > & | pl | ) |
Definition at line 304 of file Tempus_TimeStepControl_impl.hpp.
|
inlinevirtual |
Definition at line 200 of file Tempus_TimeStepControl_decl.hpp.
|
inlinevirtual |
Definition at line 164 of file Tempus_TimeStepControl_decl.hpp.
|
virtual |
Set the TimeStepControlStrategy.
Definition at line 462 of file Tempus_TimeStepControl_impl.hpp.
|
virtual |
Check if time is within minimum and maximum time.
Test if time is within range: include timeMin and exclude timeMax.
Definition at line 241 of file Tempus_TimeStepControl_impl.hpp.
Teuchos::RCP< Teuchos::ParameterList > Tempus::TimeStepControl< Scalar >::unsetParameterList | ( | ) |
Definition at line 605 of file Tempus_TimeStepControl_impl.hpp.
|
protected |
dt to reinstate after output step.
Definition at line 215 of file Tempus_TimeStepControl_decl.hpp.
|
protected |
Flag indicating that dt was adjusted for output.
Definition at line 214 of file Tempus_TimeStepControl_decl.hpp.
|
protected |
Definition at line 211 of file Tempus_TimeStepControl_decl.hpp.
|
protected |
Vector of output indices.
Definition at line 209 of file Tempus_TimeStepControl_decl.hpp.
|
protected |
Definition at line 212 of file Tempus_TimeStepControl_decl.hpp.
|
protected |
Vector of output times.
Definition at line 210 of file Tempus_TimeStepControl_decl.hpp.
|
protected |
Definition at line 219 of file Tempus_TimeStepControl_decl.hpp.
|
protected |
Definition at line 217 of file Tempus_TimeStepControl_decl.hpp.
|
protected |
Definition at line 207 of file Tempus_TimeStepControl_decl.hpp.