IOobject defines the attributes of an object for which implicit objectRegistry management is supported, and provides the infrastructure for performing stream I/O. More...


Public Types | |
| enum | objectState { GOOD , BAD } |
| Enumeration defining the valid states of an IOobject. More... | |
| enum | readOption { MUST_READ , MUST_READ_IF_MODIFIED , READ_IF_PRESENT , NO_READ } |
| Enumeration defining the read options. More... | |
| enum | writeOption { AUTO_WRITE = 0 , NO_WRITE = 1 } |
| Enumeration defining the write options. More... | |
| enum | fileCheckTypes { timeStamp , timeStampMaster , inotify , inotifyMaster } |
| Enumeration defining the file checking options. More... | |
Public Member Functions | |
| TypeName ("IOobject") | |
| Runtime type information. More... | |
| IOobject (const word &name, const fileName &instance, const objectRegistry ®istry, readOption r=NO_READ, writeOption w=NO_WRITE, bool registerObject=true) | |
| Construct from name, instance, registry, io options. More... | |
| IOobject (const word &name, const fileName &instance, const fileName &local, const objectRegistry ®istry, readOption r=NO_READ, writeOption w=NO_WRITE, bool registerObject=true) | |
| Construct from name, instance, local, registry, io options. More... | |
| IOobject (const fileName &path, const objectRegistry ®istry, readOption r=NO_READ, writeOption w=NO_WRITE, bool registerObject=true) | |
| Construct from path, registry, io options. More... | |
| IOobject (const IOobject &io, const objectRegistry ®istry) | |
| Construct from copy resetting registry. More... | |
| IOobject (const IOobject &io, const word &name) | |
| Construct from copy resetting name. More... | |
| IOobject (const IOobject &io)=default | |
| Copy constructor. More... | |
| autoPtr< IOobject > | clone () const |
| Clone. More... | |
| autoPtr< IOobject > | clone (const objectRegistry ®istry) const |
| Clone resetting registry. More... | |
| virtual | ~IOobject () |
| Destructor. More... | |
| const Time & | time () const |
| Return time. More... | |
| const objectRegistry & | db () const |
| Return the local objectRegistry. More... | |
| const word & | name () const |
| Return name. More... | |
| const word & | headerClassName () const |
| Return name of the class name read from header. More... | |
| word & | headerClassName () |
| Return name of the class name read from header. More... | |
| string & | note () |
| Return non-constant access to the optional note. More... | |
| const string & | note () const |
| Return the optional note. More... | |
| virtual void | rename (const word &newName) |
| Rename. More... | |
| bool & | registerObject () |
| Register object created from this IOobject with registry if true. More... | |
| bool | registerObject () const |
| Register object created from this IOobject with registry if true. More... | |
| readOption | readOpt () const |
| readOption & | readOpt () |
| writeOption | writeOpt () const |
| writeOption & | writeOpt () |
| word | group () const |
| Return group (extension part of name) More... | |
| word | member () const |
| Return member (name without the extension) More... | |
| const fileName & | rootPath () const |
| const fileName & | caseName (const bool global) const |
| fileName & | instance () const |
| Return the instance directory, constant, system, <time> etc. More... | |
| void | updateInstance () const |
| If the instance is a time directory update to the current time. More... | |
| void | updateTimeInstance () const |
| Update instance to the current time. More... | |
| const fileName & | local () const |
| fileName | path (const bool global) const |
| Return complete path including the processor sub-directory. More... | |
| fileName | objectPath (const bool global) const |
| Return complete path + object name including the processor. More... | |
| fileName | relativePath () const |
| Return the path relative to the case directory. More... | |
| fileName | relativeObjectPath () const |
| Return complete relativePath + object name. More... | |
| fileName | filePath (const bool global) const |
| Return complete path + object name if the file exists. More... | |
| bool | readHeader (Istream &) |
| Read header. More... | |
| bool | headerOk () |
| Read header of local object without type-checking. More... | |
| template<class Type > | |
| void | warnNoRereading () const |
| Helper: warn that type does not support re-reading. More... | |
| bool | writeHeader (Ostream &) const |
| Write header. More... | |
| bool | writeHeader (Ostream &, const word &objectType) const |
| Write header. Allow override of type. More... | |
| bool | good () const |
| bool | bad () const |
| InfoProxy< IOobject > | info () const |
| Return info proxy. More... | |
| void | operator= (const IOobject &) |
| template<class Name > | |
| Foam::word | groupName (Name name, const word &group) |
Static Public Member Functions | |
| static bool | fileNameComponents (const fileName &path, fileName &instance, fileName &local, word &name) |
| Split path into instance, local, name components. More... | |
| template<class Name > | |
| static word | groupName (Name name, const word &group) |
| 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... | |
| template<class Stream > | |
| static Stream & | writeBanner (Stream &os, bool noHint=false) |
| Write the standard OpenFOAM file/dictionary banner. More... | |
| template<class Stream > | |
| static Stream & | writeDivider (Stream &os) |
| Write the standard file section divider. More... | |
| template<class Stream > | |
| static Stream & | writeEndDivider (Stream &os) |
| Write the standard end file divider. More... | |
Static Public Attributes | |
| static constexpr const char * | foamFile = "FoamFile" |
| Keyword for the FoamFile header sub-dictionary. More... | |
| static const NamedEnum< fileCheckTypes, 4 > | fileCheckTypesNames |
| static fileCheckTypes | fileModificationChecking |
| Type of file modification checking. More... | |
Protected Member Functions | |
| template<class Type > | |
| bool | typeHeaderOk (const bool checkType) |
| Read header using typeGlobalFile to find file. More... | |
IOobject defines the attributes of an object for which implicit objectRegistry management is supported, and provides the infrastructure for performing stream I/O.
An IOobject is constructed with an object name, a class name, an instance path, a reference to a objectRegistry, and parameters determining its storage status.
Define what is done on object construction and explicit reads:
Definition at line 98 of file IOobject.H.
| enum objectState |
Enumeration defining the valid states of an IOobject.
| Enumerator | |
|---|---|
| GOOD | |
| BAD | |
Definition at line 109 of file IOobject.H.
| enum readOption |
Enumeration defining the read options.
| Enumerator | |
|---|---|
| MUST_READ | |
| MUST_READ_IF_MODIFIED | |
| READ_IF_PRESENT | |
| NO_READ | |
Definition at line 116 of file IOobject.H.
| enum writeOption |
Enumeration defining the write options.
| Enumerator | |
|---|---|
| AUTO_WRITE | |
| NO_WRITE | |
Definition at line 125 of file IOobject.H.
| enum fileCheckTypes |
Enumeration defining the file checking options.
| Enumerator | |
|---|---|
| timeStamp | |
| timeStampMaster | |
| inotify | |
| inotifyMaster | |
Definition at line 132 of file IOobject.H.
| IOobject | ( | const word & | name, |
| const fileName & | instance, | ||
| const objectRegistry & | registry, | ||
| readOption | r = NO_READ, |
||
| writeOption | w = NO_WRITE, |
||
| bool | registerObject = true |
||
| ) |
Construct from name, instance, registry, io options.
Definition at line 163 of file IOobject.C.
References Foam::endl(), and InfoInFunction.
Referenced by IOobject::clone(), and sizeGroup::fieldIo().


