58 #ifndef sampledThresholdCellFaces_H
59 #define sampledThresholdCellFaces_H
68 namespace sampledSurfaces
75 class thresholdCellFaces
77 public sampledSurface,
78 public MeshedSurface<face>
83 const word fieldName_;
86 const scalar lowerThreshold_;
89 const scalar upperThreshold_;
95 mutable label prevTimeIndex_;
105 bool updateGeometry()
const;
166 #define DEFINE_SAMPLE(Type, nullArg) \
167 virtual tmp<Field<Type>> sample \
169 const VolField<Type>& \
175 #define DEFINE_INTERPOLATE(Type, nullArg) \
176 virtual tmp<Field<Type>> interpolate \
178 const interpolation<Type>& \
181 #undef DEFINE_INTERPOLATE
190 virtual void mapMesh(
const polyMeshMap&);
Generic GeometricField class.
const List< Face > & faces() const
Return const access to the faces.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
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...
Mesh consisting of general polyhedral cells.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
const word & name() const
Name of surface.
TypeName("thresholdCellFaces")
Runtime type information.
thresholdCellFaces(const word &name, const polyMesh &, const dictionary &)
Construct from dictionary.
virtual wordList fields() const
Return the list of fields required.
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.
virtual ~thresholdCellFaces()
Destructor.
virtual const pointField & points() const
Points of surface.
A class for managing temporary objects.
A class for handling words, derived from string.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
#define DEFINE_SAMPLE(Type, nullArg)
Sample field on the surface's faces.
#define DEFINE_INTERPOLATE(Type, nullArg)
Interpolate field to the surface's points.