dune-fem  2.8-git
Public Types | Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
DuneODE::ROWRungeKuttaSolver< HelmholtzOperator, NonlinearSolver, TimeStepControl > Class Template Reference

ROW RungeKutta ODE solver. More...

#include <dune/fem/solver/rungekutta/row.hh>

Inheritance diagram for DuneODE::ROWRungeKuttaSolver< HelmholtzOperator, NonlinearSolver, TimeStepControl >:
Inheritance graph

Public Types

typedef HelmholtzOperator HelmholtzOperatorType
 
typedef BaseType::TimeStepControlType TimeStepControlType
 
typedef TimeStepControlType::TimeProviderType TimeProviderType
 
typedef TimeStepControlType::ParameterType TimeStepControlParameterType
 
typedef BaseType::NonlinearSolverParameterType NonlinearSolverParameterType
 
typedef NonlinearSolverParameterType ParameterType
 
typedef BaseType::MonitorType MonitorType
 
typedef BaseType::DestinationType DestinationType
 
typedef NonlinearSolver NonlinearSolverType
 
typedef NoROWRungeKuttaSourceTerm SourceTermType
 
typedef NonlinearSolverType::LinearInverseOperatorType LinearInverseOperatorType
 
typedef HelmholtzOperator::SpaceOperatorType::PreconditionOperatorType PreconditionOperatorType
 

Public Member Functions

 ROWRungeKuttaSolver (HelmholtzOperatorType &helmholtzOp, TimeProviderType &timeProvider, int order, const TimeStepControlParameterType &tscParam, const NonlinearSolverParameterType &parameter)
 constructor More...
 
 ROWRungeKuttaSolver (HelmholtzOperatorType &helmholtzOp, TimeProviderType &timeProvider, int order, const Dune::Fem::ParameterReader &parameter=Dune::Fem::Parameter::container())
 
 ROWRungeKuttaSolver (HelmholtzOperatorType &helmholtzOp, TimeProviderType &timeProvider, const TimeStepControlParameterType &tscParam, const NonlinearSolverParameterType &parameter)
 constructor More...
 
 ROWRungeKuttaSolver (HelmholtzOperatorType &helmholtzOp, TimeProviderType &timeProvider, const Dune::Fem::ParameterReader &parameter=Dune::Fem::Parameter::container())
 
void setup (const ButcherTable &butcherTable)
 
void initialize (const DestinationType &U0)
 apply operator once to get dt estimate More...
 
void solve (DestinationType &U, MonitorType &monitor)
 solve the system More...
 
virtual void solve (DestinationType &u)
 solve $\partial_t u = L(u)$ where $L$ is the internal operator. More...
 
virtual void solve (DestinationType &u, MonitorType &monitor)=0
 solve $\partial_t u = L(u)$ where $L$ is the internal operator. More...
 
virtual void solve (DestinationType &u)
 solve $\partial_t u = L(u)$ where $L$ is the internal operator. More...
 
int stages () const
 
void description (std::ostream &out) const
 print description of ODE solver to out stream More...
 

Protected Member Functions

double infNorm (const DestinationType &U, const DestinationType &Uerr) const
 

Static Protected Member Functions

static ROWSimpleButcherTable< double > butcherTable (int order)
 

Protected Attributes

HelmholtzOperatorTypehelmholtzOp_
 
LinearInverseOperatorType linearSolver_
 
ImplicitRungeKuttaTimeStepControl timeStepControl_
 
NoROWRungeKuttaSourceTerm sourceTerm_
 
int stages_
 
double delta_
 
Dune::DynamicMatrix< double > alpha_
 
Dune::DynamicMatrix< double > alpha2_
 
Dune::DynamicVector< double > gamma_
 
Dune::DynamicVector< double > beta_
 
Dune::DynamicVector< double > c_
 
DestinationType rhs_
 
DestinationType temp_
 
std::vector< DestinationType * > update_
 
const int maxLinearIterations_
 
const PreconditionOperatorTypepreconditioner_
 

Detailed Description

template<class HelmholtzOperator, class NonlinearSolver, class TimeStepControl = ImplicitRungeKuttaTimeStepControl>
class DuneODE::ROWRungeKuttaSolver< HelmholtzOperator, NonlinearSolver, TimeStepControl >

ROW RungeKutta ODE solver.

Member Typedef Documentation

◆ DestinationType

◆ HelmholtzOperatorType

