IOobject Class Reference

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 : char { GOOD, BAD }
 Enumeration defining the valid states of an IOobject. More...
 
enum  fileCheckTypes : char { timeStamp, timeStampMaster, inotify, inotifyMaster }
 Enumeration defining the file checking options. More...
 
- Public Types inherited from IOobjectOption
enum  readOption : unsigned char {
  NO_READ = 0, MUST_READ = 0x1, READ_MODIFIED = 0x3, MUST_READ_IF_MODIFIED = 0x3,
  LAZY_READ = 0x4, READ_IF_PRESENT = 0x4
}
 Enumeration defining read preferences. More...
 
enum  writeOption : unsigned char { NO_WRITE = 0, AUTO_WRITE = 0x10 }
 Enumeration defining write preferences. More...
 
enum  registerOption : unsigned char { NO_REGISTER = 0, REGISTER = 1, LEGACY_REGISTER = 2 }
 Enumeration for use with registerObject(). Values map to bool (false/true) More...
 

Public Member Functions

 TypeName ("IOobject")
 Declare type-name, virtual type (with debug switch) More...
 
 IOobject (const IOobject &)=default
 Copy construct. More...
 
virtual ~IOobject ()=default
 Destructor. More...
 
 IOobject (const word &name, const fileName &instance, const objectRegistry &registry, IOobjectOption ioOpt=IOobjectOption())
 Construct from name, instance, registry, io options. More...
 
 IOobject (const word &name, const fileName &instance, const fileName &local, const objectRegistry &registry, IOobjectOption ioOpt=IOobjectOption())
 Construct from name, instance, local, registry, io options. More...
 
 IOobject (const fileName &path, const objectRegistry &registry, IOobjectOption ioOpt=IOobjectOption())
 Construct from path, registry, io options. More...
 
 IOobject (const word &name, const fileName &instance, const objectRegistry &registry, IOobjectOption::readOption rOpt, IOobjectOption::writeOption wOpt=IOobjectOption::NO_WRITE, bool registerObject=true, bool globalObject=false)
 Construct from name, instance, registry, io options. More...
 
 IOobject (const word &name, const fileName &instance, const fileName &local, const objectRegistry &registry, IOobjectOption::readOption rOpt, IOobjectOption::writeOption wOpt=IOobjectOption::NO_WRITE, bool registerObject=true, bool globalObject=false)
 Construct from name, instance, local, registry, io options. More...
 
 IOobject (const fileName &path, const objectRegistry &registry, IOobjectOption::readOption rOpt, IOobjectOption::writeOption wOpt=IOobjectOption::NO_WRITE, bool registerObject=true, bool globalObject=false)
 Construct from path, registry, io options. More...
 
 IOobject (const IOobject &io, const objectRegistry &registry)
 Copy construct, resetting registry. More...
 
 IOobject (const IOobject &io, const word &name)
 Copy construct, resetting name. More...
 
 IOobject (const IOobject &io, const word &name, const fileName &local)
 Copy construct, resetting name and local component. More...
 
 IOobject (const IOobject &io, IOobjectOption::readOption rOpt, IOobjectOption::writeOption wOpt)
 Copy construct, resetting read/write options. More...
 
 IOobject (const IOobject &io, IOobjectOption::registerOption regOpt)
 Copy construct, resetting register option. More...
 
autoPtr< IOobjectclone () const
 Clone. More...
 
autoPtr< IOobjectclone (const objectRegistry &registry) const
 Clone resetting registry. More...
 
const objectRegistrydb () const noexcept
 Return the local objectRegistry. More...
 
const Timetime () const noexcept
 Return Time associated with the objectRegistry. More...
 
const wordname () const noexcept
 Return the object name. More...
 
const wordheaderClassName () const noexcept
 Return name of the class name read from header. More...
 
wordheaderClassName () noexcept
 Return non-constant access to the class name read from header. More...
 
const stringnote () const noexcept
 Return the optional note. More...
 
stringnote () noexcept
 Modifiable access to the optional note. More...
 
virtual void rename (const word &newName)
 Rename the object. More...
 
unsigned labelByteSize () const noexcept
 The sizeof (label) in bytes, possibly read from the header. More...
 
unsigned scalarByteSize () const noexcept
 The sizeof (scalar) in bytes, possibly read from the header. More...
 
void resetHeader (const word &newName=word::null)
 Clear various bits (headerClassName, note, sizeof...) that would be obtained when reading from a file. More...
 
bool hasHeaderClass () const noexcept
 True if headerClassName() is non-empty (after reading) More...
 
template<class Type >
bool isHeaderClass () const
 Check if headerClassName() equals Type::typeName. More...
 
template<class Type >
bool isHeaderClassName () const
 Same as isHeaderClass() More...
 
virtual const dictionaryfindMetaData () const noexcept
 Return pointer to meta-data (if any) or nullptr. More...
 
word group () const
 Return group (extension part of name) More...
 
word member () const
 Return member (name without the extension) More...
 
const fileNamerootPath () const noexcept
 Return the Time::rootPath() More...
 
const fileNamecaseName () const noexcept
 Return the Time::caseName() More...
 
const fileNameglobalCaseName () const noexcept
 Return the Time::globalCaseName() More...
 
const fileNameinstance () const noexcept
 Read access to instance path component. More...
 
fileNameinstance () noexcept
 Write access to instance path component. More...
 
const fileNamelocal () const noexcept
 Read access to local path component. More...
 
fileName path () const
 The complete path for the object (with instance, local,...). More...
 
fileName globalPath () const
 The complete global path for the object (with instance, local,...) More...
 
fileName path (const word &instance, const fileName &local=fileName::null) const
 The complete path with alternative instance and local. More...
 
fileName globalPath (const word &instance, const fileName &local=fileName::null) const
 The complete global path with alternative instance and local. More...
 
fileName objectPath () const
 The complete path + object name. More...
 
fileName globalObjectPath () const
 The complete global path + object name. More...
 
fileName objectRelPath () const
 The object path relative to the root. More...
 
fileName localFilePath (const word &typeName, const bool search=true) const
 Redirect to fileHandler filePath, searching locally. More...
 
fileName globalFilePath (const word &typeName, const bool search=true) const
 Redirect to fileHandler filePath, searching up if in parallel. More...
 
IOstreamOption parseHeader (const dictionary &headerDict)
 Parse 'FoamFile' header contents and set the IOobject characteristics and return the stream characteristics. More...
 
bool readHeader (Istream &is)
 Read header ('FoamFile' dictionary) and set the IOobject and stream characteristics. More...
 
bool readHeader (dictionary &headerDict, Istream &is)
 Read header (the 'FoamFile' dictionary) and set the IOobject and stream characteristics. More...
 
template<class Type >
bool typeHeaderOk (const bool checkType=true, const bool search=true, const bool verbose=true)
 Read header (respects is_globalIOobject trait) and check its info. More...
 
template<class Type >
fileName typeFilePath (const bool search=true) const
 Call localFilePath or globalFilePath for given type depending on its is_globalIOobject trait. More...
 
template<class Type >
void warnNoRereading () const
 Helper: warn that type does not support re-reading. More...
 
bool writeHeader (Ostream &os) const
 Write header with current type() More...
 
bool writeHeader (Ostream &os, const word &objectType) const
 Write header with override of type. More...
 
void writeHeader (dictionary &dict, IOstreamOption streamOpt) const
 Write header into a dictionary with current type() and given output format. More...
 
void writeHeader (dictionary &dict, const word &objectType, IOstreamOption streamOpt) const
 Write header into a dictionary with override of type and given output format. More...
 
bool good () const noexcept
 Did last readHeader() succeed? More...
 
bool bad () const noexcept
 Did last readHeader() fail? More...
 
InfoProxy< IOobjectinfo () const noexcept
 Return info proxy, for printing information to a stream. More...
 
void operator= (const IOobject &io)
 Copy assignment, copies all values (except the registry) More...
 
