Go to the documentation of this file.
43 sampledThresholdCellFaces,
73 Info<<
"sampledThresholdCellFaces::updateGeometry() : lookup "
85 Info<<
"sampledThresholdCellFaces::updateGeometry() : reading "
107 cellFldPtr = readFieldPtr_.operator->();
132 Pout<<
"sampledThresholdCellFaces::updateGeometry() : constructed"
137 <<
" point : " <<
points().size() <<
nl
167 <<
"require at least one of 'lowerLimit' or 'upperLimit'" <<
endl
200 if (prevTimeIndex_ == -1)
213 return updateGeometry();
222 return sampleField(vField);
231 return sampleField(vField);
240 return sampleField(vField);
249 return sampleField(vField);
258 return sampleField(vField);
267 return interpolateField(interpolator);
276 return interpolateField(interpolator);
285 return interpolateField(interpolator);
294 return interpolateField(interpolator);
303 return interpolateField(interpolator);
309 os <<
"sampledThresholdCellFaces: " <<
name() <<
" :"
310 <<
" field:" << fieldName_
311 <<
" lowerLimit:" << lowerThreshold_
312 <<
" upperLimit:" << upperThreshold_;
GeometricField< tensor, fvPatchField, volMesh > volTensorField
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
addNamedToRunTimeSelectionTable(fvPatch, cyclicAMIFvPatch, polyPatch, cyclicPeriodicAMI)
const scalar lowerThreshold_
Threshold value.
virtual ~sampledThresholdCellFaces()
Destructor.
A class for handling words, derived from string.
A class for managing temporary objects.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
label prevTimeIndex_
Time at last call, also track it surface needs an update.
void transfer(List< T > &)
Transfer the contents of the argument List into this list.
const word fieldName_
Field to get isoSurface of.
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
Ostream & endl(Ostream &os)
Add newline and flush stream.
sampledThresholdCellFaces(const word &name, const polyMesh &, const dictionary &)
Construct from dictionary.
virtual bool needsUpdate() const
Does the surface need an update?
Mesh consisting of general polyhedral cells.
virtual bool update()
Update the surface as required.
virtual bool expire()
Mark the surface as needing an update.
virtual tmp< scalarField > sample(const volScalarField &) const
Sample field on surface.
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
GeometricField< symmTensor, fvPatchField, volMesh > volSymmTensorField
labelList meshCells_
For every face the original cell in mesh.
InternalField & internalField()
Return internal field.
labelList & meshCells()
For every face original cell in mesh.
An abstract class for surfaces with sampling.
static const keyType null
An empty keyType.
Selects the mesh cell faces specified by a threshold value. Non-triangulated by default.
A list of keyword definitions, which are a keyword followed by any number of values (e....
const scalar upperThreshold_
Threshold value.
Macros for easy insertion into run-time selection tables.
Mesh data needed to do the Finite Volume discretisation.
errorManip< error > abort(error &err)
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
bool foundObject(const word &name) const
Is the named Type found?
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
prefixOSstream Pout(cout, "Pout")
static word timeName(const scalar, const int precision=precision_)
Return time name of given scalar time.
A sampledSurface defined by the cell faces corresponding to a threshold value.
bool updateGeometry() const
Create surface (if time has changed)
virtual void clearGeom() const
virtual const faceList & faces() const
Faces of surface.
void reset(T *=0)
If object pointer already set, delete object and set to given.
const Time & time() const
Return the top-level database.
bool triangulate_
Triangulated faces or keep faces as is.
const polyMesh & mesh() const
Access to the underlying mesh.
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type.
void size(const label)
Override size to be inconsistent with allocated storage.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
label timeIndex() const
Return current time index.
Generic GeometricField class.
A surface geometry mesh with zone information, not to be confused with the similarly named surfaceMes...
bool interpolate() const
Interpolation requested for surface.
defineTypeNameAndDebug(combustionModel, 0)
virtual void print(Ostream &) const
Write.
virtual const pointField & points() const
Points of surface.
word name(const complex &)
Return a string representation of a complex.