A sampledSurface on a patch. Non-triangulated by default. More...
#include <sampling/sampledPatch.H>
A sampledSurface on a patch. Non-triangulated by default.
Definition at line 50 of file sampledPatch.H.
Public Member Functions | |
TypeName ("sampledPatch") | |
Runtime type information.
| |
sampledPatch (const word &name, const polyMesh &mesh, const word &patchName, const bool triangulate=false) | |
Construct from components.
| |
sampledPatch (const word &name, const polyMesh &mesh, const dictionary &dict) | |
Construct from dictionary.
| |
virtual | ~sampledPatch () |
virtual bool | needsUpdate () const |
Does the surface need an update?
| |
virtual bool | expire () |
Mark the surface as needing an update.
| |
virtual bool | update () |
Update the surface as required.
| |
const word | patchName () const |
label | patchIndex () const |
const labelList & | patchFaceLabels () const |
virtual const pointField & | points () const |
Points of surface.
| |
virtual const faceList & | faces () const |
Faces of surface.
| |
virtual tmp< scalarField > | sample (const volScalarField &) const |
sample field on surface
| |
virtual tmp< vectorField > | sample (const volVectorField &) const |
sample field on surface
| |
virtual tmp< sphericalTensorField > | sample (const volSphericalTensorField &) const |
sample field on surface
| |
virtual tmp< symmTensorField > | sample (const volSymmTensorField &) const |
sample field on surface
| |
virtual tmp< tensorField > | sample (const volTensorField &) const |
sample field on surface
| |
virtual tmp< scalarField > | interpolate (const interpolation< scalar > &) const |
interpolate field on surface
| |
virtual tmp< vectorField > | interpolate (const interpolation< vector > &) const |
interpolate field on surface
| |
virtual tmp< sphericalTensorField > | interpolate (const interpolation< sphericalTensor > &) const |
interpolate field on surface
| |
virtual tmp< symmTensorField > | interpolate (const interpolation< symmTensor > &) const |
interpolate field on surface
| |
virtual tmp< tensorField > | interpolate (const interpolation< tensor > &) const |
interpolate field on surface
| |
virtual void | print (Ostream &) const |
Write.
|
sampledPatch | ( | const word & | name, |
const polyMesh & | mesh, | ||
const word & | patchName, | ||
const bool | triangulate = false
|
||
) |
Construct from components.
Definition at line 46 of file sampledPatch.C.
sampledPatch | ( | const word & | name, |
const polyMesh & | mesh, | ||
const dictionary & | dict | ||
) |
Construct from dictionary.
Definition at line 62 of file sampledPatch.C.
~sampledPatch | ( | ) | [virtual]
|
Definition at line 78 of file sampledPatch.C.
TypeName | ( | "sampledPatch" | ) |
Runtime type information.
bool needsUpdate | ( | ) | const [virtual]
|
Does the surface need an update?
Implements sampledSurface.
Definition at line 84 of file sampledPatch.C.
bool expire | ( | ) | [virtual]
|
Mark the surface as needing an update.
May also free up unneeded data. Return false if surface was already marked as expired.
Implements sampledSurface.
Definition at line 90 of file sampledPatch.C.
References clear(), and sampledSurface::clearGeom().
bool update | ( | ) | [virtual]
|
Update the surface as required.
Do nothing (and return false) if no update was needed
Implements sampledSurface.
Definition at line 107 of file sampledPatch.C.
References polyMesh::boundaryMesh(), Foam::endl(), polyBoundaryMesh::findPatchID(), forAll, PrimitivePatch< Face, FaceList, PointField, PointType >::localFaces(), PrimitivePatch< Face, FaceList, PointField, PointType >::localPoints(), mesh, p, Foam::Pout, and List< T >::setSize().
const word patchName | ( | ) | const [inline]
|
Definition at line 137 of file sampledPatch.H.
label patchIndex | ( | ) | const [inline]
|
Definition at line 142 of file sampledPatch.H.
References polyMesh::boundaryMesh(), polyBoundaryMesh::findPatchID(), and sampledSurface::mesh().
const labelList& patchFaceLabels | ( | ) | const [inline]
|
Definition at line 147 of file sampledPatch.H.
virtual const pointField& points | ( | ) | const [inline, virtual]
|
Points of surface.
Implements sampledSurface.
Definition at line 153 of file sampledPatch.H.
References PrimitivePatch< face,::Foam::List, pointField, point >::points().
virtual const faceList& faces | ( | ) | const [inline, virtual]
|
Faces of surface.
Implements sampledSurface.
Definition at line 159 of file sampledPatch.H.
References MeshedSurface< face >::faces().
Foam::tmp< Foam::scalarField > sample | ( | const volScalarField & | vField ) | const [virtual]
|
Foam::tmp< Foam::vectorField > sample | ( | const volVectorField & | vField ) | const [virtual]
|
Foam::tmp< Foam::sphericalTensorField > sample | ( | const volSphericalTensorField & | vField ) | const [virtual]
|
Foam::tmp< Foam::symmTensorField > sample | ( | const volSymmTensorField & | vField ) | const [virtual]
|
Foam::tmp< Foam::tensorField > sample | ( | const volTensorField & | vField ) | const [virtual]
|
Foam::tmp< Foam::scalarField > interpolate | ( | const interpolation< scalar > & | interpolator ) | const [virtual]
|
interpolate field on surface
Implements sampledSurface.
Definition at line 220 of file sampledPatch.C.
Foam::tmp< Foam::vectorField > interpolate | ( | const interpolation< vector > & | interpolator ) | const [virtual]
|
interpolate field on surface
Implements sampledSurface.
Definition at line 230 of file sampledPatch.C.
Foam::tmp< Foam::sphericalTensorField > interpolate | ( | const interpolation< sphericalTensor > & | interpolator ) | const [virtual]
|
interpolate field on surface
Implements sampledSurface.
Definition at line 239 of file sampledPatch.C.
Foam::tmp< Foam::symmTensorField > interpolate | ( | const interpolation< symmTensor > & | interpolator ) | const [virtual]
|
interpolate field on surface
Implements sampledSurface.
Definition at line 249 of file sampledPatch.C.
Foam::tmp< Foam::tensorField > interpolate | ( | const interpolation< tensor > & | interpolator ) | const [virtual]
|
interpolate field on surface
Implements sampledSurface.
Definition at line 259 of file sampledPatch.C.
void print | ( | Ostream & | os ) | const [virtual]
|
Write.
Reimplemented from sampledSurface.
Definition at line 267 of file sampledPatch.C.
References Foam::name(), points, and List< T >::size().