44 sampledDistanceSurface,
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() <<
" :";
bool interpolate() const noexcept
Same as isPointData()
void createGeometry()
Create/recreate the distance surface.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
An abstract class for surfaces with sampling.
static tmp< GeometricField< Type, faePatchField, edgeMesh > > interpolate(const GeometricField< Type, faPatchField, areaMesh > &tvf, const edgeScalarField &faceFlux, Istream &schemeData)
Interpolate field onto faces using scheme given by Istream.
Ostream & endl(Ostream &os)
Add newline and flush stream.
scalar distance(const vector &p1, const vector &p2)
Macros for easy insertion into run-time selection tables.
virtual bool update()
Update the surface as required.
addNamedToRunTimeSelectionTable(topoSetCellSource, badQualityToCell, word, badQuality)
virtual tmp< scalarField > sample(const interpolation< scalar > &sampler) const
Sample volume field onto surface faces.
virtual void print(Ostream &os, int level=0) const
Print information.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
A class for handling words, derived from Foam::string.
const wordList surface
Standard surface field types (scalar, vector, tensor, etc)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
virtual bool needsUpdate() const
Does the surface need an update?
int debug
Static debugging option.
OBJstream os(runTime.globalPath()/outputName)
defineTypeNameAndDebug(combustionModel, 0)
A surface defined by a distance from an input searchable surface. Uses an iso-surface algorithm (cell...
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
Mesh consisting of general polyhedral cells.
sampledDistanceSurface(const word &name, const polyMesh &mesh, const dictionary &dict)
Construct from dictionary.
A class for managing temporary objects.
void print(Ostream &os, int level=0) const
Print information.
prefixOSstream Pout
OSstream wrapped stdout (std::cout) with parallel prefix.
virtual bool expire()
Mark the surface as needing an update.