A sampledSurface defined by a surface of iso value. It only recalculates the iso-surface if time changes. To be used in sampleSurfaces / functionObjects. More...
Public Member Functions | |
TypeName ("sampledIsoSurface") | |
sampledIsoSurface (const isoSurfaceParams ¶ms, 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 meshedSurface & | surface () const |
const labelList & | meshCells () const |
virtual const pointField & | points () const |
virtual const faceList & | faces () const |
virtual const labelList & | zoneIds () const |
virtual const vectorField & | Sf () const |
virtual const scalarField & | magSf () const |
virtual const vectorField & | Cf () const |
virtual tmp< scalarField > | sample (const interpolation< scalar > &sampler) const |
virtual tmp< vectorField > | sample (const interpolation< vector > &sampler) const |
virtual tmp< sphericalTensorField > | sample (const interpolation< sphericalTensor > &sampler) const |
virtual tmp< symmTensorField > | sample (const interpolation< symmTensor > &sampler) const |
virtual tmp< tensorField > | sample (const interpolation< tensor > &sampler) const |
virtual tmp< scalarField > | interpolate (const interpolation< scalar > &interpolator) const |
virtual tmp< vectorField > | interpolate (const interpolation< vector > &interpolator) const |
virtual tmp< sphericalTensorField > | interpolate (const interpolation< sphericalTensor > &interpolator) const |
virtual tmp< symmTensorField > | interpolate (const interpolation< symmTensor > &interpolator) const |
virtual tmp< tensorField > | interpolate (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 |
![]() | |
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< sampledSurface > | clone () const |
virtual | ~sampledSurface () |
const polyMesh & | mesh () const noexcept |
const word & | name () 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 |
polySurface * | getRegistrySurface (const objectRegistry &obr, word lookupName="") const |
polySurface * | storeRegistrySurface (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 |
surfMesh * | getSurfMesh (word lookupName="") const |
surfMesh * | storeSurfMesh (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< scalarField > | sample (const surfaceScalarField &sField) const |
virtual tmp< vectorField > | sample (const surfaceVectorField &sField) const |
virtual tmp< sphericalTensorField > | sample (const surfaceSphericalTensorField &sField) const |
virtual tmp< symmTensorField > | sample (const surfaceSymmTensorField &sField) const |
virtual tmp< tensorField > | sample (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) |
![]() | |
constexpr | meshedSurf () noexcept=default |
virtual | ~meshedSurf ()=default |
virtual const labelList & | faceIds () const |
Protected Member Functions | |
bool | hasIsoSurface () const |
![]() | |
virtual void | clearGeom () const |
sampledSurface (const word &name, std::nullptr_t) | |
Additional Inherited Members | |
![]() | |
static autoPtr< sampledSurface > | New (const word &name, const polyMesh &mesh, const dictionary &dict) |
![]() | |
static const wordList | surfaceFieldTypes |
![]() | |
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) |
A sampledSurface defined by a surface of iso value. It only recalculates the iso-surface if time changes. To be used in sampleSurfaces / functionObjects.
surfaces { surface1 { type isoSurface; isoField T; isoValue 373; isoMethod topo; } }
Where the sub-entries comprise:
Property | Description | Required | Default |
---|---|---|---|
type | isoSurface | yes | |
isoField | field name for obtaining iso-surface | yes | |
isoValue | value of iso-surface | yes | |
isoValues | values for iso-surfaces | yes | |
isoMethod | Iso-algorithm (cell/topo/point) | no | topo |
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 | |
simpleSubMesh | Simple sub-meshing in algorithm itself | no | false |
exposedPatchName | name for zone subset | optional | |
regularise | point snapping (bool or enum) | no | true |
triangulate | triangulate faces (if regularise) | no | false |
mergeTol | tolerance for merging points | no | 1e-6 |
Some options are limited to particular algorithms.
Definition at line 169 of file sampledIsoSurface.H.
sampledIsoSurface | ( | const isoSurfaceParams & | params, |
const word & | name, | ||
const polyMesh & | mesh, | ||
const dictionary & | dict | ||
) |
Definition at line 576 of file sampledIsoSurface.C.
References isoSurfaceParams::ALGO_DEFAULT, isoSurfaceParams::ALGO_POINT, isoSurfaceParams::ALGO_TOPO, isoSurfaceParams::algorithm(), polyMesh::boundaryMesh(), polyMesh::cellZones(), DebugInfo, dict, Foam::endl(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, ZoneMesh::findIndex(), polyBoundaryMesh::findPatchID(), Foam::flatOutput(), dictionary::found(), Foam::inplaceUniqueSort(), IOWarningInFunction, mesh, Foam::nl, isoSurfaceParams::NONE, dictionary::readEntry(), and dictionary::readIfPresent().
sampledIsoSurface | ( | const word & | name, |
const polyMesh & | mesh, | ||
const dictionary & | dict | ||
) |
Definition at line 697 of file sampledIsoSurface.C.
|
virtual |
Definition at line 709 of file sampledIsoSurface.C.
|
inlineprotected |
Definition at line 283 of file sampledIsoSurface.H.
References bool.
TypeName | ( | "sampledIsoSurface" | ) |
|
virtual |
Implements sampledSurface.
Definition at line 715 of file sampledIsoSurface.C.
References mesh, fvMesh::time(), and TimeState::timeIndex().
|
virtual |
Implements sampledSurface.
Definition at line 723 of file sampledIsoSurface.C.
References sampledSurface::clearGeom().
|
virtual |
Implements sampledSurface.
Definition at line 745 of file sampledIsoSurface.C.
|
inline |
Definition at line 334 of file sampledIsoSurface.H.
Referenced by sampledIsoSurface::Cf(), sampledIsoSurface::faces(), sampledIsoSurface::magSf(), sampledIsoSurface::points(), and sampledIsoSurface::Sf().
|
inline |
Definition at line 344 of file sampledIsoSurface.H.
|
inlinevirtual |
Implements sampledSurface.
Definition at line 354 of file sampledIsoSurface.H.
References sampledIsoSurface::surface().
|
inlinevirtual |
Implements sampledSurface.
Definition at line 360 of file sampledIsoSurface.H.
References sampledIsoSurface::surface(), and MeshedSurface::surfFaces().
|
inlinevirtual |
Reimplemented from meshedSurf.
Definition at line 366 of file sampledIsoSurface.H.
References List::null().
|
inlinevirtual |
Implements sampledSurface.
Definition at line 372 of file sampledIsoSurface.H.
References MeshedSurface::Sf(), and sampledIsoSurface::surface().
|
inlinevirtual |
Implements sampledSurface.
Definition at line 378 of file sampledIsoSurface.H.
References MeshedSurface::magSf(), and sampledIsoSurface::surface().
|
inlinevirtual |
Implements sampledSurface.
Definition at line 384 of file sampledIsoSurface.H.
References MeshedSurface::Cf(), and sampledIsoSurface::surface().
|
virtual |
Implements sampledSurface.
Definition at line 753 of file sampledIsoSurface.C.
|
virtual |
Implements sampledSurface.
Definition at line 763 of file sampledIsoSurface.C.
|
virtual |
Implements sampledSurface.
Definition at line 773 of file sampledIsoSurface.C.
|
virtual |
Implements sampledSurface.
Definition at line 783 of file sampledIsoSurface.C.
|
virtual |
Implements sampledSurface.
Definition at line 793 of file sampledIsoSurface.C.
|
virtual |
Implements sampledSurface.
Definition at line 803 of file sampledIsoSurface.C.
|
virtual |
Implements sampledSurface.
Definition at line 813 of file sampledIsoSurface.C.
|
virtual |
Implements sampledSurface.
Definition at line 822 of file sampledIsoSurface.C.
|
virtual |
Implements sampledSurface.
Definition at line 832 of file sampledIsoSurface.C.
|
virtual |
Implements sampledSurface.
Definition at line 842 of file sampledIsoSurface.C.
|
virtual |
Reimplemented from sampledSurface.
Definition at line 850 of file sampledIsoSurface.C.
References Foam::flatOutput(), Foam::name(), and os().
Foam::tmp<Foam::Field<Type> > sampleOnFaces | ( | const interpolation< Type > & | sampler | ) | const |
Definition at line 32 of file sampledIsoSurfaceTemplates.C.
References points.
Foam::tmp<Foam::Field<Type> > sampleOnPoints | ( | const interpolation< Type > & | interpolator | ) | const |
Definition at line 51 of file sampledIsoSurfaceTemplates.C.
References points.
Foam::tmp<Foam::Field<Type> > sampleOnIsoSurfacePoints | ( | const interpolation< Type > & | interpolator | ) | const |
Definition at line 75 of file sampledIsoSurfaceTemplates.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::fac::interpolate(), mesh, Foam::New(), Foam::nl, interpolation::psi(), and tmp::reset().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.