template<class HelmholtzOperator , class NonlinearSolver , class TimeStepControl = ImplicitRungeKuttaTimeStepControl>
typedef HelmholtzOperator DuneODE::ROWRungeKuttaSolver< HelmholtzOperator, NonlinearSolver, TimeStepControl >::HelmholtzOperatorType

◆ LinearInverseOperatorType

typedef NonlinearSolverType::LinearInverseOperatorType DuneODE::BasicROWRungeKuttaSolver< HelmholtzOperator, NonlinearSolver, ImplicitRungeKuttaTimeStepControl , NoROWRungeKuttaSourceTerm >::LinearInverseOperatorType
inherited

◆ MonitorType

◆ NonlinearSolverParameterType

template<class HelmholtzOperator , class NonlinearSolver , class TimeStepControl = ImplicitRungeKuttaTimeStepControl>
typedef BaseType::NonlinearSolverParameterType DuneODE::ROWRungeKuttaSolver< HelmholtzOperator, NonlinearSolver, TimeStepControl >::NonlinearSolverParameterType

◆ NonlinearSolverType

typedef NonlinearSolver DuneODE::BasicROWRungeKuttaSolver< HelmholtzOperator, NonlinearSolver, ImplicitRungeKuttaTimeStepControl , NoROWRungeKuttaSourceTerm >::NonlinearSolverType
inherited

◆ ParameterType

template<class HelmholtzOperator , class NonlinearSolver , class TimeStepControl = ImplicitRungeKuttaTimeStepControl>
typedef NonlinearSolverParameterType DuneODE::ROWRungeKuttaSolver< HelmholtzOperator, NonlinearSolver, TimeStepControl >::ParameterType

◆ PreconditionOperatorType

typedef HelmholtzOperator::SpaceOperatorType::PreconditionOperatorType DuneODE::BasicROWRungeKuttaSolver< HelmholtzOperator, NonlinearSolver, ImplicitRungeKuttaTimeStepControl , NoROWRungeKuttaSourceTerm >::PreconditionOperatorType
inherited

◆ SourceTermType

◆ TimeProviderType

template<class HelmholtzOperator , class NonlinearSolver , class TimeStepControl = ImplicitRungeKuttaTimeStepControl>
typedef TimeStepControlType::TimeProviderType DuneODE::ROWRungeKuttaSolver< HelmholtzOperator, NonlinearSolver, TimeStepControl >::TimeProviderType

◆ TimeStepControlParameterType

template<class HelmholtzOperator , class NonlinearSolver , class TimeStepControl = ImplicitRungeKuttaTimeStepControl>
typedef TimeStepControlType::ParameterType DuneODE::ROWRungeKuttaSolver< HelmholtzOperator, NonlinearSolver, TimeStepControl >::TimeStepControlParameterType

◆ TimeStepControlType

template<class HelmholtzOperator , class NonlinearSolver , class TimeStepControl = ImplicitRungeKuttaTimeStepControl>
typedef BaseType::TimeStepControlType DuneODE::ROWRungeKuttaSolver< HelmholtzOperator, NonlinearSolver, TimeStepControl >::TimeStepControlType

Constructor & Destructor Documentation

◆ ROWRungeKuttaSolver() [1/4]

template<class HelmholtzOperator , class NonlinearSolver , class TimeStepControl = ImplicitRungeKuttaTimeStepControl>
DuneODE::ROWRungeKuttaSolver< HelmholtzOperator, NonlinearSolver, TimeStepControl >::ROWRungeKuttaSolver ( HelmholtzOperatorType helmholtzOp,
TimeProviderType timeProvider,
int  order,
const TimeStepControlParameterType tscParam,
const NonlinearSolverParameterType parameter 
)
inline

constructor

Parameters
[in]helmholtzOpHelmholtz operator $L$
[in]timeProvidertime provider
[in]orderorder of butcher table to use
[in]tscParamparameters for implicit time step control
[in]nlsParamparameters for non linear solver control

◆ ROWRungeKuttaSolver() [2/4]

template<class HelmholtzOperator , class NonlinearSolver , class TimeStepControl = ImplicitRungeKuttaTimeStepControl>
DuneODE::ROWRungeKuttaSolver< HelmholtzOperator, NonlinearSolver, TimeStepControl >::ROWRungeKuttaSolver ( HelmholtzOperatorType helmholtzOp,
TimeProviderType timeProvider,
int  order,
const Dune::Fem::ParameterReader parameter = Dune::Fem::Parameter::container() 
)
inline

◆ ROWRungeKuttaSolver() [3/4]

