Public Member Functions | List of all members
sampledIsoSurfaceTopo Class Reference

A sampledSurface defined by a surface of iso value using a topo algorithm. It only recalculates the iso-surface if time changes. To be used in sampleSurfaces / functionObjects. More...

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

Public Member Functions

 TypeNameNoDebug ("sampledIsoSurfaceTopo")
 
 sampledIsoSurfaceTopo (const word &name, const polyMesh &mesh, const dictionary &dict)
 
virtual ~sampledIsoSurfaceTopo ()=default
 
- Public Member Functions inherited from sampledIsoSurface
 TypeName ("sampledIsoSurface")
 
 sampledIsoSurface (const isoSurfaceParams &params, const word &name, const polyMesh &mesh, const dictionary &dict)
 
 sampledIsoSurface (const word &name, const polyMesh &mesh, const dictionary &dict)
 
virtual ~sampledIsoSurface ()
 
virtual bool needsUpdate () const
 
virtual bool expire ()
 
virtual bool update ()
 
const meshedSurfacesurface () const
 
const labelListmeshCells () const
 
virtual const pointFieldpoints () const
 
virtual const faceListfaces () const
 
virtual const labelListzoneIds () const
 
virtual const vectorFieldSf () const
 
virtual const scalarFieldmagSf () const
 
virtual const vectorFieldCf () const
 
virtual tmp< scalarFieldsample (const interpolation< scalar > &sampler) const
 
virtual tmp< vectorFieldsample (const interpolation< vector > &sampler) const
 
virtual tmp< sphericalTensorFieldsample (const interpolation< sphericalTensor > &sampler) const
 
virtual tmp< symmTensorFieldsample (const interpolation< symmTensor > &sampler) const
 
virtual tmp< tensorFieldsample (const interpolation< tensor > &sampler) const
 
virtual tmp< scalarFieldinterpolate (const interpolation< scalar > &interpolator) const
 
virtual tmp< vectorFieldinterpolate (const interpolation< vector > &interpolator) const
 
virtual tmp< sphericalTensorFieldinterpolate (const interpolation< sphericalTensor > &interpolator) const
 
virtual tmp< symmTensorFieldinterpolate (const interpolation< symmTensor > &interpolator) const
 
virtual tmp< tensorFieldinterpolate (const interpolation< tensor > &interpolator) const
 
virtual void print (Ostream &os, int level=0) const
 
template<class Type >
Foam::tmp< Foam::Field< Type > > sampleOnFaces (const interpolation< Type > &sampler) const
 
template<class Type >
Foam::tmp< Foam::Field< Type > > sampleOnPoints (const interpolation< Type > &interpolator) const
 
template<class Type >
Foam::tmp< Foam::Field< Type > > sampleOnIsoSurfacePoints (const interpolation< Type > &interpolator) const
 
- Public Member Functions inherited from sampledSurface
 TypeName ("sampledSurface")
 
 declareRunTimeSelectionTable (autoPtr, sampledSurface, word,(const word &name, const polyMesh &mesh, const dictionary &dict),(name, mesh, dict))
 
 sampledSurface (const word &name, const polyMesh &mesh, const bool interpolateToPoints=false)
 
 sampledSurface (const word &name, const polyMesh &mesh, const dictionary &dict)
 
autoPtr< sampledSurfaceclone () const
 
virtual ~sampledSurface ()
 
const polyMeshmesh () const noexcept
 
const wordname () const noexcept
 
bool enabled () const noexcept
 
bool invariant () const noexcept
 
bool isPointData () const noexcept
 
virtual bool isPointData (const bool on)
 
scalar area () const
 
virtual bool hasFaceIds () const
 
polySurfacegetRegistrySurface (const objectRegistry &obr, word lookupName="") const
 
polySurfacestoreRegistrySurface (objectRegistry &obr, word lookupName="") const
 
bool removeRegistrySurface (objectRegistry &obr, word lookupName="") const
 
template<class Type , class GeoMeshType >
bool storeRegistryField (const objectRegistry &obr, const word &fieldName, const dimensionSet &dims, const Field< Type > &values, word lookupName="") const
 
template<class Type , class GeoMeshType >
bool storeRegistryField (const objectRegistry &obr, const word &fieldName, const dimensionSet &dims, Field< Type > &&values, word lookupName="") const
 
