isoSurface Class Reference

A sampledSurface defined by an iso-value of a field. More...

Inheritance diagram for isoSurface:
Collaboration diagram for isoSurface:

Public Member Functions

 TypeName ("isoSurface")
 Runtime type information. More...
 
 isoSurface (const word &name, const polyMesh &mesh, const dictionary &dict)
 Construct from dictionary. More...
 
virtual ~isoSurface ()
 Destructor. More...
 
virtual wordList fields () const
 Return the list of fields required. More...
 
virtual bool needsUpdate () const
 Does the surface need an update? More...
 
virtual void print (Ostream &) const
 Write. More...
 
- Public Member Functions inherited from sampledIsoSurfaceSurface
 TypeName ("sampledIsoSurfaceSurface")
 Runtime type information. More...
 
 sampledIsoSurfaceSurface (const word &name, const polyMesh &mesh, const dictionary &dict)
 Construct from dictionary. More...
 
virtual ~sampledIsoSurfaceSurface ()
 Destructor. More...
 
virtual bool expire ()
 Mark the surface as needing an update. More...
 
virtual bool update ()
 Update the surface as required. More...
 
virtual bool update () const
 Update the surface as required. More...
 
virtual const pointFieldpoints () const
 Points of surface. More...
 
virtual const faceListfaces () const
 Faces of surface. More...
 
 FOR_ALL_FIELD_TYPES (DEFINE_SAMPLE)
 
 FOR_ALL_FIELD_TYPES (DEFINE_INTERPOLATE)
 
template<class Type >
Foam::tmp< Foam::Field< Type > > sampleField (const VolField< Type > &vField) const
 
template<class Type >
Foam::tmp< Foam::Field< Type > > interpolateField (const interpolation< Type > &interpolator) const
 
- Public Member Functions inherited from sampledSurface
 TypeName ("sampledSurface")
 Runtime type information. More...
 
 declareRunTimeSelectionTable (autoPtr, sampledSurface, word,(const word &name, const polyMesh &mesh, const dictionary &dict),(name, mesh, dict))
 Declare run-time constructor selection table. More...
 
 sampledSurface (const word &name, const polyMesh &, const bool interpolate=false)
 Construct from name, mesh. More...
 
 sampledSurface (const word &name, const polyMesh &, const dictionary &)
 Construct from dictionary. More...
 
autoPtr< sampledSurfaceclone () const
 Clone. More...
 
virtual ~sampledSurface ()
 Destructor. More...
 
const polyMeshmesh () const
 Access to the underlying mesh. More...
 
const wordname () const
 Name of surface. More...
 
bool interpolate () const
 Interpolation requested for surface. More...
 
virtual const vectorFieldSf () const
 Return face area vectors. More...
 
virtual const scalarFieldmagSf () const
 Return face area magnitudes. More...
 
virtual const vectorFieldCf () const
 Return face centres as vectorField. More...
 
scalar area () const
 The total surface area. More...
 
template<class Type >
Type integrate (const Field< Type > &) const
 Integration of a field across the surface. More...
 
template<class Type >
Type integrate (const tmp< Field< Type >> &) const
 Integration of a field across the surface. More...
 
template<class Type >
Type average (const Field< Type > &) const
 Area-averaged value of a field across the surface. More...
 
template<class Type >
Type average (const tmp< Field< Type >> &) const
 Area-averaged value of a field across the surface. More...
 
tmp< Field< scalar > > project (const Field< scalar > &) const
 Project field onto surface. More...
 
tmp< Field< scalar > > project (const Field< vector > &) const
 Project field onto surface. More...
 
tmp< Field< vector > > project (const Field< sphericalTensor > &) const
 Project field onto surface. More...
 
tmp< Field< vector > > project (const Field< symmTensor > &) const
 Project field onto surface. More...
 
tmp< Field< vector > > project (const Field< tensor > &) const
 Project field onto surface. More...
 
virtual tmp< scalarFieldsample (const volScalarField &) const =0
 Sample field on surface. More...
 
