A sampledSurface defined by a plane using an iso-surface algorithm to cut the mesh. More...
Public Member Functions | |
TypeName ("sampledCuttingPlane") | |
sampledCuttingPlane (const word &name, const polyMesh &mesh, const dictionary &dict) | |
virtual | ~sampledCuttingPlane ()=default |
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 > > | sampleOnIsoSurfacePoints (const interpolation< Type > &interpolator) const |
template<class Type > | |
Foam::tmp< Foam::Field< Type > > | sampleOnPoints (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 plane using an iso-surface algorithm to cut the mesh.
This is often embedded as part of a sampled surfaces function object.
surfaces { surface1 { type cuttingPlane; planeType pointAndNormal; pointAndNormalDict { ... } } }
Where the sub-entries comprise:
Property | Description | Required | Default |
---|---|---|---|
type | cuttingPlane | yes | |
planeType | plane description (pointAndNormal etc) | yes | |
offsets | Offsets of the origin in the normal direction | no | (0) |
isoMethod | Iso-algorithm (cell/topo/point) | no | topo |
bounds | limit with bounding box | no | |
zone | limit to cell zone (name or regex) | no | |
zones | limit to cell zones (names, regexs) | no | |
exposedPatchName | name for zone subset | optional | |
regularise | Face simplification (enum or bool) | no | true |
mergeTol | tolerance for merging points | no | 1e-6 |
zones
has priority over zone
.Definition at line 146 of file sampledCuttingPlane.H.
sampledCuttingPlane | ( | const word & | name, |
const polyMesh & | mesh, | ||
const dictionary & | dict | ||
) |
Definition at line 501 of file sampledCuttingPlane.C.
References isoSurfaceParams::ALGO_POINT, 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, dictionary::readEntry(), dictionary::readIfPresent(), and Foam::Zero.
|
virtualdefault |
|
inlineprotected |
Definition at line 252 of file sampledCuttingPlane.H.
References bool.
TypeName | ( | "sampledCuttingPlane" | ) |
|
virtual |
Implements sampledSurface.
Definition at line 590 of file sampledCuttingPlane.C.
|
virtual |
Implements sampledSurface.
Definition at line 596 of file sampledCuttingPlane.C.
References sampledSurface::clearGeom(), Foam::expressions::patchExpr::debug, Foam::endl(), and Foam::Pout.
|
virtual |
Implements sampledSurface.
Definition at line 622 of file sampledCuttingPlane.C.
References Foam::expressions::patchExpr::debug, Foam::endl(), and Foam::Pout.
|
inline |
Definition at line 293 of file sampledCuttingPlane.H.
Referenced by sampledCuttingPlane::Cf(), sampledCuttingPlane::faces(), sampledCuttingPlane::magSf(), sampledCuttingPlane::points(), and sampledCuttingPlane::Sf().
|
inline |
Definition at line 303 of file sampledCuttingPlane.H.
|
inlinevirtual |
Implements sampledSurface.
Definition at line 313 of file sampledCuttingPlane.H.
References sampledCuttingPlane::surface().
|
inlinevirtual |
Implements sampledSurface.
Definition at line 319 of file sampledCuttingPlane.H.
References sampledCuttingPlane::surface(), and MeshedSurface::surfFaces().
|
inlinevirtual |
Reimplemented from meshedSurf.
Definition at line 325 of file sampledCuttingPlane.H.
References List::null().
|
inlinevirtual |
Implements sampledSurface.
Definition at line 331 of file sampledCuttingPlane.H.
References MeshedSurface::Sf(), and sampledCuttingPlane::surface().
|
inlinevirtual |
Implements sampledSurface.
Definition at line 337 of file sampledCuttingPlane.H.
References MeshedSurface::magSf(), and sampledCuttingPlane::surface().
|
inlinevirtual |
Implements sampledSurface.
Definition at line 343 of file sampledCuttingPlane.H.
References MeshedSurface::Cf(), and sampledCuttingPlane::surface().
|
virtual |
Implements sampledSurface.
Definition at line 644 of file sampledCuttingPlane.C.
|
virtual |
Implements sampledSurface.
Definition at line 654 of file sampledCuttingPlane.C.
|
virtual |
Implements sampledSurface.
Definition at line 664 of file sampledCuttingPlane.C.
|
virtual |
Implements sampledSurface.
Definition at line 674 of file sampledCuttingPlane.C.
|
virtual |
Implements sampledSurface.
Definition at line 684 of file sampledCuttingPlane.C.
|
virtual |
Implements sampledSurface.
Definition at line 694 of file sampledCuttingPlane.C.
|
virtual |
Implements sampledSurface.
Definition at line 704 of file sampledCuttingPlane.C.
|
virtual |
Implements sampledSurface.
Definition at line 714 of file sampledCuttingPlane.C.
|
virtual |
Implements sampledSurface.
Definition at line 724 of file sampledCuttingPlane.C.
|
virtual |
Implements sampledSurface.
Definition at line 734 of file sampledCuttingPlane.C.
|
virtual |
Reimplemented from sampledSurface.
Definition at line 742 of file sampledCuttingPlane.C.
References Foam::flatOutput(), Foam::name(), os(), and points.
Foam::tmp<Foam::Field<Type> > sampleOnFaces | ( | const interpolation< Type > & | sampler | ) | const |
Definition at line 32 of file sampledCuttingPlaneTemplates.C.
References points.
Foam::tmp<Foam::Field<Type> > sampleOnIsoSurfacePoints | ( | const interpolation< Type > & | interpolator | ) | const |
Definition at line 49 of file sampledCuttingPlaneTemplates.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::fac::interpolate(), mesh, Foam::New(), Foam::nl, interpolation::psi(), and tmp::reset().
Foam::tmp<Foam::Field<Type> > sampleOnPoints | ( | const interpolation< Type > & | interpolator | ) | const |
Definition at line 90 of file sampledCuttingPlaneTemplates.C.
References points.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.