surfMeshgetSurfMesh (word lookupName="") const
 
surfMeshstoreSurfMesh (word lookupName="") const
 
bool removeSurfMesh (word lookupName="") const
 
template<class Type , class GeoMeshType >
bool storeSurfMeshField (const word &fieldName, const dimensionSet &dims, const Field< Type > &values, word lookupName="") const
 
template<class Type , class GeoMeshType >
bool storeSurfMeshField (const word &fieldName, const dimensionSet &dims, Field< Type > &&values, word lookupName="") const
 
virtual bool withSurfaceFields () const
 
virtual tmp< scalarFieldsample (const surfaceScalarField &sField) const
 
virtual tmp< vectorFieldsample (const surfaceVectorField &sField) const
 
virtual tmp< sphericalTensorFieldsample (const surfaceSphericalTensorField &sField) const
 
virtual tmp< symmTensorFieldsample (const surfaceSymmTensorField &sField) const
 
virtual tmp< tensorFieldsample (const surfaceTensorField &sField) const
 
virtual void rename (const word &newName)
 
bool interpolate () const noexcept
 
template<class Type >
Foam::tmp< Foam::Field< Type > > sampleOnFaces (const interpolation< Type > &sampler, const labelUList &elements, const faceList &fcs, const pointField &pts, const Type &defaultValue)
 
template<class Type >
Foam::tmp< Foam::Field< Type > > sampleOnPoints (const interpolation< Type > &interpolator, const labelUList &elements, const faceList &fcs, const pointField &pts)
 
template<class Type >
Foam::tmp< Foam::GeometricField< Type, Foam::fvPatchField, Foam::volMesh > > pointAverage (const GeometricField< Type, pointPatchField, pointMesh > &pfld)
 
- Public Member Functions inherited from meshedSurf
constexpr meshedSurf () noexcept=default
 
virtual ~meshedSurf ()=default
 
virtual const labelListfaceIds () const
 

Additional Inherited Members

- Static Public Member Functions inherited from sampledSurface
static autoPtr< sampledSurfaceNew (const word &name, const polyMesh &mesh, const dictionary &dict)
 
- Static Public Attributes inherited from sampledSurface
static const wordList surfaceFieldTypes
 
- Protected Member Functions inherited from sampledIsoSurface
bool hasIsoSurface () const
 
- Protected Member Functions inherited from sampledSurface
virtual void clearGeom () const
 
 sampledSurface (const word &name, std::nullptr_t)
 
- Static Protected Member Functions inherited from sampledSurface
template<class Type >
static tmp< Field< Type > > sampleOnFaces (const interpolation< Type > &sampler, const labelUList &elements, const faceList &fcs, const pointField &pts, const Type &defaultValue=Type(Zero))
 
template<class Type >
static tmp< Field< Type > > sampleOnPoints (const interpolation< Type > &interpolator, const labelUList &elements, const faceList &fcs, const pointField &pts)
 
template<class Type >
static tmp< GeometricField< Type, fvPatchField, volMesh > > pointAverage (const GeometricField< Type, pointPatchField, pointMesh > &pfld)
 

Detailed Description

A sampledSurface defined by a surface of iso value using a topo algorithm. It only recalculates the iso-surface if time changes. To be used in sampleSurfaces / functionObjects.

Usage
Example of function object partial specification:
surfaces
{
    surface1
    {
        type     isoSurfaceTopo;
        isoField T;
        isoValue 373;
    }
}

Where the sub-entries comprise:

Property Description Required Default
type isoSurfaceTopo yes
isoField field name for obtaining iso-surface yes
isoValue value of iso-surface yes
average cell values from averaged point values no false
bounds limit with bounding box no
zone limit to cell zone (name or regex) no
zones limit to cell zones (names, regexs) no
regularise filter faces (bool or enum) no true
triangulate triangulate faces (requires regularise) no false
Source files

Definition at line 128 of file sampledIsoSurfaceTopo.H.

Constructor & Destructor Documentation

◆ sampledIsoSurfaceTopo()

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

Definition at line 41 of file sampledIsoSurfaceTopo.C.

◆ ~sampledIsoSurfaceTopo()

virtual ~sampledIsoSurfaceTopo ( )
virtualdefault

Member Function Documentation

◆ TypeNameNoDebug()

TypeNameNoDebug ( "sampledIsoSurfaceTopo"  )

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