regIOobject is an abstract class derived from IOobject to handle automatic object registration with the objectRegistry. More...
Inherits IOobject.
Inherited by AveragingMethod< Foam::Vector >, AveragingMethod< scalar >, BlendedInterfacialModel< Foam::dragModel >, BlendedInterfacialModel< Foam::virtualMassModel >, BlendedInterfacialModel< Foam::heatTransferModel >, BlendedInterfacialModel< Foam::liftModel >, BlendedInterfacialModel< Foam::wallLubricationModel >, BlendedInterfacialModel< Foam::turbulentDispersionModel >, CompactIOField< Foam::Field< label >, label >, CompactIOField< Foam::Field< scalar >, scalar >, CompactIOField< Foam::Field< Foam::Vector >, Foam::Vector >, CompactIOField< Foam::Field< Foam::SphericalTensor >, Foam::SphericalTensor >, CompactIOField< Foam::Field< Foam::SymmTensor >, Foam::SymmTensor >, CompactIOField< Foam::Field< Foam::Tensor >, Foam::Tensor >, CompactIOList< face, label >, DimensionedField< symmTensor, Foam::volMesh >, DimensionedField< symmTensor, volMesh >, DimensionedField< scalar, Foam::volMesh >, DimensionedField< scalar, volMesh >, DimensionedField< Type, pointMesh >, DimensionedField< vector, Foam::pointMesh >, DimensionedField< vector, Foam::volMesh >, DimensionedField< vector, volMesh >, DimensionedField< tensor, Foam::volMesh >, DimensionedField< tensor, volMesh >, DimensionedField< Foam::Vector, Foam::volMesh >, DimensionedField< Foam::Vector, Foam::pointMesh >, DimensionedField< scalar, Foam::surfaceMesh >, DimensionedField< scalar, surfaceMesh >, DimensionedField< scalar, Foam::pointMesh >, DimensionedField< scalar, pointMesh >, DimensionedField< vector, pointMesh >, DimensionedField< scalar, Foam::areaMesh >, DimensionedField< scalar, areaMesh >, DimensionedField< scalar, Foam::edgeMesh >, DimensionedField< Foam::Vector, Foam::areaMesh >, DimensionedField< Foam::Vector, Foam::edgeMesh >, DimensionedField< Foam::SphericalTensor, Foam::areaMesh >, DimensionedField< Foam::SphericalTensor, Foam::edgeMesh >, DimensionedField< Foam::SymmTensor, Foam::areaMesh >, DimensionedField< Foam::SymmTensor, Foam::edgeMesh >, DimensionedField< Foam::Tensor, Foam::areaMesh >, DimensionedField< Foam::Tensor, Foam::edgeMesh >, DimensionedField< Type, Foam::areaMesh >, DimensionedField< Type, Foam::edgeMesh >, DimensionedField< Foam::Vector, Foam::surfaceMesh >, DimensionedField< Foam::SphericalTensor, Foam::volMesh >, DimensionedField< Foam::SphericalTensor, Foam::surfaceMesh >, DimensionedField< Foam::SymmTensor, Foam::volMesh >, DimensionedField< Foam::SymmTensor, Foam::surfaceMesh >, DimensionedField< Foam::Tensor, Foam::volMesh >, DimensionedField< Foam::Tensor, Foam::surfaceMesh >, DimensionedField< Type, Foam::volMesh >, DimensionedField< Type, Foam::surfaceMesh >, DimensionedField< Type, Foam::pointMesh >, DimensionedField< vector, Foam::surfaceMesh >, DimensionedField< vector, surfaceMesh >, DimensionedField< scalar, triSurfacePointGeoMesh >, DimensionedField< Foam::SphericalTensor, Foam::pointMesh >, DimensionedField< Foam::SymmTensor, Foam::pointMesh >, DimensionedField< Foam::Tensor, Foam::pointMesh >, DimensionedField< tensor, Foam::areaMesh >, DimensionedField< tensor, areaMesh >, DimensionedField< vector, Foam::areaMesh >, DimensionedField< vector, areaMesh >, DimensionedField< scalar, edgeMesh >, GlobalIOField< vector >, GlobalIOList< kinematicParcelInjectionData >, GlobalIOList< reactingParcelInjectionData >, GlobalIOList< reactingMultiphaseParcelInjectionData >, IOField< label >, IOField< scalar >, IOField< Foam::Vector >, IOField< Foam::SphericalTensor >, IOField< Foam::SymmTensor >, IOField< Foam::Tensor >, IOList< label >, IOList< labelList >, IOPtrList< Foam::entry >, UniformDimensionedField< scalar >, UniformDimensionedField< vector >, ZoneMesh< pointZone, polyMesh >, ZoneMesh< faceZone, polyMesh >, ZoneMesh< cellZone, polyMesh >, ATCModel, AveragingMethod< Type >, BlendedInterfacialModel< ModelType >, CompactIOField< T, BaseType >, CompactIOList< T, BaseType >, DimensionedField< Type, GeoMesh >, GlobalIOField< Type >, GlobalIOList< Type >, IOField< Type >, IOFieldRef< Type >, IOList< T >, IOListRef< T >, IOMap< T >, IOPosition< CloudType >, IOPtrList< T >, IOmapDistribute, IOmapDistributePolyMesh, IOmapDistributePolyMeshRef, PDRDragModel, SLGThermo, SubDimensionedField< Type, GeoMesh >, UniformDimensionedField< Type >, ZoneMesh< ZoneType, MeshType >, adjointSolverManager, baseIOdictionary, coordinateSystems, decomposedBlockData, populationBalanceModel, dragModel, dragModel, exprResultGlobals, fvExprDriverWriter, extendedFeatureEdgeMesh, faBoundaryMesh, faBoundaryMeshEntries, featureEdgeMesh, fieldDictionary, adjointTurbulenceModel, lduPrimitiveMeshAssembly, lumpedPointIOMovement, meshObject, surfaceTensionModel, objectRegistry, objectiveManager, polyBoundaryMesh, polyBoundaryMeshEntries, polyTopoChanger, porosityModel, porousModel, rawIOField< Type >, surfaceTensionModel, refinementHistory, searchableSurface, solutionControl, surfZoneIOList, surfaceTensionModel, topoSet, virtualMassModel, and virtualMassModel.
Public Member Functions | |
TypeName ("regIOobject") | |
Runtime type information. More... | |
regIOobject (const IOobject &io, const bool isTimeObject=false) | |
regIOobject (const regIOobject &rio) | |
Copy construct. More... | |
regIOobject (const regIOobject &rio, bool registerCopy) | |
regIOobject (const word &newName, const regIOobject &, bool registerCopy) | |
regIOobject (const IOobject &io, const regIOobject &rio) | |
Copy construct with new IO parameters. More... | |
virtual | ~regIOobject () |
Destructor. More... | |
bool | checkIn () |
Add object to registry, if not already registered. More... | |
bool | checkOut () |
Remove all file watches and remove object from registry. More... | |
virtual void | addWatch () |
Add file watch on object (if registered and READ_IF_MODIFIED) More... | |
bool | registered () const noexcept |
bool | ownedByRegistry () const noexcept |
Is this object owned by the registry? More... | |
bool | store () |
void | release (const bool unregister=false) noexcept |
Set object as not ownedByRegistry. More... | |
label | eventNo () const noexcept |
Event number at last update. More... | |
label & | eventNo () noexcept |
Event number at last update. More... | |
bool | upToDate (const regIOobject &) const |
Return true if up-to-date with respect to given object. More... | |
bool | upToDate (const regIOobject &, const regIOobject &) const |
Return true if up-to-date with respect to given objects. More... | |
bool | upToDate (const regIOobject &, const regIOobject &, const regIOobject &) const |
Return true if up-to-date with respect to given objects. More... | |
bool | upToDate (const regIOobject &, const regIOobject &, const regIOobject &, const regIOobject &) const |
Return true if up-to-date with respect to given objects. More... | |
void | setUpToDate () |
Set as up-to-date. More... | |
virtual void | rename (const word &newName) |
Rename. More... | |
const dictionary * | findMetaData () const noexcept |
Return pointer to meta-data or nullptr. More... | |
dictionary & | getMetaData () noexcept |
Get or create meta-data. More... | |
void | removeMetaData () |
Remove meta-data. More... | |
virtual void | updateMetaData () |
Update internal meta-data (eg, prior to writing) More... | |
virtual fileName | filePath () const |
Return complete path + object name if the file exists. More... | |
bool | headerOk () |
Read and check header info. Does not check the headerClassName. More... | |
Istream & | readStream (const word &, const bool valid=true) |
Return Istream and check object type against that given. More... | |
void | close () |
Close Istream. More... | |
virtual bool | readData (Istream &) |
Virtual readData function. More... | |
virtual bool | read () |
Read object. More... | |
virtual label | addWatch (const fileName &) |
Add file watch for fileName on object if not yet watched. More... | |
const labelList & | watchIndices () const noexcept |
Read access to file-monitoring handles. More... | |
labelList & | watchIndices () noexcept |
Write access to file-monitoring handles. More... | |
virtual bool | modified () const |
virtual bool | readIfModified () |
Read object if modified (as set by call to modified) More... | |
virtual bool | writeData (Ostream &) const =0 |
Pure virtual writeData function. More... | |
virtual bool | writeObject (IOstreamOption streamOpt, const bool valid) const |
Write using stream options. More... | |
virtual bool | write (const bool valid=true) const |
Write using setting from DB. More... | |
virtual bool | global () const |
Is object global. More... | |
void | operator= (const IOobject &io) |
Copy assignment. More... | |
virtual bool | writeObject (IOstreamOption::streamFormat fmt, IOstreamOption::versionNumber ver, IOstreamOption::compressionType comp, const bool valid) const |
Write using given format, version and compression. More... | |
Public Member Functions inherited from IOobject | |
TypeName ("IOobject") | |
Declare type-name, virtual type (with debug switch) More... | |
IOobject (const IOobject &)=default | |
Copy construct. More... | |
virtual | ~IOobject ()=default |
Destructor. More... | |
IOobject (const word &name, const fileName &instance, const objectRegistry ®istry, readOption rOpt=NO_READ, writeOption wOpt=NO_WRITE, bool registerObject=true, bool globalObject=false) | |
Construct from name, instance, registry, io options. More... | |
IOobject (const word &name, const fileName &instance, const fileName &local, const objectRegistry ®istry, readOption rOpt=NO_READ, writeOption wOpt=NO_WRITE, bool registerObject=true, bool globalObject=false) | |
Construct from name, instance, local, registry, io options. More... | |
IOobject (const fileName &path, const objectRegistry ®istry, readOption rOpt=NO_READ, writeOption wOpt=NO_WRITE, bool registerObject=true, bool globalObject=false) | |
Construct from path, registry, io options. More... | |
IOobject (const IOobject &io, const objectRegistry ®istry) | |
Copy construct, resetting registry. More... | |
IOobject (const IOobject &io, const word &name) | |
Copy construct, resetting name. More... | |
IOobject (const IOobject &io, const word &name, const fileName &local) | |
Copy construct, resetting name and local component. More... | |
IOobject (const IOobject &io, readOption rOpt, writeOption wOpt) | |
Copy construct, resetting read/write options. More... | |
autoPtr< IOobject > | clone () const |
Clone. More... | |
autoPtr< IOobject > | clone (const objectRegistry ®istry) const |
Clone resetting registry. More... | |
const objectRegistry & | db () const noexcept |
Return the local objectRegistry. More... | |
const Time & | time () const |
Return Time associated with the objectRegistry. More... | |
const word & | name () const noexcept |
Return the object name. More... | |
const word & | headerClassName () const noexcept |
Return name of the class name read from header. More... | |
word & | headerClassName () noexcept |
Return non-constant access to the class name read from header. More... | |
const string & | note () const noexcept |
Return the optional note. More... | |
string & | note () noexcept |
Modifiable access to the optional note. More... | |
virtual void | rename (const word &newName) |
Rename the object. More... | |
bool | registerObject () const noexcept |
Should object created with this IOobject be registered? More... | |
bool | registerObject (bool on) noexcept |
Change registration preference, return previous value. More... | |
bool | globalObject () const noexcept |
Is object same for all processors? More... | |
bool | globalObject (bool on) noexcept |
Change global-object status, return previous value. More... | |
unsigned | labelByteSize () const noexcept |
The sizeof (label) in bytes, possibly read from the header. More... | |
unsigned | scalarByteSize () const noexcept |
The sizeof (scalar) in bytes, possibly read from the header. More... | |
bool | hasHeaderClass () const noexcept |
True if headerClassName() is non-empty (after reading) More... | |
template<class Type > | |
bool | isHeaderClass () const |
Check if headerClassName() equals Type::typeName. More... | |
template<class Type > | |
bool | isHeaderClassName () const |
Same as isHeaderClass() More... | |
virtual const dictionary * | findMetaData () const noexcept |
Return pointer to meta-data (if any) or nullptr. More... | |
readOption | readOpt () const noexcept |
The read option. More... | |
readOption | readOpt (readOption opt) noexcept |
Change the read option, return previous value. More... | |
writeOption | writeOpt () const noexcept |
The write option. More... | |
writeOption | writeOpt (writeOption opt) noexcept |
Change the write option, return previous value. More... | |
word | group () const |
Return group (extension part of name) More... | |
word | member () const |
Return member (name without the extension) More... | |
const fileName & | rootPath () const |
Return the Time::rootPath() More... | |
const fileName & | caseName () const |
Return the Time::caseName() More... | |
const fileName & | instance () const noexcept |
Read access to instance path component. More... | |
fileName & | instance () noexcept |
Write access to instance path component. More... | |
const fileName & | local () const noexcept |
Read access to local path component. More... | |
fileName | path () const |
The complete path. More... | |
fileName | path (const word &instance, const fileName &local=fileName::null) const |
The complete path with alternative instance and local. More... | |
fileName | objectPath () const |
The complete path + object name. More... | |
fileName | objectRelPath () const |
The object path relative to the root. More... | |
fileName | localFilePath (const word &typeName, const bool search=true) const |
Helper for filePath that searches locally. More... | |
fileName | globalFilePath (const word &typeName, const bool search=true) const |
Helper for filePath that searches up if in parallel. More... | |
IOstreamOption | parseHeader (const dictionary &headerDict) |
bool | readHeader (Istream &is) |
bool | readHeader (dictionary &headerDict, Istream &is) |
template<class Type > | |
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. More... | |
template<class Type > | |
void | warnNoRereading () const |
Helper: warn that type does not support re-reading. More... | |
bool | writeHeader (Ostream &os) const |
Write header with current type() More... | |
bool | writeHeader (Ostream &os, const word &objectType) const |
Write header with override of type. More... | |
void | writeHeader (dictionary &dict, IOstreamOption streamOpt) const |
void | writeHeader (dictionary &dict, const word &objectType, IOstreamOption streamOpt) const |
bool | good () const noexcept |
Did last readHeader() succeed? More... | |
bool | bad () const noexcept |
Did last readHeader() fail? More... | |
InfoProxy< IOobject > | info () const |
Return info proxy, for printing information to a stream. More... | |
void | operator= (const IOobject &io) |
Copy assignment, copies all values (except the registry) More... | |
readOption & | readOpt () noexcept |
Access to the read option. More... | |
writeOption & | writeOpt () noexcept |
Access to the write option. More... | |
bool & | registerObject () noexcept |
Access to the register object option. More... | |
bool & | globalObject () noexcept |
Access to the global object option. More... | |
template<> | |
bool | isHeaderClass () const |
Specialization for void always returns true (no headerClassName check). More... | |
template<class StringType > | |
Foam::word | groupName (StringType base, const word &group) |
Static Public Member Functions | |
template<class Type > | |
static Type & | store (Type *p) |
Transfer pointer ownership to its registry. More... | |
template<class Type > | |
static Type & | store (autoPtr< Type > &ptr) |
Transfer pointer ownership to its registry. More... | |
template<class Type > | |
static Type & | store (autoPtr< Type > &&ptr) |
Transfer pointer ownership to its registry. More... | |
template<class Type > | |
static Type & | store (refPtr< Type > &ptr) |
Transfer pointer ownership to its registry. More... | |
template<class Type > | |
static Type & | store (refPtr< Type > &&ptr) |
Transfer pointer ownership to its registry. More... | |
template<class Type > | |
static Type & | store (tmp< Type > &ptr) |
Transfer pointer ownership to its registry. More... | |
template<class Type > | |
static Type & | store (tmp< Type > &&ptr) |
Transfer pointer ownership to its registry. More... | |
Static Public Member Functions inherited from IOobject | |
static bool | bannerEnabled () noexcept |
Status of output file banner. More... | |
static bool | bannerEnabled (bool on) noexcept |
Enable/disable output file banner. More... | |
static bool | fileNameComponents (const fileName &path, fileName &instance, fileName &local, word &name) |
Split path into instance, local, name components. More... | |
template<class StringType > | |
static word | groupName (StringType base, const word &group) |
Create dot-delimited name.group string. More... | |
static word | group (const word &name) |
Return group (extension part of name) More... | |
static word | member (const word &name) |
Return member (name without the extension) More... | |
static word | scopedName (const std::string &scope, const word &name) |
Create scope:name or scope_name string. More... | |
static IOobject | selectIO (const IOobject &io, const fileName &altFile, const word &ioName="") |
Return the IOobject, but also consider an alternative file name. More... | |
static Ostream & | writeBanner (Ostream &os, const bool noSyntaxHint=false) |
Write the standard OpenFOAM file/dictionary banner. More... | |
static Ostream & | writeDivider (Ostream &os) |
Write the standard file section divider. More... | |
static Ostream & | writeEndDivider (Ostream &os) |
Write the standard end file divider. More... | |
Protected Member Functions | |
bool | readHeaderOk (const IOstreamOption::streamFormat fmt, const word &typeName) |
Helper: check readOpt flags and read if necessary. More... | |
Protected Member Functions inherited from IOobject | |
void | setBad (const string &s) |
Set the object state to bad. More... | |
Static Protected Attributes | |
static bool | masterOnlyReading = false |
To flag master-only reading of objects. More... | |
Friends | |
class | functionEntries::codeStream |
Friendship with classes needing access to masterOnlyReading. More... | |
class | fileOperations::uncollatedFileOperation |
Additional Inherited Members | |
Public Types inherited from IOobject | |
enum | readOption : char { NO_READ = 0 , MUST_READ = 1 , MUST_READ_IF_MODIFIED = 3 , READ_IF_PRESENT = 4 } |
Enumeration defining the read options. More... | |
enum | writeOption : char { NO_WRITE = 0 , AUTO_WRITE = 0x10 } |
Enumeration defining the write options. More... | |
enum | objectState : char { GOOD , BAD } |
Enumeration defining the valid states of an IOobject. More... | |
enum | fileCheckTypes : char { timeStamp , timeStampMaster , inotify , inotifyMaster } |
Enumeration defining the file checking options. More... | |
Static Public Attributes inherited from IOobject | |
static const Enum< fileCheckTypes > | fileCheckTypesNames |
Names for the fileCheckTypes. More... | |
static char | scopeSeparator |
Character for scoping object names (':' or '_') More... | |
static fileCheckTypes | fileModificationChecking |
Type of file modification checking. More... | |
static float | fileModificationSkew |
Time skew (seconds) for file modification checks. More... | |
static int | maxFileModificationPolls |
Max number of times to poll for file modification changes. More... | |
Static Protected Member Functions inherited from IOobject | |
static void | writeHeaderContent (Ostream &os, const IOobject &io, const word &objectType, const dictionary *metaDataDict=nullptr) |
static void | writeHeaderContent (dictionary &dict, const IOobject &io, const word &objectType, IOstreamOption streamOpt, const dictionary *metaDataDict=nullptr) |
regIOobject is an abstract class derived from IOobject to handle automatic object registration with the objectRegistry.
Definition at line 73 of file regIOobject.H.
regIOobject | ( | const IOobject & | io, |
const bool | isTimeObject = false |
||
) |
Construct from IOobject. The optional flag adds special handling if the object is the top-level regIOobject (eg, Time).
Definition at line 47 of file regIOobject.C.
References regIOobject::checkIn(), and IOobject::registerObject().
regIOobject | ( | const regIOobject & | rio | ) |
Copy construct.
Definition at line 65 of file regIOobject.C.
regIOobject | ( | const regIOobject & | rio, |
bool | registerCopy | ||
) |
Copy construct, transferring registry registration to the copy if registerCopy is true
Definition at line 79 of file regIOobject.C.
References regIOobject::checkIn(), and regIOobject::checkOut().
regIOobject | ( | const word & | newName, |
const regIOobject & | rio, | ||
bool | registerCopy | ||
) |
Copy construct with new name, transferring registry registration to the copy f registerCopy is true
Definition at line 101 of file regIOobject.C.
References regIOobject::checkIn().
regIOobject | ( | const IOobject & | io, |
const regIOobject & | rio | ||
) |
Copy construct with new IO parameters.
Definition at line 126 of file regIOobject.C.
References regIOobject::checkIn(), and IOobject::registerObject().
|
virtual |
Destructor.
Definition at line 149 of file regIOobject.C.
References Foam::endl(), Foam::name(), path(), Foam::Pout, and Foam::type().
|
protected |
Helper: check readOpt flags and read if necessary.
Definition at line 38 of file regIOobjectRead.C.
References Pstream::broadcast(), Foam::fileHandler(), IOobject::fileModificationChecking, regIOobject::global(), regIOobject::headerOk(), IOobject::inotifyMaster, splitCell::master(), IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED, fileOperation::read(), IOobject::READ_IF_PRESENT, IOobject::readOpt(), and IOobject::timeStampMaster.
Referenced by GlobalIOField< Type >::GlobalIOField(), GlobalIOList< Type >::GlobalIOList(), IOdictionary::IOdictionary(), localIOdictionary::localIOdictionary(), UniformDimensionedField< Type >::UniformDimensionedField(), and unwatchedIOdictionary::unwatchedIOdictionary().
TypeName | ( | "regIOobject" | ) |
Runtime type information.
bool checkIn | ( | ) |
Add object to registry, if not already registered.
Definition at line 188 of file regIOobject.C.
References Foam::abort(), polyMesh::defaultRegion, Foam::endl(), Foam::FatalError, FatalErrorInFunction, Foam::name(), and WarningInFunction.
Referenced by regIOobject::regIOobject().
bool checkOut | ( | ) |
Remove all file watches and remove object from registry.
Definition at line 224 of file regIOobject.C.
References Foam::fileHandler(), forAllReverse, and fileOperation::removeWatch().
Referenced by InterfaceForce< CloudType >::cacheFields(), LiftForce< CloudType >::cacheFields(), PressureGradientForce< CloudType >::cacheFields(), regionFunctionObject::clearObject(), regionFunctionObject::clearObjects(), removeRegisteredObject::execute(), regIOobject::regIOobject(), motionSolver::stealRegistration(), and lumpedPointDisplacementPointPatchVectorField::~lumpedPointDisplacementPointPatchVectorField().
|
virtual |
Add file watch on object (if registered and READ_IF_MODIFIED)
Reimplemented in unwatchedIOdictionary.
Definition at line 267 of file regIOobject.C.
References Foam::abort(), Pstream::broadcast(), f(), Foam::FatalError, FatalErrorInFunction, Foam::fileHandler(), IOobject::fileModificationChecking, fileOperation::findWatch(), forAll, forAllReverse, fileOperation::getFile(), IOobject::inotifyMaster, splitCell::master(), IOobject::MUST_READ_IF_MODIFIED, UPstream::parRun(), fileOperation::removeWatch(), List< T >::resize(), UList< T >::size(), IOobject::timeStampMaster, and Foam::type().
Referenced by includeEntry::execute(), IOdictionary::IOdictionary(), IOPtrList< Foam::entry >::IOPtrList(), IOPtrList< T >::IOPtrList(), localIOdictionary::localIOdictionary(), schemesLookup::schemesLookup(), solution::solution(), and UniformDimensionedField< Type >::UniformDimensionedField().
|
inlinenoexcept |
Query the registered state (ie, has been checked in). This is not necessarily the same as registerObject(), which is just a stated preference.
Definition at line 31 of file regIOobjectI.H.
|
inlinenoexcept |
Is this object owned by the registry?
Definition at line 37 of file regIOobjectI.H.
Referenced by objectRegistry::clear(), regionFunctionObject::clearObject(), regionFunctionObject::clearObjects(), objectRegistry::erase(), and removeRegisteredObject::execute().
|
inline |
Register object with its registry and transfer ownership to the registry.
Definition at line 43 of file regIOobjectI.H.
References Foam::name(), Foam::nl, and WarningInFunction.
Referenced by fieldAverage::addMeanFieldType(), InterfaceForce< CloudType >::cacheFields(), LiftForce< CloudType >::cacheFields(), PressureGradientForce< CloudType >::cacheFields(), codedBase::codeDict(), adjointBoundaryCondition< Type >::computePatchGrad(), mappedPatchBase::constructIOField(), cloud::createIOField(), fvMatrix< Type >::createOrUpdateLduPrimitiveAssembly(), volPointInterpolation::interpolate(), waveModel::lookupOrCreate(), lumpedPointDisplacementPointPatchVectorField::movement(), zoneDistribute::New(), zoneCPCStencil::New(), options::New(), MeshObject< Mesh, MeshObjectType, Type >::New(), coordinateSystems::New(), polySurface::polySurface(), WeberNumberReacting< CloudType >::postEvolve(), turbulenceFields::processField(), processorField::processorField(), proudmanAcousticPower::proudmanAcousticPower(), fvExprDriver::readAndRegister(), mappedPatchBase::storeField(), objectRegistry::subRegistry(), and cellCellStencil::zoneID().
|
inlinestatic |
Transfer pointer ownership to its registry.
Definition at line 60 of file regIOobjectI.H.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, and p.
|
inlinestatic |
Transfer pointer ownership to its registry.
Resets (clears) the parameter.
Definition at line 84 of file regIOobjectI.H.
References autoPtr< T >::release().
|
inlinestatic |
Transfer pointer ownership to its registry.
Resets (clears) the parameter.
Definition at line 92 of file regIOobjectI.H.
|
inlinestatic |
Transfer pointer ownership to its registry.
Changes parameter from PTR to CREF (do not rely on this).
Definition at line 100 of file regIOobjectI.H.
References refPtr< T >::cref(), refPtr< T >::get(), refPtr< T >::is_pointer(), IOobject::name(), p, refPtr< T >::release(), and WarningInFunction.
|
inlinestatic |
Transfer pointer ownership to its registry.
Changes parameter from PTR to CREF (do not rely on this).
Definition at line 133 of file regIOobjectI.H.
|
inlinestatic |
Transfer pointer ownership to its registry.
Changes parameter from PTR to CREF (do not rely on this).
Definition at line 141 of file regIOobjectI.H.
References tmp< T >::cref(), tmp< T >::get(), tmp< T >::is_pointer(), IOobject::name(), p, tmp< T >::ptr(), and WarningInFunction.
|
inlinestatic |
Transfer pointer ownership to its registry.
Changes parameter from PTR to CREF (do not rely on this).
Definition at line 174 of file regIOobjectI.H.
|
inlinenoexcept |
Set object as not ownedByRegistry.
unregister | optionally set as non-registered too |
Definition at line 181 of file regIOobjectI.H.
Referenced by objectRegistry::clear(), and objectRegistry::erase().
|
inlinenoexcept |
Event number at last update.
Definition at line 191 of file regIOobjectI.H.
Referenced by cyclicACMIFvPatch::cyclicACMIFvPatch(), faMatrix< Type >::faMatrix(), triSurfaceMesh::movePoints(), cyclicACMIPolyPatch::updateAreas(), and regIOobject::upToDate().
|
inlinenoexcept |
Event number at last update.
Definition at line 196 of file regIOobjectI.H.
bool upToDate | ( | const regIOobject & | a | ) | const |
Return true if up-to-date with respect to given object.
Definition at line 339 of file regIOobject.C.
References regIOobject::eventNo(), and Foam::labelMax.
bool upToDate | ( | const regIOobject & | a, |
const regIOobject & | b | ||
) | const |
Return true if up-to-date with respect to given objects.
Definition at line 378 of file regIOobject.C.
References b.
bool upToDate | ( | const regIOobject & | a, |
const regIOobject & | b, | ||
const regIOobject & | c | ||
) | const |
Return true if up-to-date with respect to given objects.
Definition at line 388 of file regIOobject.C.
References b.
bool upToDate | ( | const regIOobject & | a, |
const regIOobject & | b, | ||
const regIOobject & | c, | ||
const regIOobject & | d | ||
) | const |
Return true if up-to-date with respect to given objects.
Definition at line 399 of file regIOobject.C.
References b.
void setUpToDate | ( | ) |
Set as up-to-date.
Definition at line 411 of file regIOobject.C.
Referenced by cyclicACMIPolyPatch::updateAreas().
|
virtual |
Rename.
Reimplemented from IOobject.
Reimplemented in objectRegistry.
Definition at line 417 of file regIOobject.C.
References IOobject::rename().
Referenced by heThermo< BasicThermo, MixtureType >::alphaEff(), heThermo< BasicThermo, MixtureType >::alphahe(), RASModelVariables::copyAndRename(), gaussGrad< Type >::grad(), if(), Foam::interpolate(), objectRegistry::rename(), and variablesSet::renameTurbulenceField().
|
virtualnoexcept |
Return pointer to meta-data or nullptr.
Reimplemented from IOobject.
Definition at line 33 of file regIOobjectMetaData.C.
|
noexcept |
Get or create meta-data.
Definition at line 39 of file regIOobjectMetaData.C.
void removeMetaData | ( | ) |
Remove meta-data.
Definition at line 49 of file regIOobjectMetaData.C.
|
virtual |
Update internal meta-data (eg, prior to writing)
Reimplemented in ZoneMesh< ZoneType, MeshType >, ZoneMesh< pointZone, polyMesh >, ZoneMesh< faceZone, polyMesh >, and ZoneMesh< cellZone, polyMesh >.
Definition at line 55 of file regIOobjectMetaData.C.
|
virtual |
Return complete path + object name if the file exists.
in the case directory otherwise null. Does not search up if parallel. Can be overridden to provide this functionality (e.g. IOdictionary)
Reimplemented in porosityModel, extendedFeatureEdgeMesh, featureEdgeMesh, searchableSurface, triSurfaceMesh, GlobalIOField< Type >, GlobalIOField< vector >, GlobalIOList< Type >, GlobalIOList< kinematicParcelInjectionData >, GlobalIOList< reactingParcelInjectionData >, GlobalIOList< reactingMultiphaseParcelInjectionData >, IOdictionary, localIOdictionary, unwatchedIOdictionary, IOMap< T >, UniformDimensionedField< Type >, UniformDimensionedField< scalar >, UniformDimensionedField< vector >, distributedTriSurfaceMesh, and baseIOdictionary.
Definition at line 432 of file regIOobject.C.
References Foam::type().
Referenced by rawIOField< Type >::rawIOField().
bool headerOk | ( | ) |
Read and check header info. Does not check the headerClassName.
Definition at line 438 of file regIOobject.C.
References Foam::endl(), Foam::fileHandler(), IOWarningInFunction, fileOperation::readHeader(), and Foam::type().
Referenced by atmNutSource::atmNutSource(), CompactIOField< T, BaseType >::CompactIOField(), CompactIOField< Foam::Field< label >, label >::CompactIOField(), decomposedBlockData::decomposedBlockData(), extendedFeatureEdgeMesh::extendedFeatureEdgeMesh(), faBoundaryMeshEntries::faBoundaryMeshEntries(), featureEdgeMesh::featureEdgeMesh(), fvExprDriverWriter::fvExprDriverWriter(), IOField< label >::IOField(), IOPtrList< T >::IOPtrList(), polyBoundaryMeshEntries::polyBoundaryMeshEntries(), rawIOField< Type >::rawIOField(), boundaryRegion::readDict(), cellTable::readDict(), regIOobject::readHeaderOk(), refinementHistory::refinementHistory(), schemesLookup::schemesLookup(), solution::solution(), and topoSet::topoSet().
Foam::Istream & readStream | ( | const word & | expectName, |
const bool | valid = true |
||
) |
Return Istream and check object type against that given.
Definition at line 130 of file regIOobjectRead.C.
References Foam::endl(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, Foam::name(), Foam::Pout, and Foam::type().
Referenced by DimensionedField< Type, GeoMesh >::DimensionedField(), extendedFeatureEdgeMesh::extendedFeatureEdgeMesh(), faBoundaryMeshEntries::faBoundaryMeshEntries(), featureEdgeMesh::featureEdgeMesh(), fieldDictionary::fieldDictionary(), fvExprDriverWriter::fvExprDriverWriter(), IOField< label >::IOField(), IOPtrList< T >::IOPtrList(), IOPtrList< Foam::entry >::IOPtrList(), lumpedPointIOMovement::lumpedPointIOMovement(), polyBoundaryMeshEntries::polyBoundaryMeshEntries(), rawIOField< Type >::rawIOField(), surfZoneIOList::surfZoneIOList(), and topoSet::topoSet().
void close | ( | ) |
Close Istream.
Definition at line 173 of file regIOobjectRead.C.
References Foam::endl(), and Foam::Pout.
Referenced by extendedFeatureEdgeMesh::extendedFeatureEdgeMesh(), featureEdgeMesh::featureEdgeMesh(), fieldDictionary::fieldDictionary(), IOPtrList< T >::IOPtrList(), lumpedPointIOMovement::lumpedPointIOMovement(), rawIOField< Type >::rawIOField(), surfZoneIOList::surfZoneIOList(), and topoSet::topoSet().
Virtual readData function.
Must be defined in derived types for which re-reading is required
Reimplemented in refinementHistory, IOPosition< CloudType >, extendedFeatureEdgeMesh, featureEdgeMesh, baseIOdictionary, UniformDimensionedField< Type >, UniformDimensionedField< scalar >, UniformDimensionedField< vector >, IOmapDistribute, fvExprDriverWriter, lumpedPointIOMovement, GlobalIOField< Type >, GlobalIOField< vector >, GlobalIOList< Type >, GlobalIOList< kinematicParcelInjectionData >, GlobalIOList< reactingParcelInjectionData >, GlobalIOList< reactingMultiphaseParcelInjectionData >, IOmapDistributePolyMesh, IOmapDistributePolyMeshRef, and exprResultGlobals.
Definition at line 187 of file regIOobjectRead.C.
|
virtual |
Read object.
Reimplemented in PDRDragModel, twoPhaseMixtureThermo, incompressibleTwoPhaseInteractingMixture, laserDTRM, constant, interfaceHeatResistance, temperaturePhaseChangeTwoPhaseMixture, thermoIncompressibleTwoPhaseMixture, twoPhaseMixtureEThermo, incompressibleThreePhaseMixture, Kunz, Merkle, SchnerrSauer, multiphaseMixture, combustionModel, CombustionModel< ReactionThermo >, diffusion< ReactionThermo, ThermoType >, diffusionMulticomponent< ReactionThermo, ThermoType >, EDC< ReactionThermo >, eddyDissipationDiffusionModel< ReactionThermo, ThermoType >, eddyDissipationModelBase< ReactionThermo, ThermoType >, FSD< ReactionThermo, ThermoType >, infinitelyFastChemistry< ReactionThermo, ThermoType >, laminar< ReactionThermo >, noCombustion< ReactionThermo >, PaSR< ReactionThermo >, singleStepCombustion< ReactionThermo, ThermoType >, zoneCombustion< ReactionThermo >, motionSolver, refinementHistory, crankConRod, engineTime, options, options, IOMRFZoneList, IOporosityModelList, porosityModel, pimpleControl, simpleControl, solutionControl, rpm, SRFModel, decomposedBlockData, Time, schemesLookup, solution, tolerances, optimisationManager, SIMPLEControlOpt, SIMPLEControl, SIMPLEControlSingleRun, adjointkOmegaSST, adjointLaminar, adjointRASModel, adjointSpalartAllmaras, multiphaseSystem, multiphaseInterSystem, multiphaseSystem, phaseModel, phaseModel, phaseSystem, phaseModel, twoPhaseSystem, noPyrolysis, pyrolysisModel, reactingOneDim, thermo, regionModel, regionModel1D, singleLayerRegion, kinematicSingleLayer, surfaceFilmRegionModel, thermoSingleLayer, noThermo, thermalBaffle, thermalBaffleModel, rigidBodyMeshMotion, rigidBodyMeshMotionSolver, sixDoFRigidBodyMotionSolver, basicThermo, fvDOM, noRadiation, opaqueSolid, P1, solarLoad, viewFactor, solidThermo, immiscibleIncompressibleTwoPhaseMixture, incompressibleTwoPhaseMixture, singlePhaseTransportModel, phaseChangeTwoPhaseMixture, adjointTurbulenceModel, radiationModel, and turbulenceModel.
Definition at line 193 of file regIOobjectRead.C.
References STLCore::BINARY, Foam::fileHandler(), IOobject::fileModificationChecking, forAll, forAllReverse, fileOperation::getFile(), IOobject::inotifyMaster, fileOperation::read(), fileOperation::removeWatch(), List< T >::setSize(), UList< T >::size(), IOobject::timeStampMaster, and Foam::type().
Referenced by combustionModel::read(), motionSolver::read(), IOMRFZoneList::read(), IOporosityModelList::read(), SRFModel::read(), schemesLookup::read(), solution::read(), tolerances::read(), optimisationManager::read(), multiphaseSystem::read(), multiphaseInterSystem::read(), phaseSystem::read(), twoPhaseSystem::read(), regionModel::read(), basicThermo::read(), solidThermo::read(), incompressibleTwoPhaseMixture::read(), singlePhaseTransportModel::read(), radiationModel::read(), and turbulenceModel::read().
|
virtual |
Add file watch for fileName on object if not yet watched.
Reimplemented in unwatchedIOdictionary.
Definition at line 243 of file regIOobject.C.
References f(), Foam::fileHandler(), fileOperation::findWatch(), and IOobject::MUST_READ_IF_MODIFIED.
|
inlinenoexcept |
Read access to file-monitoring handles.
Definition at line 202 of file regIOobjectI.H.
Referenced by fileOperation::addWatches(), masterUncollatedFileOperation::addWatches(), and Time::readDict().
|
inlinenoexcept |
Write access to file-monitoring handles.
Definition at line 208 of file regIOobjectI.H.
|
virtual |
Return true if the object's file (or files for objectRegistry) have been modified. (modified state is cached by Time)
Reimplemented in objectRegistry.
Definition at line 241 of file regIOobjectRead.C.
References Foam::fileHandler(), forAllReverse, and fileMonitor::UNMODIFIED.
|
virtual |
Read object if modified (as set by call to modified)
Reimplemented in objectRegistry.
Definition at line 255 of file regIOobjectRead.C.
References Foam::endl(), Foam::fileHandler(), forAllReverse, fileOperation::getFile(), InfoInFunction, Foam::name(), Foam::read(), and fileMonitor::UNMODIFIED.
Pure virtual writeData function.
Must be defined in derived types
Implemented in SLGThermo, PDRDragModel, refinementHistory, polyTopoChanger, faBoundaryMeshEntries, solutionControl, lduPrimitiveMeshAssembly, AveragingMethod< Type >, AveragingMethod< Foam::Vector >, AveragingMethod< scalar >, extendedFeatureEdgeMesh, featureEdgeMesh, searchableBox, searchableCone, searchableCylinder, searchableDisk, searchableExtrudedCircle, searchablePlane, searchablePlate, searchableRotatedBox, searchableSphere, searchableSurfaceCollection, triSurfaceMesh, topoSet, CompactIOList< T, BaseType >, CompactIOList< face, label >, baseIOdictionary, objectRegistry, GeometricField< Type, PatchField, GeoMesh >, GeometricField< symmTensor, fvPatchField, volMesh >, GeometricField< scalar, fvPatchField, volMesh >, GeometricField< Type, pointPatchField, pointMesh >, GeometricField< vector, fvPatchField, volMesh >, GeometricField< tensor, fvPatchField, volMesh >, GeometricField< scalar, Foam::fvPatchField, Foam::volMesh >, GeometricField< Foam::Vector, Foam::fvPatchField, Foam::volMesh >, GeometricField< Foam::Vector, Foam::pointPatchField, Foam::pointMesh >, GeometricField< scalar, fvsPatchField, surfaceMesh >, GeometricField< scalar, pointPatchField, pointMesh >, GeometricField< vector, pointPatchField, pointMesh >, GeometricField< scalar, faPatchField, areaMesh >, GeometricField< scalar, Foam::faPatchField, Foam::areaMesh >, GeometricField< scalar, Foam::faePatchField, Foam::edgeMesh >, GeometricField< Foam::Vector, Foam::faPatchField, Foam::areaMesh >, GeometricField< Foam::Vector, Foam::faePatchField, Foam::edgeMesh >, GeometricField< Foam::SphericalTensor, Foam::faPatchField, Foam::areaMesh >, GeometricField< Foam::SphericalTensor, Foam::faePatchField, Foam::edgeMesh >, GeometricField< Foam::SymmTensor, Foam::faPatchField, Foam::areaMesh >, GeometricField< Foam::SymmTensor, Foam::faePatchField, Foam::edgeMesh >, GeometricField< Foam::Tensor, Foam::faPatchField, Foam::areaMesh >, GeometricField< Foam::Tensor, Foam::faePatchField, Foam::edgeMesh >, GeometricField< scalar, Foam::fvsPatchField, Foam::surfaceMesh >, GeometricField< Foam::Vector, Foam::fvsPatchField, Foam::surfaceMesh >, GeometricField< Foam::SphericalTensor, Foam::fvPatchField, Foam::volMesh >, GeometricField< Foam::SphericalTensor, Foam::fvsPatchField, Foam::surfaceMesh >, GeometricField< Foam::SymmTensor, Foam::fvPatchField, Foam::volMesh >, GeometricField< Foam::SymmTensor, Foam::fvsPatchField, Foam::surfaceMesh >, GeometricField< Foam::Tensor, Foam::fvPatchField, Foam::volMesh >, GeometricField< Foam::Tensor, Foam::fvsPatchField, Foam::surfaceMesh >, GeometricField< Type, Foam::fvPatchField, Foam::volMesh >, GeometricField< Type, Foam::pointPatchField, Foam::pointMesh >, GeometricField< Type, Foam::fvsPatchField, Foam::surfaceMesh >, GeometricField< vector, fvsPatchField, surfaceMesh >, GeometricField< scalar, Foam::pointPatchField, Foam::pointMesh >, GeometricField< Foam::SphericalTensor, Foam::pointPatchField, Foam::pointMesh >, GeometricField< Foam::SymmTensor, Foam::pointPatchField, Foam::pointMesh >, GeometricField< Foam::Tensor, Foam::pointPatchField, Foam::pointMesh >, GeometricField< tensor, faPatchField, areaMesh >, GeometricField< vector, faPatchField, areaMesh >, GeometricField< scalar, faePatchField, edgeMesh >, UniformDimensionedField< Type >, UniformDimensionedField< scalar >, UniformDimensionedField< vector >, IOmapDistribute, polyBoundaryMeshEntries, ATCModel, objectiveManager, adjointSolverManager, solver, adjointTurbulenceModel, populationBalanceModel, liquidProperties, powerLawLopesdaCosta, faBoundaryMesh, DarcyForchheimer, fixedCoeff, porosityModel, powerLaw, solidification, fvExprDriverWriter, IOPosition< CloudType >, lumpedPointIOMovement, rawIOField< Type >, searchableSurfaceWithGaps, fieldDictionary, CompactIOField< T, BaseType >, CompactIOField< Foam::Field< label >, label >, CompactIOField< Foam::Field< scalar >, scalar >, CompactIOField< Foam::Field< Foam::Vector >, Foam::Vector >, CompactIOField< Foam::Field< Foam::SphericalTensor >, Foam::SphericalTensor >, CompactIOField< Foam::Field< Foam::SymmTensor >, Foam::SymmTensor >, CompactIOField< Foam::Field< Foam::Tensor >, Foam::Tensor >, decomposedBlockData, GlobalIOField< Type >, GlobalIOField< vector >, GlobalIOList< Type >, GlobalIOList< kinematicParcelInjectionData >, GlobalIOList< reactingParcelInjectionData >, GlobalIOList< reactingMultiphaseParcelInjectionData >, IOField< Type >, IOField< label >, IOField< scalar >, IOField< Foam::Vector >, IOField< Foam::SphericalTensor >, IOField< Foam::SymmTensor >, IOField< Foam::Tensor >, IOFieldRef< Type >, IOList< T >, IOList< label >, IOList< labelList >, IOListRef< T >, IOMap< T >, IOPtrList< T >, IOPtrList< Foam::entry >, exprResultGlobals, DimensionedField< Type, GeoMesh >, DimensionedField< symmTensor, Foam::volMesh >, DimensionedField< symmTensor, volMesh >, DimensionedField< scalar, Foam::volMesh >, DimensionedField< scalar, volMesh >, DimensionedField< Type, pointMesh >, DimensionedField< vector, Foam::pointMesh >, DimensionedField< vector, Foam::volMesh >, DimensionedField< vector, volMesh >, DimensionedField< tensor, Foam::volMesh >, DimensionedField< tensor, volMesh >, DimensionedField< Foam::Vector, Foam::volMesh >, DimensionedField< Foam::Vector, Foam::pointMesh >, DimensionedField< scalar, Foam::surfaceMesh >, DimensionedField< scalar, surfaceMesh >, DimensionedField< scalar, Foam::pointMesh >, DimensionedField< scalar, pointMesh >, DimensionedField< vector, pointMesh >, DimensionedField< scalar, Foam::areaMesh >, DimensionedField< scalar, areaMesh >, DimensionedField< scalar, Foam::edgeMesh >, DimensionedField< Foam::Vector, Foam::areaMesh >, DimensionedField< Foam::Vector, Foam::edgeMesh >, DimensionedField< Foam::SphericalTensor, Foam::areaMesh >, DimensionedField< Foam::SphericalTensor, Foam::edgeMesh >, DimensionedField< Foam::SymmTensor, Foam::areaMesh >, DimensionedField< Foam::SymmTensor, Foam::edgeMesh >, DimensionedField< Foam::Tensor, Foam::areaMesh >, DimensionedField< Foam::Tensor, Foam::edgeMesh >, DimensionedField< Type, Foam::areaMesh >, DimensionedField< Type, Foam::edgeMesh >, DimensionedField< Foam::Vector, Foam::surfaceMesh >, DimensionedField< Foam::SphericalTensor, Foam::volMesh >, DimensionedField< Foam::SphericalTensor, Foam::surfaceMesh >, DimensionedField< Foam::SymmTensor, Foam::volMesh >, DimensionedField< Foam::SymmTensor, Foam::surfaceMesh >, DimensionedField< Foam::Tensor, Foam::volMesh >, DimensionedField< Foam::Tensor, Foam::surfaceMesh >, DimensionedField< Type, Foam::volMesh >, DimensionedField< Type, Foam::surfaceMesh >, DimensionedField< Type, Foam::pointMesh >, DimensionedField< vector, Foam::surfaceMesh >, DimensionedField< vector, surfaceMesh >, DimensionedField< scalar, triSurfacePointGeoMesh >, DimensionedField< Foam::SphericalTensor, Foam::pointMesh >, DimensionedField< Foam::SymmTensor, Foam::pointMesh >, DimensionedField< Foam::Tensor, Foam::pointMesh >, DimensionedField< tensor, Foam::areaMesh >, DimensionedField< tensor, areaMesh >, DimensionedField< vector, Foam::areaMesh >, DimensionedField< vector, areaMesh >, DimensionedField< scalar, edgeMesh >, profiling, IOmapDistributePolyMesh, IOmapDistributePolyMeshRef, polyBoundaryMesh, ZoneMesh< ZoneType, MeshType >, ZoneMesh< pointZone, polyMesh >, ZoneMesh< faceZone, polyMesh >, ZoneMesh< cellZone, polyMesh >, coordinateSystems, objective, NURBS3DVolume, adjointSolver, adjointSimple, RASTurbulenceModel, simple, porousModel, surfaceTensionModel, BlendedInterfacialModel< ModelType >, BlendedInterfacialModel< Foam::dragModel >, BlendedInterfacialModel< Foam::virtualMassModel >, BlendedInterfacialModel< Foam::heatTransferModel >, BlendedInterfacialModel< Foam::liftModel >, BlendedInterfacialModel< Foam::wallLubricationModel >, BlendedInterfacialModel< Foam::turbulentDispersionModel >, surfaceTensionModel, dragModel, virtualMassModel, dragModel, virtualMassModel, surfZoneIOList, constant, temperatureDependent, and surfaceTensionModel.
Referenced by searchableSurfaceWithGaps::writeData(), and mappedPatchBase::writeDict().
|
virtual |
Write using stream options.
uncomment this if you want to write global objects on master only
bool isGlobal = global();
Reimplemented in dynamicRefineFvMesh, motionSolver, faBoundaryMesh, fvMesh, Cloud< ParticleType >, Cloud< ParcelType >, Cloud< indexedParticle >, Cloud< injectedParticle >, Cloud< molecule >, Cloud< passiveParticle >, Cloud< passivePositionParticle >, Cloud< solidParticle >, Cloud< streamLineParticle >, Cloud< wallBoundedStreamLineParticle >, Cloud< typename CloudType::parcelType >, Cloud< parcelType >, Cloud< basicKinematicCollidingParcel >, Cloud< Foam::passiveParticle >, Cloud< Foam::molecule >, Cloud< Foam::DTRMParticle >, triSurfaceMesh, cellZoneSet, faceZoneSet, pointZoneSet, CompactIOField< T, BaseType >, CompactIOField< Foam::Field< label >, label >, CompactIOField< Foam::Field< scalar >, scalar >, CompactIOField< Foam::Field< Foam::Vector >, Foam::Vector >, CompactIOField< Foam::Field< Foam::SphericalTensor >, Foam::SphericalTensor >, CompactIOField< Foam::Field< Foam::SymmTensor >, Foam::SymmTensor >, CompactIOField< Foam::Field< Foam::Tensor >, Foam::Tensor >, CompactIOList< T, BaseType >, CompactIOList< face, label >, decomposedBlockData, objectRegistry, Time, polyBoundaryMesh, dynamicOversetFvMesh, distributedTriSurfaceMesh, rigidBodyMeshMotion, rigidBodyMeshMotionSolver, sixDoFRigidBodyMotionSolver, polySurface, surfMesh, coordinateSystems, unmappedPassivePositionParticleCloud, and profiling.
Definition at line 35 of file regIOobjectWrite.C.
References Foam::endl(), Foam::fileHandler(), IOobject::fileModificationChecking, IOobject::good(), IOobject::inotifyMaster, IOobject::instance(), UList< T >::last(), splitCell::master(), IOobject::name(), IOobject::objectPath(), Foam::Pout, SeriousErrorInFunction, fileOperation::setUnmodified(), UList< T >::size(), Foam::system(), IOobject::time(), timeName, Time::timeName(), IOobject::timeStampMaster, and fileOperation::writeObject().
Referenced by faBoundaryMesh::writeObject(), CompactIOField< T, BaseType >::writeObject(), CompactIOList< T, BaseType >::writeObject(), polyBoundaryMesh::writeObject(), dynamicOversetFvMesh::writeObject(), coordinateSystems::writeObject(), and profiling::writeObject().
Write using setting from DB.
Reimplemented in faMesh, fvMesh, IOPosition< CloudType >, AveragingMethod< Type >, AveragingMethod< Foam::Vector >, AveragingMethod< scalar >, extendedFeatureEdgeMesh, objectiveIncompressible, objective, incompressibleAdjointSolver, incompressiblePrimalSolver, solver, SIMPLEControlOpt, SIMPLEControlSingleRun, and SIMPLEControl.
Definition at line 134 of file regIOobjectWrite.C.
Referenced by jouleHeatingSource::addSup(), rotorDiskSource::addSup(), curvatureSeparation::calcCosAngle(), DarcyForchheimer::calcTransformModelData(), hydrostaticPressure::calculateAndWrite(), hexRef8::consistentSlowRefinement2(), shapeSensitivitiesBase::constructAndWriteSensitivityField(), shapeSensitivitiesBase::constructAndWriteSensitivtyPointField(), diffusionMulticomponent< ReactionThermo, ThermoType >::correct(), contactAngleForce::correct(), thixotropicViscosity::correct(), curvatureSeparation::correct(), limitedSnGrad< Type >::correction(), distanceSurface::createGeometry(), snappySnapDriver::doSnap(), meshRefinement::dumpRefinementLevel(), KinematicCloud< CloudType >::info(), dynamicRefineFvMesh::init(), isoSurfaceCell::isoSurfaceCell(), isoSurfacePoint::isoSurfacePoint(), isoSurfaceTopo::isoSurfaceTopo(), diffusionGasEvaporation< Thermo, OtherThermo >::Kexp(), fvMeshTools::loadOrCreateMesh(), SIMPLEControlOpt::loop(), Foam::MapLagrangianFields(), meshRefinement::mergeEdgesUndo(), meshRefinement::mergePatchFacesUndo(), multiphaseSystem::multiphaseSystem(), Foam::operator<<(), polyMesh::polyMesh(), HeatTransferCoeff< CloudType >::postEvolve(), NusseltNumber< CloudType >::postEvolve(), liquidFilmBase::postEvolveRegion(), pointNoise::processData(), genericPatchFieldBase::putEntry(), snappySnapDriver::scaleMesh(), hexRef8::setRefinement(), removeFaces::setRefinement(), hexRef8::setUnrefinement(), sixDoFRigidBodyMotionSolver::sixDoFRigidBodyMotionSolver(), snappySnapDriver::smoothDisplacement(), sensitivitySurface::smoothSensitivities(), adjointEikonalSolver::solve(), adjointMeshMovementSolver::solve(), dynamicOversetFvMesh::solve(), kinematicSingleLayer::transferPrimaryRegionSourceFields(), cellVolumeWeight::update(), trackingInverseDistance::update(), NURBS3DVolumeCylindrical::updateLocalCoordinateSystem(), ObukhovLength::write(), columnAverage::write(), momentum::write(), processorField::write(), regionSizeDistribution::write(), setFlow::write(), surfaceInterpolate::write(), writeCellCentres::write(), writeCellVolumes::write(), XiReactionRate::write(), zeroGradient::write(), dsmcFields::write(), electricPotential::write(), solverInfo::write(), writeObjects::write(), PatchCollisionDensity< CloudType >::write(), SIMPLEControlSingleRun::write(), genericPolyPatch::write(), faMeshReconstructor::writeAddressing(), dynamicOversetFvMesh::writeAgglomeration(), triSurfaceTools::writeCloseness(), triSurfaceTools::writeCurvature(), faMeshDecomposition::writeDecomposition(), Foam::edgeMeshTools::writeFeatureProximity(), DSMCParcel< ParcelType >::writeFields(), injectedParticle::writeFields(), molecule::writeFields(), solidParticle::writeFields(), streamLineParticle::writeFields(), wallBoundedStreamLineParticle::writeFields(), CollidingParcel< ParcelType >::writeFields(), KinematicParcel< ParcelType >::writeFields(), MPPICParcel< ParcelType >::writeFields(), ThermoParcel< ParcelType >::writeFields(), ReactingHeterogeneousParcel< ParcelType >::writeFields(), ReactingMultiphaseParcel< ParcelType >::writeFields(), ReactingParcel< ParcelType >::writeFields(), SprayParcel< ParcelType >::writeFields(), wallBoundedParticle::writeFields(), particle< Type >::writeFields(), faMeshReconstructor::writeMesh(), regionFunctionObject::writeObject(), dynamicRefineFvMesh::writeObject(), cellZoneSet::writeObject(), faceZoneSet::writeObject(), pointZoneSet::writeObject(), faMeshTools::writeProcAddressing(), fvMeshTools::writeProcAddressing(), isoAdvection::writeSurfaceCells(), and volFieldValue::writeValues().
|
inlinevirtual |
Is object global.
Reimplemented in porosityModel, extendedFeatureEdgeMesh, featureEdgeMesh, searchableSurface, triSurfaceMesh, GlobalIOField< Type >, GlobalIOField< vector >, GlobalIOList< Type >, GlobalIOList< kinematicParcelInjectionData >, GlobalIOList< reactingParcelInjectionData >, GlobalIOList< reactingMultiphaseParcelInjectionData >, IOdictionary, localIOdictionary, unwatchedIOdictionary, IOMap< T >, UniformDimensionedField< Type >, UniformDimensionedField< scalar >, UniformDimensionedField< vector >, distributedTriSurfaceMesh, and baseIOdictionary.
Definition at line 359 of file regIOobject.H.
Referenced by regIOobject::readHeaderOk().
void operator= | ( | const IOobject & | io | ) |
Copy assignment.
Definition at line 459 of file regIOobject.C.
References io(), and IOobject::operator=().
|
virtual |
Write using given format, version and compression.
Definition at line 144 of file regIOobjectWrite.C.
|
friend |
Friendship with classes needing access to masterOnlyReading.
Definition at line 125 of file regIOobject.H.
|
friend |
Definition at line 126 of file regIOobject.H.
|
staticprotected |
To flag master-only reading of objects.
Definition at line 87 of file regIOobject.H.
Referenced by codeStream::doingMasterOnlyReading(), and uncollatedFileOperation::read().