33 namespace sampledSurfaces
44 Foam::sampledSurfaces::isoSurface::calcIsoSurf()
const
51 tmp<pointScalarField> pField
57 PtrList<cutPolyIsoSurface> isoSurfs(isoValues_.
size());
63 new cutPolyIsoSurface(
mesh(), pField, isoValues_[i],
zoneIDs())
68 if (isoValues_.
size() == 1)
70 return autoPtr<cutPolyIsoSurface>(isoSurfs.set(0,
nullptr));
74 return autoPtr<cutPolyIsoSurface>(
new cutPolyIsoSurface(isoSurfs));
89 isoFieldName_(
dict.lookup(
"isoField")),
115 return timeIndex() != mesh().time().timeIndex();
121 os <<
"isoSurface: " <<
name() <<
" :"
122 <<
" field:" << isoFieldName_;
123 if (isoValues_.size() == 1)
125 os <<
" value:" << isoValues_[0];
129 os <<
" values:" << isoValues_;
131 os <<
" faces:" << faces().size()
132 <<
" points:" <<
points().size();
#define forAll(list, i)
Loop across all elements in list.
Macros for easy insertion into run-time selection tables.
static volPointInterpolation & New(const fvMesh &mesh)
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,...
A list of keyword definitions, which are a keyword followed by any number of values (e....
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type and name.
Mesh consisting of general polyhedral cells.
An abstract class for surfaces with sampling.
const polyMesh & mesh() const
Access to the underlying mesh.
A sampledSurface defined by an iso-value of a field.
virtual wordList fields() const
Return the list of fields required.
isoSurface(const word &name, const polyMesh &mesh, const dictionary &dict)
Construct from dictionary.
virtual bool needsUpdate() const
Does the surface need an update?
virtual void print(Ostream &) const
Write.
virtual ~isoSurface()
Destructor.
A base class for sampled surfaces constructed from iso-surfaces.
const labelList & zoneIDs() const
Access the zone indices.
tmp< PointField< Type > > interpolate(const VolField< Type > &) const
Interpolate volField using inverse distance weighting.
A class for handling words, derived from string.
defineTypeNameAndDebug(cutPlane, 0)
addToRunTimeSelectionTable(sampledSurface, cutPlane, word)
List< word > wordList
A List of words.
VolField< scalar > volScalarField
word name(const complex &)
Return a string representation of a complex.