FreeFOAM The Cross-Platform CFD Toolkit
evaluateError Class Reference

Foam::evaluateError. More...

#include <errorEstimation/evaluateError.H>


Detailed Description

List of all members.

Public Member Functions

 evaluateError ()
 Construct null.
 evaluateError (const volScalarField &cellError, const volVectorField &gradTheta, const surfaceScalarField &faceError, const labelList &candidateFaces)
 Construct from error value, error direction. Determine faces to.
const labelListunsplitFaces () const
const List< refineCell > & refCells () const

Constructor & Destructor Documentation

Construct null.

Definition at line 35 of file evaluateError.C.

evaluateError ( const volScalarField cellError,
const volVectorField gradTheta,
const surfaceScalarField faceError,
const labelList candidateFaces 
)

Construct from error value, error direction. Determine faces to.

remove (out of candidate faces) and cells to refine (all cells):

remove all faces where the (face)error is less than average - standard deviation refine all cells where the (cell)error is more than average + standard deviation. gradTheta is used to determine direction to refine in.

Definition at line 44 of file evaluateError.C.

References DimensionedField< Type, GeoMesh >::average(), Foam::average(), Foam::endl(), forAll, Foam::Info, mesh, DimensionedField< Type, GeoMesh >::mesh(), primitiveMesh::nCells(), primitiveMesh::nFaces(), List< T >::size(), Foam::sqr(), Foam::sqrt(), and dimensioned< Type >::value().


Member Function Documentation

const labelList& unsplitFaces ( ) const
inline

Definition at line 96 of file evaluateError.H.

const List<refineCell>& refCells ( ) const
inline

Definition at line 101 of file evaluateError.H.


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