IOobject Class Reference

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

Inheritance diagram for IOobject:
Collaboration diagram for IOobject:

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 &registry, 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 &registry, 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 &registry, readOption r=NO_READ, writeOption w=NO_WRITE, bool registerObject=true)
 Construct from path, registry, io options. More...
 
 IOobject (const IOobject &io, const objectRegistry &registry)
 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< IOobjectclone () const
 Clone. More...
 
autoPtr< IOobjectclone (const objectRegistry &registry) const
 Clone resetting registry. More...
 
virtual ~IOobject ()
 Destructor. More...
 
const Timetime () const
 Return time. More...
 
const objectRegistrydb () const
 Return the local objectRegistry. More...
 
const wordname () const
 Return name. More...
 
const wordheaderClassName () const
 Return name of the class name read from header. More...
 
wordheaderClassName ()
 Return name of the class name read from header. More...
 
stringnote ()
 Return non-constant access to the optional note. More...
 
const stringnote () 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
 
readOptionreadOpt ()
 
writeOption writeOpt () const
 
writeOptionwriteOpt ()
 
word group () const
 Return group (extension part of name) More...
 
word member () const
 Return member (name without the extension) More...
 
const fileNamerootPath () const
 
const fileNamecaseName (const bool global) const
 
fileNameinstance () 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 fileNamelocal () 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< IOobjectinfo () 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...
 

Detailed Description

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.

Read options

Define what is done on object construction and explicit reads:

  • MUST_READ
    Object must be read from Istream on construction.
    Error if Istream does not exist or can't be read. Does not check timestamp or re-read.
  • MUST_READ_IF_MODIFIED
    Object must be read from Istream on construction.
    Error if Istream does not exist or can't be read. If object is registered its timestamp will be checked every timestep and possibly re-read.
  • READ_IF_PRESENT
    Read object from Istream if Istream exists, otherwise don't.
    Error only if Istream exists but can't be read. Does not check timestamp or re-read.
  • NO_READ
    Don't read
    Write options
    Define what is done on object destruction and explicit writes:
  • AUTO_WRITE
    Object is written automatically when requested to by the objectRegistry.
  • NO_WRITE
    No automatic write on destruction but can be written explicitly

Definition at line 98 of file IOobject.H.

Member Enumeration Documentation

◆ objectState

Enumeration defining the valid states of an IOobject.

Enumerator
GOOD 
BAD 

Definition at line 109 of file IOobject.H.

◆ readOption

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.

◆ writeOption

Enumeration defining the write options.

Enumerator
AUTO_WRITE 
NO_WRITE 

Definition at line 125 of file IOobject.H.

◆ fileCheckTypes

Enumeration defining the file checking options.

Enumerator
timeStamp 
timeStampMaster 
inotify 
inotifyMaster 

Definition at line 132 of file IOobject.H.

Constructor & Destructor Documentation

◆ IOobject() [1/6]

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ IOobject() [2/6]

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.

Here is the call graph for this function:

◆ IOobject() [3/6]

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() [4/6]

IOobject ( const IOobject io,
const objectRegistry registry 
)

Construct from copy resetting registry.

Definition at line 266 of file IOobject.C.

◆ IOobject() [5/6]

IOobject ( const IOobject io,
const word name 
)

Construct from copy resetting name.

Definition at line 285 of file IOobject.C.

◆ IOobject() [6/6]

IOobject ( const IOobject io)
default

Copy constructor.

◆ ~IOobject()

~IOobject ( )
virtual

Destructor.

Definition at line 306 of file IOobject.C.

Member Function Documentation

◆ setBad()

void setBad ( const string s)
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().

Here is the call graph for this function:

◆ typeHeaderOk()

bool typeHeaderOk ( const bool  checkType)
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.

Here is the call graph for this function:

◆ TypeName()

TypeName ( "IOobject"  )

Runtime type information.

◆ fileNameComponents()

bool fileNameComponents ( const fileName path,
fileName instance,
fileName local,
word name 
)
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.