| IOobject | ( | const word & | name, |
| const fileName & | instance, | ||
| const fileName & | local, | ||
| const objectRegistry & | registry, | ||
| readOption | r = NO_READ, |
||
| writeOption | w = NO_WRITE, |
||
| bool | registerObject = true |
||
| ) |
Construct from name, instance, local, registry, io options.
Definition at line 194 of file IOobject.C.
References Foam::endl(), and InfoInFunction.

| IOobject | ( | const fileName & | path, |
| const objectRegistry & | registry, | ||
| readOption | r = NO_READ, |
||
| writeOption | w = NO_WRITE, |
||
| bool | registerObject = true |
||
| ) |
Construct from path, registry, io options.
Uses fileNameComponents() to split path into components.
Definition at line 226 of file IOobject.C.
| IOobject | ( | const IOobject & | io, |
| const objectRegistry & | registry | ||
| ) |
Construct from copy resetting registry.
Definition at line 263 of file IOobject.C.
Construct from copy resetting name.
Definition at line 282 of file IOobject.C.
|
virtual |
Destructor.
Definition at line 303 of file IOobject.C.
|
protected |
Read header using typeGlobalFile to find file.
and optionally check the headerClassName against Type
Definition at line 35 of file IOobjectTemplates.C.
References Foam::endl(), Foam::fileHandler(), IOobject::fileModificationChecking, IOobject::filePath(), IOobject::inotifyMaster, UPstream::master(), Pstream::scatter(), IOobject::timeStampMaster, and WarningInFunction.

| TypeName | ( | "IOobject" | ) |
Runtime type information.
|
static |
Split path into instance, local, name components.
input IOobject(instance, local, name) ----- ------ "foo" ("", "", "foo") "foo/bar" ("foo", "", "bar") "/XXX/bar" ("/XXX", "", "bar") "foo/bar/" ERROR - no name "foo/xxx/bar" ("foo", "xxx", "bar") "foo/xxx/yyy/bar" ("foo", "xxx/yyy", "bar")
Definition at line 60 of file IOobject.C.
References Foam::endl(), Foam::first(), IOobject::instance(), fileName::isAbsolute(), Foam::isDir(), IOobject::local(), IOobject::name(), IOobject::path(), and WarningInFunction.

