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>
278 virtual bool expire() = 0;
282 virtual bool update() = 0;
Generic GeometricField class.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
static const List< word > & null()
Return a null List.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A list of keyword definitions, which are a keyword followed by any number of values (e....
Abstract base class for interpolation.
Mesh consisting of general polyhedral cells.
Class used for the PtrLists read-construction.
iNew(const polyMesh &mesh)
autoPtr< sampledSurface > operator()(Istream &is) const
An abstract class for surfaces with sampling.
declareRunTimeSelectionTable(autoPtr, sampledSurface, word,(const word &name, const polyMesh &mesh, const dictionary &dict),(name, mesh, dict))
Declare run-time constructor selection table.
virtual bool needsUpdate() const =0
Does the surface need an update?
virtual wordList fields() const
Return the list of fields required.
friend Ostream & operator<<(Ostream &, const sampledSurface &)
Ostream operator.
autoPtr< sampledSurface > clone() const
Clone.
virtual const faceList & faces() const =0
Faces of surface.
static autoPtr< sampledSurface > New(const word &name, const polyMesh &, const dictionary &)
Return a reference to the selected surface.
Type average(const Field< Type > &) const
Area-averaged value of a field across the surface.
virtual tmp< scalarField > sample(const volScalarField &) const =0
Sample field on surface.
virtual bool update()=0
Update the surface as required.
virtual void clearGeom() const
sampledSurface(const word &name, const polyMesh &, const bool interpolate=false)
Construct from name, mesh.
virtual const scalarField & magSf() const
Return face area magnitudes.
virtual ~sampledSurface()
Destructor.
virtual void print(Ostream &) const
Write.
virtual void rename(const word &newName)
Rename.
bool interpolate() const
Interpolation requested for surface.
const word & name() const
Name of surface.
virtual const vectorField & Cf() const
Return face centres as vectorField.
virtual const pointField & points() const =0
Points of surface.
scalar area() const
The total surface area.
const polyMesh & mesh() const
Access to the underlying mesh.
virtual bool expire()=0
Mark the surface as needing an update.
TypeName("sampledSurface")
Runtime type information.
virtual const vectorField & Sf() const
Return face area vectors.
Type integrate(const Field< Type > &) const
Integration of a field across the surface.
A class for managing temporary objects.
A class for handling words, derived from string.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
Ostream & operator<<(Ostream &os, const fvConstraints &constraints)
Macros to ease declaration of run-time selection tables.
Basic run-time type information using word as the type's name. Used to enhance the standard RTTI to c...