virtual tmp< vectorFieldsample (const volVectorField &) const =0
 Sample field on surface. More...
 
virtual tmp< sphericalTensorFieldsample (const volSphericalTensorField &) const =0
 Sample field on surface. More...
 
virtual tmp< symmTensorFieldsample (const volSymmTensorField &) const =0
 Sample field on surface. More...
 
virtual tmp< tensorFieldsample (const volTensorField &) const =0
 Sample field on surface. More...
 
virtual tmp< scalarFieldsample (const surfaceScalarField &) const
 Surface sample field on surface. More...
 
virtual tmp< vectorFieldsample (const surfaceVectorField &) const
 Surface Sample field on surface. More...
 
virtual tmp< sphericalTensorFieldsample (const surfaceSphericalTensorField &) const
 Surface sample field on surface. More...
 
virtual tmp< symmTensorFieldsample (const surfaceSymmTensorField &) const
 Surface sample field on surface. More...
 
virtual tmp< tensorFieldsample (const surfaceTensorField &) const
 Surface sample field on surface. More...
 
virtual tmp< scalarFieldinterpolate (const interpolation< scalar > &) const =0
 Interpolate field on surface. More...
 
virtual tmp< vectorFieldinterpolate (const interpolation< vector > &) const =0
 Interpolate field on surface. More...
 
virtual tmp< sphericalTensorFieldinterpolate (const interpolation< sphericalTensor > &) const =0
 Interpolate field on surface. More...
 
virtual tmp< symmTensorFieldinterpolate (const interpolation< symmTensor > &) const =0
 Interpolate field on surface. More...
 
virtual tmp< tensorFieldinterpolate (const interpolation< tensor > &) const =0
 Interpolate field on surface. More...
 
virtual void rename (const word &newName)
 Rename. More...
 
template<class ReturnType , class Type >
Foam::tmp< Foam::Field< ReturnType > > project (const tmp< Field< Type >> &field) const
 

Additional Inherited Members

- Static Public Member Functions inherited from sampledSurface
static autoPtr< sampledSurfaceNew (const word &name, const polyMesh &, const dictionary &)
 Return a reference to the selected surface. More...
 
- Protected Member Functions inherited from sampledIsoSurfaceSurface
const labelListzoneIDs () const
 Access the zone indices. More...
 
const labeltimeIndex () const
 Access the time index. More...
 
- Protected Member Functions inherited from sampledSurface
virtual void clearGeom () const
 

Detailed Description

A sampledSurface defined by an iso-value of a field.

Example:

{
    type        isoSurface;
    isoField    p;
    isoValue    1e5;
    interpolate yes;
}
Usage
Property Description Required Default value
isoField the field to get an iso-surface of yes
isoValue the iso-surface value yes
interpolate interpolate values to the surface points no no
Source files

Definition at line 88 of file sampledIsoSurface.H.

Constructor & Destructor Documentation

◆ isoSurface()

isoSurface ( const word name,
const polyMesh mesh,
const dictionary dict 
)

Construct from dictionary.

Definition at line 81 of file sampledIsoSurface.C.

◆ ~isoSurface()

~isoSurface ( )
virtual

Destructor.

Definition at line 101 of file sampledIsoSurface.C.

Member Function Documentation

◆ TypeName()

TypeName ( "isoSurface"  )

Runtime type information.

◆ fields()

Foam::wordList fields ( ) const
virtual

Return the list of fields required.

Reimplemented from sampledSurface.

Definition at line 107 of file sampledIsoSurface.C.

◆ needsUpdate()

bool needsUpdate ( ) const
virtual

Does the surface need an update?

Implements sampledSurface.

Definition at line 113 of file sampledIsoSurface.C.

References timeIndex.

◆ print()

void print ( Ostream os) const
virtual

Write.

Reimplemented from sampledSurface.

Definition at line 119 of file sampledIsoSurface.C.

References Foam::name(), and points.

Here is the call graph for this function:

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