Referenced by Foam::addField(), cloud::addsSupToField(), VoFTurbulenceDamping::addSup(), interfaceTurbulenceDamping::addSup(), phaseTurbulenceStabilisation::addSup(), buoyancyEnergy::addSupFields(), solidThermalEquilibrium::addSupFields(), viscousHeating::addSupFields(), heatTransfer::addSupFields(), forcesBase::alpha(), coupled::carrierName(), compressibleTwoPhaseVoFMixture::compressibleTwoPhaseVoFMixture(), compressibleVoFphase::compressibleVoFphase(), fixedTemperature::constrain(), limitTemperature::constrain(), fixedTemperature::constrainedFields(), limitTemperature::constrainedFields(), dispersedTurbulentDispersionModel::continuousTurbulence(), fractal::correct(), populationBalanceModel::correct(), DarcyForchheimer::correct(), powerLaw::correct(), solidification::correct(), phaseSystem::correctContinuityError(), phaseStabilisedSnGrad< Type >::correction(), multicomponentThermo::implementation::correctMassFractions(), constant::d(), fixedInterfacialArea::d(), Burns::D(), Gosman::D(), interfaceCompositionModel::D(), kineticTheoryModel::devTau(), phasePressureModel::devTau(), forcesBase::devTau(), phaseIncompressibleMomentumTransportModel::divDevTau(), MovingPhaseModel< BasePhaseModel >::divU(), momentumTransferSystem::dragCorrs(), Qdot::execute(), shearStress::execute(), totalEnthalpy::execute(), wallHeatFlux::execute(), wallShearStress::execute(), yPlus::execute(), massFractions::execute(), moleFractions::execute(), fieldAverageItem::fieldAverageItem(), sizeGroup::fieldIo(), LagrangianModel::fieldName(), physicalProperties::findModelDict(), phaseSystem::foundInterfacialModel(), objectRegistry::foundType(), fractal::fractal(), psiuMulticomponentThermo::implementation::implementation(), interfaceTurbulenceDamping::interfaceTurbulenceDamping(), momentumTransferSystem::invADVfs(), momentumTransferSystem::invADVs(), MaxwellStefan< BasicThermophysicalTransportModel >::j(), unityLewisFourier< BasicThermophysicalTransportModel >::j(), unityLewisEddyDiffusivity< TurbulenceThermophysicalTransportModel >::j(), MovingPhaseModel< BasePhaseModel >::K(), StationaryPhaseModel< BasePhaseModel >::k(), phaseSystem::lookupInterfacialModel(), massTransfer::lookupPhaseFieldNames(), objectRegistry::lookupType(), adjustTimeStepToCombustion::maxDeltaT(), adjustTimeStepToChemistry::maxDeltaT(), momentumTransportModel::momentumTransportModel(), MovingPhaseModel< BasePhaseModel >::MovingPhaseModel(), forcesBase::mu(), phaseSolidThermophysicalTransportModel::New(), multicomponentThermo::implementation::normaliseY(), JohnsonJackson::nu(), JohnsonJacksonSchaeffer::nu(), Schaeffer::nu(), Gidaspow::nu(), HrenyaSinclair::nu(), none::nu(), Syamlal::nu(), strainRateFunction::nu(), sizeGroup::iNew::operator()(), massTransfer::otherField(), phaseForces::phaseForces(), basicThermo::phasePropertyName(), phaseTurbulenceStabilisation::phaseTurbulenceStabilisation(), physicalProperties::physicalProperties(), populationBalanceModel::populationBalanceModel(), kineticTheoryModel::pPrimef(), phasePressureModel::pPrimef(), phaseSurfaceArrheniusReactionRate::preEvaluate(), turbulenceFields::processField(), Fickian< BasicThermophysicalTransportModel >::q(), Fourier< BasicThermophysicalTransportModel >::q(), MaxwellStefan< BasicThermophysicalTransportModel >::q(), unityLewisFourier< BasicThermophysicalTransportModel >::q(), eddyDiffusivity< TurbulenceThermophysicalTransportModel >::q(), nonUnityLewisEddyDiffusivity< TurbulenceThermophysicalTransportModel >::q(), unityLewisEddyDiffusivity< TurbulenceThermophysicalTransportModel >::q(), InertPhaseModel< BasePhaseModel >::Qdot(), Qdot::Qdot(), kineticTheoryModel::R(), phasePressureModel::R(), InertPhaseModel< BasePhaseModel >::R(), turbulenceFields::read(), yPlus::read(), forcesBase::read(), phaseScalarTransport::read(), fixedInterfacialArea::read(), propellerDisk::readCoeffs(), momentumTransportModel::readModelDict(), blendingMethod::readParameters(), massTransfer::rho(), shearStress::shearStress(), liquidProperties::sigma(), sizeGroup::sizeGroup(), SolidThermoPhaseModel< BasePhaseModel, ThermoModel >::SolidThermoPhaseModel(), phaseSystem::solve(), MPLIC::surfaceAlpha(), ThermoPhaseModel< BasePhaseModel, ThermoModel >::ThermoPhaseModel(), totalEnthalpy::totalEnthalpy(), JohnsonJacksonParticleSlipFvPatchVectorField::updateCoeffs(), JohnsonJacksonParticleThetaFvPatchScalarField::updateCoeffs(), maxwellSlipUFvPatchVectorField::updateCoeffs(), thermalBaffle1DFvPatchScalarField< solidType >::updateCoeffs(), VoFTurbulenceDamping::VoFTurbulenceDamping(), wallHeatFlux::wallHeatFlux(), wallShearStress::wallShearStress(), phaseMap::write(), populationBalanceSetSizeDistribution::write(), turbulenceFields::write(), wallHeatFlux::write(), wallShearStress::write(), yPlus::write(), and Henry::YfPrime().

|
static |
Return group (extension part of name)
Definition at line 131 of file IOobject.C.
References Foam::name(), and word::null.
Referenced by massTransfer::addSupType(), Foam::correctContactAngle(), phaseStabilisedSnGrad< Type >::correction(), phaseIncompressibleMomentumTransportModel::divDevTau(), twoPhases::index(), momentumTransportModel::momentumTransportModel(), laminarModel< BasicMomentumTransportModel >::New(), LESModel< BasicMomentumTransportModel >::New(), RASModel< BasicMomentumTransportModel >::New(), phaseSolidThermophysicalTransportModel::New(), momentumTransportModel::New(), JohnsonJackson::nu(), JohnsonJacksonSchaeffer::nu(), Schaeffer::nu(), Gidaspow::nu(), HrenyaSinclair::nu(), none::nu(), Syamlal::nu(), strainRateFunction::nu(), massTransfer::otherField(), MPLIC::surfaceAlpha(), and LagrangianEqn< Type >::~LagrangianEqn().


|
static |
Return member (name without the extension)
Definition at line 146 of file IOobject.C.
References Foam::name().
Referenced by massDiffusionLimitedPhaseChange::addSup(), phaseChange::addSup(), coefficientPhaseChange::addSup(), fractal::correct(), massTransfer::otherField(), EDC::R(), laminar::R(), and multicomponentThermo::specieIndex().


Clone.
Definition at line 280 of file IOobject.H.
References IOobject::IOobject().
Referenced by polyTopoChange::makeMesh(), coordinateSystem::New(), searchableSurface::iNew::operator()(), polyBoundaryMesh::polyBoundaryMesh(), searchableSurfaceList::searchableSurfaceList(), fvMeshSubset::setCellSubset(), and fvMeshSubset::setLargeCellSubset().


|
inline |
Clone resetting registry.
Definition at line 286 of file IOobject.H.
References IOobject::IOobject().

| const Foam::Time & time | ( | ) | const |
Return time.
Definition at line 315 of file IOobject.C.
References objectRegistry::time().
Referenced by chemistryModel< ThermoType >::chemistryModel(), dynamicMeshPointInterpolator::curPointField(), dynamicMeshPointInterpolator::dynamicMeshPointInterpolator(), masterUncollatedFileOperation::exists(), masterUncollatedFileOperation::filePath(), masterUncollatedFileOperation::filePathInfo(), fileOperation::findInstance(), masterUncollatedFileOperation::findInstance(), polyMesh::found(), functions::functions(), DSMCParcel< ParcelType >::hitWallPatch(), fvMeshSubset::interpolate(), Foam::fvm::laplacian(), odeChemistryModel::logFile(), Foam::MapGeometricFields(), Foam::MeshToMeshMapVolFields(), collatedFileOperation::objectPath(), populationBalanceModel::populationBalanceModel(), PrinceBlanch::PrinceBlanch(), fileOperation::processorsCasePath(), masterUncollatedFileOperation::read(), constSolidThermo::readProperty(), masterUncollatedFileOperation::relativeObjectPath(), subCycleField< GeometricField >::time(), collatedFileOperation::writeObject(), and masterUncollatedFileOperation::writeObject().


