Go to the documentation of this file.
47 const plane& planeDesc,
49 const bool triangulate
55 triangulate_(triangulate),
58 if (debug && zoneKey_.size() &&
mesh.cellZones().findIndex(zoneKey_) < 0)
60 Info<<
"cellZone " << zoneKey_
61 <<
" not found - using entire mesh" <<
endl;
75 zoneKey_(keyType::null),
76 triangulate_(
dict.lookupOrDefault(
"triangulate",
true)),
81 if (
dict.found(
"coordinateSystem"))
89 static_cast<plane&
>(*this) =
plane(base, norm);
92 dict.readIfPresent(
"zone", zoneKey_);
94 if (debug && zoneKey_.size() &&
mesh.cellZones().findIndex(zoneKey_) < 0)
96 Info<<
"cellZone " << zoneKey_
97 <<
" not found - using entire mesh" <<
endl;
142 if (selectedCells.empty())
144 reCut(
mesh(), triangulate_);
148 reCut(
mesh(), triangulate_, selectedCells);
157 needsUpdate_ =
false;
167 return sampleField(vField);
176 return sampleField(vField);
185 return sampleField(vField);
194 return sampleField(vField);
203 return sampleField(vField);
212 return interpolateField(interpolator);
221 return interpolateField(interpolator);
229 return interpolateField(interpolator);
238 return interpolateField(interpolator);
247 return interpolateField(interpolator);
253 os <<
"sampledPlane: " <<
name() <<
" :"
254 <<
" base:" << refPoint()
256 <<
" triangulate:" << triangulate_
257 <<
" faces:" << faces().size()
258 <<
" points:" <<
points().size();
point globalPosition(const point &local) const
Convert from position in local coordinate system to global.
GeometricField< tensor, fvPatchField, volMesh > volTensorField
addNamedToRunTimeSelectionTable(fvPatch, cyclicAMIFvPatch, polyPatch, cyclicPeriodicAMI)
virtual bool update()
Update the surface as required.
A class for handling words, derived from string.
void print(const char *msg, Ostream &os, const PtrList< GeoField > &flds)
virtual bool expire()
Mark the surface as needing an update.
A class for managing temporary objects.
Constructs plane through mesh.
sampledPlane(const word &name, const polyMesh &mesh, const plane &planeDesc, const keyType &zoneKey=word::null, const bool triangulate=true)
Construct from components.
virtual tmp< scalarField > sample(const volScalarField &) const
Sample field on surface.
const cellZoneMesh & cellZones() const
Return cell zone mesh.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Mesh consisting of general polyhedral cells.
Geometric class that creates a 2D plane and can return the intersection point between a line and the ...
A class for handling keywords in dictionaries.
virtual bool needsUpdate() const
Does the surface need an update?
GeometricField< symmTensor, fvPatchField, volMesh > volSymmTensorField
vector globalVector(const vector &local) const
Convert from vector components in local coordinate system to.
An abstract class for surfaces with sampling.
A list of keyword definitions, which are a keyword followed by any number of values (e....
PackedBoolList findMatching(const keyType &) const
Mark cells that match the zone specification.
Macros for easy insertion into run-time selection tables.
virtual void print(Ostream &) const
Write.
prefixOSstream Pout(cout, "Pout")
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
virtual void clearGeom() const
virtual ~sampledPlane()
Destructor.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Generic GeometricField class.
bool interpolate() const
Interpolation requested for surface.
defineTypeNameAndDebug(combustionModel, 0)
Xfer< labelList > used() const
Return indices of the used (true) elements as a list of labels.
word name(const complex &)
Return a string representation of a complex.
A normal distribution model.
Base class for other coordinate system specifications.