template<>
bool isHeaderClass () const
 Specialization for void always returns true (no headerClassName check). More...
 
template<class StringType >
Foam::word groupName (StringType base, const word &group)
 
template<class Type >
Foam::fileName typeFilePath (const bool search) const
 
- Public Member Functions inherited from IOobjectOption
constexpr IOobjectOption (readOption rOpt=readOption::NO_READ, writeOption wOpt=writeOption::NO_WRITE, registerOption registerObject=registerOption::REGISTER, bool globalObject=false) noexcept
 Default construct (NO_READ, NO_WRITE, REGISTER, non-global) or construct with specified options. More...
 
constexpr IOobjectOption (readOption rOpt, registerOption registerObject=registerOption::REGISTER, bool globalObject=false) noexcept
 Construct NO_WRITE with specified read/register options. More...
 
constexpr IOobjectOption (writeOption wOpt, registerOption registerObject=registerOption::REGISTER, bool globalObject=false) noexcept
 Construct NO_READ with specified write/register options. More...
 
constexpr IOobjectOption (registerOption registerObject, bool globalObject=false) noexcept
 Construct (NO_READ, NO_WRITE) with specified register option. More...
 
constexpr IOobjectOption (readOption rOpt, writeOption wOpt, bool registerObject, bool globalObject=false) noexcept
 Construct from components with specified register option as bool. More...
 
constexpr IOobjectOption (bool registerObject, bool globalObject=false) noexcept
 Construct (NO_READ, NO_WRITE) with specified register option as bool. More...
 
readOption readOpt () const noexcept
 Get the read option. More...
 
readOption readOpt (readOption opt) noexcept
 Set the read option. More...
 
writeOption writeOpt () const noexcept
 Get the write option. More...
 
writeOption writeOpt (writeOption opt) noexcept
 Set the write option. More...
 
bool registerObject () const noexcept
 Should objects created with this IOobject be registered? More...
 
bool registerObject (bool on) noexcept
 Change registration preference. More...
 
bool globalObject () const noexcept
 True if object is treated the same for all processors. More...
 
bool globalObject (bool on) noexcept
 Change global-object status. More...
 
bool isAnyRead () const noexcept
 True if any reading may be required (ie, != NO_READ) More...
 
bool isReadRequired () const noexcept
 True if (MUST_READ | READ_MODIFIED) bits are set. More...
 
bool isReadOptional () const noexcept
 True if (LAZY_READ) bits are set [same as READ_IF_PRESENT]. More...
 
readOptionreadOpt () noexcept
 Access to the read option. More...
 
writeOptionwriteOpt () noexcept
 Access to the write option. More...
 
bool & registerObject () noexcept
 Access to the register object option. More...
 
bool & globalObject () noexcept
 Access to the global object option. More...
 

Static Public Member Functions

static bool bannerEnabled () noexcept
 Status of output file banner. More...
 
static bool bannerEnabled (bool on) noexcept
 Enable/disable output file banner. More...
 
static bool fileNameComponents (const fileName &path, fileName &instance, fileName &local, word &name)
 Split path into instance, local, name components. More...
 
template<class StringType >
static word groupName (StringType base, const word &group)
 Create dot-delimited name.group string. More...
 
static word group (const word &name)
 Return group (extension part of name) More...
 
static word member (const word &name)
 Return member (name without the extension) More...
 
static word scopedName (const std::string &scope, const word &name)
 Create scope:name or scope_name string. More...
 
static word scopedName (const std::string &scope, const word &name1, const word &name2)
 Create scope:name1:name2 or scope_name1_name2 string. More...
 
static IOobject selectIO (const IOobject &io, const fileName &altFile, const word &ioName="")
 Return the IOobject, but also consider an alternative file name. More...
 
static OstreamwriteBanner (Ostream &os, const bool noSyntaxHint=false)
 Write the standard OpenFOAM file/dictionary banner. More...
 
static OstreamwriteDivider (Ostream &os)
 Write the standard file section divider. More...
 
static OstreamwriteEndDivider (Ostream &os)
 Write the standard end file divider. More...
 
- Static Public Member Functions inherited from IOobjectOption
static bool isAnyRead (readOption opt) noexcept
 True if any reading may be required (ie, != NO_READ) More...
 
static bool isReadRequired (readOption opt) noexcept
 True if (MUST_READ | READ_MODIFIED) bits are set. More...
 
static bool isReadOptional (readOption opt) noexcept
 True if (LAZY_READ) bits are set [same as READ_IF_PRESENT]. More...
 
static readOption lazierRead (readOption opt) noexcept
 Downgrade readOption optional (LAZY_READ), leaves NO_READ intact. More...
 

Static Public Attributes

static const Enum< fileCheckTypesfileCheckTypesNames
 Names for the fileCheckTypes. More...
 
static char scopeSeparator
 Character for scoping object names (':' or '_') More...
 
static fileCheckTypes fileModificationChecking
 Type of file modification checking. More...
 
static float fileModificationSkew
 Time skew (seconds) for file modification checks. More...
 
static int maxFileModificationPolls
 Max number of times to poll for file modification changes. More...
 

Protected Member Functions

void setBad (const string &s)
 Set the object state to bad. More...
 

Static Protected Member Functions

static void writeHeaderContent (Ostream &os, const IOobject &io, const word &objectType, const dictionary *metaDataDict=nullptr)
 Helper: write content for FoamFile IOobject header with optional meta information. More...
 
static void writeHeaderContent (dictionary &dict, const IOobject &io, const word &objectType, IOstreamOption streamOpt, const dictionary *metaDataDict=nullptr)
 Helper: write dictionary content for FoamFile header with optional meta information. More...
 

Detailed Description

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:

  • NO_READ
    Do not read
  • MUST_READ
    Object must be read from Istream on construction.
    Error if Istream does not exist or cannot be read. Does not check timestamp or re-read.
  • READ_MODIFIED (MUST_READ_IF_MODIFIED)
    Object must be read from Istream on construction.
    Error if Istream does not exist or cannot be read. If object is registered its timestamp will be checked every timestep and possibly re-read.
  • LAZY_READ (READ_IF_PRESENT)
    Read object from Istream, but only if Istream exists.
    Error only if Istream exists but cannot be read. Does not check timestamp or re-read.
    Write options
    Define what is done on object destruction and explicit writes:
  • NO_WRITE
    No automatic writing, but can be written explicitly
  • AUTO_WRITE
    Object is written automatically when requested to by the objectRegistry.
    When serializing, the IOobject characteristics are typically written as a FoamFile header, which is a sub-dictionary with the following type of content:
Property Description Type Reqd Deflt
version The base format version float no 2.0
format The stream format (ascii/binary) word yes
arch The architecture string string no
note Descriptive note about the object string no
location The relative location of the object string no
class The type of the object word yes
object The name of the object word yes
Note
Specifying registered does not result in the IOobject itself being registered. It is only serves as guidance for a regIOobject using it.
See also
Foam::objectRegistry Foam::regIOobject
Source files

Definition at line 172 of file IOobject.H.

Member Enumeration Documentation

◆ objectState

enum objectState : char

Enumeration defining the valid states of an IOobject.

Enumerator
GOOD 
BAD 

Definition at line 183 of file IOobject.H.

◆ fileCheckTypes

enum fileCheckTypes : char

Enumeration defining the file checking options.

Enumerator
timeStamp 
timeStampMaster 
inotify 
inotifyMaster 

Definition at line 192 of file IOobject.H.

Constructor & Destructor Documentation

◆ IOobject() [1/12]

IOobject ( const IOobject )
default

Copy construct.

◆ ~IOobject()

virtual ~IOobject ( )
virtualdefault

Destructor.

◆ IOobject() [2/12]

IOobject ( const word name,
const fileName instance,
const objectRegistry registry,
IOobjectOption  ioOpt = IOobjectOption() 
)

Construct from name, instance, registry, io options.

(default: NO_READ, NO_WRITE, REGISTER, non-global)

Definition at line 339 of file IOobject.C.

