Go to the documentation of this file.
51 case topoSetSource::sourceType::CELLZONE_SOURCE:
54 const word& zoneTypeName = cellZone::typeName;
60 <<
"No " << zoneTypeName <<
" named "
61 <<
name <<
"found. Has zones: " << zones.names() <<
endl
69 case topoSetSource::sourceType::FACEZONE_SOURCE:
72 const word& zoneTypeName = faceZone::typeName;
78 <<
"No " << zoneTypeName <<
" named "
79 <<
name <<
"found. Has zones: " << zones.names() <<
endl
87 case topoSetSource::sourceType::POINTZONE_SOURCE:
90 const word& zoneTypeName = pointZone::typeName;
96 <<
"No " << zoneTypeName <<
" named "
97 <<
name <<
"found. Has zones: " << zones.names() <<
endl
110 if (selected.
valid())
120 case topoSetSource::sourceType::CELLSET_SOURCE:
127 <<
"Error reading " << classType::typeName
128 <<
" <" <<
name <<
"> : found "
138 case topoSetSource::sourceType::FACESET_SOURCE:
145 <<
"Error reading " << classType::typeName
146 <<
" <" <<
name <<
"> : found "
156 case topoSetSource::sourceType::POINTSET_SOURCE:
163 <<
"Error reading " << classType::typeName
164 <<
" <" <<
name <<
"> : found "
177 <<
"Unexpected sourceType: " << int(setType) <<
nl
178 <<
" for set <" <<
name <<
">" <<
nl
188 Foam::word Foam::expressions::fvExprDriver::getHeaderClassName
197 mesh.time().timeName(),
205 <<
"Registry: " <<
mesh.path()
207 <<
" Time: " <<
mesh.time().timeName()
208 <<
" Path: " << io.localFilePath(io.headerClassName())
209 <<
" Class: " << io.headerClassName() <<
endl;
211 return io.headerClassName();
224 writeVariableStrings(
os,
"variables");
228 os.writeEntry(
"variableValues", variables_);
231 if (!storedVariables_.empty() || !delayedVariables_.empty())
233 const_cast<fvExprDriver&
>
236 ).updateSpecialVariables(
true);
239 if (!storedVariables_.empty())
241 os.writeEntry(
"storedVariables", storedVariables_);
244 if (!delayedVariables_.empty())
246 List<exprResultDelayed> list(delayedVariables_.size());
248 auto outIter = list.begin();
256 os.writeEntry(
"delayedVariables", list);
259 if (!globalScopes_.empty())
261 os.writeEntry(
"globalScopes", globalScopes_);
273 if (!writer_ && hasDataToWrite())
282 if (writer_ &&
mesh().time().outputTime())
Defines the attributes of an object for which implicit objectRegistry management is supported,...
Registered input/output for an expressions::fvExprDriver.
void set(List< bool > &bools, const labelRange &range)
A class for handling words, derived from Foam::string.
static word timeName(const scalar t, const int precision=precision_)
Base driver for parsing value expressions associated with an fvMesh.
Ostream & endl(Ostream &os)
refPtr< labelList > getTopoSetLabels(const word &name, enum topoSetSource::sourceType setType) const
Mesh consisting of general polyhedral cells.
static IOobject findIOobject(const polyMesh &mesh, const word &name, readOption r=MUST_READ, writeOption w=NO_WRITE)
bool valid() const noexcept
void reset(refPtr< T > &&other) noexcept
virtual const fvMesh & mesh() const =0
const cellZoneMesh & cellZones() const noexcept
Ostream & writeCommon(Ostream &os, bool debug=false) const
const faceZoneMesh & faceZones() const noexcept
const word & headerClassName() const noexcept
OBJstream os(runTime.globalPath()/outputName)
const labelIOList & zoneID
A collection of cell labels.
errorManipArg< error, int > exit(error &err, const int errNo=1)
void createWriterAndRead(const word &name)
#define FatalErrorInFunction
forAllConstIters(mixture.phases(), phase)
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
fileName::Type type(const fileName &name, const bool followLink=true)
const pointZoneMesh & pointZones() const noexcept
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,...
A class for managing references or pointers (no reference counting)