32 namespace sampledSurfaces
48 zoneName_(
dict.lookupOrDefault(
"zone",
wordRe::null)),
56 <<
"Cell zone " << zoneName_
57 <<
" not found. Using the entire mesh" <<
endl;
77 if (isoSurfTimeIndex_ == -1)
83 isoSurfTimeIndex_ = -1;
100 isoSurfPtr_.reset(calcIsoSurf().ptr());
103 isoSurfTimeIndex_ = mesh().time().timeIndex();
115 #define IMPLEMENT_SAMPLE(Type, nullArg) \
116 Foam::tmp<Foam::Field<Foam::Type>> \
117 Foam::sampledSurfaces::sampledIsoSurfaceSurface::sample \
119 const VolField<Type>& vField \
122 return sampleField(vField); \
125 #undef IMPLEMENT_SAMPLE
128 #define IMPLEMENT_INTERPOLATE(Type, nullArg) \
129 Foam::tmp<Foam::Field<Foam::Type>> \
130 Foam::sampledSurfaces::sampledIsoSurfaceSurface::interpolate \
132 const interpolation<Type>& interpolator \
135 return interpolateField(interpolator); \
138 #undef IMPLEMENT_INTERPOLATE
bool empty() const
Return true if the UList is empty (ie, size() is zero)
A list of keyword definitions, which are a keyword followed by any number of values (e....
Mesh consisting of general polyhedral cells.
An abstract class for surfaces with sampling.
virtual void clearGeom() const
A base class for sampled surfaces constructed from iso-surfaces.
sampledIsoSurfaceSurface(const word &name, const polyMesh &mesh, const dictionary &dict)
Construct from dictionary.
virtual bool expire()
Mark the surface as needing an update.
virtual bool update()
Update the surface as required.
virtual ~sampledIsoSurfaceSurface()
Destructor.
A wordRe is a word, but can also have a regular expression for matching words.
static const wordRe null
An empty wordRe.
A class for handling words, derived from string.
#define WarningInFunction
Report a warning using Foam::Warning.
defineTypeNameAndDebug(cutPlane, 0)
Ostream & endl(Ostream &os)
Add newline and flush stream.
labelList findIndices(const ListType &, typename ListType::const_reference, const label start=0)
Find all occurrences of given element. Linear search.
FOR_ALL_FIELD_TYPES(DefineContiguousFvWallLocationDataType)
word name(const complex &)
Return a string representation of a complex.
#define IMPLEMENT_INTERPOLATE(Type, nullArg)
#define IMPLEMENT_SAMPLE(Type, nullArg)