References Foam::ensightOutput::debug, Foam::endl(), InfoInFunction, and Foam::name().

Here is the call graph for this function:

◆ IOobject() [3/12]

IOobject ( const word name,
const fileName instance,
const fileName local,
const objectRegistry registry,
IOobjectOption  ioOpt = IOobjectOption() 
)

Construct from name, instance, local, registry, io options.

(default: NO_READ, NO_WRITE, REGISTER, non-global)

Definition at line 360 of file IOobject.C.

References Foam::ensightOutput::debug, Foam::endl(), InfoInFunction, local, and Foam::name().

Here is the call graph for this function:

◆ IOobject() [4/12]

IOobject ( const fileName path,
const objectRegistry registry,
IOobjectOption  ioOpt = IOobjectOption() 
)

Construct from path, registry, io options.

(default: NO_READ, NO_WRITE, REGISTER, non-global)

Uses fileNameComponents() to split path into components. A path that starts with a '/' is regarded as a file system path. Paths starting with either './' or '../' are relative to current working directory (and replaced with absolute equivalents). All other paths are considered to be relative to the case.

Definition at line 383 of file IOobject.C.

References Foam::ensightOutput::debug, Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, InfoInFunction, and path().

Here is the call graph for this function:

◆ IOobject() [5/12]

IOobject ( const word name,
const fileName instance,
const objectRegistry registry,
IOobjectOption::readOption  rOpt,
IOobjectOption::writeOption  wOpt = IOobjectOption::NO_WRITE,
bool  registerObject = true,
bool  globalObject = false 
)
inline

Construct from name, instance, registry, io options.

Definition at line 90 of file IOobjectI.H.

◆ IOobject() [6/12]

IOobject ( const word name,
const fileName instance,
const fileName local,
const objectRegistry registry,
IOobjectOption::readOption  rOpt,
IOobjectOption::writeOption  wOpt = IOobjectOption::NO_WRITE,
bool  registerObject = true,
bool  globalObject = false 
)
inline

Construct from name, instance, local, registry, io options.

Definition at line 111 of file IOobjectI.H.

◆ IOobject() [7/12]

IOobject ( const fileName path,
const objectRegistry registry,
IOobjectOption::readOption  rOpt,
IOobjectOption::writeOption  wOpt = IOobjectOption::NO_WRITE,
bool  registerObject = true,
bool  globalObject = false 
)
inline

Construct from path, registry, io options.

Uses fileNameComponents() to split path into components. A path that starts with a '/' is regarded as a file system path. Paths starting with either './' or '../' are relative to current working directory (and replaced with absolute equivalents). All other paths are considered to be relative to the case.

Definition at line 134 of file IOobjectI.H.

◆ IOobject() [8/12]

IOobject ( const IOobject io,
const objectRegistry registry 
)

Copy construct, resetting registry.

Definition at line 407 of file IOobject.C.

◆ IOobject() [9/12]

IOobject ( const IOobject io,
const word name 
)

Copy construct, resetting name.

Definition at line 428 of file IOobject.C.

◆ IOobject() [10/12]

IOobject ( const IOobject io,
const word name,
const fileName local 
)
inline

Copy construct, resetting name and local component.

Definition at line 153 of file IOobjectI.H.

References local.

◆ IOobject() [11/12]

IOobject ( const IOobject io,
IOobjectOption::readOption  rOpt,
IOobjectOption::writeOption  wOpt 
)
inline

Copy construct, resetting read/write options.

Definition at line 166 of file IOobjectI.H.

◆ IOobject() [12/12]

IOobject ( const IOobject io,
IOobjectOption::registerOption  regOpt 
)
inline

Copy construct, resetting register option.

Definition at line 180 of file IOobjectI.H.

Member Function Documentation

◆ writeHeaderContent() [1/2]

void writeHeaderContent ( Ostream os,
const IOobject io,
const word objectType,
const dictionary metaDataDict = nullptr 
)
staticprotected

Helper: write content for FoamFile IOobject header with optional meta information.

Definition at line 151 of file IOobjectWriteHeader.C.

References Foam::foamVersion::buildArch, IOobject::db(), objectRegistry::dbDir(), IOstreamOption::format(), IOobject::instance(), io(), IOobject::local(), IOobject::name(), IOobject::note(), os(), IOstreamOption::version(), dictionary::writeEntry(), and Foam::writeHeaderEntry().

Referenced by IOobject::writeHeader().

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

◆ writeHeaderContent() [2/2]

void writeHeaderContent ( dictionary dict,
const IOobject io,
const word objectType,
IOstreamOption  streamOpt,
const dictionary metaDataDict = nullptr 
)
staticprotected

Helper: write dictionary content for FoamFile header with optional meta information.

Definition at line 190 of file IOobjectWriteHeader.C.

References dictionary::add(), Foam::foamVersion::buildArch, IOobject::db(), objectRegistry::dbDir(), dict, IOstreamOption::format(), IOobject::instance(), io(), IOobject::local(), IOobject::name(), IOobject::note(), dictionary::set(), and IOstreamOption::version().

Here is the call graph for this function:

◆ setBad()

void setBad ( const string s)
protected

Set the object state to bad.

Definition at line 568 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:

◆ TypeName()

TypeName ( "IOobject"  )

Declare type-name, virtual type (with debug switch)

◆ bannerEnabled() [1/2]

static bool bannerEnabled ( )
inlinestaticnoexcept

Status of output file banner.

Definition at line 361 of file IOobject.H.

Referenced by decomposedBlockData::writeBlockEntry(), decomposedBlockData::writeHeader(), IOobject::writeHeader(), and collatedFileOperation::writeObject().

Here is the caller graph for this function:

◆ bannerEnabled() [2/2]

static bool bannerEnabled ( bool  on)
inlinestaticnoexcept

Enable/disable output file banner.

Returns
the previous value

Definition at line 371 of file IOobject.H.

◆ fileNameComponents()

bool fileNameComponents ( const fileName path,
fileName instance,
fileName local,
word name 
)
static

Split path into instance, local, name components.

The splitting behaviour is as follows:

*   input       | instance   | local | name
*   ----------- | ---------- | ----- | ----
*   a           |            |       | a
*   a/b         | a          |       | b
*   a/b/c/d     | a          | b/c   | d
*   /a/b/c      | /a/b       |       | c
*   ./a/b/c     | PWD/a/b    |       | c
*   ../a/b/c    | PWD/../a/b |       | c
*   a/b/        | ERROR      |       |
* 

where PWD is the Foam::cwd() current working directory

Definition at line 165 of file IOobject.C.

References fileName::clean(), Foam::cwd(), Foam::endl(), Foam::isDir(), local, Foam::name(), path(), Foam::stringOps::validate(), and WarningInFunction.

Here is the call graph for this function:

◆ groupName() [1/2]

static word groupName ( StringType  base,
const word group 
)
inlinestatic

Create dot-delimited name.group string.

An empty group is ignored.