Here is the call graph for this function:

◆ groupName() [1/2]

static word groupName ( Name  name,
const word group 
)
inlinestatic

Referenced by Foam::addField(), VoFTurbulenceDamping::addSup(), interfaceTurbulenceDamping::addSup(), phaseTurbulenceStabilisation::addSup(), buoyancyEnergy::addSupFields(), heatTransfer::addSupFields(), solidEquilibriumEnergySource::addSupFields(), phaseChange::addToDriftRate(), wallBoiling::addToNucleationRate(), reactionDriven::addToNucleationRate(), forces::alpha(), StationaryPhaseModel< BasePhaseModel >::alphaPhi(), StationaryPhaseModel< BasePhaseModel >::alphaRhoPhi(), basicCombustionMixture::basicCombustionMixture(), compressibleTwoPhaseVoFMixture::compressibleTwoPhaseVoFMixture(), compressibleVoFphase::compressibleVoFphase(), fixedTemperatureConstraint::constrain(), limitTemperature::constrain(), fixedTemperatureConstraint::constrainedFields(), limitTemperature::constrainedFields(), StationaryPhaseModel< BasePhaseModel >::continuityError(), dispersedTurbulentDispersionModel::continuousTurbulence(), DarcyForchheimer::correct(), powerLaw::correct(), solidification::correct(), phaseSystem::correctContinuityError(), InterfaceCompositionPhaseChangePhaseSystem< BasePhaseSystem >::correctInterfaceThermo(), ThermalPhaseChangePhaseSystem< BasePhaseSystem >::correctInterfaceThermo(), phaseStabilisedSnGrad< Type >::correction(), basicSpecieMixture::correctMassFractions(), Burns::D(), Gosman::D(), constant::d(), fixedInterfacialArea::d(), interfaceCompositionModel::D(), cavitation::d2mdtdpf(), kineticTheoryModel::devTau(), phasePressureModel::devTau(), forces::devTau(), MovingPhaseModel< BasePhaseModel >::divU(), cavitation::dmdtf(), phaseSystem::dmdtf(), MovingPhaseModel< BasePhaseModel >::DUDt(), StationaryPhaseModel< BasePhaseModel >::DUDt(), MovingPhaseModel< BasePhaseModel >::DUDtf(), StationaryPhaseModel< BasePhaseModel >::DUDtf(), adjustTimeStepToCombustion::execute(), Qdot::execute(), shearStress::execute(), totalEnthalpy::execute(), wallHeatFlux::execute(), wallShearStress::execute(), yPlus::execute(), adjustTimeStepToChemistry::execute(), massFractions::execute(), moleFractions::execute(), fieldAverageItem::fieldAverageItem(), phaseSystem::fillFields(), physicalProperties::findModelDict(), phaseSystem::foundInterfacialModel(), objectRegistry::foundType(), momentumTransportModel::groupName(), incompressibleInterPhaseTransportModel::incompressibleInterPhaseTransportModel(), InterfaceCompositionPhaseChangePhaseSystem< BasePhaseSystem >::InterfaceCompositionPhaseChangePhaseSystem(), interfaceTurbulenceDamping::interfaceTurbulenceDamping(), phaseSystem::interfacialDict(), MaxwellStefan< BasicThermophysicalTransportModel >::j(), unityLewisFourier< BasicThermophysicalTransportModel >::j(), unityLewisEddyDiffusivity< TurbulenceThermophysicalTransportModel >::j(), MovingPhaseModel< BasePhaseModel >::K(), StationaryPhaseModel< BasePhaseModel >::K(), StationaryPhaseModel< BasePhaseModel >::k(), phaseSystem::lookupInterfacialModel(), objectRegistry::lookupType(), MomentumTransferPhaseSystem< BasePhaseSystem >::momentumTransfer(), MomentumTransferPhaseSystem< BasePhaseSystem >::momentumTransferf(), momentumTransportModel::momentumTransportModel(), MovingPhaseModel< BasePhaseModel >::MovingPhaseModel(), forces::mu(), basicSpecieMixture::normalise(), JohnsonJackson::nu(), JohnsonJacksonSchaeffer::nu(), Schaeffer::nu(), Gidaspow::nu(), HrenyaSinclair::nu(), noneViscosity::nu(), Syamlal::nu(), strainRateFunction::nu(), phaseChange::phaseChange(), phaseForces::phaseForces(), basicThermo::phasePropertyName(), PhaseTransferPhaseSystem< BasePhaseSystem >::PhaseTransferPhaseSystem(), phaseTurbulenceStabilisation::phaseTurbulenceStabilisation(), StationaryPhaseModel< BasePhaseModel >::phi(), physicalProperties::physicalProperties(), populationBalanceModel::populationBalanceModel(), kineticTheoryModel::pPrime(), phasePressureModel::pPrime(), StationaryPhaseModel< BasePhaseModel >::pPrime(), 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(), wallBoiling::R(), phaseChange::R(), turbulenceFields::read(), yPlus::read(), forces::read(), phaseScalarTransport::read(), fixedInterfacialArea::read(), momentumTransportModel::readModelDict(), blendingMethod::readParameters(), scalarTransport::scalarTransport(), SecondaryPropertyModel< shapeModel >::SecondaryPropertyModel(), shearStress::shearStress(), kineticTheoryModel::sigma(), phasePressureModel::sigma(), liquidProperties::sigma(), phaseSystem::solve(), InterfaceCompositionPhaseChangePhaseSystem< BasePhaseSystem >::specieTransfer(), MPLIC::surfaceAlpha(), ThermalPhaseChangePhaseSystem< BasePhaseSystem >::ThermalPhaseChangePhaseSystem(), ThermoPhaseModel< BasePhaseModel, ThermoModel >::ThermoPhaseModel(), totalEnthalpy::totalEnthalpy(), StationaryPhaseModel< BasePhaseModel >::U(), 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().

