62 average_(
dict.getOrDefault(
"average", false)),
74 const bool useSignedDistance
103 Pout<<
"sampledDistanceSurface::expire :"
104 <<
" needsUpdate:" << needsUpdate_ <<
endl;
125 Pout<<
"sampledDistanceSurface::update :"
126 <<
" needsUpdate:" << needsUpdate_ <<
endl;
136 needsUpdate_ =
false;
146 return sampleOnFaces(sampler);
155 return sampleOnFaces(sampler);
164 return sampleOnFaces(sampler);
173 return sampleOnFaces(sampler);
182 return sampleOnFaces(sampler);
191 return sampleOnPoints(interpolator);
200 return sampleOnPoints(interpolator);
208 return sampleOnPoints(interpolator);
217 return sampleOnPoints(interpolator);
226 return sampleOnPoints(interpolator);
232 os <<
"distanceSurface: " <<
name() <<
" :";
Macros for easy insertion into run-time selection tables.
#define addNamedToRunTimeSelectionTable(baseType, thisType, argNames, lookupName)
Add to construction table with 'lookupName' as the key.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
A surface defined by a distance from an input searchable surface. Uses an iso-surface algorithm (cell...
void createGeometry()
Create/recreate the distance surface.
scalar distance() const noexcept
The distance to the underlying searchableSurface.
distanceSurface(const word &defaultSurfaceName, const polyMesh &mesh, const dictionary &dict)
Construct from dictionary.
void print(Ostream &os, int level=0) const
Print information.
const meshedSurface & surface() const
The underlying surface.
Abstract base class for volume field interpolation.
Mesh consisting of general polyhedral cells.
A sampledSurface defined by a distance to a surface - resolved using an iso-surface (algorithm: cell,...
virtual tmp< scalarField > interpolate(const interpolation< scalar > &interpolator) const
Interpolate volume field onto surface points.
virtual void print(Ostream &os, int level=0) const
Print information.
virtual tmp< scalarField > sample(const interpolation< scalar > &sampler) const
Sample volume field onto surface faces.
sampledDistanceSurface(const word &name, const polyMesh &mesh, const dictionary &dict)
Construct from dictionary.
virtual bool expire()
Mark the surface as needing an update.
virtual bool needsUpdate() const
Does the surface need an update?
virtual bool update()
Update the surface as required.
An abstract class for surfaces with sampling.
sampledSurface(const word &name, std::nullptr_t)
Construct null.
const word & name() const noexcept
Name of surface.
virtual void clearGeom() const
Additional cleanup when clearing the geometry.
const polyMesh & mesh() const noexcept
Access to the underlying mesh.
bool interpolate() const noexcept
Same as isPointData().
A class for managing temporary objects.
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
OBJstream os(runTime.globalPath()/outputName)
Namespace for handling debugging switches.
scalar distance(const vector &p1, const vector &p2)
Ostream & endl(Ostream &os)
Add newline and flush stream.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
prefixOSstream Pout
OSstream wrapped stdout (std::cout) with parallel prefix.