A sampledSurface defined by a plane which 'cuts' the mesh using the cuttingPlane algorithm. The plane is triangulated by default. More...
Public Member Functions | |
TypeName ("plane") | |
Runtime type information. More... | |
plane (const word &name, const polyMesh &mesh, const dictionary &dict) | |
Construct from dictionary. More... | |
virtual | ~plane () |
Destructor. More... | |
virtual bool | needsUpdate () const |
Does the surface need an update? More... | |
virtual bool | expire () |
Mark the surface as needing an update. More... | |
virtual bool | update () |
Update the surface as required. More... | |
virtual const pointField & | points () const |
Points of surface. More... | |
virtual const faceList & | faces () const |
Faces of surface. More... | |
const labelList & | meshCells () const |
For every face original cell in mesh. More... | |
virtual tmp< scalarField > | sample (const volScalarField &) const |
Sample field on surface. More... | |
virtual tmp< vectorField > | sample (const volVectorField &) const |
Sample field on surface. More... | |
virtual tmp< sphericalTensorField > | sample (const volSphericalTensorField &) const |
Sample field on surface. More... | |
virtual tmp< symmTensorField > | sample (const volSymmTensorField &) const |
Sample field on surface. More... | |
virtual tmp< tensorField > | sample (const volTensorField &) const |
Sample field on surface. More... | |
virtual tmp< scalarField > | interpolate (const interpolation< scalar > &) const |
Interpolate field on surface. More... | |
virtual tmp< vectorField > | interpolate (const interpolation< vector > &) const |
Interpolate field on surface. More... | |
virtual tmp< sphericalTensorField > | interpolate (const interpolation< sphericalTensor > &) const |
Interpolate field on surface. More... | |
virtual tmp< symmTensorField > | interpolate (const interpolation< symmTensor > &) const |
Interpolate field on surface. More... | |
virtual tmp< tensorField > | interpolate (const interpolation< tensor > &) const |
Interpolate field on surface. More... | |
virtual void | print (Ostream &) const |
Write. More... | |
template<class Type > | |
Foam::tmp< Foam::Field< Type > > | sampleField (const GeometricField< Type, fvPatchField, volMesh > &vField) const |
template<class Type > | |
Foam::tmp< Foam::Field< Type > > | interpolateField (const interpolation< Type > &interpolator) const |
![]() | |
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< sampledSurface > | clone () const |
Clone. More... | |
virtual | ~sampledSurface () |
Destructor. More... | |
const polyMesh & | mesh () const |
Access to the underlying mesh. More... | |
const word & | name () const |
Name of surface. More... | |
bool | interpolate () const |
Interpolation requested for surface. More... | |
virtual const vectorField & | Sf () const |
Return face area vectors. More... | |
virtual const scalarField & | magSf () const |
Return face area magnitudes. More... | |
virtual const vectorField & | Cf () 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... | |
template<class Type > | |
tmp< GeometricField< Type, fvPatchField, volMesh > > | pointAverage (const GeometricField< Type, pointPatchField, pointMesh > &pfld) const |
Interpolate from points to cell centre. More... | |
virtual tmp< scalarField > | sample (const surfaceScalarField &) const |
Surface sample field on surface. More... | |
virtual tmp< symmTensorField > | sample (const surfaceSymmTensorField &) const |
Surface sample field on surface. More... | |
virtual tmp< tensorField > | sample (const surfaceTensorField &) const |
Surface sample 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 |
template<class Type > | |
Foam::tmp< Foam::GeometricField< Type, Foam::fvPatchField, Foam::volMesh > > | pointAverage (const GeometricField< Type, pointPatchField, pointMesh > &pfld) const |
![]() | |
TypeName ("cuttingPlane") | |
Runtime type information. More... | |
cuttingPlane (const word &name, const polyMesh &mesh, const dictionary &dict) | |
Construct from dictionary. More... | |
virtual | ~cuttingPlane () |
Destructor. More... | |
const isoSurface & | surface () const |
template<class Type > | |
Foam::tmp< Foam::Field< Type > > | sampleField (const GeometricField< Type, fvPatchField, volMesh > &vField) const |
template<class Type > | |
Foam::tmp< Foam::Field< Type > > | interpolateField (const interpolation< Type > &interpolator) const |
Additional Inherited Members | |
![]() | |
static autoPtr< sampledSurface > | New (const word &name, const polyMesh &, const dictionary &) |
Return a reference to the selected surface. More... | |
![]() | |
virtual void | clearGeom () const |
A sampledSurface defined by a plane which 'cuts' the mesh using the cuttingPlane algorithm. The plane is triangulated by default.
{ type plane; planeType pointAndNormal; point (0 0 0); normal (0 0 1); interpolate yes; }
Property | Description | Required | Default value |
---|---|---|---|
planeType | the method of specification of the plane | yes | |
triangulate | triangulate the output | no | yes |
interpolate | interpolate values to the surface points | no | no |
Definition at line 94 of file sampledPlane.H.
plane | ( | const word & | name, |
const polyMesh & | mesh, | ||
const dictionary & | dict | ||
) |
Construct from dictionary.
Definition at line 44 of file sampledPlane.C.
References polyMesh::cellZones(), Foam::endl(), MeshZones< ZoneType, MeshType >::findIndex(), dictionary::found(), Foam::Info, coordinateSystem::New(), and dictionary::subDict().
|
virtual |
Destructor.
Definition at line 82 of file sampledPlane.C.
TypeName | ( | "plane" | ) |
Runtime type information.
|
virtual |
Does the surface need an update?
Reimplemented from cuttingPlane.
Definition at line 88 of file sampledPlane.C.
|
virtual |
Mark the surface as needing an update.
May also free up unneeded data. Return false if surface was already marked as expired.
Reimplemented from cuttingPlane.
Definition at line 94 of file sampledPlane.C.
References sampledSurface::clearGeom().
|
virtual |
Update the surface as required.
Do nothing (and return false) if no update was needed
Reimplemented from cuttingPlane.
Definition at line 109 of file sampledPlane.C.
References sampledSurface::clearGeom(), UList< T >::empty(), Foam::endl(), mesh, Foam::Pout, and plane::sample().
|
inlinevirtual |
Points of surface.
Reimplemented from cuttingPlane.
Definition at line 162 of file sampledPlane.H.
References cuttingPlane::points().
|
inlinevirtual |
Faces of surface.
Reimplemented from cuttingPlane.
Definition at line 168 of file sampledPlane.H.
References cuttingPlane::faces().
|
inline |
For every face original cell in mesh.
Definition at line 174 of file sampledPlane.H.
References cuttingPlane::cutCells(), sampledSurface::interpolate(), plane::print(), and plane::sample().
|
virtual |
Sample field on surface.
Reimplemented from cuttingPlane.
Definition at line 144 of file sampledPlane.C.
Referenced by plane::meshCells(), plane::sample(), and plane::update().
|
virtual |
Sample field on surface.
Reimplemented from cuttingPlane.
Definition at line 153 of file sampledPlane.C.
References plane::sample().
|
virtual |
Sample field on surface.
Reimplemented from cuttingPlane.
Definition at line 162 of file sampledPlane.C.
References plane::sample().
|
virtual |
Sample field on surface.
Reimplemented from cuttingPlane.
|
virtual |
Sample field on surface.
Reimplemented from cuttingPlane.
Definition at line 180 of file sampledPlane.C.
References sampledSurface::interpolate().
|
virtual |
Interpolate field on surface.
Reimplemented from cuttingPlane.
Definition at line 189 of file sampledPlane.C.
References sampledSurface::interpolate().
|
virtual |
Interpolate field on surface.
Reimplemented from cuttingPlane.
Definition at line 198 of file sampledPlane.C.
References sampledSurface::interpolate().
|
virtual |
Interpolate field on surface.
Reimplemented from cuttingPlane.
Definition at line 206 of file sampledPlane.C.
References sampledSurface::interpolate().
|
virtual |
Interpolate field on surface.
Reimplemented from cuttingPlane.
Definition at line 215 of file sampledPlane.C.
References sampledSurface::interpolate().
|
virtual |
Interpolate field on surface.
Reimplemented from cuttingPlane.
Definition at line 224 of file sampledPlane.C.
|
virtual |
Write.
Reimplemented from cuttingPlane.
Definition at line 232 of file sampledPlane.C.
References Foam::name(), and points.
Referenced by plane::meshCells().
Foam::tmp<Foam::Field<Type> > sampleField | ( | const GeometricField< Type, fvPatchField, volMesh > & | vField | ) | const |
Definition at line 33 of file sampledPlaneTemplates.C.
Foam::tmp<Foam::Field<Type> > interpolateField | ( | const interpolation< Type > & | interpolator | ) | const |
Definition at line 44 of file sampledPlaneTemplates.C.
References f(), forAll, interpolation< Type >::interpolate(), points, and tmp< T >::ref().