Tempus
Version of the Day
Time Integration
|
Runge-Kutta methods. More...
#include <Tempus_RKButcherTableau.hpp>
Public Member Functions | |
RKButcherTableau (std::string stepperType, const Teuchos::SerialDenseMatrix< int, Scalar > &A, const Teuchos::SerialDenseVector< int, Scalar > &b, const Teuchos::SerialDenseVector< int, Scalar > &c, const int order, const int orderMin, const int orderMax, const Teuchos::SerialDenseVector< int, Scalar > &bstar=Teuchos::SerialDenseVector< int, Scalar >(), bool checkC=true) | |
virtual std::size_t | numStages () const |
Return the number of stages. More... | |
virtual const Teuchos::SerialDenseMatrix < int, Scalar > & | A () const |
Return the matrix coefficients. More... | |
virtual const Teuchos::SerialDenseVector < int, Scalar > & | b () const |
Return the vector of quadrature weights. More... | |
virtual const Teuchos::SerialDenseVector < int, Scalar > & | bstar () const |
Return the vector of quadrature weights for embedded methods. More... | |
virtual const Teuchos::SerialDenseVector < int, Scalar > & | c () const |
Return the vector of stage positions. More... | |
virtual int | order () const |
Return the order. More... | |
virtual int | orderMin () const |
Return the minimum order. More... | |
virtual int | orderMax () const |
Return the maximum order. More... | |
virtual bool | isImplicit () const |
Return true if the RK method is implicit. More... | |
virtual bool | isDIRK () const |
Return true if the RK method is Diagonally Implicit. More... | |
virtual bool | isEmbedded () const |
Return true if the RK method has embedded capabilities. More... | |
virtual bool | isTVD () const |
Return true if the RK method is TVD. More... | |
virtual Scalar | getTVDCoeff () const |
Return TVD coefficient of RK method. More... | |
virtual void | setTVDCoeff (const Scalar a) |
set TVD coefficient of RK method More... | |
virtual void | setTVD (bool a) |
virtual void | setEmbedded (bool a) |
bool | operator== (const RKButcherTableau &t) const |
bool | operator!= (const RKButcherTableau &t) const |
Public Member Functions inherited from Teuchos::Describable | |
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) |
Public Member Functions inherited from Teuchos::VerboseObject< RKButcherTableau< Scalar > > | |
VerboseObject (const EVerbosityLevel verbLevel=VERB_DEFAULT, const RCP< FancyOStream > &oStream=Teuchos::null) | |
virtual const VerboseObject & | setVerbLevel (const EVerbosityLevel verbLevel) const |
virtual const VerboseObject & | setOverridingVerbLevel (const EVerbosityLevel verbLevel) const |
virtual EVerbosityLevel | getVerbLevel () const |
TEUCHOSPARAMETERLIST_LIB_DLL_EXPORT RCP< const ParameterList > | getValidVerboseObjectSublist () |
TEUCHOSPARAMETERLIST_LIB_DLL_EXPORT void | setupVerboseObjectSublist (ParameterList *paramList) |
TEUCHOSPARAMETERLIST_LIB_DLL_EXPORT void | readVerboseObjectSublist (ParameterList *paramList, RCP< FancyOStream > *oStream, EVerbosityLevel *verbLevel) |
void | readVerboseObjectSublist (ParameterList *paramList, VerboseObject< ObjectType > *verboseObject) |
Public Member Functions inherited from Teuchos::VerboseObjectBase | |
virtual | ~VerboseObjectBase () |
VerboseObjectBase (const RCP< FancyOStream > &oStream=Teuchos::null) | |
virtual const VerboseObjectBase & | setOStream (const RCP< FancyOStream > &oStream) const |
virtual const VerboseObjectBase & | setOverridingOStream (const RCP< FancyOStream > &oStream) const |
virtual VerboseObjectBase & | setLinePrefix (const std::string &linePrefix) |
virtual RCP< FancyOStream > | getOStream () const |
virtual RCP< FancyOStream > | getOverridingOStream () const |
virtual std::string | getLinePrefix () const |
virtual OSTab | getOSTab (const int tabs=1, const std::string &linePrefix="") const |
Protected Member Functions | |
void | set_isImplicit () |
void | set_isDIRK () |
DIRK is defined as if a_ij = 0 for j>i and a_ii != 0 for at least one i. More... | |
Protected Member Functions inherited from Teuchos::VerboseObject< RKButcherTableau< Scalar > > | |
void | initializeVerboseObject (const EVerbosityLevel verbLevel=VERB_DEFAULT, const RCP< FancyOStream > &oStream=Teuchos::null) |
Protected Member Functions inherited from Teuchos::VerboseObjectBase | |
void | initializeVerboseObjectBase (const RCP< FancyOStream > &oStream=Teuchos::null) |
virtual void | informUpdatedVerbosityState () const |
Protected Attributes | |
std::string | description_ |
Teuchos::SerialDenseMatrix < int, Scalar > | A_ |
Teuchos::SerialDenseVector < int, Scalar > | b_ |
Teuchos::SerialDenseVector < int, Scalar > | c_ |
int | order_ |
int | orderMin_ |
int | orderMax_ |
bool | isImplicit_ |
bool | isDIRK_ |
bool | isEmbedded_ |
bool | isTVD_ = false |
Teuchos::SerialDenseVector < int, Scalar > | bstar_ |
Scalar | tvdCoeff_ = 0 |
Private Member Functions | |
RKButcherTableau () | |
virtual std::string | description () const |
virtual void | describe (Teuchos::FancyOStream &out, const Teuchos::EVerbosityLevel verbLevel) const |
Additional Inherited Members | |
Static Public Member Functions inherited from Teuchos::VerboseObject< RKButcherTableau< Scalar > > | |
static void | setDefaultVerbLevel (const EVerbosityLevel defaultVerbLevel) |
static EVerbosityLevel | getDefaultVerbLevel () |
Static Public Member Functions inherited from Teuchos::VerboseObjectBase | |
static void | setDefaultOStream (const RCP< FancyOStream > &defaultOStream) |
static RCP< FancyOStream > | getDefaultOStream () |
Static Public Attributes inherited from Teuchos::Describable | |
static const EVerbosityLevel | verbLevel_default |
Runge-Kutta methods.
This base class specifies the Butcher tableau which defines the Runge-Kutta (RK) method. Both explicit and implicit RK methods can be specified here, and of arbitrary number of stages and orders. Embedded methods are also supported.
Since this is a generic RK class, no low-storage methods are incorporated here, however any RK method with a Butcher tableau can be created with the base class.
There are over 40 derived RK methods that have been implemented, ranging from first order and eight order, and from single stage to 5 stages.
This class was taken and modified from Rythmos' RKButcherTableau class.
Definition at line 45 of file Tempus_RKButcherTableau.hpp.
|
inline |
Definition at line 51 of file Tempus_RKButcherTableau.hpp.
|
private |
|
inlinevirtual |
Return the number of stages.
Definition at line 119 of file Tempus_RKButcherTableau.hpp.
|
inlinevirtual |
Return the matrix coefficients.
Definition at line 121 of file Tempus_RKButcherTableau.hpp.
|
inlinevirtual |
Return the vector of quadrature weights.
Definition at line 124 of file Tempus_RKButcherTableau.hpp.
|
inlinevirtual |
Return the vector of quadrature weights for embedded methods.
Definition at line 127 of file Tempus_RKButcherTableau.hpp.
|
inlinevirtual |
Return the vector of stage positions.
Definition at line 130 of file Tempus_RKButcherTableau.hpp.
|
inlinevirtual |
Return the order.
Definition at line 133 of file Tempus_RKButcherTableau.hpp.
|
inlinevirtual |
Return the minimum order.
Definition at line 135 of file Tempus_RKButcherTableau.hpp.
|
inlinevirtual |
Return the maximum order.
Definition at line 137 of file Tempus_RKButcherTableau.hpp.
|
inlinevirtual |
Return true if the RK method is implicit.
Definition at line 139 of file Tempus_RKButcherTableau.hpp.
|
inlinevirtual |
Return true if the RK method is Diagonally Implicit.
Definition at line 141 of file Tempus_RKButcherTableau.hpp.
|
inlinevirtual |
Return true if the RK method has embedded capabilities.
Definition at line 143 of file Tempus_RKButcherTableau.hpp.
|
inlinevirtual |
Return true if the RK method is TVD.
Definition at line 145 of file Tempus_RKButcherTableau.hpp.
|
inlinevirtual |
Return TVD coefficient of RK method.
Definition at line 147 of file Tempus_RKButcherTableau.hpp.
|
inlinevirtual |
set TVD coefficient of RK method
Definition at line 149 of file Tempus_RKButcherTableau.hpp.
|
inlinevirtual |
Definition at line 150 of file Tempus_RKButcherTableau.hpp.
|
inlinevirtual |
Definition at line 151 of file Tempus_RKButcherTableau.hpp.
|
inlinevirtual |
Reimplemented from Teuchos::Describable.
Definition at line 156 of file Tempus_RKButcherTableau.hpp.
|
inlinevirtual |
Reimplemented from Teuchos::Describable.
Definition at line 158 of file Tempus_RKButcherTableau.hpp.
|
inline |
Definition at line 180 of file Tempus_RKButcherTableau.hpp.
|
inline |
Definition at line 209 of file Tempus_RKButcherTableau.hpp.
|
inlineprotected |
Definition at line 219 of file Tempus_RKButcherTableau.hpp.
|
inlineprotected |
DIRK is defined as if a_ij = 0 for j>i and a_ii != 0 for at least one i.
Definition at line 227 of file Tempus_RKButcherTableau.hpp.
|
protected |
Definition at line 238 of file Tempus_RKButcherTableau.hpp.
|
protected |
Definition at line 240 of file Tempus_RKButcherTableau.hpp.
|
protected |
Definition at line 241 of file Tempus_RKButcherTableau.hpp.
|
protected |
Definition at line 242 of file Tempus_RKButcherTableau.hpp.
|
protected |
Definition at line 243 of file Tempus_RKButcherTableau.hpp.
|
protected |
Definition at line 244 of file Tempus_RKButcherTableau.hpp.
|
protected |
Definition at line 245 of file Tempus_RKButcherTableau.hpp.
|
protected |
Definition at line 246 of file Tempus_RKButcherTableau.hpp.
|
protected |
Definition at line 247 of file Tempus_RKButcherTableau.hpp.
|
protected |
Definition at line 248 of file Tempus_RKButcherTableau.hpp.
|
protected |
Definition at line 249 of file Tempus_RKButcherTableau.hpp.
|
protected |
Definition at line 250 of file Tempus_RKButcherTableau.hpp.
|
protected |
Definition at line 251 of file Tempus_RKButcherTableau.hpp.