53 #ifndef sampledPatch_H
54 #define sampledPatch_H
63 namespace sampledSurfaces
72 public MeshedSurface<face>,
87 mutable bool needsUpdate_;
138 return patchFaceLabels_;
194 #define DEFINE_SAMPLE(Type, nullArg) \
195 virtual tmp<Field<Type>> sample \
197 const VolField<Type>& \
200 virtual tmp<Field<Type>> sample \
202 const SurfaceField<Type>& \
208 #define DEFINE_INTERPOLATE(Type, nullArg) \
209 virtual tmp<Field<Type>> interpolate \
211 const interpolation<Type>& \
214 #undef DEFINE_INTERPOLATE
220 virtual void topoChange(
const polyTopoChangeMap&);
229 virtual void print(Ostream&)
const;
Generic GeometricField class.
const List< Face > & faces() const
Return const access to the faces.
virtual label triangulate()
Triangulate in-place, returning the number of triangles added.
const Field< PointType > & points() const
Return reference to global points.
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Abstract base class for interpolation.
Class containing mesh-to-mesh mapping information after a mesh distribution where we send parts of me...
Class containing mesh-to-mesh mapping information.
Mesh consisting of general polyhedral cells.
const word & name() const
Name of surface.
const polyMesh & mesh() const
Access to the underlying mesh.
const wordReList & patchNames() const
const labelList & patchIndices() const
virtual ~patch()
Destructor.
TypeName("patch")
Runtime type information.
virtual void topoChange(const polyTopoChangeMap &)
Update topology using the given map.
virtual void distribute(const polyDistributionMap &)
Redistribute or update using the given distribution map.
virtual void movePoints()
Update for mesh point-motion.
FOR_ALL_FIELD_TYPES(DEFINE_SAMPLE)
virtual void mapMesh(const polyMeshMap &)
Update from another mesh using the given map.
virtual bool needsUpdate() const
Does the surface need an update?
virtual bool update()
Update the surface as required.
virtual void print(Ostream &) const
Write.
virtual const faceList & faces() const
Faces of surface.
patch(const word &name, const polyMesh &mesh, const wordReList &patchNames, const bool triangulate=false)
Construct from components.
virtual const pointField & points() const
Points of surface.
const labelList & patchFaceLabels() const
const labelList & patchStart() const
A class for managing temporary objects.
A class for handling words, derived from string.
List< label > labelList
A List of labels.
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)
List< wordRe > wordReList
A List of wordRe (word or regular expression)
#define DEFINE_SAMPLE(Type, nullArg)
Sample field on the surface's faces.
#define DEFINE_INTERPOLATE(Type, nullArg)
Interpolate field to the surface's points.