| const Foam::objectRegistry & db | ( | ) | const |
Return the local objectRegistry.
Definition at line 309 of file IOobject.C.
Referenced by refinementHistory::add(), refinementHistory::apply(), SprayParcel< ParcelType >::calcAtomisation(), collection::collection(), PDRkEpsilon::correct(), transport::correct(), phaseStabilisedSnGrad< Type >::correction(), basicSubGrid::Db(), instabilityG::Db(), instability::Db(), LagrangianFieldSource< Type >::db(), basic::Dcu(), pointFieldDecomposer::decomposeField(), IATEsource::Eo(), masterUncollatedFileOperation::filePathInfo(), basicSubGrid::G(), basic::Gk(), hexRef8Data::hexRef8Data(), InjectionModel< CloudType >::inject(), InjectionModel< CloudType >::InjectionModel(), PhiScheme< Type, PhiLimiter >::limiter(), Foam::meshCheck::mergeAndWrite(), IATEsource::Mo(), waveSuperposition::New(), momentumTransportModel::New(), GeometricField< Type, GeoMesh, PrimitiveField >::New(), populationBalanceModel::groups::New(), DimensionedField< scalar, Foam::volMesh >::operator-=(), fileOperation::processorsPath(), ReactingCloud< CloudType >::ReactingCloud(), InjectionModel< CloudType >::readDuration(), Foam::readFields(), Foam::readUniformFields(), refinementHistory::refinementHistory(), masterUncollatedFileOperation::relativeObjectPath(), populationBalanceModel::groups::retrieve(), motionSmootherAlgo::setDisplacement(), LagrangianSubMesh::sub(), surfMesh::surfMesh(), hexRef8Data::sync(), ThermoCloud< CloudType >::ThermoCloud(), waveSuperposition::transformation(), MPPICParcel< ParcelType >::trackingData::updateAverages(), IATEsource::Ur(), waveSuperposition::waveSuperposition(), withGaps::withGaps(), and IOobject::writeHeader().

