32 namespace sampledSurfaces
41 Foam::sampledSurfaces::sampledIsoSurfaceSurface::calcIsoSurf
91 if (!zone_.regenerate() && !needsUpdate())
100 isoSurfPtr_.reset(calcIsoSurf().ptr());
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
146 isoSurfTimeIndex_ = -1;
156 zone_.topoChange(map);
158 isoSurfTimeIndex_ = -1;
170 isoSurfTimeIndex_ = -1;
180 zone_.distribute(map);
182 isoSurfTimeIndex_ = -1;
label timeIndex() const
Return current time index.
Iso-surface class based on the cutPoly cutting routines.
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
const Time & time() const
Return the top-level database.
const cellZone & zone() const
Return const access to the cell set.
bool all() const
Return true if the set comprises all the cells.
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.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
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.
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.
sampledIsoSurfaceSurface(const word &name, const polyMesh &mesh, const dictionary &dict)
Construct from dictionary.
virtual void mapMesh(const polyMeshMap &)
Update from another mesh using the given map.
virtual bool update()
Update the surface as required.
virtual ~sampledIsoSurfaceSurface()
Destructor.
A class for handling words, derived from string.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
defineTypeNameAndDebug(cutPlane, 0)
FOR_ALL_FIELD_TYPES(makeDimensionedPointFieldFunctions)
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
#define IMPLEMENT_INTERPOLATE(Type, nullArg)
#define IMPLEMENT_SAMPLE(Type, nullArg)