Cantera  2.1.2
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Integrator Class Reference

Abstract base class for ODE system integrators. More...

#include <Integrator.h>

Inheritance diagram for Integrator:
[legend]

Public Member Functions

 Integrator ()
 Default Constructor. More...
 
virtual ~Integrator ()
 Destructor. More...
 
virtual void setTolerances (doublereal reltol, size_t n, doublereal *abstol)
 Set or reset the number of equations. More...
 
virtual void setTolerances (doublereal reltol, doublereal abstol)
 Set error tolerances. More...
 
virtual void setSensitivityTolerances (doublereal reltol, doublereal abstol)
 Set the sensitivity error tolerances. More...
 
virtual void setProblemType (int probtype)
 Set the problem type. More...
 
virtual void initialize (doublereal t0, FuncEval &func)
 Initialize the integrator for a new problem. More...
 
virtual void reinitialize (doublereal t0, FuncEval &func)
 
virtual void integrate (doublereal tout)
 Integrate the system of equations. More...
 
virtual doublereal step (doublereal tout)
 Integrate the system of equations. More...
 
virtual doublereal & solution (size_t k)
 The current value of the solution of equation k. More...
 
virtual doublereal * solution ()
 The current value of the solution of the system of equations. More...
 
virtual int nEquations () const
 The number of equations. More...
 
virtual int nEvals () const
 The number of function evaluations. More...
 
virtual void setMaxOrder (int n)
 Set the maximum integration order that will be used. More...
 
virtual void setMethod (MethodType t)
 Set the solution method. More...
 
virtual void setIterator (IterType t)
 Set the linear iterator. More...
 
virtual void setMaxStepSize (double hmax)
 Set the maximum step size. More...
 
virtual void setMinStepSize (double hmin)
 Set the minimum step size. More...
 
virtual void setMaxErrTestFails (int n)
 Set the maximum permissible number of error test failures. More...
 
virtual void setMaxSteps (int nmax)
 
virtual void setBandwidth (int N_Upper, int N_Lower)
 
virtual int nSensParams ()
 
virtual double sensitivity (size_t k, size_t p)
 

Private Member Functions

void warn (const std::string &msg) const
 

Private Attributes

doublereal m_dummy
 

Detailed Description

Abstract base class for ODE system integrators.

Definition at line 53 of file Integrator.h.

Constructor & Destructor Documentation

Integrator ( )
inline

Default Constructor.

Definition at line 57 of file Integrator.h.

virtual ~Integrator ( )
inlinevirtual

Destructor.

Definition at line 61 of file Integrator.h.

Member Function Documentation

virtual void setTolerances ( doublereal  reltol,
size_t  n,
doublereal *  abstol 
)
inlinevirtual

Set or reset the number of equations.

Set error tolerances.

Parameters
reltolscalar relative tolerance
nNumber of equations
abstolarray of N absolute tolerance values

Reimplemented in BEulerInt, CVodesIntegrator, and CVodeInt.

Definition at line 73 of file Integrator.h.

Referenced by ImplicitSurfChem::initialize(), and ReactorNet::initialize().

virtual void setTolerances ( doublereal  reltol,
doublereal  abstol 
)
inlinevirtual

Set error tolerances.

Parameters
reltolscalar relative tolerance
abstolscalar absolute tolerance

Reimplemented in BEulerInt, CVodesIntegrator, and CVodeInt.

Definition at line 83 of file Integrator.h.

virtual void setSensitivityTolerances ( doublereal  reltol,
doublereal  abstol 
)
inlinevirtual

Set the sensitivity error tolerances.

Parameters
reltolscalar relative tolerance
abstolscalar absolute tolerance

Reimplemented in CVodesIntegrator.

Definition at line 92 of file Integrator.h.

Referenced by ReactorNet::initialize().

virtual void setProblemType ( int  probtype)
inlinevirtual

Set the problem type.

Parameters
probtypeType of the problem

Reimplemented in BEulerInt, CVodesIntegrator, and CVodeInt.