|
inline |
Return name.
Definition at line 307 of file IOobject.H.
Referenced by accumulationScheme< Type >::accumulate(), Foam::Lagrangianc::accumulate(), multivariateSurfaceInterpolationScheme< Type >::fieldTable::add(), IOobjectList::add(), snappyLayerDriver::addLayers(), meshObjects::addPatch(), faceZoneSet::addSet(), LagrangianModel::addsSupToField(), interfaceTurbulenceDamping::addSup(), phaseTurbulenceStabilisation::addSup(), phaseChange::addSup(), VoFTurbulenceDamping::addSup(), clouds::addSup(), solidThermalEquilibrium::addSup(), clouds::addSupFields(), fvSpecificSource::addSupType(), fvTotalSource::addSupType(), massTransfer::addSupType(), incompressibleVoF::alphaSuSp(), ParcelCloudBase< ParticleType >::ap(), collatedFileOperation::appendObject(), setsToFaceZone::applyToSet(), Foam::atan2(), Foam::fvc::average(), blended< Type >::blendingFactor(), cellCoBlended< Type >::blendingFactor(), CoBlended< Type >::blendingFactor(), localBlended< Type >::blendingFactor(), Foam::bound(), buoyancy::buoyancy(), faceLimitedGrad< Type >::calcGrad(), nonConformalMappedPatchBase::calcOwner(), specieFluxBase::calcPhiYif(), cellZoneSet::cellZoneSet(), polyBoundaryMesh::checkDefinition(), Cloud< ParticleType >::checkFieldIOobject(), Foam::meshCheck::checkGeometry(), objectRegistry::checkIn(), Foam::checkMethod(), objectRegistry::checkOut(), polyBoundaryMesh::checkParallelSync(), faceZone::checkParallelSync(), Foam::meshCheck::checkTopology(), meshRefinement::checkZoneFaces(), meshObjects::clear(), meshObjects::clearUpto(), CollidingCloud< CloudType >::clone(), MomentumCloud< CloudType >::clone(), MPPICCloud< CloudType >::clone(), ReactingCloud< CloudType >::clone(), ReactingMultiphaseCloud< CloudType >::clone(), SprayCloud< CloudType >::clone(), ThermoCloud< CloudType >::clone(), CloudFunctionObject< CloudType >::CloudFunctionObject(), Foam::cmptAv(), collection::collection(), fvConstraints::constrain(), OldTimeField< FieldType >::copyOldTimes(), Maxwell< BasicMomentumTransportModel >::correct(), Foam::correctContactAngle(), correctedSnGrad< Type >::correction(), faceCorrectedSnGrad< Type >::correction(), linearUpwindV< Type >::correction(), cubic< Type >::correction(), deferred< Type >::correction(), localBlended< Type >::correction(), linearUpwind< Type >::correction(), Foam::fv::CorrectPhi(), nearWallFields::createFields(), Foam::fvc::curl(), Foam::fvc::d2dt2(), Foam::fvm::d2dt2(), Foam::fvc::ddt(), Foam::fvm::ddt(), decomposedBlockData::decomposedBlockData(), LagrangianFieldDecomposer::decomposeField(), pointFieldDecomposer::decomposeField(), fvFieldDecomposer::decomposeFvSurfaceField(), fvFieldDecomposer::decomposeVolField(), fvFieldDecomposer::decomposeVolInternalField(), faceZoneSet::deleteSet(), displacementLaplacianFvMotionSolver::displacementLaplacianFvMotionSolver(), meshObjects::distribute(), Foam::fvc::div(), Foam::fvm::div(), Foam::fvm::divc(), compressibleVoF::divergent(), Foam::fvc::domainIntegrate(), XiFluid::EaSolve(), XiFluid::EauSolve(), ParcelCloudBase< ParticleType >::Ep(), phaseScalarTransport::execute(), removeObjects::execute(), massFractions::execute(), masterUncollatedFileOperation::exists(), fileOperation::exists(), triSurface::extractCloseness(), triSurface::extractPointCloseness(), faceZoneSet::faceZoneSet(), CloudDerivedField< Type >::field(), sizeGroup::fieldIo(), IOobject::fileNameComponents(), masterUncollatedFileOperation::filePathInfo(), surfaceFieldValue::filterField(), refinementSurfaces::findInside(), fileOperation::findInstance(), masterUncollatedFileOperation::findInstance(), coupleGroupIdentifier::findOtherPatchID(), Foam::fvc::flux(), polyMesh::found(), fractal::fractal(), correctedSnGrad< Type >::fullGradCorrection(), faceCorrectedSnGrad< Type >::fullGradCorrection(), EulerD2dt2Scheme< Type >::fvcD2dt2(), steadyStateD2dt2Scheme< Type >::fvcD2dt2(), backwardDdtScheme< Type >::fvcDdt(), CoEulerDdtScheme< Type >::fvcDdt(), CrankNicolsonDdtScheme< Type >::fvcDdt(), EulerDdtScheme< Type >::fvcDdt(), localEulerDdtScheme< Type >::fvcDdt(), SLTSDdtScheme< Type >::fvcDdt(), steadyStateDdtScheme< Type >::fvcDdt(), backwardDdtScheme< Type >::fvcDdtPhiCorr(), CoEulerDdtScheme< Type >::fvcDdtPhiCorr(), CrankNicolsonDdtScheme< Type >::fvcDdtPhiCorr(), EulerDdtScheme< Type >::fvcDdtPhiCorr(), localEulerDdtScheme< Type >::fvcDdtPhiCorr(), SLTSDdtScheme< Type >::fvcDdtPhiCorr(), steadyStateDdtScheme< Type >::fvcDdtPhiCorr(), backwardDdtScheme< Type >::fvcDdtUfCorr(), CoEulerDdtScheme< Type >::fvcDdtUfCorr(), CrankNicolsonDdtScheme< Type >::fvcDdtUfCorr(), EulerDdtScheme< Type >::fvcDdtUfCorr(), localEulerDdtScheme< Type >::fvcDdtUfCorr(), SLTSDdtScheme< Type >::fvcDdtUfCorr(), steadyStateDdtScheme< Type >::fvcDdtUfCorr(), gaussConvectionScheme< Type >::fvcDiv(), gaussDivScheme< Type >::fvcDiv(), gaussLaplacianScheme< Type, GType >::fvcLaplacian(), fvConstraints::fvConstraints(), CrankNicolsonDdtScheme< Type >::fvmDdt(), gaussConvectionScheme< Type >::fvmDiv(), gaussLaplacianScheme< Type, GType >::fvmLaplacian(), fvModels::fvModels(), Foam::fvc::grad(), IOobject::groupName(), polyBoundaryMesh::groupPatchIndices(), ThermalPhaseModel< BasePhaseModel >::heEqn(), hexRef8Data::hexRef8Data(), ParcelCloudBase< ParticleType >::hsCoeff(), ParcelCloudBase< ParticleType >::hsTrans(), phaseSystem::implicitPhasePressure(), incompressibleDenseParticleFluid::incompressibleDenseParticleFluid(), incompressibleFluid::incompressibleFluid(), SurfaceFilmModel< CloudType >::inject(), surfaceInterpolationScheme< scalar >::interpolate(), singleCellFvMesh::interpolate(), surfaceInterpolationScheme< Type >::interpolate(), localBlended< Type >::interpolate(), localMax< Type >::interpolate(), localMin< Type >::interpolate(), volPointInterpolation::interpolate(), fvMeshSubset::interpolate(), IOdistributionMap::IOdistributionMap(), isothermalFilm::isothermalFilm(), isothermalFluid::isothermalFluid(), unityLewisFourier< BasicThermophysicalTransportModel >::j(), unityLewisEddyDiffusivity< TurbulenceThermophysicalTransportModel >::j(), KochFriedlanderSintering::KochFriedlanderSintering(), LagrangianMesh::LagrangianMesh(), Foam::fvc::laplacian(), Foam::fvm::laplacian(), LimitedScheme< Type, Limiter, LimitFunc >::limiter(), Foam::mag(), Foam::magSqr(), Foam::MapGeometricFields(), meshObjects::mapMesh(), fvMeshAdder::MapPointFields(), fvMeshAdder::MapSurfaceFields(), fvMeshAdder::MapVolFields(), Maxwell< BasicMomentumTransportModel >::Maxwell(), Foam::meshCheck::mergeAndWrite(), Foam::fvc::meshPhi(), meshToMesh::meshToMesh(), Foam::MeshToMeshMapVolFields(), meshObjects::movePoints(), multiphaseEuler::multiphaseEuler(), mappedValueFvPatchField< Type >::nbrPatchField(), mappedPatchBaseBase::nbrRegionName(), daughterSizeDistributionModel::New(), fvsPatchField< Type >::New(), fvPatchField< Type >::New(), pointPatchField< Type >::New(), interpolation< Type >::New(), populationBalanceModel::groups::New(), topoSet::New(), binaryBreakupModel::New(), breakupModel::New(), coalescenceModel::New(), LagrangianAverage< Type >::New(), regIOobject::objectPath(), populationBalanceModel::iNew::operator()(), Foam::operator<<(), geometricSurfacePatch::operator==(), nonConformalPolyPatch::origPatchIndex(), PatchPostProcessing< CloudType >::PatchPostProcessing(), phaseSystem::phaseSystem(), pointConstraints::pointConstraints(), pointMesh::pointMesh(), pointZoneSet::pointZoneSet(), polyMesh::polyMesh(), populationBalanceModel::populationBalanceModel(), Foam::pow(), ReactingCloud< CloudType >::ReactingCloud(), compressibleVoF::read(), twoPhaseSolver::read(), wallHeatTransferCoeff::read(), wallShearStress::read(), masterUncollatedFileOperation::read(), decomposedBlockData::readBlocks(), Foam::readFields(), masterUncollatedFileOperation::readHeader(), uncollatedFileOperation::readHeader(), domainDecomposition::readReconstruct(), masterUncollatedFileOperation::readStream(), uncollatedFileOperation::readStream(), Foam::readUniformFields(), Foam::fvc::reconstruct(), LagrangianFieldReconstructor::reconstructField(), pointFieldReconstructor::reconstructField(), lagrangianFieldReconstructor::reconstructField(), fvFieldReconstructor::reconstructFvSurfaceField(), Foam::fvc::reconstructMag(), fvFieldReconstructor::reconstructVolField(), fvFieldReconstructor::reconstructVolInternalField(), refinementRegions::refinementRegions(), refiner::refiner(), IOobject::relativeObjectPath(), masterUncollatedFileOperation::relativeObjectPath(), IOobjectList::remove(), meshObjects::reorderPatches(), objectRegistry::resetCacheTemporaryObject(), populationBalanceModel::groups::retrieve(), setFaceFieldType(), Foam::setRefCell(), shockFluid::shockFluid(), ParcelCloudBase< ParticleType >::sigmap(), sizeGroup::sizeGroup(), skewCorrected< Type >::skewCorrection(), snGradScheme< Type >::snGrad(), Foam::fvc::snGrad(), solidDisplacement::solidDisplacement(), phaseSystem::solve(), Foam::sqr(), fvMeshToFvMesh::srcToTgt(), ParcelCloudBase< ParticleType >::Srho(), Foam::stabilise(), singleRegionSolutionControl::storePrevIterTypeFields(), LagrangianSubMesh::sub(), subCycleField< GeometricField >::subCycleField(), faceZoneSet::subset(), Foam::fvc::surfaceIntegrate(), Foam::fvc::surfaceIntegrateExtrapolate(), Foam::fvc::surfaceSum(), Foam::surfaceToVolVelocity(), surfMesh::surfMesh(), ThermoCloud< CloudType >::ThermoCloud(), shockFluid::thermophysicalPredictor(), dictionary::topDict(), dictionary::topDictKeyword(), meshObjects::topoChange(), LagrangianMesh::track(), Foam::transform(), cellsToCells::trimLocalTgt(), triSurface::triSurface(), twoPhaseSolver::twoPhaseSolver(), twoPhaseVoFSolver::twoPhaseVoFSolver(), ParcelCloudBase< ParticleType >::UCoeff(), cellsToCells::update(), MPPICParcel< ParcelType >::trackingData::updateAverages(), mappedInternalValueFvPatchField< Type >::updateCoeffs(), waveSurfacePressureFvPatchScalarField::updateCoeffs(), ParcelCloudBase< ParticleType >::UTrans(), basicThermo::validate(), totalPressureVelocityLagrangianVectorFieldSource::value(), VoFSolver::VoFSolver(), localBlended< Type >::weights(), populationBalanceSetSizeDistribution::write(), regionSizeDistribution::write(), writeCellCentres::write(), writeCellVolumes::write(), XiReactionRate::write(), FacePostProcessing< CloudType >::write(), PatchPostProcessing< CloudType >::write(), MeshedSurfaceProxy< Face >::write(), boundaryRegion::writeDict(), cellTable::writeDict(), molecule::writeFields(), IOobject::writeHeader(), collatedFileOperation::writeObject(), writeObjectsBase::writeObject(), objectRegistryFunctionObject::writeObject(), regIOobject::writeObject(), cellZoneSet::writeObject(), faceZoneSet::writeObject(), pointZoneSet::writeObject(), and MulticomponentPhaseModel< BasePhaseModel >::YiEqn().
|
inline |
Return name of the class name read from header.
Definition at line 313 of file IOobject.H.
Referenced by fieldToCell::applyToSet(), patchFluxToFace::applyToSet(), readFields::loadField(), polyMesh::polyMesh(), masterUncollatedFileOperation::read(), uncollatedFileOperation::read(), decomposedBlockData::readBlocks(), masterUncollatedFileOperation::readHeader(), uncollatedFileOperation::readHeader(), fieldAverage::readMeanFieldType(), fieldAverage::readPrime2MeanFieldType(), masterUncollatedFileOperation::readStream(), uncollatedFileOperation::readStream(), setCellFieldType(), setFaceFieldType(), decomposedBlockData::writeData(), and Foam::writeMeshObject().

