Overture  Version 25
Public Member Functions | Protected Attributes | List of all members
MultigridEquationSolver Class Reference

#include <MultigridEquationSolver.h>

Inheritance diagram for MultigridEquationSolver:
Inheritance graph
[legend]
Collaboration diagram for MultigridEquationSolver:
Collaboration graph
[legend]

Public Member Functions

 MultigridEquationSolver (Oges &oges_)
 
virtual ~MultigridEquationSolver ()
 
virtual int solve (realCompositeGridFunction &u, realCompositeGridFunction &f)
 
virtual int setCoefficientsAndBoundaryConditions (realCompositeGridFunction &coeff, const IntegerArray &boundaryConditions, const RealArray &bcData)
 Use this function in combination with setGrid(..)
 
virtual int setCoefficientArray (realCompositeGridFunction &coeff, const IntegerArray &boundaryConditions=Overture::nullIntArray(), const RealArray &bcData=Overture::nullRealArray())
 
virtual int setEquationAndBoundaryConditions (OgesParameters::EquationEnum equation, CompositeGridOperators &op, const IntegerArray &boundaryConditions, const RealArray &bcData, RealArray &constantCoeff=Overture::nullRealArray(), realCompositeGridFunction *variableCoeff=NULL)
 
virtual int setGrid (CompositeGrid &cg)
 Supply a new grid. This will build the multigrid levels.
 
virtual int set (MultigridCompositeGrid &mgcg)
 Set the MultigridCompositeGrid to use: (for use with Ogmg)
 
virtual int printStatistics (FILE *file=stdout) const
 
virtual real sizeOf (FILE *file=NULL)
 
- Public Member Functions inherited from EquationSolver
 EquationSolver (Oges &oges_)
 
virtual ~EquationSolver ()
 
virtual int saveBinaryMatrix (aString filename00, realCompositeGridFunction &u, realCompositeGridFunction &f)
 
const aStringgetName () const
 
virtual real getMaximumResidual ()
 
virtual int setExtraEquationValues (realCompositeGridFunction &f, real *value)
 
virtual int getExtraEquationValues (const realCompositeGridFunction &u, real *value)
 
virtual int evaluateExtraEquation (const realCompositeGridFunction &u, real &value, int extraEquation=0)
 
virtual int evaluateExtraEquation (const realCompositeGridFunction &u, real &value, real &sumOfExtraEquationCoefficients, int extraEquation=0)
 
virtual int allocateMatrix (int, int, int, int)
 
virtual int setMatrixElement (int, int, int, real)
 
virtual int displayMatrix ()
 

Protected Attributes

Ogmg ogmg
 
- Protected Attributes inherited from EquationSolver
Ogesoges
 
OgesParametersparameters
 
aString name
 
int numberOfEquations
 
int numberOfNonzeros
 
real maximumResidual
 
int numberOfIterations
 
int solverMethod
 
int preconditioner
 
int matrixOrdering
 
int numberOfIncompleteLULevels
 
int gmresRestartLength
 

Constructor & Destructor Documentation

MultigridEquationSolver::MultigridEquationSolver ( Oges oges_)
MultigridEquationSolver::~MultigridEquationSolver ( )
virtual

Member Function Documentation

int MultigridEquationSolver::printStatistics ( FILE *  file = stdout) const
virtual

Reimplemented from EquationSolver.

int MultigridEquationSolver::set ( MultigridCompositeGrid mgcg)
virtual

Set the MultigridCompositeGrid to use: (for use with Ogmg)

Reimplemented from EquationSolver.

References ogmg, and Ogmg::set().

int MultigridEquationSolver::setCoefficientArray ( realCompositeGridFunction coeff,
const IntegerArray boundaryConditions = Overture::nullIntArray(),
const RealArray bcData = Overture::nullRealArray() 
)
virtual

Reimplemented from EquationSolver.

References ogmg, and Ogmg::setCoefficientArray().

int MultigridEquationSolver::setCoefficientsAndBoundaryConditions ( realCompositeGridFunction coeff,
const IntegerArray boundaryConditions,
const RealArray bcData 
)
virtual
int MultigridEquationSolver::setEquationAndBoundaryConditions ( OgesParameters::EquationEnum  equation,
CompositeGridOperators op,
const IntegerArray boundaryConditions,
const RealArray bcData,
RealArray constantCoeff = Overture::nullRealArray(),
realCompositeGridFunction variableCoeff = NULL 
)
virtual
int MultigridEquationSolver::setGrid ( CompositeGrid cg)
virtual
real MultigridEquationSolver::sizeOf ( FILE *  file = NULL)
virtual

Reimplemented from EquationSolver.

References ogmg, and Ogmg::sizeOf().

int MultigridEquationSolver::solve ( realCompositeGridFunction u,
realCompositeGridFunction f 
)
virtual

Member Data Documentation

Ogmg MultigridEquationSolver::ogmg
protected

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