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.
Minimal example by using system/controlDict.functions:
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.
Abstract base class for volume field interpolation.
scalar print()
Print to screen.
Mesh consisting of general polyhedral cells.
A sampledSurface defined by a distance to a surface - resolved using an iso-surface (algorithm: cell,...
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.
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)
scalar distance(const vector &p1, const vector &p2)
Ostream & endl(Ostream &os)
Add newline and flush stream.
bool interpolate(const vector &p1, const vector &p2, const vector &o, vector &n, scalar l)
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
prefixOSstream Pout
OSstream wrapped stdout (std::cout) with parallel prefix.