|
inline |
Return name of the class name read from header.
Definition at line 319 of file IOobject.H.
|
inline |
Return non-constant access to the optional note.
Definition at line 325 of file IOobject.H.
Referenced by masterUncollatedFileOperation::read(), uncollatedFileOperation::read(), decomposedBlockData::readBlocks(), masterUncollatedFileOperation::readHeader(), edgeMeshFormat::write(), decomposedBlockData::writeData(), boundaryRegion::writeDict(), cellTable::writeDict(), and IOobject::writeHeader().

|
inline |
Return the optional note.
Definition at line 331 of file IOobject.H.
|
inlinevirtual |
Rename.
Reimplemented in regIOobject, and objectRegistry.
Definition at line 337 of file IOobject.H.
Referenced by hexRef8Data::hexRef8Data(), decomposedBlockData::readBlocks(), regIOobject::rename(), and hexRef8Data::sync().

|
inline |
Register object created from this IOobject with registry if true.
Definition at line 343 of file IOobject.H.
Referenced by sizeGroup::fieldIo(), physicalProperties::findModelDict(), dragModel::New(), heatTransferModel::New(), virtualMassModel::New(), momentumTransportModel::readModelDict(), regIOobject::regIOobject(), and Foam::unregister().

|
inline |
Register object created from this IOobject with registry if true.
Definition at line 349 of file IOobject.H.
|
inline |
Definition at line 357 of file IOobject.H.
Referenced by CompactIOListBase< Container, IOContainer, CompactIOContainer, Type >::CompactIOListBase(), decomposedBlockData::decomposedBlockData(), distributedTriSurface::distributedTriSurface(), extendedFeatureEdgeMesh::extendedFeatureEdgeMesh(), featureEdgeMesh::featureEdgeMesh(), fileOperation::findInstance(), masterUncollatedFileOperation::findInstance(), heatTransferSystem::heatTransferSystem(), hexRef8::hexRef8(), IOdistributionMap::IOdistributionMap(), IOListBase< Container, IOContainer, Type >::IOListBase(), IOPtrList< Type >::IOPtrList(), polyTopoChange::makeMesh(), Foam::MapConsistentVolFields(), Foam::operator<<(), polyBoundaryMesh::polyBoundaryMesh(), radiativeIntensityRay::radiativeIntensityRay(), regIOobject::readHeaderOk(), refinementHistory::refinementHistory(), surfacePatchIOList::surfacePatchIOList(), surfZoneIOList::surfZoneIOList(), hexRef8Data::sync(), thermophysicalTransportModel::thermophysicalTransportModel(), Time::Time(), topoSet::topoSet(), and UniformDimensionedField< Type >::UniformDimensionedField().

