53 Istream& is = readStream(typeName);
56 zones.
resize(dictEntries.size());
63 dictEntries[zonei].keyword(),
64 dictEntries[zonei].
dict(),
68 if (zones[zonei].start() != facei)
71 <<
"surfZones are not ordered. Start of zone " << zonei
72 <<
" does not correspond to sum of preceding zones." <<
nl 73 <<
"while reading " <<
io.objectPath() <<
endl 77 facei += zones[zonei].
size();
89 const UList<surfZone>& content
113 const label sz = zones.
size();
void size(const label n)
Older name for setAddressableSize.
surfZoneIOList(const IOobject &io)
Construct from IOobject.
errorManipArg< error, int > exit(error &err, const int errNo=1)
void resize(const label len)
Adjust allocated size of list.
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
virtual bool check(const char *operation) const
Check IOstream status for given operation.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
A surface zone on a MeshedSurface.
constexpr char nl
The newline '\n' character (0x0a)
Ostream & endl(Ostream &os)
Add newline and flush stream.
Begin list [isseparator].
void operator=(const UList< surfZone > &a)
Assignment to UList operator. Takes linear time.
#define forAll(list, i)
Loop across all elements in list.
defineTypeName(manifoldCellsMeshObject)
IOobject io("surfaceFilmProperties", mesh.time().constant(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, false)
void close()
Close Istream.
IOobject for a surfZoneList.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
OBJstream os(runTime.globalPath()/outputName)
Ostream & decrIndent(Ostream &os)
Decrement the indent level.
bool isReadRequired() const noexcept
True if (MUST_READ | MUST_READ_IF_MODIFIED) bits are set.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
bool good() const noexcept
True if next operation might succeed.
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
Ostream & incrIndent(Ostream &os)
Increment the indent level.
Defines the attributes of an object for which implicit objectRegistry management is supported...
bool writeData(Ostream &os) const
The writeData function - required by regIOobject.
void operator=(const surfZoneIOList &rhs)
Copy assignment of entries.