33 namespace sampledSurfaces
58 if (dict.
found(
"coordinateSystem"))
62 point base = cs.globalPosition(planeDesc().refPoint());
63 vector norm = cs.globalVector(planeDesc().normal());
73 Info<<
"cellZone " << zoneKey_
74 <<
" not found - using entire mesh" <<
endl;
117 labelList selectedCells =
mesh().cellZones().findMatching(zoneKey_).used();
119 if (selectedCells.
empty())
121 reCut(
mesh(), triangulate_);
125 reCut(
mesh(), triangulate_, selectedCells);
134 needsUpdate_ =
false;
144 return sampleField(vField);
153 return sampleField(vField);
162 return sampleField(vField);
171 return sampleField(vField);
180 return sampleField(vField);
189 return interpolateField(interpolator);
198 return interpolateField(interpolator);
206 return interpolateField(interpolator);
215 return interpolateField(interpolator);
224 return interpolateField(interpolator);
230 os <<
"plane: " <<
name() <<
" :" 231 <<
" base:" << refPoint()
232 <<
" normal:" << normal()
233 <<
" triangulate:" << triangulate_
234 <<
" faces:" << faces().size()
235 <<
" points:" <<
points().size();
label findIndex(const keyType &) const
Return zone index for the first match, return -1 if not found.
Base class for other coordinate system specifications.
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
bool empty() const
Return true if the UList is empty (ie, size() is zero)
const word & name() const
Return the name of this functionObject.
A list of keyword definitions, which are a keyword followed by any number of values (e...
An abstract class for surfaces with sampling.
defineTypeNameAndDebug(distanceSurface, 0)
virtual bool needsUpdate() const
Does the surface need an update?
bool interpolate() const
Interpolation requested for surface.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Geometric class that creates a 2D plane and can return the intersection point between a line and the ...
virtual bool expire()
Mark the surface as needing an update.
Macros for easy insertion into run-time selection tables.
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
A sampledSurface defined by a plane using the iso-surface algorithm to 'cut' the mesh.
virtual ~plane()
Destructor.
plane(const word &name, const polyMesh &mesh, const dictionary &dict)
Construct from dictionary.
virtual void clearGeom() const
A class for handling words, derived from string.
const cellZoneMesh & cellZones() const
Return cell zone mesh.
bool readIfPresent(const word &, T &, bool recursive=false, bool patternMatch=true) const
Find an entry if present, and assign to T.
virtual bool update()
Update the surface as required.
virtual void print(Ostream &) const
Write.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
virtual tmp< scalarField > sample(const volScalarField &) const
Sample field on surface.
addToRunTimeSelectionTable(sampledSurface, distanceSurface, word)
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
prefixOSstream Pout(cout, "Pout")
Mesh consisting of general polyhedral cells.
A class for managing temporary objects.
static const keyType null
An empty keyType.