Referenced by phaseChange::addToDriftRate(), alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField::calcAlphat(), nutkWallFunctionFvPatchScalarField::calcNut(), nutUWallFunctionFvPatchScalarField::calcNut(), nutUTabulatedWallFunctionFvPatchScalarField::calcNut(), nutkRoughWallFunctionFvPatchScalarField::calcNut(), nutkFilmWallFunctionFvPatchScalarField::calcNut(), nutUBlendedWallFunctionFvPatchScalarField::calcNut(), atmNutUWallFunctionFvPatchScalarField::calcNut(), nutUSpaldingWallFunctionFvPatchScalarField::calcNut(), atmNutkWallFunctionFvPatchScalarField::calcNut(), atmNutWallFunctionFvPatchScalarField::calcNut(), nutkFilmWallFunctionFvPatchScalarField::calcUTau(), nutUBlendedWallFunctionFvPatchScalarField::calcUTau(), nutUSpaldingWallFunctionFvPatchScalarField::calcUTau(), nutUWallFunctionFvPatchScalarField::calcYPlus(), kEpsilon::computeG(), kOmegaSST::computeG(), turbulentDispersionModel::continuousTurbulence(), populationBalanceModel::continuousTurbulence(), powerLaw::correct(), Maxwell< BasicTurbulenceModel >::correct(), DarcyForchheimer::correct(), limitTemperature::correct(), solidification::correct(), Gosman::D(), Burns::D(), InterfaceCompositionModel< Thermo, OtherThermo >::D(), DeltaOmegaTildeDelta::DeltaOmegaTildeDelta(), Maxwell< BasicTurbulenceModel >::devRhoReff(), phasePressureModel::devRhoReff(), kineticTheoryModel::devRhoReff(), InterfaceCompositionModel< Thermo, OtherThermo >::Dfrom(), phaseSystem::dmdt(), SpalartAllmarasBase< eddyViscosity< RASModel< BasicTurbulenceModel > > >::DnuTildaEff(), InterfaceCompositionModel< Thermo, OtherThermo >::Dto(), sigma< BasicTurbulenceModel >::epsilon(), SpalartAllmarasBase< eddyViscosity< RASModel< BasicTurbulenceModel > > >::epsilon(), kOmegaSSTLM< BasicTurbulenceModel >::Flength(), kOmegaSSTLM< BasicTurbulenceModel >::Fonset(), phaseSystem::foundBlendedSubModel(), phaseSystem::foundSubModel(), kOmegaSSTLM< BasicTurbulenceModel >::Fthetat(), IDDESDelta::IDDESDelta(), WALE< BasicTurbulenceModel >::k(), Smagorinsky< BasicTurbulenceModel >::k(), sigma< BasicTurbulenceModel >::k(), SpalartAllmarasBase< eddyViscosity< RASModel< BasicTurbulenceModel > > >::k(), InterfaceCompositionModel< Thermo, OtherThermo >::L(), continuousGasKEqn< BasicTurbulenceModel >::liquidTurbulence(), continuousGasKEpsilon< BasicTurbulenceModel >::liquidTurbulence(), phaseSystem::lookupBlendedSubModel(), twoPhaseSystem::lookupSubModel(), phaseSystem::lookupSubModel(), MassTransferPhaseSystem< BasePhaseSystem >::MassTransferPhaseSystem(), Stokes< BasicTurbulenceModel >::nuEff(), generalizedNewtonian< BasicMomentumTransportModel >::nuEff(), continuousGasKEpsilon< BasicTurbulenceModel >::nuEff(), LESModel< BasicTurbulenceModel >::nuEff(), RASModel< EddyDiffusivity< phaseCompressibleTurbulenceModel > >::nuEff(), Stokes< BasicTurbulenceModel >::nut(), generalizedNewtonian< BasicMomentumTransportModel >::nut(), SpalartAllmarasBase< eddyViscosity< RASModel< BasicTurbulenceModel > > >::omega(), phaseForces::phaseForces(), basicThermo::phasePropertyName(), basicThermo::phaseScopedName(), populationBalanceModel::populationBalanceModel(), continuousGasKEpsilon< BasicTurbulenceModel >::R(), phasePressureModel::R(), kineticTheoryModel::R(), limitTemperature::read(), BilgerMixtureFraction::read(), sampledSurfaces::read(), kOmegaSSTLM< BasicTurbulenceModel >::ReThetac(), kOmegaSSTLM< BasicTurbulenceModel >::ReThetat0(), continuousGasKEpsilon< BasicTurbulenceModel >::rhoEff(), SLADelta::SLADelta(), JohnsonJacksonParticleSlipFvPatchVectorField::updateCoeffs(), JohnsonJacksonParticleThetaFvPatchScalarField::updateCoeffs(), totalFlowRateAdvectiveDiffusiveFvPatchScalarField::updateCoeffs(), fixedShearStressFvPatchVectorField::updateCoeffs(), convectiveHeatTransferFvPatchScalarField::updateCoeffs(), alphatWallFunctionFvPatchScalarField::updateCoeffs(), turbulentMixingLengthFrequencyInletFvPatchScalarField::updateCoeffs(), wallHeatTransferFvPatchScalarField::updateCoeffs(), alphatJayatillekeWallFunctionFvPatchScalarField::updateCoeffs(), alphatFilmWallFunctionFvPatchScalarField::updateCoeffs(), turbulentMixingLengthDissipationRateInletFvPatchScalarField::updateCoeffs(), kLowReWallFunctionFvPatchScalarField::updateCoeffs(), atmAlphatkWallFunctionFvPatchScalarField::updateCoeffs(), omegaWallFunctionFvPatchScalarField::updateCoeffs(), epsilonWallFunctionFvPatchScalarField::updateCoeffs(), porousBafflePressureFvPatchField::updateCoeffs(), alphatWallBoilingWallFunctionFvPatchScalarField::updateCoeffs(), omegaWallFunctionFvPatchScalarField::updateWeightedCoeffs(), epsilonWallFunctionFvPatchScalarField::updateWeightedCoeffs(), nutLowReWallFunctionFvPatchScalarField::yPlus(), nutkWallFunctionFvPatchScalarField::yPlus(), nutUWallFunctionFvPatchScalarField::yPlus(), nutUTabulatedWallFunctionFvPatchScalarField::yPlus(), nutkFilmWallFunctionFvPatchScalarField::yPlus(), nutUBlendedWallFunctionFvPatchScalarField::yPlus(), nutUSpaldingWallFunctionFvPatchScalarField::yPlus(), and nutURoughWallFunctionFvPatchScalarField::yPlus().

◆ group() [1/2]

Foam::word group ( const word name)
static

Return group (extension part of name)

Definition at line 300 of file IOobject.C.

References IOobject::name().

Referenced by laminarModel< BasicMomentumTransportModel >::New(), LESModel< BasicTurbulenceModel >::New(), RASModel< EddyDiffusivity< phaseCompressibleTurbulenceModel > >::New(), and strainRateFunction::nu().

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

◆ member() [1/2]

Foam::word member ( const word name)
static

Return member (name without the extension)

Definition at line 313 of file IOobject.C.

References Foam::name().

Referenced by singleStepCombustion< ReactionThermo, ThermoType >::R(), laminar< ReactionThermo >::R(), and diffusionMulticomponent< ReactionThermo, ThermoType >::R().

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

◆ scopedName() [1/2]

◆ scopedName() [2/2]

Foam::word scopedName ( const std::string &  scope,
const word name1,
const word name2 
)
inlinestatic

Create scope:name1:name2 or scope_name1_name2 string.

An empty scope is ignored.

Definition at line 61 of file IOobjectI.H.

References Foam::output().

Here is the call graph for this function:

◆ selectIO()

Foam::IOobject selectIO ( const IOobject io,
const fileName altFile,
const word ioName = "" 
)
static

Return the IOobject, but also consider an alternative file name.

Parameters
ioThe expected IOobject to use
altFileAlternative fileName (ignored if empty).
ioNameThe alternative name for the IOobject when the altFile resolves to a directory.
Note
If the alternative fileName is a non-empty string, it defines the location but uses all other properties of the expected IOobject. The location may be an absolute or a relative path. If it corresponds to a directory, the name of the expected IOobject will be used in its resolution. This expected name can provided via the ioName parameter.

Definition at line 256 of file IOobject.C.

References string::expand(), io(), and Foam::isDir().

Referenced by decompositionModel::selectIO().

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

◆ clone() [1/2]

autoPtr<IOobject> clone ( ) const
inline

Clone.

Definition at line 621 of file IOobject.H.

References autoPtr< T >::New().

Referenced by attachPolyTopoChanger::attach(), searchableSurface::iNew::operator()(), polyMesh::readUpdate(), and searchableSurfaces::searchableSurfaces().

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

◆ clone() [2/2]

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

Clone resetting registry.

Definition at line 629 of file IOobject.H.

References autoPtr< T >::New().

Here is the call graph for this function:

◆ db()

const Foam::objectRegistry & db ( ) const
noexcept

