Go to the documentation of this file.
51 bool Foam::sampledInterface::updateGeometry()
const
53 const fvMesh& fvm =
static_cast<const fvMesh&
>(
mesh());
56 if (fvm.time().timeIndex() == prevTimeIndex_)
61 prevTimeIndex_ = fvm.time().timeIndex();
72 const label exposedPatchi =
75 bitSet cellsToSelect(
mesh().cellZones().selection(zoneNames_));
78 <<
"Allocating subset of size "
79 << cellsToSelect.count()
80 <<
" with exposed faces into patch "
81 << exposedPatchi <<
endl;
85 new fvMeshSubset(fvm, cellsToSelect, exposedPatchi)
100 fvm.lookupObjectRef<reconstructionSchemes>
102 "reconstructionScheme"
127 if (!
dict.readIfPresent(
"zones", zoneNames_) &&
dict.found(
"zone"))
130 dict.readEntry(
"zone", zoneNames_.first());
135 dict.readIfPresent(
"exposedPatchName", exposedPatchName_);
138 <<
"Restricting to cellZone " <<
flatOutput(zoneNames_)
139 <<
" with exposed internal faces into patch "
164 if (prevTimeIndex_ == -1)
177 return updateGeometry();
186 return sampleOnFaces(sampler);
195 return sampleOnFaces(sampler);
204 return sampleOnFaces(sampler);
213 return sampleOnFaces(sampler);
222 return sampleOnFaces(sampler);
231 return sampleOnPoints(interpolator);
240 return sampleOnPoints(interpolator);
248 return sampleOnPoints(interpolator);
257 return sampleOnPoints(interpolator);
266 return sampleOnPoints(interpolator);
272 os <<
"sampledInterface: " <<
name();
A class for handling words, derived from Foam::string.
label findIndex(const wordRe &key) const
void resize(const label len)
A class for managing temporary objects.
bool found(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
interfaceProperties interface(alpha1, U, thermo->transportPropertiesDict())
sampledInterface(const word &name, const polyMesh &mesh, const dictionary &dict)
const polyBoundaryMesh & boundaryMesh() const
Ostream & endl(Ostream &os)
Mesh consisting of general polyhedral cells.
label timeIndex() const noexcept
bool interpolate() const noexcept
const cellZoneMesh & cellZones() const noexcept
virtual bool needsUpdate() const
label findIndex(const ListType &input, typename ListType::const_reference val, const label start=0)
addNamedToRunTimeSelectionTable(topoSetCellSource, badQualityToCell, word, badQuality)
bool readEntry(const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX, bool mandatory=true) const
An abstract class for surfaces with sampling.
label findPatchID(const word &patchName, const bool allowNotFound=true) const
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
Macros for easy insertion into run-time selection tables.
Mesh data needed to do the Finite Volume discretisation.
FlatOutput::OutputAdaptor< Container, Delimiters > flatOutput(const Container &obj, Delimiters delim)
virtual tmp< scalarField > sample(const interpolation< scalar > &sampler) const
const polyMesh & mesh() const noexcept
virtual void print(Ostream &os, int level=0) const
virtual void clearGeom() const
word name(const expressions::valueTypeCode typeCode)
const Time & time() const
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
defineTypeNameAndDebug(combustionModel, 0)
bool readIfPresent(const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX) const