Definition at line 99 of file Integrator.h.

Referenced by ImplicitSurfChem::ImplicitSurfChem().

virtual void initialize ( doublereal  t0,
FuncEval func 
)
inlinevirtual

Initialize the integrator for a new problem.

Call after all options have been set.

Parameters
t0initial time
funcRHS evaluator object for system of equations.

Reimplemented in CVodesIntegrator, and CVodeInt.

Definition at line 109 of file Integrator.h.

Referenced by ImplicitSurfChem::initialize(), ReactorNet::initialize(), and ImplicitSurfChem::integrate().

virtual void integrate ( doublereal  tout)
inlinevirtual

Integrate the system of equations.

Parameters
toutIntegrate to this time. Note that this is the absolute time value, not a time interval.

Reimplemented in CVodesIntegrator, and CVodeInt.

Definition at line 122 of file Integrator.h.

Referenced by ReactorNet::advance(), ImplicitSurfChem::integrate(), and ImplicitSurfChem::integrate0().

virtual doublereal step ( doublereal  tout)
inlinevirtual

Integrate the system of equations.

Parameters
toutintegrate to this time. Note that this is the absolute time value, not a time interval.

Reimplemented in BEulerInt, CVodesIntegrator, and CVodeInt.

Definition at line 131 of file Integrator.h.

Referenced by ReactorNet::step().

virtual doublereal& solution ( size_t  k)
inlinevirtual

The current value of the solution of equation k.

Reimplemented in BEulerInt, CVodesIntegrator, and CVodeInt.

Definition at line 137 of file Integrator.h.

Referenced by ReactorNet::advance(), ImplicitSurfChem::integrate(), ImplicitSurfChem::integrate0(), ReactorNet::sensitivity(), and ReactorNet::step().

virtual doublereal* solution ( )
inlinevirtual

The current value of the solution of the system of equations.

Reimplemented in BEulerInt, CVodesIntegrator, and CVodeInt.

Definition at line 143 of file Integrator.h.

virtual int nEquations ( ) const
inlinevirtual

The number of equations.

Reimplemented in BEulerInt, CVodesIntegrator, and CVodeInt.

Definition at line 149 of file Integrator.h.

virtual int nEvals ( ) const
inlinevirtual

The number of function evaluations.

Reimplemented in BEulerInt, CVodesIntegrator, and CVodeInt.

Definition at line 155 of file Integrator.h.

virtual void setMaxOrder ( int  n)
inlinevirtual

Set the maximum integration order that will be used.

Reimplemented in CVodesIntegrator, and CVodeInt.

Definition at line 161 of file Integrator.h.

virtual void setMethod ( MethodType  t)
inlinevirtual

Set the solution method.

Reimplemented in CVodesIntegrator, and CVodeInt.

Definition at line 166 of file Integrator.h.

Referenced by ImplicitSurfChem::ImplicitSurfChem().

virtual void setIterator ( IterType  t)
inlinevirtual

Set the linear iterator.

Reimplemented in BEulerInt, CVodesIntegrator, and CVodeInt.

Definition at line 171 of file Integrator.h.

Referenced by ImplicitSurfChem::ImplicitSurfChem().

virtual void setMaxStepSize ( double  hmax)
inlinevirtual

Set the maximum step size.

Reimplemented in CVodesIntegrator, and CVodeInt.

Definition at line 176 of file Integrator.h.

Referenced by ReactorNet::initialize(), and ImplicitSurfChem::integrate().

virtual void setMinStepSize ( double  hmin)
inlinevirtual

Set the minimum step size.

Reimplemented in CVodesIntegrator, and CVodeInt.

Definition at line 181 of file Integrator.h.

virtual void setMaxErrTestFails ( int  n)
inlinevirtual

Set the maximum permissible number of error test failures.

Reimplemented in CVodesIntegrator, and CVodeInt.

Definition at line 186 of file Integrator.h.

Referenced by ReactorNet::initialize().


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