Go to the documentation of this file.
51 case topoSetSource::sourceType::CELLZONE_SOURCE:
53 const auto& zones =
mesh().cellZones();
54 const word& zoneTypeName = cellZone::typeName;
60 <<
"No " << zoneTypeName <<
" named "
61 <<
name <<
"found. Has zones: " << zones.names() <<
endl
69 case topoSetSource::sourceType::FACEZONE_SOURCE:
71 const auto& zones =
mesh().faceZones();
72 const word& zoneTypeName = faceZone::typeName;
78 <<
"No " << zoneTypeName <<
" named "
79 <<
name <<
"found. Has zones: " << zones.names() <<
endl
87 case topoSetSource::sourceType::POINTZONE_SOURCE:
89 const auto& zones =
mesh().pointZones();
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
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())
236 ).updateSpecialVariables(
true);
239 if (!storedVariables_.empty())
241 os.writeEntry(
"storedVariables", storedVariables_);
244 if (!delayedVariables_.empty())
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())
int debug
Static debugging option.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
sourceType
Enumeration defining the types of sources.
Registered input/output for an expressions::fvExprDriver.
void set(List< bool > &bools, const labelRange &range)
Set the specified range 'on' in a boolList.
A class for handling words, derived from Foam::string.
bool typeHeaderOk(const bool checkType=true, const bool search=true, const bool verbose=true)
Read header (uses typeFilePath to find file) and check its info.
static word timeName(const scalar t, const int precision=precision_)
Base driver for parsing value expressions associated with an fvMesh.
Ostream & endl(Ostream &os)
Add newline and flush stream.
const word & headerClassName() const noexcept
Return name of the class name read from header.
refPtr< labelList > getTopoSetLabels(const word &name, enum topoSetSource::sourceType setType) const
Get the labels associated with the topo set.
Mesh consisting of general polyhedral cells.
bool valid() const noexcept
Identical to good(), or bool operator.
void reset(refPtr< T > &&other) noexcept
Clear existing and transfer ownership.
virtual const fvMesh & mesh() const =0
The mesh we are attached to.
Ostream & writeCommon(Ostream &os, bool debug=false) const
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)
Create a writer for this object.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
#define DebugInfo
Report an information message using Foam::Info.
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)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
const Time & time() const
Return the top-level database.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
fileName path() const
The complete path.
A class for managing references or pointers (no reference counting)