Return the local objectRegistry.

Definition at line 450 of file IOobject.C.

Referenced by refinementHistory::add(), refinementHistory::apply(), SprayParcel< ParcelType >::calcAtomization(), correctedLnGrad< Type >::correction(), fourthLnGrad< Type >::correction(), relaxedSnGrad< Type >::correction(), isothermal::d(), Foam::fac::edgeIntegrate(), Foam::fac::edgeSum(), IATEsource::Eo(), edgeInterpolationScheme< scalar >::euclidianInterpolate(), relaxedNonOrthoGaussLaplacianScheme< Type, GType >::fvmLaplacian(), hexRef8Data::hexRef8Data(), pointVolInterpolation::interpolate(), leastSquaresEdgeInterpolation< Type >::interpolate(), edgeInterpolationScheme< scalar >::interpolate(), surfaceInterpolationScheme< GType >::interpolate(), Foam::fam::laplacian(), lnGradScheme< Type >::lnGrad(), Foam::loadPointField(), voxelMeshSearch::makeMesh(), IATEsource::Mo(), laminarFlameSpeed::New(), adjointTurbulenceModel::New(), adjointRASModel::New(), faMeshTools::newMesh(), fvMeshTools::newMesh(), sampledSurface::pointAverage(), lumpedPointDisplacementPointPatchVectorField::points0(), fileOperation::processorsPath(), wallBoiling::R(), regionProperties::regionProperties(), searchableSurfaceCollection::searchableSurfaceCollection(), searchableSurfaceWithGaps::searchableSurfaceWithGaps(), motionSmootherAlgo::setDisplacement(), skewCorrectedEdgeInterpolation< Type >::skewCorrection(), surfMesh::surfMesh(), hexRef8Data::sync(), MPPICParcel< ParcelType >::trackingData::updateAverages(), KinematicParcel< ParcelType >::trackingData::updateAverages(), PDRblock::writeBlockMeshDict(), decomposedBlockData::writeHeader(), and IOobject::writeHeaderContent().

Here is the caller graph for this function:

◆ time()

const Foam::Time & time ( ) const
noexcept

◆ name()

const Foam::word & name ( ) const
inlinenoexcept

Return the object name.

Definition at line 195 of file IOobjectI.H.