◆ group() [1/2]

◆ member() [1/2]

Foam::word member ( const word name)
static

Return member (name without the extension)

Definition at line 149 of file IOobject.C.

References Foam::name().

Referenced by PhaseTransferPhaseSystem< BasePhaseSystem >::addDmdtYfs(), ThermalPhaseChangePhaseSystem< BasePhaseSystem >::correctInterfaceThermo(), basicSpecieMixture::index(), EDC::R(), laminar::R(), and Foam::surfaceToVolVelocity().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ clone() [1/2]

◆ clone() [2/2]

autoPtr<IOobject> clone ( const objectRegistry registry) const
inline

Clone resetting registry.

Definition at line 289 of file IOobject.H.

References IOobject::IOobject().

Here is the call graph for this function:

◆ time()

◆ db()

◆ name()

const word& name ( ) const
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(), polyTopoChange::addMesh(), meshObjects::addPatch(), faceZoneSet::addSet(), solidEquilibriumEnergySource::addSup(), clouds::addSup(), clouds::addSupFields(), compressibleVoF::alphaSuSp(), anisotropic::anisotropic(), ParcelCloudBase< ParticleType >::ap(), collatedFileOperation::appendObject(), setsToFaceZone::applyToSet(), Foam::atan2(), attachPolyTopoChanger::attach(), Foam::fvc::average(), writeFile::baseFileDir(), blended< Type >::blendingFactor(), cellCoBlended< Type >::blendingFactor(), CoBlended< Type >::blendingFactor(), localBlended< Type >::blendingFactor(), Foam::bound(), buoyancy::buoyancy(), faceLimitedGrad< Type >::calcGrad(), cellZoneSet::cellZoneSet(), meshRefinement::checkCoupledFaceZones(), polyBoundaryMesh::checkDefinition(), Cloud< ParticleType >::checkFieldFieldIOobject(), Cloud< ParticleType >::checkFieldIOobject(), objectRegistry::checkIn(), Foam::checkMethod(), objectRegistry::checkOut(), polyBoundaryMesh::checkParallelSync(), faceZone::checkParallelSync(), 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(), 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(), Foam::fvc::curl(), fvModels::d2dt2(), fvModel::d2dt2(), 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(), StationaryPhaseModel< BasePhaseModel >::divq(), 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(), IOobject::fileNameComponents(), masterUncollatedFileOperation::filePathInfo(), VoFFilmTransfer::filmVoFTransferRate(), surfaceFieldValue::filterField(), refinementSurfaces::findInside(), fileOperation::findInstance(), masterUncollatedFileOperation::findInstance(), coupleGroupIdentifier::findOtherPatchID(), Foam::fvc::flux(), 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(), GeometricField< Type, PatchField, GeoMesh >::GeometricField(), Foam::fvc::grad(), IOobject::groupName(), polyBoundaryMesh::groupPatchIDs(), AnisothermalPhaseModel< BasePhaseModel >::heEqn(), hexRef8Data::hexRef8Data(), ParcelCloudBase< ParticleType >::hsCoeff(), ParcelCloudBase< ParticleType >::hsTrans(), incompressibleDenseParticleFluid::incompressibleDenseParticleFluid(), incompressibleFluid::incompressibleFluid(), 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(), mappedFvPatchField< scalar >::mappedValues(), fvMeshAdder::MapPointFields(), fvMeshAdder::MapSurfaceFields(), fvMeshAdder::MapVolFields(), Maxwell< BasicMomentumTransportModel >::Maxwell(), Foam::fvc::meshPhi(), Foam::MeshToMeshMapVolFields(), meshObjects::movePoints(), multiphaseEuler::multiphaseEuler(), mappedFvPatchField< Type >::nbrPatchField(), daughterSizeDistributionModel::New(), fvsPatchField< Type >::New(), fvPatchField< Type >::New(), pointPatchField< Type >::New(), interpolation< Type >::New(), binaryBreakupModel::New(), breakupModel::New(), coalescenceModel::New(), driftModel::New(), nucleationModel::New(), regIOobject::objectPath(), populationBalanceModel::iNew::operator()(), Foam::operator<<(), geometricSurfacePatch::operator==(), nonConformalPolyPatch::origPatchID(), 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(), 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(), searchableSurfaceCollection::searchableSurfaceCollection(), SecondaryPropertyModel< shapeModel >::SecondaryPropertyModel(), Foam::setRefCell(), shockFluid::shockFluid(), ParcelCloudBase< ParticleType >::sigmap(), skewCorrected< Type >::skewCorrection(), snGradScheme< Type >::snGrad(), Foam::fvc::snGrad(), solidDisplacement::solidDisplacement(), phaseSystem::solve(), fvModels::source(), fvModel::source(), Foam::sqr(), fvMeshToFvMesh::srcToTgt(), ParcelCloudBase< ParticleType >::Srho(), Foam::stabilise(), subCycleField< GeometricField >::subCycleField(), faceZoneSet::subset(), Foam::fvc::surfaceIntegrate(), Foam::fvc::surfaceSum(), surfMesh::surfMesh(), ThermoCloud< CloudType >::ThermoCloud(), shockFluid::thermophysicalPredictor(), dictionary::topDict(), dictionary::topDictKeyword(), polyMesh::topoChange(), 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(), coupledTemperatureFvPatchScalarField::updateCoeffs(), ParcelCloudBase< ParticleType >::UTrans(), basicThermo::validate(), VoFSolver::VoFSolver(), localBlended< Type >::weights(), histogram::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(), regionFunctionObject::writeObject(), regIOobject::writeObject(), cellZoneSet::writeObject(), faceZoneSet::writeObject(), pointZoneSet::writeObject(), domainDecomposition::writeProcs(), and MulticomponentPhaseModel< BasePhaseModel >::YiEqn().

