33 namespace sampledSurfaces
58 if (dict.
found(
"coordinateSystem"))
65 point base = cs->globalPosition(planeDesc().refPoint());
66 vector norm = cs->globalVector(planeDesc().normal());
74 Info<<
"cellZone " << zoneKey_
75 <<
" not found - using entire mesh" <<
endl;
120 mesh().cellZones().findMatching(zoneKey_).used()
123 if (selectedCells.
empty())
125 reCut(
mesh(), triangulate_);
129 reCut(
mesh(), triangulate_, selectedCells);
138 needsUpdate_ =
false;
148 return sampleField(vField);
157 return sampleField(vField);
166 return sampleField(vField);
175 return sampleField(vField);
184 return sampleField(vField);
193 return interpolateField(interpolator);
202 return interpolateField(interpolator);
210 return interpolateField(interpolator);
219 return interpolateField(interpolator);
228 return interpolateField(interpolator);
234 os <<
"plane: " <<
name() <<
" :" 235 <<
" base:" << refPoint()
236 <<
" normal:" << normal()
237 <<
" triangulate:" << triangulate_
238 <<
" faces:" << faces().size()
239 <<
" points:" <<
points().size();
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 meshCellZones & cellZones() const
Return cell zones.
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
virtual tmp< scalarField > sample(const volScalarField &) const
Sample field on surface.
A class for handling words, derived from string.
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...
addToRunTimeSelectionTable(sampledSurface, distanceSurface, word)
word name(const complex &)
Return a string representation of a complex.
static autoPtr< coordinateSystem > New(const objectRegistry &obr, const dictionary &dict)
Select constructed from dictionary and objectRegistry.
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
prefixOSstream Pout(cout, "Pout")
label findIndex(const wordRe &) const
Return zone index for the first match, return -1 if not found.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Mesh consisting of general polyhedral cells.
A class for managing temporary objects.
static const wordRe null
An empty wordRe.