Referenced by incompressibleAdjointSolver::accumulateOptionsDxDbMultiplier(), multivariateSurfaceInterpolationScheme< Type >::fieldTable::add(), IOobjectList::add(), polyMeshAdder::add(), exprDriver::addContextObject(), objectiveUniformityCellZone::addHeaderColumns(), snappyLayerDriver::addLayers(), polyTopoChange::addMesh(), topOSource::addSup(), patchCellsSource::addSup(), multiphaseMangrovesTurbulenceModel::addSup(), externalFileSource::addSup(), contactHeatFluxSource::addSup(), multiphaseStabilizedTurbulence::addSup(), jouleHeatingSource::addSup(), externalHeatFluxSource::addSup(), solidificationMeltingSource::addSup(), exprResultGlobals::addValue(), setsToFaceZone::applyToSet(), Foam::atan2(), attachPolyTopoChanger::attach(), Foam::fac::average(), Foam::fvc::average(), meshRefinement::balance(), blended< Type >::blendingFactor(), localBlended< Type >::blendingFactor(), CoBlended< Type >::blendingFactor(), cellCoBlended< Type >::blendingFactor(), Foam::bound(), faceLimitedGrad< Type >::calcGrad(), hydrostaticPressure::calculateAndWrite(), meshRefinement::checkCoupledFaceZones(), faBoundaryMesh::checkDefinition(), polyBoundaryMesh::checkDefinition(), Cloud< passivePositionParticle >::checkFieldFieldIOobject(), Cloud< passivePositionParticle >::checkFieldIOobject(), objectRegistry::checkIn(), objectRegistry::checkOut(), faBoundaryMesh::checkParallelSync(), faceZone::checkParallelSync(), polyBoundaryMesh::checkParallelSync(), refinementFeatures::checkSizes(), Foam::clamp(), objectRegistry::classesImpl(), meshObject::clear(), objectRegistry::clear(), meshObject::clearUpto(), injectedParticleCloud::clone(), SprayCloud< Foam::DSMCCloud >::clone(), ReactingHeterogeneousCloud< Foam::DSMCCloud >::clone(), MPPICCloud< Foam::DSMCCloud >::clone(), CollidingCloud< KinematicCloud< Cloud< basicKinematicCollidingParcel > > >::clone(), ReactingCloud< Foam::DSMCCloud >::clone(), ReactingMultiphaseCloud< Foam::DSMCCloud >::clone(), ThermoCloud< Foam::DSMCCloud >::clone(), KinematicCloud< Cloud< basicKinematicCollidingParcel > >::clone(), RASModelVariables::cloneRefPtr(), Foam::cmptAv(), adjointkOmegaSST::convectionMeanFlowSource(), adjointkOmegaSST::convectionScheme(), RASModelVariables::copyAndRename(), wallBoiling::correct(), atmNutSource::correct(), multiphaseStabilizedTurbulence::correct(), adjointSpalartAllmaras::correct(), adjointkOmegaSST::correct(), correctedLnGrad< Type >::correction(), fourthLnGrad< Type >::correction(), cubic< Type >::correction(), linearUpwind< Type >::correction(), correctedSnGrad< Type >::correction(), faceCorrectedSnGrad< Type >::correction(), skewCorrectedSnGrad< Type >::correction(), deferredCorrection< Type >::correction(), relaxedSnGrad< Type >::correction(), linearUpwindV< Type >::correction(), linearUpwindNormal< Type >::correction(), localBlended< Type >::correction(), objectRegistry::countImpl(), objectRegistry::countTypeImpl(), fvMeshTools::createDummyFvMeshFiles(), Foam::fvc::curl(), Foam::fvc::d2dt2(), Foam::fam::d2dt2(), Foam::fvm::d2dt2(), Foam::fac::d2dt2(), polyMesh::dbDir(), Foam::fvm::ddt(), Foam::fam::ddt(), Foam::fvc::ddt(), Foam::fac::ddt(), distributedTriSurfaceMesh::distribute(), distributedTriSurfaceMesh::distributedTriSurfaceMesh(), Foam::fvc::div(), Foam::fvm::div(), Foam::fac::div(), Foam::fam::div(), Foam::fvc::domainIntegrate(), Foam::fac::edgeIntegrate(), Foam::fac::edgeSum(), edgeInterpolationScheme< scalar >::euclidianInterpolate(), thermalShell::evolveRegion(), removeRegisteredObject::execute(), fileOperation::exists(), EulerFaD2dt2Scheme< Type >::facD2dt2(), steadyStateFaDdtScheme< Type >::facDdt(), EulerFaDdtScheme< Type >::facDdt(), backwardFaDdtScheme< Type >::facDdt(), boundedBackwardFaDdtScheme::facDdt(), steadyStateFaDdtScheme< Type >::facDdt0(), EulerFaDdtScheme< Type >::facDdt0(), backwardFaDdtScheme< Type >::facDdt0(), boundedBackwardFaDdtScheme::facDdt0(), gaussConvectionScheme< Type >::facDiv(), gaussLaplacianScheme< Type >::facLaplacian(), faMatrix< Type >::faMatrix(), gaussLaplacianScheme< Type >::famLaplacian(), filmPyrolysisRadiativeCoupledMixedFvPatchScalarField::filmPyrolysisRadiativeCoupledMixedFvPatchScalarField(), localPointRegion::findDuplicateFacePairs(), masterUncollatedFileOperation::findInstance(), fileOperation::findInstance(), distributedTriSurfaceMesh::findLineAll(), distributedTriSurfaceMesh::findNearest(), coupleGroupIdentifier::findOtherPatchID(), adjointkOmegaSST::FISensitivityTerm(), Foam::fvc::flux(), correctedSnGrad< Type >::fullGradCorrection(), faceCorrectedSnGrad< Type >::fullGradCorrection(), skewCorrectedSnGrad< Type >::fullGradCorrection(), steadyStateD2dt2Scheme< Type >::fvcD2dt2(), EulerD2dt2Scheme< Type >::fvcD2dt2(), steadyStateDdtScheme< Type >::fvcDdt(), EulerDdtScheme< Type >::fvcDdt(), CoEulerDdtScheme< Type >::fvcDdt(), backwardDdtScheme< Type >::fvcDdt(), SLTSDdtScheme< Type >::fvcDdt(), localEulerDdtScheme< Type >::fvcDdt(), CrankNicolsonDdtScheme< Type >::fvcDdt(), gaussConvectionScheme< Type >::fvcDiv(), gaussLaplacianScheme< Type, GType >::fvcLaplacian(), relaxedNonOrthoGaussLaplacianScheme< Type, GType >::fvcLaplacian(), fvMatrix< Type >::fvMatrix(), CrankNicolsonDdtScheme< Type >::fvmDdt(), gaussLaplacianScheme< Type, GType >::fvmLaplacian(), relaxedNonOrthoGaussLaplacianScheme< Type, GType >::fvmLaplacian(), genericPatchFieldBase::genericFatalSolveError(), exprResultGlobals::get(), distributedTriSurfaceMesh::getField(), exprResultGlobals::getNamespace(), distributedTriSurfaceMesh::getNormal(), distributedTriSurfaceMesh::getRegion(), distributedTriSurfaceMesh::getVolumeType(), Foam::fvc::grad(), Foam::fac::grad(), IOobject::group(), AnisothermalPhaseModel< BasePhaseModel >::heEqn(), hexRef8Data::hexRef8Data(), humidityTemperatureCoupledMixedFvPatchScalarField::humidityTemperatureCoupledMixedFvPatchScalarField(), dynamicRefineFvMesh::init(), Foam::interpolate(), pointVolInterpolation::interpolate(), leastSquaresEdgeInterpolation< Type >::interpolate(), localMin< Type >::interpolate(), localMax< Type >::interpolate(), edgeInterpolationScheme< scalar >::interpolate(), surfaceInterpolationScheme< GType >::interpolate(), localBlended< Type >::interpolate(), weightedFlux< Type >::interpolate(), singleCellFvMesh::interpolate(), volPointInterpolation::interpolate(), meshToMesh0::interpolate(), volPointInterpolation::interpolateDimensionedInternalField(), volPointInterpolation::interpolateInternalField(), objectRegistry::is_cacheTemporaryObject(), isoSurfacePoint::isoSurfacePoint(), triSurfaceMesh::isSurfaceClosed(), sizeGroup::keyword(), Foam::fvm::laplacian(), Foam::fac::laplacian(), Foam::fvc::laplacian(), Foam::fam::laplacian(), Foam::fac::lnGrad(), lnGradScheme< Type >::lnGrad(), triSurfaceLoader::load(), Foam::loadPointField(), objectRegistry::lookupClassTypeImpl(), mappedPatchBase::lookupMesh(), objectRegistry::lookupObjectPtr(), objectRegistry::lookupObjectRefPtr(), Foam::mag(), Foam::magSqr(), adjointSimple::mainIter(), Foam::makeGraph(), voxelMeshSearch::makeMesh(), Foam::MapConsistentSubMesh(), Foam::MapConsistentVolFields(), Foam::MapLagrangianFields(), dynamicRefineFvMesh::mapNewInternalFaces(), mappedPatchFieldBase< scalar >::mapper(), zoneSubSet::mapToZone(), Foam::MapVolFields(), Foam::fvc::meshPhi(), solidBodyFvGeometryScheme::movePoints(), meshObject::movePoints(), multiphaseSystem::multiphaseSystem(), baseIOdictionary::name(), fvMesh::name(), faMesh::name(), objectRegistry::namesImpl(), objectRegistry::namesTypeImpl(), Foam::fam::ndiv(), Foam::fac::ndiv(), fvMeshTools::newMesh(), Foam::fac::ngrad(), objectRegistry::objectsTypeImpl(), sampledPatch::patchIDs(), pointConstraints::pointConstraints(), pointMesh::pointMesh(), RemoveParcels< CloudType >::postEvolve(), Foam::pow(), genericPatchFieldBase::processEntry(), decomposedBlockData::readBlocks(), Foam::readFieldsAndWriteFluent(), polyMesh::readUpdate(), Foam::fvc::reconstruct(), faFieldReconstructor::reconstructAreaField(), faFieldReconstructor::reconstructEdgeField(), pointFieldReconstructor::reconstructField(), faFieldReconstructor::reconstructField(), fvFieldReconstructor::reconstructInternalField(), Foam::fvc::reconstructMag(), pointFieldReconstructor::reconstructPointField(), fvFieldReconstructor::reconstructSurfaceField(), fvFieldReconstructor::reconstructVolumeField(), polyMesh::regionName(), triSurfaceMesh::regions(), exprDriver::removeContextObject(), exprResultGlobals::removeValue(), variablesSet::renameTurbulenceField(), genericPatchFieldBase::reportMissingEntry(), objectRegistry::resetCacheTemporaryObject(), Time::run(), VollerPrakash::S(), refinementSurfaces::setMinLevelFields(), removeCells::setRefinement(), removeFaces::setRefinement(), skewCorrectedEdgeInterpolation< Type >::skewCorrection(), skewCorrected< Type >::skewCorrection(), ATCModel::smoothFieldBasedOnCells(), Foam::fvc::snGrad(), snGradScheme< Type >::snGrad(), twoPhaseSystem::solve(), KirchhoffShell::solveDisplacement(), MultiComponentPhaseModel< BasePhaseModel, phaseThermo >::solveYi(), Foam::sqr(), Foam::stabilise(), regIOobject::store(), subCycleField< GeometricField >::subCycleField(), Foam::fvc::surfaceIntegrate(), Foam::fvc::surfaceSum(), surfMesh::surfMesh(), thermoSingleLayer::T(), dictionary::topDict(), adjointEikonalSolver::topologySensitivities(), triSurfaceMesh::triSurfaceMesh(), MPPICParcel< ParcelType >::trackingData::updateAverages(), KinematicParcel< ParcelType >::trackingData::updateAverages(), waveSurfacePressureFvPatchScalarField::updateCoeffs(), filmPyrolysisRadiativeCoupledMixedFvPatchScalarField::updateCoeffs(), humidityTemperatureCoupledMixedFvPatchScalarField::updateCoeffs(), topoBoolSet::updateLabels(), topoBitSet::updateLabels(), topoSet::updateLabels(), meshObject::updateMesh(), motionSmootherAlgo::updateMesh(), basicThermo::validate(), localBlended< Type >::weights(), FacePostProcessing< CloudType >::write(), FaceInteraction< CloudType >::write(), internalWriter::write(), XiReactionRate::write(), writeObjects::write(), ObukhovLength::write(), Foam::writeAreaFields(), PDRblock::writeBlockMeshDict(), Foam::writeCellGraph(), meshToMeshMethod::writeConnectivity(), boundaryRegion::writeDict(), cellTable::writeDict(), mappedPatchBase::writeDict(), Foam::writeDimFields(), fieldExtents::writeFileHeader(), decomposedBlockData::writeHeader(), IOobject::writeHeaderContent(), regionFunctionObject::writeObject(), distributedTriSurfaceMesh::writeObject(), Foam::writePatchGraph(), Foam::writePointFields(), Foam::ensightOutput::writeVolField(), Foam::writeVolFields(), and MultiComponentPhaseModel< BasePhaseModel, phaseThermo >::YiEqn().

◆ headerClassName() [1/2]

const Foam::word & headerClassName ( ) const
inlinenoexcept

◆ headerClassName() [2/2]

Foam::word & headerClassName ( )
inlinenoexcept

Return non-constant access to the class name read from header.

Definition at line 219 of file IOobjectI.H.

◆ note() [1/2]

◆ note() [2/2]

