Go to the documentation of this file.
47 case topoSetSource::sourceType::CELLZONE_SOURCE:
49 const auto& zones =
mesh().cellZones();
50 const word& zoneTypeName = cellZone::typeName;
56 <<
"No " << zoneTypeName <<
" named "
57 <<
name <<
"found. Has zones: " << zones.names() <<
endl
65 case topoSetSource::sourceType::FACEZONE_SOURCE:
67 const auto& zones =
mesh().faceZones();
68 const word& zoneTypeName = faceZone::typeName;
74 <<
"No " << zoneTypeName <<
" named "
75 <<
name <<
"found. Has zones: " << zones.names() <<
endl
83 case topoSetSource::sourceType::POINTZONE_SOURCE:
85 const auto& zones =
mesh().pointZones();
86 const word& zoneTypeName = pointZone::typeName;
92 <<
"No " << zoneTypeName <<
" named "
93 <<
name <<
"found. Has zones: " << zones.names() <<
endl
110 case topoSetSource::sourceType::CELLSET_SOURCE:
117 <<
"Error reading " << classType::typeName
118 <<
" <" <<
name <<
"> : found "
124 return set.sortedToc();
128 case topoSetSource::sourceType::FACESET_SOURCE:
135 <<
"Error reading " << classType::typeName
136 <<
" <" <<
name <<
"> : found "
142 return set.sortedToc();
146 case topoSetSource::sourceType::POINTSET_SOURCE:
153 <<
"Error reading " << classType::typeName
154 <<
" <" <<
name <<
"> : found "
160 return set.sortedToc();
167 <<
"Unexpected sourceType: " << int(setType) <<
nl
168 <<
" for set <" <<
name <<
">" <<
nl
174 return labelList::null();
178 Foam::word Foam::expressions::fvExprDriver::getHeaderClassName
198 <<
" Path: " << io.localFilePath(io.headerClassName())
199 <<
" Class: " << io.headerClassName() <<
endl;
201 return io.headerClassName();
214 writeVariableStrings(os,
"variables");
221 if (!storedVariables_.empty() || !delayedVariables_.empty())
226 ).updateSpecialVariables(
true);
229 if (!storedVariables_.empty())
231 os.
writeEntry(
"storedVariables", storedVariables_);
234 if (!delayedVariables_.empty())
238 auto outIter = list.begin();
249 if (!globalScopes_.empty())
264 if (hasDataToWrite() && !writer_.valid())
273 if (writer_.valid() &&
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.
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.
Mesh consisting of general polyhedral cells.
labelList getTopoSetLabels(const word &name, enum topoSetSource::sourceType setType) const
Read and return labels associated with the topo set.
virtual const fvMesh & mesh() const =0
The mesh we are attached to.
word name(const complex &c)
Return string representation of complex.
Ostream & writeCommon(Ostream &os, bool debug=false) const
const labelIOList & zoneID
A collection of cell labels.
errorManipArg< error, int > exit(error &err, const int errNo=1)
const word & headerClassName() const
Return name of the class name read from header.
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)
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
Registered input/output for an expressions::fvExprDriver.
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
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.