|
inline |
Definition at line 362 of file IOobject.H.
|
inline |
Definition at line 367 of file IOobject.H.
Referenced by cellTable::addCellZones(), snappyLayerDriver::addLayers(), LagrangianMesh::LagrangianMesh(), linearEquilibrium::linearEquilibrium(), MovingPhaseModel< BasePhaseModel >::MovingPhaseModel(), objectRegistry::objectRegistry(), Foam::operator<<(), phaseSystem::phaseSystem(), surfMesh::setInstance(), and transport::transport().

|
inline |
Definition at line 372 of file IOobject.H.
| Foam::word group | ( | ) | const |
Return group (extension part of name)
Definition at line 321 of file IOobject.C.
References Foam::constant::atomic::group.
Referenced by fvTotalSource::addsSupToField(), massTransfer::addsSupToField(), cloud::addsSupToField(), coupled::carrierName(), fieldAverageItem::fieldAverageItem(), physicalProperties::findModelDict(), IOobject::groupName(), populationBalanceModel::groups::insert(), odeChemistryModel::logFile(), viscosityModel::New(), physicalProperties::physicalProperties(), momentumTransportModel::readModelDict(), and massTransfer::S().

| Foam::word member | ( | ) | const |
Return member (name without the extension)
Definition at line 327 of file IOobject.C.
Referenced by coupled::carrierName(), and fieldAverageItem::fieldAverageItem().

| const Foam::fileName & rootPath | ( | ) | const |
Definition at line 333 of file IOobject.C.
Referenced by masterUncollatedFileOperation::filePathInfo(), fileOperation::processorsCasePath(), and masterUncollatedFileOperation::relativeObjectPath().

| const Foam::fileName & caseName | ( | const bool | global | ) | const |
Definition at line 339 of file IOobject.C.
References fileName::caseName().
Referenced by regIOobject::caseName(), masterUncollatedFileOperation::filePathInfo(), and masterUncollatedFileOperation::relativeObjectPath().


| Foam::fileName & instance | ( | ) | const |
Return the instance directory, constant, system, <time> etc.
Allows modification of the instance
Definition at line 352 of file IOobject.C.
Referenced by snappyLayerDriver::addLayers(), Foam::meshCheck::checkGeometry(), Foam::meshCheck::checkTopology(), directions::directions(), masterUncollatedFileOperation::exists(), IOobject::fileNameComponents(), masterUncollatedFileOperation::filePathInfo(), Time::findInstance(), fileOperation::findInstance(), masterUncollatedFileOperation::findInstance(), Foam::fvc::laplacian(), Foam::fvm::laplacian(), Foam::MapGeometricFields(), meshRefinement::mergeEdgesUndo(), meshRefinement::mergePatchFacesUndo(), Foam::MeshToMeshMapVolFields(), GeometricField< Type, GeoMesh, PrimitiveField >::New(), collatedFileOperation::objectPath(), polyMesh::polyMesh(), Foam::readFields(), Foam::readUniformFields(), masterUncollatedFileOperation::relativeObjectPath(), surfMesh::setInstance(), LagrangianSubMesh::sub(), surfMesh::surfMesh(), volPointInterpolation::volPointInterpolation(), IOobject::writeHeader(), collatedFileOperation::writeObject(), and distributedTriSurface::writeObject().

| void updateInstance | ( | ) | const |
If the instance is a time directory update to the current time.
Definition at line 358 of file IOobject.C.
References Foam::name(), Foam::readScalar(), and Foam::system().
Referenced by regIOobject::writeObject().


| void updateTimeInstance | ( | ) | const |
Update instance to the current time.
Definition at line 377 of file IOobject.C.
|
inline |
Definition at line 400 of file IOobject.H.
Referenced by masterUncollatedFileOperation::dirPath(), IOobject::fileNameComponents(), masterUncollatedFileOperation::filePath(), masterUncollatedFileOperation::filePathInfo(), fileOperation::findInstance(), masterUncollatedFileOperation::findInstance(), polyMesh::found(), GeometricField< Type, GeoMesh, PrimitiveField >::New(), Foam::operator<<(), fileOperation::processorsPath(), Foam::readFields(), Foam::readUniformFields(), masterUncollatedFileOperation::relativeObjectPath(), LagrangianSubMesh::sub(), surfMesh::surfMesh(), and IOobject::writeHeader().

| Foam::fileName path | ( | const bool | global | ) | const |
Return complete path including the processor sub-directory.
for a parallel run if global is set false
Definition at line 383 of file IOobject.C.
Referenced by massFractions::execute(), IOobject::fileNameComponents(), Foam::operator<<(), regIOobject::path(), masterUncollatedFileOperation::relativeObjectPath(), and surfMesh::surfMesh().

|
inline |
Return complete path + object name including the processor.
sub-directory for a parallel run if global is set false
Definition at line 411 of file IOobject.H.
Referenced by masterUncollatedFileOperation::dirPath(), uncollatedFileOperation::dirPath(), masterUncollatedFileOperation::exists(), fileOperation::exists(), masterUncollatedFileOperation::filePath(), uncollatedFileOperation::filePath(), masterUncollatedFileOperation::filePathInfo(), masterUncollatedFileOperation::findInstance(), fileOperation::objectPath(), and collatedFileOperation::processorsDir().

| Foam::fileName relativePath | ( | ) | const |
Return the path relative to the case directory.
Definition at line 396 of file IOobject.C.
Referenced by domainDecomposition::readDecompose(), domainDecomposition::readReconstruct(), and IOobject::relativeObjectPath().

|
inline |
Return complete relativePath + object name.
Definition at line 420 of file IOobject.H.
References IOobject::name(), and IOobject::relativePath().
Referenced by functionObjectList::functionObjectList(), and phaseSystem::phaseSystem().