Foam::string & note ( )
inlinenoexcept

Modifiable access to the optional note.

Definition at line 231 of file IOobjectI.H.

◆ rename()

◆ labelByteSize()

unsigned labelByteSize ( ) const
inlinenoexcept

The sizeof (label) in bytes, possibly read from the header.

Definition at line 237 of file IOobjectI.H.

◆ scalarByteSize()

unsigned scalarByteSize ( ) const
inlinenoexcept

The sizeof (scalar) in bytes, possibly read from the header.

Definition at line 243 of file IOobjectI.H.

◆ resetHeader()

void resetHeader ( const word newName = word::null)

Clear various bits (headerClassName, note, sizeof...) that would be obtained when reading from a file.

Parameters
newNameif non-null, optionally rename the IOobject

Definition at line 587 of file IOobject.C.

Referenced by faMesh::faMesh(), and fvMesh::init().

Here is the caller graph for this function:

◆ hasHeaderClass()

bool hasHeaderClass ( ) const
inlinenoexcept

True if headerClassName() is non-empty (after reading)

Definition at line 251 of file IOobjectI.H.

Referenced by polyMesh::polyMesh(), and polyMesh::readUpdate().

Here is the caller graph for this function:

◆ isHeaderClass() [1/2]

bool isHeaderClass ( ) const
inline

Check if headerClassName() equals Type::typeName.

Definition at line 258 of file IOobjectI.H.

Referenced by Foam::loadPointField().

Here is the caller graph for this function:

◆ isHeaderClassName()

bool isHeaderClassName ( ) const
inline

Same as isHeaderClass()

Definition at line 718 of file IOobject.H.

◆ findMetaData()

const Foam::dictionary * findMetaData ( ) const
virtualnoexcept

Return pointer to meta-data (if any) or nullptr.

Reimplemented in regIOobject.

Definition at line 26 of file IOobjectMetaData.C.

Referenced by decomposedBlockData::writeExtraHeaderContent(), and decomposedBlockData::writeHeader().

Here is the caller graph for this function:

◆ group() [2/2]

Foam::word group ( ) const
inline

Return group (extension part of name)

Definition at line 201 of file IOobjectI.H.

References word::ext().

Here is the call graph for this function:

◆ member() [2/2]

Foam::word member ( ) const
inline

Return member (name without the extension)

Definition at line 207 of file IOobjectI.H.

References word::lessExt().

Referenced by diffusionGasEvaporation< Thermo, OtherThermo >::Kexp(), kineticGasEvaporation< Thermo, OtherThermo >::Kexp(), and kineticGasEvaporation< Thermo, OtherThermo >::kineticGasEvaporation().

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

◆ rootPath()

const Foam::fileName & rootPath ( ) const
noexcept

Return the Time::rootPath()

Definition at line 462 of file IOobject.C.

Referenced by Foam::makeGraph(), and fileOperation::processorsCasePath().

Here is the caller graph for this function:

◆ caseName()

const Foam::fileName & caseName ( ) const
noexcept

Return the Time::caseName()

Definition at line 468 of file IOobject.C.

Referenced by Foam::makeGraph().

Here is the caller graph for this function:

◆ globalCaseName()

const Foam::fileName & globalCaseName ( ) const
noexcept

Return the Time::globalCaseName()

Definition at line 474 of file IOobject.C.

◆ instance() [1/2]

const Foam::fileName & instance ( ) const
inlinenoexcept

Read access to instance path component.

Definition at line 266 of file IOobjectI.H.

Referenced by Foam::fac::average(), Foam::fvc::average(), correctedLnGrad< Type >::correction(), fourthLnGrad< Type >::correction(), correctedSnGrad< Type >::correction(), faceCorrectedSnGrad< Type >::correction(), skewCorrectedSnGrad< Type >::correction(), directions::directions(), Foam::fac::edgeIntegrate(), Foam::fac::edgeSum(), edgeInterpolationScheme< scalar >::euclidianInterpolate(), Time::findInstance(), masterUncollatedFileOperation::findInstance(), fileOperation::findInstance(), faceCorrectedSnGrad< Type >::fullGradCorrection(), skewCorrectedSnGrad< Type >::fullGradCorrection(), pointVolInterpolation::interpolate(), leastSquaresEdgeInterpolation< Type >::interpolate(), edgeInterpolationScheme< scalar >::interpolate(), surfaceInterpolationScheme< GType >::interpolate(), volPointInterpolation::interpolate(), Foam::fam::laplacian(), Foam::fvc::laplacian(), Foam::fvm::laplacian(), lnGradScheme< Type >::lnGrad(), Foam::loadPointField(), Foam::makeGraph(), volPointInterpolationAdjoint::makeWeights(), meshRefinement::mergePatchFacesUndo(), triSurfaceMesh::movePoints(), faMeshTools::newMesh(), fvMeshTools::newMesh(), points0MotionSolver::points0IO(), polyMesh::readUpdate(), Foam::fvc::reconstruct(), Foam::fvc::reconstructMag(), skewCorrectedEdgeInterpolation< Type >::skewCorrection(), snGradScheme< Type >::snGrad(), Foam::fvc::surfaceIntegrate(), Foam::fvc::surfaceSum(), surfMesh::surfMesh(), decomposedBlockData::writeHeader(), IOobject::writeHeaderContent(), triSurfaceMesh::writeObject(), regIOobject::writeObject(), distributedTriSurfaceMesh::writeObject(), and fvMeshTools::writeProcAddressing().

Here is the caller graph for this function:

◆ instance() [2/2]

Foam::fileName & instance ( )
inlinenoexcept

Write access to instance path component.

Definition at line 272 of file IOobjectI.H.

◆ local()

const Foam::fileName & local ( ) const
inlinenoexcept

◆ path() [1/2]

Foam::fileName path ( ) const

The complete path for the object (with instance, local,...).

Definition at line 480 of file IOobject.C.

References file_isOutsideCase(), and local.

Referenced by searchableSurfaces::checkIntersection(), fileOperation::readObjects(), topoSet::removeFiles(), refinementHistory::removeFiles(), hexRef8::removeFiles(), meshRefinement::removeFiles(), motionSmootherAlgo::setDisplacement(), surfMesh::surfMesh(), and Time::writeObject().

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

◆ globalPath() [1/2]

Foam::fileName globalPath ( ) const

The complete global path for the object (with instance, local,...)

Definition at line 491 of file IOobject.C.

References file_isOutsideCase(), and local.

Here is the call graph for this function:

◆ path() [2/2]

Foam::fileName path ( const word instance,
const fileName local = fileName::null 
) const

The complete path with alternative instance and local.

Definition at line 503 of file IOobject.C.

References local.

◆ globalPath() [2/2]

Foam::fileName globalPath ( const word instance,
const fileName local = fileName::null 
) const

The complete global path with alternative instance and local.

Definition at line 514 of file IOobject.C.

References local.

◆ objectPath()

◆ globalObjectPath()

Foam::fileName globalObjectPath ( ) const
inline

The complete global path + object name.

Definition at line 290 of file IOobjectI.H.

References Foam::name().

Here is the call graph for this function:

◆ objectRelPath()

Foam::fileName objectRelPath ( ) const

The object path relative to the root.

Definition at line 524 of file IOobject.C.

References file_isOutsideCase(), local, and Foam::name().

Referenced by fvMesh::init(), faMeshTools::readProcAddressing(), fvMeshTools::readProcAddressing(), objectRegistry::writeObject(), faMeshTools::writeProcAddressing(), and fvMeshTools::writeProcAddressing().

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

◆ localFilePath()

Foam::fileName localFilePath ( const word typeName,
const bool  search = true 
) const

Redirect to fileHandler filePath, searching locally.

When search is false, simply use the current instance, otherwise search previous instances.

Definition at line 536 of file IOobject.C.

References Foam::fileHandler, and Foam::search().

