FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

evaluateError Class Reference

Foam::evaluateError. More...

#include <errorEstimation/evaluateError.H>


Detailed Description

Foam::evaluateError.

Source files

Definition at line 55 of file evaluateError.H.

Collaboration diagram for evaluateError:

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 labelList &  unsplitFaces () 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 Foam::average(), DimensionedField< Type, GeoMesh >::average(), Foam::endl(), forAll, Foam::Info, DimensionedField< Type, GeoMesh >::mesh(), 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: