32 namespace sampledSurfaces
48 zoneName_(
dict.lookupOrDefault(
"zone",
word::null)),
55 <<
"Cell zone " << zoneName_
56 <<
" not found. Using the entire mesh" <<
endl;
76 if (isoSurfTimeIndex_ == -1)
82 isoSurfTimeIndex_ = -1;
99 isoSurfPtr_.reset(calcIsoSurf().ptr());
102 isoSurfTimeIndex_ = mesh().time().timeIndex();
114 #define IMPLEMENT_SAMPLE(Type, nullArg) \
115 Foam::tmp<Foam::Field<Foam::Type>> \
116 Foam::sampledSurfaces::sampledIsoSurfaceSurface::sample \
118 const VolField<Type>& vField \
121 return sampleField(vField); \
124 #undef IMPLEMENT_SAMPLE
127 #define IMPLEMENT_INTERPOLATE(Type, nullArg) \
128 Foam::tmp<Foam::Field<Foam::Type>> \
129 Foam::sampledSurfaces::sampledIsoSurfaceSurface::interpolate \
131 const interpolation<Type>& interpolator \
134 return interpolateField(interpolator); \
137 #undef IMPLEMENT_INTERPOLATE
bool found(const label objectIndex) const
Return true if objectIndex is in any zone.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Mesh consisting of general polyhedral cells.
const cellZoneList & cellZones() const
Return cell zones.
An abstract class for surfaces with sampling.
virtual void clearGeom() const
const polyMesh & mesh() const
Access to the underlying mesh.
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 class for handling words, derived from string.
static const word null
An empty word.
#define WarningInFunction
Report a warning using Foam::Warning.
defineTypeNameAndDebug(cutPlane, 0)
Ostream & endl(Ostream &os)
Add newline and flush stream.
word name(const bool)
Return a word representation of a bool.
FOR_ALL_FIELD_TYPES(makeFieldSourceTypedef)
#define IMPLEMENT_INTERPOLATE(Type, nullArg)
#define IMPLEMENT_SAMPLE(Type, nullArg)