◆ headerClassName() [1/2]

◆ headerClassName() [2/2]

word& headerClassName ( )
inline

Return name of the class name read from header.

Definition at line 322 of file IOobject.H.

◆ note() [1/2]

◆ note() [2/2]

const string& note ( ) const
inline

Return the optional note.

Definition at line 334 of file IOobject.H.

◆ rename()

virtual void rename ( const word newName)
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().

Here is the caller graph for this function:

◆ registerObject() [1/2]

bool& registerObject ( )
inline

Register object created from this IOobject with registry if true.

Definition at line 346 of file IOobject.H.

Referenced by physicalProperties::findModelDict(), dragModel::New(), heatTransferModel::New(), virtualMassModel::New(), momentumTransportModel::readModelDict(), regIOobject::regIOobject(), and Foam::unregister().

Here is the caller graph for this function:

◆ registerObject() [2/2]

bool registerObject ( ) const
inline

Register object created from this IOobject with registry if true.

Definition at line 352 of file IOobject.H.

◆ readOpt() [1/2]

◆ readOpt() [2/2]

readOption& readOpt ( )
inline

Definition at line 365 of file IOobject.H.

◆ writeOpt() [1/2]

◆ writeOpt() [2/2]

writeOption& writeOpt ( )
inline

Definition at line 375 of file IOobject.H.