template<class HelmholtzOperator , class NonlinearSolver , class TimeStepControl = ImplicitRungeKuttaTimeStepControl>
DuneODE::ROWRungeKuttaSolver< HelmholtzOperator, NonlinearSolver, TimeStepControl >::ROWRungeKuttaSolver ( HelmholtzOperatorType helmholtzOp,
TimeProviderType timeProvider,
const TimeStepControlParameterType tscParam,
const NonlinearSolverParameterType parameter 
)
inline

constructor

Parameters
[in]helmholtzOpHelmholtz operator $L$
[in]timeProvidertime provider
[in]tscParamparameters for implicit time step control
[in]nlsParamparameters for non linear solver control

◆ ROWRungeKuttaSolver() [4/4]

template<class HelmholtzOperator , class NonlinearSolver , class TimeStepControl = ImplicitRungeKuttaTimeStepControl>
DuneODE::ROWRungeKuttaSolver< HelmholtzOperator, NonlinearSolver, TimeStepControl >::ROWRungeKuttaSolver ( HelmholtzOperatorType helmholtzOp,
TimeProviderType timeProvider,
const Dune::Fem::ParameterReader parameter = Dune::Fem::Parameter::container() 
)
inline

Member Function Documentation

◆ butcherTable()

template<class HelmholtzOperator , class NonlinearSolver , class TimeStepControl = ImplicitRungeKuttaTimeStepControl>
static ROWSimpleButcherTable< double > DuneODE::ROWRungeKuttaSolver< HelmholtzOperator, NonlinearSolver, TimeStepControl >::butcherTable ( int  order)
inlinestaticprotected

◆ description()

void DuneODE::BasicROWRungeKuttaSolver< HelmholtzOperator, NonlinearSolver, ImplicitRungeKuttaTimeStepControl , NoROWRungeKuttaSourceTerm >::description ( std::ostream &  out) const
inlinevirtualinherited

print description of ODE solver to out stream

Implements DuneODE::OdeSolverInterface< HelmholtzOperator::DomainFunctionType >.

◆ infNorm()

double DuneODE::BasicROWRungeKuttaSolver< HelmholtzOperator, NonlinearSolver, ImplicitRungeKuttaTimeStepControl , NoROWRungeKuttaSourceTerm >::infNorm ( const DestinationType U,
const DestinationType Uerr 
) const
inlineprotectedinherited

◆ initialize()

void DuneODE::BasicROWRungeKuttaSolver< HelmholtzOperator, NonlinearSolver, ImplicitRungeKuttaTimeStepControl , NoROWRungeKuttaSourceTerm >::initialize ( const DestinationType U0)
inlinevirtualinherited

apply operator once to get dt estimate

Implements DuneODE::OdeSolverInterface< HelmholtzOperator::DomainFunctionType >.

◆ setup()

void DuneODE::BasicROWRungeKuttaSolver< HelmholtzOperator, NonlinearSolver, ImplicitRungeKuttaTimeStepControl , NoROWRungeKuttaSourceTerm >::setup ( const ButcherTable &  butcherTable)
inlineinherited

◆ solve() [1/4]

virtual void DuneODE::OdeSolverInterface< HelmholtzOperator::DomainFunctionType >::solve ( DestinationType u)
inlinevirtualinherited

solve $\partial_t u = L(u)$ where $L$ is the internal operator.

Parameters
[in]uunknown to solve for

◆ solve() [2/4]

virtual void DuneODE::OdeSolverInterface< DestinationImp >::solve
inlineinherited

solve $\partial_t u = L(u)$ where $L$ is the internal operator.

Parameters
[in]uunknown to solve for

◆ solve() [3/4]

void DuneODE::BasicROWRungeKuttaSolver< HelmholtzOperator, NonlinearSolver, ImplicitRungeKuttaTimeStepControl , NoROWRungeKuttaSourceTerm >::solve ( DestinationType U,
MonitorType monitor 
)
inlinevirtualinherited

◆ solve() [4/4]

virtual void DuneODE::OdeSolverInterface< DestinationImp >::solve
inherited

solve $\partial_t u = L(u)$ where $L$ is the internal operator.

Parameters
[in]uunknown to solve for
[in]monitorMonitor to get some inside information

◆ stages()

int DuneODE::BasicROWRungeKuttaSolver< HelmholtzOperator, NonlinearSolver, ImplicitRungeKuttaTimeStepControl , NoROWRungeKuttaSourceTerm >::stages ( ) const
inlineinherited

Member Data Documentation

◆ alpha2_

