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... | |
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 word &typeName, 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 | |
void | setBad (const string &) |
Set the object state to bad. More... | |
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 166 of file IOobject.C.
References Foam::endl(), and InfoInFunction.
Referenced by IOobject::clone(), sizeGroup::fieldIo(), and populationBalanceModel::populationBalanceModel().
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 197 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 229 of file IOobject.C.
IOobject | ( | const IOobject & | io, |
const objectRegistry & | registry | ||
) |
Construct from copy resetting registry.
Definition at line 266 of file IOobject.C.
Construct from copy resetting name.
Definition at line 285 of file IOobject.C.
|
virtual |
Destructor.
Definition at line 306 of file IOobject.C.
|
protected |
Set the object state to bad.
Definition at line 416 of file IOobject.C.
References Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, InfoInFunction, messageStream::level, and s().
|
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 63 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(), VoFTurbulenceDamping::addSup(), interfaceTurbulenceDamping::addSup(), phaseTurbulenceStabilisation::addSup(), buoyancyEnergy::addSupFields(), solidThermalEquilibrium::addSupFields(), viscousHeating::addSupFields(), heatTransfer::addSupFields(), phaseChange::addToDriftRate(), reactionDriven::addToNucleationRate(), wallBoiling::addToNucleationRate(), forcesBase::alpha(), compressibleTwoPhaseVoFMixture::compressibleTwoPhaseVoFMixture(), compressibleVoFphase::compressibleVoFphase(), fixedTemperature::constrain(), limitTemperature::constrain(), fixedTemperature::constrainedFields(), limitTemperature::constrainedFields(), dispersedTurbulentDispersionModel::continuousTurbulence(), DarcyForchheimer::correct(), powerLaw::correct(), solidification::correct(), phaseSystem::correctContinuityError(), InterfaceCompositionPhaseChangePhaseSystem< BasePhaseSystem >::correctInterfaceThermo(), ThermalPhaseChangePhaseSystem< BasePhaseSystem >::correctInterfaceThermo(), phaseStabilisedSnGrad< Type >::correction(), multicomponentThermo::implementation::correctMassFractions(), Burns::D(), Gosman::D(), constant::d(), fixedInterfacialArea::d(), interfaceCompositionModel::D(), cavitation::d2mdtdpf(), kineticTheoryModel::devTau(), phasePressureModel::devTau(), forcesBase::devTau(), MovingPhaseModel< BasePhaseModel >::divU(), cavitation::dmdtf(), phaseSystem::dmdtf(), Qdot::execute(), shearStress::execute(), totalEnthalpy::execute(), wallHeatFlux::execute(), wallShearStress::execute(), yPlus::execute(), massFractions::execute(), moleFractions::execute(), fieldAverageItem::fieldAverageItem(), sizeGroup::fieldIo(), physicalProperties::findModelDict(), phaseSystem::foundInterfacialModel(), objectRegistry::foundType(), fractal::fractal(), momentumTransportModel::groupName(), psiuMulticomponentThermo::implementation::implementation(), InterfaceCompositionPhaseChangePhaseSystem< BasePhaseSystem >::InterfaceCompositionPhaseChangePhaseSystem(), interfaceTurbulenceDamping::interfaceTurbulenceDamping(), phaseSystem::interfacialDict(), 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::normaliseY(), JohnsonJackson::nu(), JohnsonJacksonSchaeffer::nu(), Schaeffer::nu(), Gidaspow::nu(), HrenyaSinclair::nu(), noneViscosity::nu(), Syamlal::nu(), strainRateFunction::nu(), sizeGroup::iNew::operator()(), massTransfer::otherField(), phaseChange::phaseChange(), phaseForces::phaseForces(), basicThermo::phasePropertyName(), PhaseTransferPhaseSystem< BasePhaseSystem >::PhaseTransferPhaseSystem(), phaseTurbulenceStabilisation::phaseTurbulenceStabilisation(), physicalProperties::physicalProperties(), populationBalanceModel::populationBalanceModel(), kineticTheoryModel::pPrimef(), phasePressureModel::pPrimef(), wallBoiling::precompute(), 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(), phaseChange::R(), wallBoiling::R(), turbulenceFields::read(), yPlus::read(), forcesBase::read(), phaseScalarTransport::read(), fixedInterfacialArea::read(), momentumTransportModel::readModelDict(), blendingMethod::readParameters(), massTransfer::rho(), scalarTransport::scalarTransport(), SecondaryPropertyModel< ModelType >::SecondaryPropertyName(), shearStress::shearStress(), kineticTheoryModel::sigma(), phasePressureModel::sigma(), liquidProperties::sigma(), sizeGroup::sizeGroup(), SolidThermoPhaseModel< BasePhaseModel, ThermoModel >::SolidThermoPhaseModel(), phaseSystem::solve(), reactionDriven::speciesKey(), InterfaceCompositionPhaseChangePhaseSystem< BasePhaseSystem >::specieTransfer(), MPLIC::surfaceAlpha(), ThermalPhaseChangePhaseSystem< BasePhaseSystem >::ThermalPhaseChangePhaseSystem(), ThermoPhaseModel< BasePhaseModel, ThermoModel >::ThermoPhaseModel(), totalEnthalpy::totalEnthalpy(), JohnsonJacksonParticleSlipFvPatchVectorField::updateCoeffs(), JohnsonJacksonParticleThetaFvPatchScalarField::updateCoeffs(), maxwellSlipUFvPatchVectorField::updateCoeffs(), thermalBaffle1DFvPatchScalarField< solidType >::updateCoeffs(), VoFTurbulenceDamping::VoFTurbulenceDamping(), wallHeatFlux::wallHeatFlux(), wallShearStress::wallShearStress(), phaseMap::write(), wallBoilingProperties::write(), turbulenceFields::write(), wallHeatFlux::write(), wallShearStress::write(), yPlus::write(), and Henry::YfPrime().
|
static |
Return group (extension part of name)
Definition at line 134 of file IOobject.C.
References Foam::name(), and word::null.
Referenced by massTransfer::addSupType(), Foam::correctContactAngle(), phaseStabilisedSnGrad< Type >::correction(), momentumTransportModel::groupName(), 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(), noneViscosity::nu(), Syamlal::nu(), strainRateFunction::nu(), massTransfer::otherField(), scalarTransport::scalarTransport(), MPLIC::surfaceAlpha(), and Foam::surfaceToVolVelocity().
|
static |
Return member (name without the extension)
Definition at line 149 of file IOobject.C.
References Foam::name().
Referenced by PhaseTransferPhaseSystem< BasePhaseSystem >::addDmdtYfs(), multicomponentPhaseChange::addSup(), singleComponentPhaseChange::addSup(), homogeneousCondensation::addSup(), homogeneousLiquidPhaseSeparation::addSup(), coefficientPhaseChange::addSup(), ThermalPhaseChangePhaseSystem< BasePhaseSystem >::correctInterfaceThermo(), massTransfer::otherField(), EDC::R(), laminar::R(), multicomponentThermo::specieIndex(), and Foam::surfaceToVolVelocity().
Clone.
Definition at line 283 of file IOobject.H.
References IOobject::IOobject().
Referenced by polyTopoChange::makeMesh(), coordinateSystem::New(), searchableSurface::iNew::operator()(), polyBoundaryMesh::polyBoundaryMesh(), searchableSurfaces::searchableSurfaces(), fvMeshSubset::setCellSubset(), and fvMeshSubset::setLargeCellSubset().
|
inline |
Clone resetting registry.
Definition at line 289 of file IOobject.H.
References IOobject::IOobject().
const Foam::Time & time | ( | ) | const |
Return time.
Definition at line 318 of file IOobject.C.
References objectRegistry::time().
Referenced by chemistryModel< ThermoType >::chemistryModel(), zeroDimensionalMassSourceBase::correct(), dynamicMeshPointInterpolator::curPointField(), masterUncollatedFileOperation::exists(), masterUncollatedFileOperation::filePath(), masterUncollatedFileOperation::filePathInfo(), fileOperation::findInstance(), masterUncollatedFileOperation::findInstance(), functions::functions(), fvMeshSubset::interpolate(), Foam::fvm::laplacian(), odeChemistryModel::logFile(), Foam::MapGeometricFields(), Foam::MeshToMeshMapVolFields(), laminarFlameSpeed::New(), collatedFileOperation::objectPath(), populationBalanceModel::populationBalanceModel(), PrinceBlanch::PrinceBlanch(), fileOperation::processorsCasePath(), KochFriedlander::R(), noSintering::R(), dummy::R(), 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 312 of file IOobject.C.
Referenced by refinementHistory::add(), refinementHistory::apply(), SprayParcel< ParcelType >::calcAtomisation(), PDRkEpsilon::correct(), transport::correct(), phaseStabilisedSnGrad< Type >::correction(), basicSubGrid::Db(), instabilityG::Db(), basic::Dcu(), 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(), laminarFlameSpeed::New(), momentumTransportModel::New(), DimensionedField< Type, GeoMesh >::New(), populationBalanceModel::groups::New(), fileOperation::processorsPath(), ReactingCloud< CloudType >::ReactingCloud(), InjectionModel< CloudType >::readDuration(), Foam::readFields(), Foam::readUniformFields(), refinementHistory::refinementHistory(), masterUncollatedFileOperation::relativeObjectPath(), populationBalanceModel::groups::retrieve(), searchableSurfaceCollection::searchableSurfaceCollection(), searchableSurfaceWithGaps::searchableSurfaceWithGaps(), motionSmootherAlgo::setDisplacement(), surfMesh::surfMesh(), hexRef8Data::sync(), ThermoCloud< CloudType >::ThermoCloud(), waveSuperposition::transformation(), MPPICParcel< ParcelType >::trackingData::updateAverages(), IATEsource::Ur(), waveSuperposition::waveSuperposition(), and IOobject::writeHeader().
|
inline |
Return name.
Definition at line 310 of file IOobject.H.
Referenced by multivariateSurfaceInterpolationScheme< Type >::fieldTable::add(), IOobjectList::add(), PhaseTransferPhaseSystem< BasePhaseSystem >::addDmdtYfs(), PhaseTransferPhaseSystem< BasePhaseSystem >::addDmidtYf(), snappyLayerDriver::addLayers(), meshObjects::addPatch(), faceZoneSet::addSet(), interfaceTurbulenceDamping::addSup(), phaseTurbulenceStabilisation::addSup(), multicomponentPhaseChange::addSup(), singleComponentPhaseChange::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(), writeFile::baseFileDir(), 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::meshCheck::checkMeshOutputDir(), 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(), fvConstraints::constrain(), OldTimeField< FieldType >::copyOldTimes(), Maxwell< BasicMomentumTransportModel >::correct(), Foam::correctContactAngle(), ThermalPhaseChangePhaseSystem< BasePhaseSystem >::correctInterfaceThermo(), 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(), faceZoneSet::deleteSet(), displacementLaplacianFvMotionSolver::displacementLaplacianFvMotionSolver(), meshObjects::distribute(), cellsToCells::distributeMesh(), Foam::fvc::div(), Foam::fvm::div(), Foam::fvm::divc(), compressibleVoF::divergent(), Foam::fvc::domainIntegrate(), XiFluid::EaSolve(), XiFluid::EauSolve(), ParcelCloudBase< ParticleType >::Ep(), phaseScalarTransport::execute(), removeRegisteredObject::execute(), massFractions::execute(), masterUncollatedFileOperation::exists(), fileOperation::exists(), triSurfaceMesh::extractCloseness(), triSurfaceMesh::extractPointCloseness(), faceZoneSet::faceZoneSet(), sizeGroup::fieldIo(), IOobject::fileNameComponents(), masterUncollatedFileOperation::filePathInfo(), surfaceFieldValue::filterField(), refinementSurfaces::findInside(), fileOperation::findInstance(), masterUncollatedFileOperation::findInstance(), coupleGroupIdentifier::findOtherPatchID(), Foam::fvc::flux(), 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(), AnisothermalPhaseModel< BasePhaseModel >::heEqn(), hexRef8Data::hexRef8Data(), ParcelCloudBase< ParticleType >::hsCoeff(), ParcelCloudBase< ParticleType >::hsTrans(), incompressibleDenseParticleFluid::incompressibleDenseParticleFluid(), incompressibleFluid::incompressibleFluid(), SurfaceFilmModel< CloudType >::inject(), surfaceInterpolationScheme< scalar >::interpolate(), singleCellFvMesh::interpolate(), surfaceInterpolationScheme< Type >::interpolate(), localBlended< Type >::interpolate(), localMax< Type >::interpolate(), localMin< Type >::interpolate(), fvMeshSubset::interpolate(), volPointInterpolation::interpolate(), IOdistributionMap::IOdistributionMap(), isothermalFilm::isothermalFilm(), isothermalFluid::isothermalFluid(), unityLewisFourier< BasicThermophysicalTransportModel >::j(), unityLewisEddyDiffusivity< TurbulenceThermophysicalTransportModel >::j(), 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(), binaryBreakupModel::New(), breakupModel::New(), coalescenceModel::New(), driftModel::New(), nucleationModel::New(), regIOobject::objectPath(), populationBalanceModel::iNew::operator()(), Foam::operator<<(), geometricSurfacePatch::operator==(), nonConformalPolyPatch::origPatchIndex(), mappedExtrudedPatchBase::patchFaceAreas(), mappedExtrudedPatchBase::patchLocalPoints(), PatchPostProcessing< CloudType >::PatchPostProcessing(), phaseSystem::phaseSystem(), pointConstraints::pointConstraints(), pointMesh::pointMesh(), pointZoneSet::pointZoneSet(), polyMesh::polyMesh(), populationBalanceModel::populationBalanceModel(), Foam::pow(), ReactingCloud< CloudType >::ReactingCloud(), 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(), Foam::fvc::reconstructMag(), refinementRegions::refinementRegions(), refiner::refiner(), IOobject::relativeObjectPath(), masterUncollatedFileOperation::relativeObjectPath(), IOobjectList::remove(), meshObjects::reorderPatches(), objectRegistry::resetCacheTemporaryObject(), populationBalanceModel::groups::retrieve(), searchableSurfaceCollection::searchableSurfaceCollection(), SecondaryPropertyModel< ModelType >::SecondaryPropertyName(), 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(), subCycleField< GeometricField >::subCycleField(), faceZoneSet::subset(), Foam::fvc::surfaceIntegrate(), Foam::fvc::surfaceSum(), surfMesh::surfMesh(), ThermoCloud< CloudType >::ThermoCloud(), shockFluid::thermophysicalPredictor(), dictionary::topDict(), dictionary::topDictKeyword(), meshObjects::topoChange(), Foam::transform(), cellsToCells::trimLocalTgt(), triSurfaceMesh::triSurfaceMesh(), twoPhaseSolver::twoPhaseSolver(), ParcelCloudBase< ParticleType >::UCoeff(), cellsToCellsStabilisation::update(), cellsToCells::update(), MPPICParcel< ParcelType >::trackingData::updateAverages(), mappedInternalValueFvPatchField< Type >::updateCoeffs(), waveSurfacePressureFvPatchScalarField::updateCoeffs(), ParcelCloudBase< ParticleType >::UTrans(), basicThermo::validate(), VoFSolver::VoFSolver(), localBlended< Type >::weights(), 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(), regionFunctionObject::writeObject(), regIOobject::writeObject(), cellZoneSet::writeObject(), faceZoneSet::writeObject(), pointZoneSet::writeObject(), domainDecomposition::writeProcs(), and MulticomponentPhaseModel< BasePhaseModel >::YiEqn().
|
inline |
Return name of the class name read from header.
Definition at line 316 of file IOobject.H.
Referenced by fieldToCell::applyToSet(), patchFluxToFace::applyToSet(), masterUncollatedFileOperation::filePathInfo(), readFields::loadField(), polyMesh::polyMesh(), masterUncollatedFileOperation::read(), uncollatedFileOperation::read(), decomposedBlockData::readBlocks(), masterUncollatedFileOperation::readHeader(), uncollatedFileOperation::readHeader(), fieldAverage::readMeanFieldType(), fieldAverage::readPrime2MeanFieldType(), masterUncollatedFileOperation::readStream(), uncollatedFileOperation::readStream(), masterUncollatedFileOperation::relativeObjectPath(), decomposedBlockData::writeData(), and Foam::writeMeshObject().
|
inline |
Return name of the class name read from header.
Definition at line 322 of file IOobject.H.
|
inline |
Return non-constant access to the optional note.
Definition at line 328 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 334 of file IOobject.H.
|
inlinevirtual |
Rename.
Reimplemented in regIOobject, and objectRegistry.
Definition at line 340 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 346 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 352 of file IOobject.H.
|
inline |
Definition at line 360 of file IOobject.H.
Referenced by CompactIOListBase< Container, IOContainer, CompactIOContainer, Type >::CompactIOListBase(), decomposedBlockData::decomposedBlockData(), distributedTriSurfaceMesh::distributedTriSurfaceMesh(), extendedFeatureEdgeMesh::extendedFeatureEdgeMesh(), featureEdgeMesh::featureEdgeMesh(), fileOperation::findInstance(), masterUncollatedFileOperation::findInstance(), 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(), and UniformDimensionedField< Type >::UniformDimensionedField().
|
inline |
Definition at line 365 of file IOobject.H.
|
inline |
Definition at line 370 of file IOobject.H.
Referenced by cellTable::addCellZones(), snappyLayerDriver::addLayers(), MovingPhaseModel< BasePhaseModel >::MovingPhaseModel(), objectRegistry::objectRegistry(), Foam::operator<<(), phaseSystem::phaseSystem(), and surfMesh::setInstance().
|
inline |
Definition at line 375 of file IOobject.H.
Foam::word group | ( | ) | const |
Return group (extension part of name)
Definition at line 324 of file IOobject.C.
References Foam::constant::atomic::group.
Referenced by fvTotalSource::addsSupToField(), massTransfer::addsSupToField(), fieldAverageItem::fieldAverageItem(), physicalProperties::findModelDict(), IOobject::groupName(), populationBalanceModel::groups::insert(), odeChemistryModel::logFile(), viscosityModel::New(), physicalProperties::physicalProperties(), momentumTransportModel::readModelDict(), massTransfer::S(), and fvTotalSource::source().
Foam::word member | ( | ) | const |
Return member (name without the extension)
Definition at line 330 of file IOobject.C.
Referenced by fieldAverageItem::fieldAverageItem().
const Foam::fileName & rootPath | ( | ) | const |
Definition at line 336 of file IOobject.C.
Referenced by masterUncollatedFileOperation::filePathInfo(), fileOperation::processorsCasePath(), and masterUncollatedFileOperation::relativeObjectPath().
const Foam::fileName & caseName | ( | const bool | global | ) | const |
Definition at line 342 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 355 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(), DimensionedField< Type, GeoMesh >::New(), collatedFileOperation::objectPath(), polyMesh::polyMesh(), Foam::readFields(), Foam::readUniformFields(), masterUncollatedFileOperation::relativeObjectPath(), surfMesh::setInstance(), surfMesh::surfMesh(), volPointInterpolation::volPointInterpolation(), domainDecomposition::writeComplete(), IOobject::writeHeader(), collatedFileOperation::writeObject(), and distributedTriSurfaceMesh::writeObject().
void updateInstance | ( | ) | const |
If the instance is a time directory update to the current time.
Definition at line 361 of file IOobject.C.
References Foam::name(), Foam::readScalar(), and Foam::system().
Referenced by regIOobject::writeObject().
|
inline |
Definition at line 400 of file IOobject.H.
Referenced by masterUncollatedFileOperation::dirPath(), IOobject::fileNameComponents(), masterUncollatedFileOperation::filePath(), masterUncollatedFileOperation::filePathInfo(), fileOperation::findInstance(), masterUncollatedFileOperation::findInstance(), DimensionedField< Type, GeoMesh >::New(), Foam::operator<<(), fileOperation::processorsPath(), Foam::readFields(), Foam::readUniformFields(), masterUncollatedFileOperation::relativeObjectPath(), 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 380 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(), collatedFileOperation::processorsDir(), and polyMesh::writeObject().
Foam::fileName relativePath | ( | ) | const |
Return the path relative to the case directory.
Definition at line 393 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().
Foam::fileName filePath | ( | const word & | typeName, |
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 406 of file IOobject.C.
Referenced by fieldToCell::applyToSet(), patchFluxToFace::applyToSet(), regIOobject::filePath(), and IOobject::typeHeaderOk().
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(), dictionary::lookupOrDefault(), 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 80 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 471 of file IOobject.H.
References IOobject::GOOD.
Referenced by regIOobject::writeObject().
|
inline |
Definition at line 476 of file IOobject.H.
References IOobject::BAD.
Return info proxy.
Used to print token information to a stream
Definition at line 486 of file IOobject.H.
Referenced by searchableSurface::findNearest(), GeometricField< Type, PatchField, GeoMesh >::GeometricField(), searchableSurfaceWithGaps::getNormal(), searchableSurfaceWithGaps::getRegion(), and MomentumCloud< CloudType >::solve().
void operator= | ( | const IOobject & | io | ) |
Definition at line 435 of file IOobject.C.
Referenced by regIOobject::operator=().
|
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 226 of file IOobject.H.
Referenced by regIOobject::addWatch(), collatedFileOperation::collatedFileOperation(), distributedTriSurfaceMesh::distributedTriSurfaceMesh(), hexRef8::hexRef8(), masterUncollatedFileOperation::masterUncollatedFileOperation(), fileOperation::monitor(), argList::parse(), regIOobject::read(), regIOobject::readHeaderOk(), Time::readModifiedObjects(), IOobject::typeHeaderOk(), and regIOobject::writeObject().