| Foam::fileName filePath | ( | const bool | global | ) | const |
Return complete path + object name if the file exists.
in the case directory otherwise null. If global and parallel searches up into the global case directory.
Definition at line 409 of file IOobject.C.
References Foam::fileHandler(), and fileOperation::filePath().
Referenced by fieldToCell::applyToSet(), patchFluxToFace::applyToSet(), regIOobject::filePath(), IOobject::typeHeaderOk(), and polyMesh::writeObject().


| bool readHeader | ( | Istream & | is | ) |
Read header.
Definition at line 37 of file IOobjectReadHeader.C.
References IOstream::currentVersion, Foam::endl(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, IOstream::format(), IOstream::good(), Foam::Info, InfoInFunction, IOWarningInFunction, token::isWord(), IOstream::lineNumber(), dictionary::lookup(), IOstream::name(), Foam::name(), Foam::nl, dictionary::readIfPresent(), SeriousIOErrorInFunction, IOstream::version(), token::wordToken(), and Foam::vtkWriteOps::writeHeader().
Referenced by decomposedBlockData::read(), edgeMeshFormat::read(), extendedEdgeMeshFormat::read(), masterUncollatedFileOperation::read(), decomposedBlockData::readBlock(), decomposedBlockData::readBlocks(), masterUncollatedFileOperation::readHeader(), uncollatedFileOperation::readHeader(), decomposedBlockData::readMasterHeader(), masterUncollatedFileOperation::readStream(), uncollatedFileOperation::readStream(), and decomposedBlockData::writeData().


| bool headerOk | ( | ) |
Read header of local object without type-checking.
Mainly used to create IOobjectLists
Definition at line 31 of file IOobjectReadHeader.C.
Referenced by patchFluxToFace::applyToSet(), fileOperation::exists(), IOobjectList::IOobjectList(), readFields::loadField(), domainDecomposition::readDecompose(), fieldAverage::readMeanFieldType(), fieldAverage::readPrime2MeanFieldType(), and domainDecomposition::readReconstruct().

| void warnNoRereading |
Helper: warn that type does not support re-reading.
Definition at line 77 of file IOobjectTemplates.C.
References Foam::endl(), IOobject::MUST_READ_IF_MODIFIED, Foam::name(), and WarningInFunction.

|
inlinestatic |
Write the standard OpenFOAM file/dictionary banner.
Optionally without -*- C++ -*- editor hint (eg, for logs)
Definition at line 45 of file IOobjectI.H.
References Foam::FOAMversion.
Referenced by collatedFileOperation::appendObject(), argList::parse(), OFSsurfaceFormatCore::writeHeader(), IOobject::writeHeader(), and decomposedBlockData::writeHeader().

|
inlinestatic |
Write the standard file section divider.
Definition at line 93 of file IOobjectI.H.
Referenced by collatedFileOperation::appendObject(), Foam::listSwitches(), argList::parse(), writeDictionary::write(), edgeMeshFormat::write(), OFSsurfaceFormatCore::writeHeader(), IOobject::writeHeader(), and decomposedBlockData::writeHeader().

|
inlinestatic |
Write the standard end file divider.
Definition at line 103 of file IOobjectI.H.
Referenced by collatedFileOperation::appendObject(), MeshedSurfaceProxy< Face >::write(), decomposedBlockData::writeData(), collatedFileOperation::writeObject(), fileOperation::writeObject(), and masterUncollatedFileOperation::writeObject().

| bool writeHeader | ( | Ostream & | os | ) | const |
Write header.
Definition at line 71 of file IOobjectWriteHeader.C.
References Foam::type(), and Foam::vtkWriteOps::writeHeader().
Referenced by collatedFileOperation::appendObject(), IOdictionary::readData(), edgeMeshFormat::write(), MeshedSurfaceProxy< Face >::write(), interpolationLookUpTable::write(), boundaryRegion::writeDict(), cellTable::writeDict(), collatedFileOperation::writeObject(), fileOperation::writeObject(), masterUncollatedFileOperation::writeObject(), and decomposedBlockData::writeObject().


Write header. Allow override of type.
Definition at line 35 of file IOobjectWriteHeader.C.
References IOstream::currentVersion, IOobject::db(), objectRegistry::dbDir(), Foam::endl(), IOobject::foamFile, IOstream::format(), IOstream::good(), IOstream::info(), InfoInFunction, IOobject::instance(), IOobject::local(), IOobject::name(), Foam::nl, IOobject::note(), Foam::type(), IOstream::version(), IOobject::writeBanner(), and IOobject::writeDivider().

|
inline |
Definition at line 470 of file IOobject.H.
References IOobject::GOOD.
Referenced by topoSet::topoSet(), and regIOobject::writeObject().

|
inline |
Definition at line 475 of file IOobject.H.
References IOobject::BAD.
Return info proxy.
Used to print token information to a stream
Definition at line 485 of file IOobject.H.
Referenced by searchableSurface::findNearest(), GeometricField< Type, GeoMesh, PrimitiveField >::GeometricField(), withGaps::getNormal(), withGaps::getRegion(), and MomentumCloud< CloudType >::solve().

| void operator= | ( | const IOobject & | io | ) |
Definition at line 415 of file IOobject.C.
|
inline |
Definition at line 31 of file IOobjectI.H.
References IOobject::group(), IOobject::name(), and word::null.

|
staticconstexpr |
Keyword for the FoamFile header sub-dictionary.
Definition at line 104 of file IOobject.H.
Referenced by collatedFileOperation::appendObject(), includeEntry::execute(), includeEtcEntry::execute(), decomposedBlockData::numBlocks(), dictionary::read(), IOobject::writeHeader(), and decomposedBlockData::writeHeader().
|
static |
Definition at line 140 of file IOobject.H.
Referenced by argList::parse().
|
static |
Type of file modification checking.
Definition at line 223 of file IOobject.H.
Referenced by regIOobject::addWatch(), collatedFileOperation::collatedFileOperation(), distributedTriSurface::distributedTriSurface(), hexRef8::hexRef8(), masterUncollatedFileOperation::masterUncollatedFileOperation(), fileOperation::monitor(), argList::parse(), regIOobject::read(), regIOobject::readHeaderOk(), Time::readModifiedObjects(), IOobject::typeHeaderOk(), and regIOobject::writeObject().