◆ group() [2/2]

◆ member() [2/2]

Foam::word member ( ) const

Return member (name without the extension)

Definition at line 330 of file IOobject.C.

Referenced by fieldAverageItem::fieldAverageItem().

Here is the caller graph for this function:

◆ rootPath()

const Foam::fileName & rootPath ( ) const

Definition at line 336 of file IOobject.C.

Referenced by masterUncollatedFileOperation::filePathInfo(), fileOperation::processorsCasePath(), and masterUncollatedFileOperation::relativeObjectPath().

Here is the caller graph for this function:

◆ caseName()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ instance()

◆ updateInstance()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ local()

◆ path()

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().

Here is the caller graph for this function:

◆ objectPath()

◆ relativePath()

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().

Here is the caller graph for this function:

◆ relativeObjectPath()

fileName relativeObjectPath ( ) const
inline

Return complete relativePath + object name.

Definition at line 420 of file IOobject.H.

References IOobject::name(), and IOobject::relativePath().

Here is the call graph for this function:

◆ filePath()

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().

Here is the caller graph for this function:

◆ readHeader()

◆ headerOk()

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().

Here is the caller graph for this function:

◆ warnNoRereading()

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.

Here is the call graph for this function:

◆ writeBanner()

Stream & writeBanner ( Stream &  os,
bool  noHint = false 
)
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().

Here is the caller graph for this function:

◆ writeDivider()

Stream & writeDivider ( Stream &  os)
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().

Here is the caller graph for this function:

◆ writeEndDivider()

Stream & writeEndDivider ( Stream &  os)
inlinestatic

◆ writeHeader() [1/2]

◆ writeHeader() [2/2]

◆ good()

bool good ( ) const
inline

Definition at line 471 of file IOobject.H.

References IOobject::GOOD.

Referenced by regIOobject::writeObject().

Here is the caller graph for this function:

◆ bad()

bool bad ( ) const
inline

Definition at line 476 of file IOobject.H.

References IOobject::BAD.

◆ info()

InfoProxy<IOobject> info ( ) const
inline

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().

Here is the caller graph for this function:

◆ operator=()

void operator= ( const IOobject io)

Definition at line 435 of file IOobject.C.

Referenced by regIOobject::operator=().

Here is the caller graph for this function:

◆ groupName() [2/2]

Foam::word groupName ( Name  name,
const word group 
)
inline

Definition at line 31 of file IOobjectI.H.

References IOobject::group(), IOobject::name(), and word::null.

Here is the call graph for this function:

Member Data Documentation

◆ foamFile

constexpr const char* foamFile = "FoamFile"
staticconstexpr

◆ fileCheckTypesNames

const Foam::NamedEnum< Foam::IOobject::fileCheckTypes, 4 > fileCheckTypesNames
static

Definition at line 140 of file IOobject.H.

Referenced by argList::parse().

◆ fileModificationChecking


The documentation for this class was generated from the following files: