An abstract class for surfaces with sampling. More...
Data Structures | |
class | iNew |
Class used for the PtrLists read-construction. More... | |
Public Member Functions | |
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 bool | needsUpdate () const =0 |
Does the surface need an update? More... | |
virtual bool | expire ()=0 |
Mark the surface as needing an update. More... | |
virtual bool | update ()=0 |
Update the surface as required. More... | |
virtual const pointField & | points () const =0 |
Points of surface. More... | |
virtual const faceList & | faces () const =0 |
Faces of 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 volScalarField &) const =0 |
Sample field on surface. More... | |
virtual tmp< vectorField > | sample (const volVectorField &) const =0 |
Sample field on surface. More... | |
virtual tmp< sphericalTensorField > | sample (const volSphericalTensorField &) const =0 |
Sample field on surface. More... | |
virtual tmp< symmTensorField > | sample (const volSymmTensorField &) const =0 |
Sample field on surface. More... | |
virtual tmp< tensorField > | sample (const volTensorField &) const =0 |
Sample field on surface. More... | |
virtual tmp< scalarField > | sample (const surfaceScalarField &) const |
Surface sample field on surface. More... | |
virtual tmp< vectorField > | sample (const surfaceVectorField &) const |
Surface Sample field on surface. More... | |
virtual tmp< sphericalTensorField > | sample (const surfaceSphericalTensorField &) 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 tmp< scalarField > | interpolate (const interpolation< scalar > &) const =0 |
Interpolate field on surface. More... | |
virtual tmp< vectorField > | interpolate (const interpolation< vector > &) const =0 |
Interpolate field on surface. More... | |
virtual tmp< sphericalTensorField > | interpolate (const interpolation< sphericalTensor > &) const =0 |
Interpolate field on surface. More... | |
virtual tmp< symmTensorField > | interpolate (const interpolation< symmTensor > &) const =0 |
Interpolate field on surface. More... | |
virtual tmp< tensorField > | interpolate (const interpolation< tensor > &) const =0 |
Interpolate field on surface. More... | |
virtual void | rename (const word &newName) |
Rename. More... | |
virtual void | print (Ostream &) const |
Write. 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 |
Static Public Member Functions | |
static autoPtr< sampledSurface > | New (const word &name, const polyMesh &, const dictionary &) |
Return a reference to the selected surface. More... | |
Protected Member Functions | |
virtual void | clearGeom () const |
Private Member Functions | |
void | makeSf () const |
Make Sf. More... | |
void | makeMagSf () const |
Make magSf. More... | |
void | makeCf () const |
Make Cf. More... | |
template<class Type > | |
bool | checkFieldSize (const Field< Type > &) const |
Check field size matches surface size. More... | |
template<class ReturnType , class Type > | |
void | project (Field< ReturnType > &, const Field< Type > &) const |
Project field onto surface. More... | |
template<class ReturnType , class Type > | |
void | project (Field< ReturnType > &, const tmp< Field< Type > > &) const |
Project field onto surface. More... | |
template<class ReturnType , class Type > | |
tmp< Field< ReturnType > > | project (const tmp< Field< Type > > &) const |
Project field onto surface. More... | |
Private Attributes | |
word | name_ |
Name of sample surface. More... | |
const polyMesh & | mesh_ |
Reference to mesh. More... | |
const bool | interpolate_ |
Do we intend to interpolate the information? More... | |
vectorField * | SfPtr_ |
Face area vectors. More... | |
scalarField * | magSfPtr_ |
Mag face area vectors. More... | |
vectorField * | CfPtr_ |
Face centres. More... | |
scalar | area_ |
Total surface area. More... | |
Friends | |
Ostream & | operator<< (Ostream &, const sampledSurface &) |
Ostream operator. More... | |
An abstract class for surfaces with sampling.
The constructors for the derived classes should generally start in a 'expired' condition (ie, needsUpdate() == true) and rely on a subsequent call to the update() method to complete the initialization. Delaying the final construction as late as possible allows the construction of surfaces that may depend on intermediate calculation results (eg, iso-surfaces) and also avoids the unnecessary reconstruction of surfaces between sampling intervals.
It is the responsibility of the caller to ensure that the surface update() is called before the surface is used. The update() method implementation should do nothing when the surface is already up-to-date.
Definition at line 77 of file sampledSurface.H.
sampledSurface | ( | const word & | name, |
const polyMesh & | mesh, | ||
const bool | interpolate = false |
||
) |
Construct from name, mesh.
Definition at line 150 of file sampledSurface.C.
sampledSurface | ( | const word & | name, |
const polyMesh & | mesh, | ||
const dictionary & | dict | ||
) |
Construct from dictionary.
Definition at line 167 of file sampledSurface.C.
References dict, and dictionary::readIfPresent().
|
virtual |
Destructor.
Definition at line 187 of file sampledSurface.C.
|
private |
Make Sf.
Definition at line 51 of file sampledSurface.C.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, forAll, points, and List::size().
|
private |
Make magSf.
Definition at line 72 of file sampledSurface.C.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, forAll, points, and List::size().
|
private |
Make Cf.
Definition at line 93 of file sampledSurface.C.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, forAll, points, and List::size().
|
private |
Check field size matches surface size.
Definition at line 29 of file sampledSurfaceTemplates.C.
References Foam::exit(), sampledSurface::faces(), Foam::FatalError, FatalErrorInFunction, and List::size().
Project field onto surface.
Definition at line 108 of file sampledSurfaceTemplates.C.
References forAll, and Foam::mag().
Project field onto surface.
Definition at line 131 of file sampledSurfaceTemplates.C.
Project field onto surface.
|
protectedvirtual |
Definition at line 42 of file sampledSurface.C.
References sampledSurface::area_, sampledSurface::CfPtr_, Foam::deleteDemandDrivenData(), sampledSurface::magSfPtr_, and sampledSurface::SfPtr_.
Referenced by sampledCuttingPlane::createGeometry(), distanceSurface::createGeometry(), sampledPlane::expire(), sampledIsoSurfaceCell::expire(), sampledPatch::expire(), sampledTriSurfaceMesh::expire(), sampledPlane::update(), sampledThresholdCellFaces::updateGeometry(), and sampledIsoSurfaceCell::updateGeometry().
TypeName | ( | "sampledSurface" | ) |
Runtime type information.
declareRunTimeSelectionTable | ( | autoPtr | , |
sampledSurface | , | ||
word | , | ||
(const word &name, const polyMesh &mesh, const dictionary &dict) | , | ||
(name, mesh, dict) | |||
) |
Declare run-time constructor selection table.
|
inline |
|
static |
Return a reference to the selected surface.
Definition at line 117 of file sampledSurface.C.
References dict, Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::Info, dictionary::lookup(), mesh, Foam::name(), and Foam::nl.
Referenced by sampledSurface::iNew::operator()(), and faceSource::sampledSurfaceFaces().
|
inline |
Access to the underlying mesh.
Definition at line 244 of file sampledSurface.H.
References sampledSurface::mesh_.
Referenced by sampledCuttingPlane::createGeometry(), distanceSurface::createGeometry(), sampledIsoSurface::getIsoFields(), sampledTriSurfaceMesh::nonCoupledboundaryTree(), sampledThresholdCellFaces::updateGeometry(), and sampledIsoSurfaceCell::updateGeometry().
|
inline |
Name of surface.
Definition at line 250 of file sampledSurface.H.
References sampledSurface::name_.
Referenced by sampledSurface::iNew::operator()().
|
inline |
Interpolation requested for surface.
Definition at line 256 of file sampledSurface.H.
References sampledSurface::interpolate_.
Referenced by sampledIsoSurface::getIsoFields(), sampledIsoSurface::sampledIsoSurface(), sampledTriSurfaceMesh::update(), and sampledIsoSurfaceCell::updateGeometry().
|
pure virtual |
Does the surface need an update?
Implemented in sampledTriSurfaceMesh, distanceSurface, sampledIsoSurface, sampledPatch, sampledCuttingPlane, sampledIsoSurfaceCell, sampledThresholdCellFaces, and sampledPlane.
|
pure virtual |
Mark the surface as needing an update.
May also free up unneeded data. Return false if surface was already marked as expired.
Implemented in sampledTriSurfaceMesh, distanceSurface, sampledIsoSurface, sampledPatch, sampledCuttingPlane, sampledIsoSurfaceCell, sampledThresholdCellFaces, and sampledPlane.
|
pure virtual |
Update the surface as required.
Do nothing (and return false) if no update was required
Implemented in sampledTriSurfaceMesh, distanceSurface, sampledIsoSurface, sampledPatch, sampledCuttingPlane, sampledIsoSurfaceCell, sampledThresholdCellFaces, and sampledPlane.
|
pure virtual |
Points of surface.
Implemented in sampledTriSurfaceMesh, sampledIsoSurface, distanceSurface, sampledPatch, sampledCuttingPlane, sampledIsoSurfaceCell, sampledThresholdCellFaces, and sampledPlane.
|
pure virtual |
Faces of surface.
Implemented in sampledTriSurfaceMesh, sampledIsoSurface, distanceSurface, sampledPatch, sampledCuttingPlane, sampledIsoSurfaceCell, sampledThresholdCellFaces, and sampledPlane.
Referenced by sampledSurface::checkFieldSize().
|
virtual |
Return face area vectors.
Definition at line 195 of file sampledSurface.C.
|
virtual |
Return face area magnitudes.
Definition at line 206 of file sampledSurface.C.
|
virtual |
Return face centres as vectorField.
Definition at line 217 of file sampledSurface.C.
Foam::scalar area | ( | ) | const |
The total surface area.
Definition at line 228 of file sampledSurface.C.
References Foam::reduce(), and Foam::sum().
Type integrate | ( | const Field< Type > & | field | ) | const |
Integration of a field across the surface.
Definition at line 50 of file sampledSurfaceTemplates.C.
References Foam::reduce(), and Foam::sum().
Integration of a field across the surface.
Definition at line 65 of file sampledSurfaceTemplates.C.
Type average | ( | const Field< Type > & | field | ) | const |
Area-averaged value of a field across the surface.
Definition at line 74 of file sampledSurfaceTemplates.C.
References Foam::reduce(), and Foam::sum().
Area-averaged value of a field across the surface.
Definition at line 98 of file sampledSurfaceTemplates.C.
References Foam::average().
Foam::tmp< Foam::Field< Foam::scalar > > project | ( | const Field< scalar > & | field | ) | const |
Foam::tmp< Foam::Field< Foam::scalar > > project | ( | const Field< vector > & | field | ) | const |
Project field onto surface.
Definition at line 306 of file sampledSurface.C.
Foam::tmp< Foam::Field< Foam::vector > > project | ( | const Field< sphericalTensor > & | field | ) | const |
Project field onto surface.
Definition at line 315 of file sampledSurface.C.
Foam::tmp< Foam::Field< Foam::vector > > project | ( | const Field< symmTensor > & | field | ) | const |
Project field onto surface.
Definition at line 324 of file sampledSurface.C.
Foam::tmp< Foam::Field< Foam::vector > > project | ( | const Field< tensor > & | field | ) | const |
Project field onto surface.
Definition at line 333 of file sampledSurface.C.
tmp<GeometricField<Type, fvPatchField, volMesh> > pointAverage | ( | const GeometricField< Type, pointPatchField, pointMesh > & | pfld | ) | const |
Interpolate from points to cell centre.
Referenced by sampledIsoSurface::getIsoFields().
|
pure virtual |
Sample field on surface.
Implemented in sampledTriSurfaceMesh, distanceSurface, sampledIsoSurface, sampledCuttingPlane, sampledPatch, sampledIsoSurfaceCell, sampledThresholdCellFaces, sampledPlane, and sampledPatchInternalField.
|
pure virtual |
Sample field on surface.
Implemented in sampledTriSurfaceMesh, distanceSurface, sampledIsoSurface, sampledCuttingPlane, sampledPatch, sampledIsoSurfaceCell, sampledPlane, sampledThresholdCellFaces, sampledPatchInternalField, sampledTriSurfaceMesh, distanceSurface, sampledIsoSurface, sampledCuttingPlane, sampledPatch, sampledIsoSurfaceCell, sampledPlane, sampledThresholdCellFaces, sampledPatchInternalField, sampledTriSurfaceMesh, distanceSurface, sampledIsoSurface, sampledCuttingPlane, sampledPatch, sampledIsoSurfaceCell, sampledPlane, sampledThresholdCellFaces, sampledPatchInternalField, sampledTriSurfaceMesh, distanceSurface, sampledIsoSurface, sampledCuttingPlane, sampledPatch, sampledIsoSurfaceCell, sampledPlane, sampledThresholdCellFaces, sampledPatchInternalField, sampledPatch, sampledPatch, sampledPatch, sampledPatch, and sampledPatch.
Definition at line 241 of file sampledSurface.C.
References NotImplemented.
|
pure virtual |
Sample field on surface.
Implemented in sampledTriSurfaceMesh, distanceSurface, sampledIsoSurface, sampledCuttingPlane, sampledPatch, sampledIsoSurfaceCell, sampledPlane, sampledThresholdCellFaces, sampledPatchInternalField, sampledTriSurfaceMesh, distanceSurface, sampledIsoSurface, sampledCuttingPlane, sampledPatch, sampledIsoSurfaceCell, sampledPlane, sampledThresholdCellFaces, sampledPatchInternalField, sampledTriSurfaceMesh, distanceSurface, sampledIsoSurface, sampledCuttingPlane, sampledPatch, sampledIsoSurfaceCell, sampledPlane, sampledThresholdCellFaces, sampledPatchInternalField, sampledTriSurfaceMesh, distanceSurface, sampledIsoSurface, sampledCuttingPlane, sampledPatch, sampledIsoSurfaceCell, sampledPlane, sampledThresholdCellFaces, sampledPatchInternalField, sampledPatch, sampledPatch, sampledPatch, sampledPatch, and sampledPatch.
|
pure virtual |
Sample field on surface.
Implemented in sampledTriSurfaceMesh, distanceSurface, sampledIsoSurface, sampledCuttingPlane, sampledPatch, sampledIsoSurfaceCell, sampledPlane, sampledThresholdCellFaces, sampledPatchInternalField, sampledTriSurfaceMesh, distanceSurface, sampledIsoSurface, sampledCuttingPlane, sampledPatch, sampledIsoSurfaceCell, sampledPlane, sampledThresholdCellFaces, sampledPatchInternalField, sampledTriSurfaceMesh, distanceSurface, sampledIsoSurface, sampledCuttingPlane, sampledPatch, sampledIsoSurfaceCell, sampledPlane, sampledThresholdCellFaces, sampledPatchInternalField, sampledTriSurfaceMesh, distanceSurface, sampledIsoSurface, sampledCuttingPlane, sampledPatch, sampledIsoSurfaceCell, sampledPlane, sampledThresholdCellFaces, sampledPatchInternalField, sampledPatch, sampledPatch, sampledPatch, sampledPatch, and sampledPatch.
|
pure virtual |
Sample field on surface.
Implemented in sampledTriSurfaceMesh, distanceSurface, sampledIsoSurface, sampledCuttingPlane, sampledPatch, sampledIsoSurfaceCell, sampledPlane, sampledThresholdCellFaces, sampledPatchInternalField, sampledTriSurfaceMesh, distanceSurface, sampledIsoSurface, sampledCuttingPlane, sampledPatch, sampledIsoSurfaceCell, sampledPlane, sampledThresholdCellFaces, sampledPatchInternalField, sampledTriSurfaceMesh, distanceSurface, sampledIsoSurface, sampledCuttingPlane, sampledPatch, sampledIsoSurfaceCell, sampledPlane, sampledThresholdCellFaces, sampledPatchInternalField, sampledTriSurfaceMesh, distanceSurface, sampledIsoSurface, sampledCuttingPlane, sampledPatch, sampledIsoSurfaceCell, sampledPlane, sampledThresholdCellFaces, sampledPatchInternalField, sampledPatch, sampledPatch, sampledPatch, sampledPatch, and sampledPatch.
|
virtual |
Surface sample field on surface.
Reimplemented in sampledTriSurfaceMesh, distanceSurface, sampledIsoSurface, sampledCuttingPlane, sampledPatch, sampledIsoSurfaceCell, sampledPlane, sampledThresholdCellFaces, sampledPatchInternalField, sampledTriSurfaceMesh, distanceSurface, sampledIsoSurface, sampledCuttingPlane, sampledPatch, sampledIsoSurfaceCell, sampledPlane, sampledThresholdCellFaces, sampledPatchInternalField, sampledTriSurfaceMesh, distanceSurface, sampledIsoSurface, sampledCuttingPlane, sampledPatch, sampledIsoSurfaceCell, sampledPlane, sampledThresholdCellFaces, sampledPatchInternalField, sampledTriSurfaceMesh, distanceSurface, sampledIsoSurface, sampledCuttingPlane, sampledPatch, sampledIsoSurfaceCell, sampledPlane, sampledThresholdCellFaces, sampledPatchInternalField, sampledPatch, sampledPatch, sampledPatch, sampledPatch, and sampledPatch.
|
virtual |
Surface Sample field on surface.
Reimplemented in sampledTriSurfaceMesh, distanceSurface, sampledIsoSurface, sampledCuttingPlane, sampledPatch, sampledIsoSurfaceCell, sampledPlane, sampledThresholdCellFaces, sampledPatchInternalField, sampledTriSurfaceMesh, distanceSurface, sampledIsoSurface, sampledCuttingPlane, sampledPatch, sampledIsoSurfaceCell, sampledPlane, sampledThresholdCellFaces, sampledPatchInternalField, sampledTriSurfaceMesh, distanceSurface, sampledIsoSurface, sampledCuttingPlane, sampledPatch, sampledIsoSurfaceCell, sampledPlane, sampledThresholdCellFaces, sampledPatchInternalField, sampledTriSurfaceMesh, distanceSurface, sampledIsoSurface, sampledCuttingPlane, sampledPatch, sampledIsoSurfaceCell, sampledPlane, sampledThresholdCellFaces, sampledPatchInternalField, sampledPatch, sampledPatch, sampledPatch, sampledPatch, and sampledPatch.
|
virtual |
Surface sample field on surface.
Reimplemented in sampledTriSurfaceMesh, distanceSurface, sampledIsoSurface, sampledCuttingPlane, sampledPatch, sampledIsoSurfaceCell, sampledPlane, sampledThresholdCellFaces, sampledPatchInternalField, sampledTriSurfaceMesh, distanceSurface, sampledIsoSurface, sampledCuttingPlane, sampledPatch, sampledIsoSurfaceCell, sampledPlane, sampledThresholdCellFaces, sampledPatchInternalField, sampledTriSurfaceMesh, distanceSurface, sampledIsoSurface, sampledCuttingPlane, sampledPatch, sampledIsoSurfaceCell, sampledPlane, sampledThresholdCellFaces, sampledPatchInternalField, sampledTriSurfaceMesh, distanceSurface, sampledIsoSurface, sampledCuttingPlane, sampledPatch, sampledIsoSurfaceCell, sampledPlane, sampledThresholdCellFaces, sampledPatchInternalField, sampledPatch, sampledPatch, sampledPatch, sampledPatch, and sampledPatch.
|
virtual |
Surface sample field on surface.
Reimplemented in sampledTriSurfaceMesh, distanceSurface, sampledIsoSurface, sampledCuttingPlane, sampledPatch, sampledIsoSurfaceCell, sampledPlane, sampledThresholdCellFaces, sampledPatchInternalField, sampledTriSurfaceMesh, distanceSurface, sampledIsoSurface, sampledCuttingPlane, sampledPatch, sampledIsoSurfaceCell, sampledPlane, sampledThresholdCellFaces, sampledPatchInternalField, sampledTriSurfaceMesh, distanceSurface, sampledIsoSurface, sampledCuttingPlane, sampledPatch, sampledIsoSurfaceCell, sampledPlane, sampledThresholdCellFaces, sampledPatchInternalField, sampledTriSurfaceMesh, distanceSurface, sampledIsoSurface, sampledCuttingPlane, sampledPatch, sampledIsoSurfaceCell, sampledPlane, sampledThresholdCellFaces, sampledPatchInternalField, sampledPatch, sampledPatch, sampledPatch, sampledPatch, and sampledPatch.
|
virtual |
Surface sample field on surface.
Reimplemented in sampledTriSurfaceMesh, distanceSurface, sampledIsoSurface, sampledCuttingPlane, sampledPatch, sampledIsoSurfaceCell, sampledPlane, sampledThresholdCellFaces, sampledPatchInternalField, sampledTriSurfaceMesh, distanceSurface, sampledIsoSurface, sampledCuttingPlane, sampledPatch, sampledIsoSurfaceCell, sampledPlane, sampledThresholdCellFaces, sampledPatchInternalField, sampledTriSurfaceMesh, distanceSurface, sampledIsoSurface, sampledCuttingPlane, sampledPatch, sampledIsoSurfaceCell, sampledPlane, sampledThresholdCellFaces, sampledPatchInternalField, sampledTriSurfaceMesh, distanceSurface, sampledIsoSurface, sampledCuttingPlane, sampledPatch, sampledIsoSurfaceCell, sampledPlane, sampledThresholdCellFaces, sampledPatchInternalField, sampledPatch, sampledPatch, sampledPatch, sampledPatch, and sampledPatch.
|
pure virtual |
Interpolate field on surface.
Implemented in sampledTriSurfaceMesh, sampledPatch, distanceSurface, sampledIsoSurface, sampledCuttingPlane, sampledIsoSurfaceCell, sampledPlane, sampledThresholdCellFaces, and sampledPatchInternalField.
|
pure virtual |
Interpolate field on surface.
Implemented in sampledTriSurfaceMesh, sampledPatch, distanceSurface, sampledIsoSurface, sampledCuttingPlane, sampledIsoSurfaceCell, sampledPlane, sampledThresholdCellFaces, and sampledPatchInternalField.
|
pure virtual |
Interpolate field on surface.
Implemented in sampledTriSurfaceMesh, sampledPatch, distanceSurface, sampledIsoSurface, sampledCuttingPlane, sampledIsoSurfaceCell, sampledPlane, sampledThresholdCellFaces, and sampledPatchInternalField.
|
pure virtual |
Interpolate field on surface.
Implemented in sampledTriSurfaceMesh, sampledPatch, distanceSurface, sampledIsoSurface, sampledCuttingPlane, sampledIsoSurfaceCell, sampledPlane, sampledThresholdCellFaces, and sampledPatchInternalField.
|
pure virtual |
Interpolate field on surface.
Implemented in sampledTriSurfaceMesh, sampledPatch, distanceSurface, sampledIsoSurface, sampledCuttingPlane, sampledIsoSurfaceCell, sampledPlane, sampledThresholdCellFaces, and sampledPatchInternalField.
|
inlinevirtual |
|
virtual |
Write.
Reimplemented in sampledTriSurfaceMesh, sampledPatch, distanceSurface, sampledIsoSurface, sampledCuttingPlane, sampledIsoSurfaceCell, sampledPlane, sampledThresholdCellFaces, and sampledPatchInternalField.
Definition at line 341 of file sampledSurface.C.
References Foam::type().
Foam::tmp<Foam::Field<ReturnType> > project | ( | const tmp< Field< Type > > & | field | ) | const |
Definition at line 144 of file sampledSurfaceTemplates.C.
Foam::tmp<Foam::GeometricField<Type, Foam::fvPatchField, Foam::volMesh> > pointAverage | ( | const GeometricField< Type, pointPatchField, pointMesh > & | pfld | ) | const |
Definition at line 157 of file sampledSurfaceTemplates.C.
References GeometricField::correctBoundaryConditions(), Foam::dimless, forAll, mesh, primitiveMesh::nCells(), IOobject::NO_READ, IOobject::NO_WRITE, primitiveMesh::nPoints(), primitiveMesh::pointCells(), fvMesh::time(), and Time::timeName().
|
friend |
Ostream operator.
|
private |
Name of sample surface.
Definition at line 82 of file sampledSurface.H.
Referenced by sampledSurface::name(), and sampledSurface::rename().
|
private |
Reference to mesh.
Definition at line 85 of file sampledSurface.H.
Referenced by sampledSurface::mesh().
|
private |
Do we intend to interpolate the information?
Definition at line 88 of file sampledSurface.H.
Referenced by sampledSurface::interpolate().
|
mutableprivate |
Face area vectors.
Definition at line 94 of file sampledSurface.H.
Referenced by sampledSurface::clearGeom().
|
mutableprivate |
Mag face area vectors.
Definition at line 97 of file sampledSurface.H.
Referenced by sampledSurface::clearGeom().
|
mutableprivate |
Face centres.
Definition at line 100 of file sampledSurface.H.
Referenced by sampledSurface::clearGeom().
|
mutableprivate |
Total surface area.
Definition at line 103 of file sampledSurface.H.
Referenced by sampledSurface::clearGeom().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.