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

#include <ErrorEstimator.h>

Collaboration diagram for ErrorEstimator:
Collaboration graph
[legend]

Public Types

enum  { defaultNumberOfSmooths =-99999 }
 
enum  ErrorFunctionEnum {
  twoSolidCircles, diagonal, cross, plus,
  hollowCircle
}
 
enum  FunctionEnum { topHat }
 

Public Member Functions

 ErrorEstimator (InterpolateRefinements &interpolateRefinements)
 
 ~ErrorEstimator ()
 
int computeErrorFunction (realGridCollectionFunction &error, ErrorFunctionEnum type)
 
int computeFunction (realGridCollectionFunction &u, FunctionEnum type, real t=0.)
 
int computeErrorFunction (realCompositeGridFunction &u, realCompositeGridFunction &error)
 
int computeErrorFunction (realGridCollectionFunction &u, realGridCollectionFunction &error)
 
int computeAndSmoothErrorFunction (realCompositeGridFunction &u, realCompositeGridFunction &error, int numberOfSmooths=defaultNumberOfSmooths)
 
int smoothErrorFunction (realCompositeGridFunction &error, int numberOfSmooths=defaultNumberOfSmooths, CompositeGridOperators *op=NULL)
 
int displayParameters (FILE *file=stdout) const
 
int plotErrorPoints (realGridCollectionFunction &error, real errorThreshhold, GL_GraphicsInterface &ps, PlotStuffParameters &psp)
 
int setDefaultNumberOfSmooths (int numberOfSmooths)
 
int setMaximumNumberOfRefinementLevels (int maxLevels)
 Set the maximum number of refinement levels.
 
int setScaleFactor (RealArray &scaleFactor)
 
int setTopHatParameters (real topHatCentre[3], real topHatVelocity[3], real topHatRadius, real topHatRadiusX_=0., real topHatRadiusY_=0., real topHatRadiusZ_=0.)
 
int setWeights (real weightFirstDifference, real weightSecondDifference)
 
int get (const GenericDataBase &dir, const aString &name)
 
int put (GenericDataBase &dir, const aString &name) const
 
int update (GenericGraphicsInterface &gi)
 

Public Attributes

int debug
 

Protected Member Functions

int interpolateAndApplyBoundaryConditions (realCompositeGridFunction &error, CompositeGridOperators &op)
 
int smooth (realGridCollectionFunction &error)
 
void openDebugFile ()
 

Protected Attributes

real weightFirstDifference
 
real weightSecondDifference
 
real topHatCentre [3]
 
real topHatVelocity [3]
 
real topHatRadius
 
real topHatRadiusX
 
real topHatRadiusY
 
real topHatRadiusZ
 
RealArray scaleFactor
 
InterpolateRefinementsinterpolateRefinements
 
int defaultNumberOfSmoothingSteps
 
int maximumNumberOfRefinementLevels
 
int myid
 
FILE * debugFile
 

Member Enumeration Documentation

anonymous enum
Enumerator
defaultNumberOfSmooths 
Enumerator
twoSolidCircles 
diagonal 
cross 
plus 
hollowCircle 
Enumerator
topHat 

Constructor & Destructor Documentation

ErrorEstimator::ErrorEstimator ( InterpolateRefinements interpolateRefinements)
ErrorEstimator::~ErrorEstimator ( )

Member Function Documentation

int ErrorEstimator::computeAndSmoothErrorFunction ( realCompositeGridFunction u,
realCompositeGridFunction error,
int  numberOfSmooths = defaultNumberOfSmooths 
)
int ErrorEstimator::computeErrorFunction ( realGridCollectionFunction error,
ErrorFunctionEnum  type 
)
int ErrorEstimator::computeErrorFunction ( realCompositeGridFunction u,
realCompositeGridFunction error 
)
int ErrorEstimator::computeErrorFunction ( realGridCollectionFunction u,
realGridCollectionFunction error 
)
int ErrorEstimator::computeFunction ( realGridCollectionFunction u,
FunctionEnum  type,
real  t = 0. 
)
int ErrorEstimator::displayParameters ( FILE *  file = stdout) const

References c.

Referenced by update().

int ErrorEstimator::get ( const GenericDataBase dir,
const aString name 
)
int ErrorEstimator::interpolateAndApplyBoundaryConditions ( realCompositeGridFunction error,
CompositeGridOperators op 
)
protected
void ErrorEstimator::openDebugFile ( )
protected
int ErrorEstimator::plotErrorPoints ( realGridCollectionFunction error,
real  errorThreshhold,
GL_GraphicsInterface ps,
PlotStuffParameters psp 
)
int ErrorEstimator::put ( GenericDataBase dir,
const aString name 
) const
int ErrorEstimator::setDefaultNumberOfSmooths ( int  numberOfSmooths)
int ErrorEstimator::setMaximumNumberOfRefinementLevels ( int  maxLevels)

Set the maximum number of refinement levels.

The error is not computed on the finest level.

References maximumNumberOfRefinementLevels.

int ErrorEstimator::setScaleFactor ( RealArray scaleFactor)

References scaleFactor.

int ErrorEstimator::setTopHatParameters ( real  topHatCentre[3],
real  topHatVelocity[3],
real  topHatRadius,
real  topHatRadiusX_ = 0.,
real  topHatRadiusY_ = 0.,
real  topHatRadiusZ_ = 0. 
)
int ErrorEstimator::setWeights ( real  weightFirstDifference,
real  weightSecondDifference 
)
int ErrorEstimator::smooth ( realGridCollectionFunction error)
protected
int ErrorEstimator::smoothErrorFunction ( realCompositeGridFunction error,
int  numberOfSmooths = defaultNumberOfSmooths,
CompositeGridOperators op = NULL 
)
int ErrorEstimator::update ( GenericGraphicsInterface gi)

Member Data Documentation

int ErrorEstimator::debug
FILE* ErrorEstimator::debugFile
protected
int ErrorEstimator::defaultNumberOfSmoothingSteps
protected
InterpolateRefinements* ErrorEstimator::interpolateRefinements
protected
int ErrorEstimator::maximumNumberOfRefinementLevels
protected
int ErrorEstimator::myid
protected

Referenced by ErrorEstimator(), and plotErrorPoints().

RealArray ErrorEstimator::scaleFactor
protected
real ErrorEstimator::topHatCentre[3]
protected
real ErrorEstimator::topHatRadius
protected
real ErrorEstimator::topHatRadiusX
protected
real ErrorEstimator::topHatRadiusY
protected
real ErrorEstimator::topHatRadiusZ
protected
real ErrorEstimator::topHatVelocity[3]
protected
real ErrorEstimator::weightFirstDifference
protected
real ErrorEstimator::weightSecondDifference
protected

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