49 #ifndef sampledSurface_H 50 #define sampledSurface_H 75 Ostream&
operator<<(Ostream&,
const sampledSurface&);
93 const bool interpolate_;
108 mutable scalar area_;
117 void makeMagSf()
const;
130 template<
class ReturnType,
class Type>
138 template<
class ReturnType,
class Type>
146 template<
class ReturnType,
class Type>
272 virtual bool expire() = 0;
276 virtual bool update() = 0;
Type integrate(const Field< Type > &) const
Integration of a field across the surface.
virtual ~sampledSurface()
Destructor.
TypeName("sampledSurface")
Runtime type information.
virtual bool expire()=0
Mark the surface as needing an update.
A list of keyword definitions, which are a keyword followed by any number of values (e...
An abstract class for surfaces with sampling.
autoPtr< sampledSurface > clone() const
Clone.
const word & name() const
Name of surface.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
bool interpolate() const
Interpolation requested for surface.
autoPtr< sampledSurface > operator()(Istream &is) const
virtual void print(Ostream &) const
Write.
friend Ostream & operator<<(Ostream &, const sampledSurface &)
Ostream operator.
virtual const faceList & faces() const =0
Faces of surface.
virtual bool needsUpdate() const =0
Does the surface need an update?
virtual void clearGeom() const
tmp< GeometricField< Type, fvPatchField, volMesh > > pointAverage(const GeometricField< Type, pointPatchField, pointMesh > &pfld) const
Interpolate from points to cell centre.
A class for handling words, derived from string.
Type average(const Field< Type > &) const
Area-averaged value of a field across the surface.
declareRunTimeSelectionTable(autoPtr, sampledSurface, word,(const word &name, const polyMesh &mesh, const dictionary &dict),(name, mesh, dict))
Declare run-time constructor selection table.
sampledSurface(const word &name, const polyMesh &, const bool interpolate=false)
Construct from name, mesh.
scalar area() const
The total surface area.
static autoPtr< sampledSurface > New(const word &name, const polyMesh &, const dictionary &)
Return a reference to the selected surface.
const polyMesh & mesh() const
Access to the underlying mesh.
virtual bool update()=0
Update the surface as required.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
virtual const vectorField & Sf() const
Return face area vectors.
iNew(const polyMesh &mesh)
virtual const vectorField & Cf() const
Return face centres as vectorField.
virtual const scalarField & magSf() const
Return face area magnitudes.
virtual const pointField & points() const =0
Points of surface.
Ostream & operator<<(Ostream &, const ensightPart &)
virtual void rename(const word &newName)
Rename.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Mesh consisting of general polyhedral cells.
Macros to ease declaration of run-time selection tables.
A class for managing temporary objects.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
Class used for the PtrLists read-construction.
virtual tmp< scalarField > sample(const volScalarField &) const =0
Sample field on surface.