Referenced by distributedTriSurfaceMesh::distributedTriSurfaceMesh(), localIOdictionary::filePath(), distributedTriSurfaceMesh::filePath(), triSurfaceMesh::triSurfaceMesh(), and IOobject::typeFilePath().

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

◆ globalFilePath()

Foam::fileName globalFilePath ( const word typeName,
const bool  search = true 
) const

Redirect to fileHandler filePath, searching up if in parallel.

When search is false, simply use the current instance, otherwise search previous instances.

Definition at line 547 of file IOobject.C.

References Foam::fileHandler, and Foam::search().

Referenced by featureEdgeMesh::filePath(), GlobalIOField< vector >::filePath(), GlobalIOList< kinematicParcelInjectionData >::filePath(), IOdictionary::filePath(), unwatchedIOdictionary::filePath(), IOMap< T >::filePath(), UniformDimensionedField< vector >::filePath(), extendedFeatureEdgeMesh::filePath(), searchableSurface::filePath(), porosityModel::filePath(), triSurfaceMesh::filePath(), triSurfaceMesh::triSurfaceMesh(), and IOobject::typeFilePath().

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

◆ parseHeader()

Foam::IOstreamOption parseHeader ( const dictionary headerDict)

Parse 'FoamFile' header contents and set the IOobject characteristics and return the stream characteristics.

Definition at line 30 of file IOobjectReadHeader.C.

References IOstreamOption::format(), dictionary::get(), Foam::foamVersion::labelByteSize(), dictionary::readIfPresent(), Foam::foamVersion::scalarByteSize(), and IOstreamOption::version().

Here is the call graph for this function:

◆ readHeader() [1/2]

bool readHeader ( Istream is)

Read header ('FoamFile' dictionary) and set the IOobject and stream characteristics.

Definition at line 162 of file IOobjectReadHeader.C.

Referenced by decomposedBlockData::read(), decomposedBlockData::readBlock(), decomposedBlockData::readBlocks(), decomposedBlockData::readHeader(), masterUncollatedFileOperation::readStream(), and decomposedBlockData::writeData().

Here is the caller graph for this function:

◆ readHeader() [2/2]

bool readHeader ( dictionary headerDict,
Istream is 
)

◆ typeHeaderOk()

bool typeHeaderOk ( const bool  checkType = true,
const bool  search = true,
const bool  verbose = true 
)

Read header (respects is_globalIOobject trait) and check its info.

Parameters
checkTypeCheck headerClassName against the type-name
searchAlso search previous instances if not found at current instance
verboseReport any check-type failures

Definition at line 32 of file IOobjectTemplates.C.

References Foam::search().

Referenced by fieldToCell::applyToSet(), fvMeshTools::createDummyFvMeshFiles(), fileOperation::exists(), faMesh::faMesh(), topoSet::findIOobject(), hexRef8::hexRef8(), hexRef8Data::hexRef8Data(), fvMesh::init(), Foam::preservePatchTypes(), pyrolysisChemistryModel< CompType, SolidThermo, GasThermo >::pyrolysisChemistryModel(), particle< Type >::readFields(), TDACChemistryModel< CompType, ThermoType >::TDACChemistryModel(), and Foam::writeMeshObject().

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

◆ typeFilePath() [1/2]

fileName typeFilePath ( const bool  search = true) const

Call localFilePath or globalFilePath for given type depending on its is_globalIOobject trait.

Referenced by fieldToCell::applyToSet().

Here is the caller graph for this function:

◆ warnNoRereading()

void warnNoRereading ( ) const

Helper: warn that type does not support re-reading.

Definition at line 62 of file IOobjectTemplates.C.

References Foam::endl(), Foam::name(), IOobjectOption::READ_MODIFIED, and WarningInFunction.

Here is the call graph for this function:

◆ writeBanner()

Foam::Ostream & writeBanner ( Ostream os,
const bool  noSyntaxHint = false 
)
static

Write the standard OpenFOAM file/dictionary banner.

Optionally without editor syntax hint (eg, for logs)

Definition at line 72 of file IOobjectWriteHeader.C.

References Foam::foamVersion::api, and os().

Referenced by argList::parse(), decomposedBlockData::writeHeader(), and IOobject::writeHeader().

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

◆ writeDivider()

Foam::Ostream & writeDivider ( Ostream os)
static

Write the standard file section divider.

Definition at line 128 of file IOobjectWriteHeader.C.

References os().

Referenced by Foam::listSwitches(), argList::parse(), decomposedBlockData::writeHeader(), and IOobject::writeHeader().

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

◆ writeEndDivider()

Foam::Ostream & writeEndDivider ( Ostream os)
static

Write the standard end file divider.

Definition at line 138 of file IOobjectWriteHeader.C.

References os().

Referenced by PDRblock::writeBlockMeshDict(), decomposedBlockData::writeData(), collatedFileOperation::writeObject(), masterUncollatedFileOperation::writeObject(), fileOperation::writeObject(), boundaryDataWriter::writeTemplate(), and debugWriter::writeTemplate().

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

◆ writeHeader() [1/4]

bool writeHeader ( Ostream os) const

◆ writeHeader() [2/4]

bool writeHeader ( Ostream os,
const word objectType 
) const

◆ writeHeader() [3/4]

void writeHeader ( dictionary dict,
IOstreamOption  streamOpt 
) const

Write header into a dictionary with current type() and given output format.

Definition at line 298 of file IOobjectWriteHeader.C.

References dict, Foam::type(), and IOobject::writeHeader().

Here is the call graph for this function:

◆ writeHeader() [4/4]

void writeHeader ( dictionary dict,
const word objectType,
IOstreamOption  streamOpt 
) const

Write header into a dictionary with override of type and given output format.

Definition at line 280 of file IOobjectWriteHeader.C.

References dict, and IOobject::writeHeaderContent().

Here is the call graph for this function:

◆ good()

bool good ( ) const
inlinenoexcept

Did last readHeader() succeed?

Definition at line 298 of file IOobjectI.H.

Referenced by topoSet::topoSet().

Here is the caller graph for this function:

◆ bad()

bool bad ( ) const
inlinenoexcept

Did last readHeader() fail?

Definition at line 304 of file IOobjectI.H.

◆ info()

◆ operator=()

void operator= ( const IOobject io)

Copy assignment, copies all values (except the registry)

Definition at line 603 of file IOobject.C.

References IOobjectOption::globalObject(), io(), IOobjectOption::readOpt(), and IOobjectOption::writeOpt().

Referenced by regIOobject::operator=().

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

◆ isHeaderClass() [2/2]

bool isHeaderClass ( ) const
inline

Specialization for void always returns true (no headerClassName check).

Definition at line 971 of file IOobject.H.

◆ groupName() [2/2]

Foam::word groupName ( StringType  base,
const word group 
)
inline

Definition at line 25 of file IOobjectI.H.

References Foam::constant::atomic::group.

◆ typeFilePath() [2/2]

Foam::fileName typeFilePath ( const bool  search) const

Definition at line 50 of file IOobjectTemplates.C.

References IOobject::globalFilePath(), IOobject::localFilePath(), and Foam::search().

Here is the call graph for this function:

Member Data Documentation

◆ fileCheckTypesNames

const Foam::Enum< Foam::IOobject::fileCheckTypes > fileCheckTypesNames
static

Names for the fileCheckTypes.

Definition at line 203 of file IOobject.H.

Referenced by argList::parse().

◆ scopeSeparator

char scopeSeparator
static

Character for scoping object names (':' or '_')

Change with caution.

Definition at line 338 of file IOobject.H.

Referenced by dsmcFields::write().

◆ fileModificationChecking

◆ fileModificationSkew

float fileModificationSkew
static

Time skew (seconds) for file modification checks.

Definition at line 348 of file IOobject.H.

Referenced by argList::parse(), and dynamicCode::waitForFile().

◆ maxFileModificationPolls

int maxFileModificationPolls
static

Max number of times to poll for file modification changes.

Definition at line 353 of file IOobject.H.

Referenced by argList::parse(), and dynamicCode::waitForFile().


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