Dune::DynamicMatrix< double > DuneODE::BasicROWRungeKuttaSolver< HelmholtzOperator, NonlinearSolver, ImplicitRungeKuttaTimeStepControl , NoROWRungeKuttaSourceTerm >::alpha2_
protectedinherited

◆ alpha_

Dune::DynamicMatrix< double > DuneODE::BasicROWRungeKuttaSolver< HelmholtzOperator, NonlinearSolver, ImplicitRungeKuttaTimeStepControl , NoROWRungeKuttaSourceTerm >::alpha_
protectedinherited

◆ beta_

Dune::DynamicVector< double > DuneODE::BasicROWRungeKuttaSolver< HelmholtzOperator, NonlinearSolver, ImplicitRungeKuttaTimeStepControl , NoROWRungeKuttaSourceTerm >::beta_
protectedinherited

◆ c_

Dune::DynamicVector< double > DuneODE::BasicROWRungeKuttaSolver< HelmholtzOperator, NonlinearSolver, ImplicitRungeKuttaTimeStepControl , NoROWRungeKuttaSourceTerm >::c_
protectedinherited

◆ delta_

double DuneODE::BasicROWRungeKuttaSolver< HelmholtzOperator, NonlinearSolver, ImplicitRungeKuttaTimeStepControl , NoROWRungeKuttaSourceTerm >::delta_
protectedinherited

◆ gamma_

Dune::DynamicVector< double > DuneODE::BasicROWRungeKuttaSolver< HelmholtzOperator, NonlinearSolver, ImplicitRungeKuttaTimeStepControl , NoROWRungeKuttaSourceTerm >::gamma_
protectedinherited

◆ helmholtzOp_

HelmholtzOperatorType& DuneODE::BasicROWRungeKuttaSolver< HelmholtzOperator, NonlinearSolver, ImplicitRungeKuttaTimeStepControl , NoROWRungeKuttaSourceTerm >::helmholtzOp_
protectedinherited

◆ linearSolver_

LinearInverseOperatorType DuneODE::BasicROWRungeKuttaSolver< HelmholtzOperator, NonlinearSolver, ImplicitRungeKuttaTimeStepControl , NoROWRungeKuttaSourceTerm >::linearSolver_
protectedinherited

◆ maxLinearIterations_

const int DuneODE::BasicROWRungeKuttaSolver< HelmholtzOperator, NonlinearSolver, ImplicitRungeKuttaTimeStepControl , NoROWRungeKuttaSourceTerm >::maxLinearIterations_
protectedinherited

◆ preconditioner_

const PreconditionOperatorType* DuneODE::BasicROWRungeKuttaSolver< HelmholtzOperator, NonlinearSolver, ImplicitRungeKuttaTimeStepControl , NoROWRungeKuttaSourceTerm >::preconditioner_
protectedinherited

◆ rhs_

DestinationType DuneODE::BasicROWRungeKuttaSolver< HelmholtzOperator, NonlinearSolver, ImplicitRungeKuttaTimeStepControl , NoROWRungeKuttaSourceTerm >::rhs_
protectedinherited

◆ sourceTerm_

NoROWRungeKuttaSourceTerm DuneODE::BasicROWRungeKuttaSolver< HelmholtzOperator, NonlinearSolver, ImplicitRungeKuttaTimeStepControl , NoROWRungeKuttaSourceTerm >::sourceTerm_
protectedinherited

◆ stages_

int DuneODE::BasicROWRungeKuttaSolver< HelmholtzOperator, NonlinearSolver, ImplicitRungeKuttaTimeStepControl , NoROWRungeKuttaSourceTerm >::stages_
protectedinherited

◆ temp_

DestinationType DuneODE::BasicROWRungeKuttaSolver< HelmholtzOperator, NonlinearSolver, ImplicitRungeKuttaTimeStepControl , NoROWRungeKuttaSourceTerm >::temp_
protectedinherited

◆ timeStepControl_

ImplicitRungeKuttaTimeStepControl DuneODE::BasicROWRungeKuttaSolver< HelmholtzOperator, NonlinearSolver, ImplicitRungeKuttaTimeStepControl , NoROWRungeKuttaSourceTerm >::timeStepControl_
protectedinherited

◆ update_

std::vector< DestinationType * > DuneODE::BasicROWRungeKuttaSolver< HelmholtzOperator, NonlinearSolver, ImplicitRungeKuttaTimeStepControl , NoROWRungeKuttaSourceTerm >::update_
protectedinherited

The documentation for this class was generated from the following file: