60 <<
"No " << zoneTypeName <<
" named "
61 <<
name <<
"found. Has zones: " << zones.names() <<
endl
78 <<
"No " << zoneTypeName <<
" named "
79 <<
name <<
"found. Has zones: " << zones.names() <<
endl
96 <<
"No " << zoneTypeName <<
" named "
97 <<
name <<
"found. Has zones: " << zones.names() <<
endl
110 if (selected.
valid())
127 <<
"Error reading " << classType::typeName
128 <<
" <" <<
name <<
"> : found "
145 <<
"Error reading " << classType::typeName
146 <<
" <" <<
name <<
"> : found "
163 <<
"Error reading " << classType::typeName
164 <<
" <" <<
name <<
"> : found "
177 <<
"Unexpected sourceType: " << int(setType) <<
nl
178 <<
" for set <" <<
name <<
">" <<
nl
188Foam::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())
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())
Defines the attributes of an object for which implicit objectRegistry management is supported,...
bool isHeaderClass() const
Check if headerClassName() equals Type::typeName.
const word & headerClassName() const noexcept
Return name of the class name read from header.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
iterator begin() noexcept
Return an iterator to begin traversing the UList.
A collection of cell labels.
Registered input/output for an expressions::fvExprDriver.
Base driver for parsing value expressions associated with an fvMesh.
virtual const fvMesh & mesh() const =0
The mesh we are attached to.
void createWriterAndRead(const word &name)
Create a writer for this object.
Ostream & writeCommon(Ostream &os, bool debug=false) const
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.
const faceZoneMesh & faceZones() const noexcept
Return face zone mesh.
const cellZoneMesh & cellZones() const noexcept
Return cell zone mesh.
const pointZoneMesh & pointZones() const noexcept
Return point zone mesh.
A class for managing references or pointers (no reference counting)
bool valid() const noexcept
Identical to good(), or bool operator.
void reset(refPtr< T > &&other) noexcept
Clear existing and transfer ownership.
sourceType
Enumeration defining the types of sources.
@ POINTSET_SOURCE
Points as set.
@ FACESET_SOURCE
Faces as set.
@ FACEZONE_SOURCE
Faces as zone.
@ POINTZONE_SOURCE
Points as zone.
@ CELLSET_SOURCE
Cells as set.
@ CELLZONE_SOURCE
Cells as zone.
static IOobject findIOobject(const polyMesh &mesh, const word &name, readOption r=MUST_READ, writeOption w=NO_WRITE)
Find IOobject in the polyMesh/sets (used as constructor helper)
A class for handling words, derived from Foam::string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
OBJstream os(runTime.globalPath()/outputName)
const labelIOList & zoneID
IOobject io("surfaceFilmProperties", mesh.time().constant(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, false)
#define DebugInfo
Report an information message using Foam::Info.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
Ostream & endl(Ostream &os)
Add newline and flush stream.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
errorManipArg< error, int > exit(error &err, const int errNo=1)
constexpr char nl
The newline '\n' character (0x0a)
#define forAllConstIters(container, iter)
Iterate across all elements of the container object with const access.
static const char *const typeName
The type name used in ensight case files.