A sampledSurface defined by a plane. More...
#include <sampling/sampledCuttingPlane.H>
A sampledSurface defined by a plane.
Definition at line 53 of file sampledCuttingPlane.H.
Public Member Functions | |
TypeName ("sampledCuttingPlane") | |
Runtime type information. | |
sampledCuttingPlane (const word &name, const polyMesh &mesh, const dictionary &dict) | |
Construct from dictionary. | |
virtual | ~sampledCuttingPlane () |
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. | |
virtual const pointField & | points () const |
Points of surface. | |
virtual const faceList & | faces () const |
Faces of surface. | |
const isoSurface & | surface () const |
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. | |
![]() | |
TypeName ("sampledSurface") | |
Runtime type information. | |
declareRunTimeSelectionTable (autoPtr, sampledSurface, word,(const word &name, const polyMesh &mesh, const dictionary &dict),(name, mesh, dict)) | |
sampledSurface (const word &name, const polyMesh &) | |
Construct from name, mesh. | |
sampledSurface (const word &name, const polyMesh &, const dictionary &) | |
Construct from dictionary. | |
autoPtr< sampledSurface > | clone () const |
Clone. | |
virtual | ~sampledSurface () |
const polyMesh & | mesh () const |
Access to the underlying mesh. | |
const word & | name () const |
Name of surface. | |
bool | interpolate () const |
interpolation requested for surface | |
virtual const vectorField & | Sf () const |
Return face area vectors. | |
virtual const scalarField & | magSf () const |
Return face area magnitudes. | |
virtual const vectorField & | Cf () const |
Return face centres as vectorField. | |
scalar | area () const |
The total surface area. | |
template<class Type > | |
Type | integrate (const Field< Type > &) const |
Integration of a field across the surface. | |
template<class Type > | |
Type | integrate (const tmp< Field< Type > > &) const |
Integration of a field across the surface. | |
template<class Type > | |
Type | average (const Field< Type > &) const |
Area-averaged value of a field across the surface. | |
template<class Type > | |
Type | average (const tmp< Field< Type > > &) const |
Area-averaged value of a field across the surface. | |
tmp< Field< scalar > > | project (const Field< scalar > &) const |
Project field onto surface. | |
tmp< Field< scalar > > | project (const Field< vector > &) const |
Project field onto surface. | |
tmp< Field< vector > > | project (const Field< sphericalTensor > &) const |
Project field onto surface. | |
tmp< Field< vector > > | project (const Field< symmTensor > &) const |
Project field onto surface. | |
tmp< Field< vector > > | project (const Field< tensor > &) const |
Project field onto surface. | |
virtual void | rename (const word &newName) |
Rename. |
Additional Inherited Members | |
![]() | |
static autoPtr< sampledSurface > | New (const word &name, const polyMesh &, const dictionary &) |
Return a reference to the selected surface. | |
![]() | |
virtual void | clearGeom () const |
sampledCuttingPlane | ( | const word & | name, |
const polyMesh & | mesh, | ||
const dictionary & | dict | ||
) |
Construct from dictionary.
Definition at line 248 of file sampledCuttingPlane.C.
References polyMesh::boundaryMesh(), Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorIn, polyBoundaryMesh::findPatchID(), Foam::Info, dictionary::lookup(), and polyBoundaryMesh::names().
|
virtual |
Definition at line 294 of file sampledCuttingPlane.C.
TypeName | ( | "sampledCuttingPlane" | ) |
Runtime type information.
|
virtual |
Does the surface need an update?
Implements sampledSurface.
Definition at line 300 of file sampledCuttingPlane.C.
|
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 306 of file sampledCuttingPlane.C.
References Foam::endl(), and Foam::Pout.
|
virtual |
Update the surface as required.
Do nothing (and return false) if no update was needed
Implements sampledSurface.
Definition at line 332 of file sampledCuttingPlane.C.
References Foam::endl(), and Foam::Pout.
|
inlinevirtual |
Points of surface.
Implements sampledSurface.
Definition at line 149 of file sampledCuttingPlane.H.
References PrimitivePatch< Face, FaceList, PointField, PointType >::points(), and sampledCuttingPlane::surface().
|
inlinevirtual |
Faces of surface.
Implements sampledSurface.
Definition at line 155 of file sampledCuttingPlane.H.
References autoPtr< T >::empty(), forAll, autoPtr< T >::reset(), List< T >::size(), and sampledCuttingPlane::surface().
|
inline |
Definition at line 172 of file sampledCuttingPlane.H.
Referenced by sampledCuttingPlane::faces(), and sampledCuttingPlane::points().
|
virtual |
sample field on surface
Implements sampledSurface.
Definition at line 355 of file sampledCuttingPlane.C.
|
virtual |
sample field on surface
Implements sampledSurface.
Definition at line 365 of file sampledCuttingPlane.C.
|
virtual |
sample field on surface
Implements sampledSurface.
Definition at line 375 of file sampledCuttingPlane.C.
|
virtual |
sample field on surface
Implements sampledSurface.
|
virtual |
sample field on surface
Implements sampledSurface.
Definition at line 395 of file sampledCuttingPlane.C.
|
virtual |
interpolate field on surface
Implements sampledSurface.
Definition at line 405 of file sampledCuttingPlane.C.
|
virtual |
interpolate field on surface
Implements sampledSurface.
Definition at line 415 of file sampledCuttingPlane.C.
|
virtual |
interpolate field on surface
Implements sampledSurface.
Definition at line 424 of file sampledCuttingPlane.C.
|
virtual |
interpolate field on surface
Implements sampledSurface.
Definition at line 434 of file sampledCuttingPlane.C.
|
virtual |
interpolate field on surface
Implements sampledSurface.
Definition at line 444 of file sampledCuttingPlane.C.
|
virtual |
Write.
Reimplemented from sampledSurface.
Definition at line 452 of file sampledCuttingPlane.C.
References Foam::name(), points, and List< T >::size().