Time: Removed the deprecated timeName() function
use name() instead.
This commit is contained in:
@ -85,7 +85,7 @@ Foam::fv::homogeneousCondensation::homogeneousCondensation
|
|||||||
IOobject
|
IOobject
|
||||||
(
|
(
|
||||||
typedName(IOobject::groupName("d", interface_.name())),
|
typedName(IOobject::groupName("d", interface_.name())),
|
||||||
mesh.time().timeName(),
|
mesh.time().name(),
|
||||||
mesh,
|
mesh,
|
||||||
IOobject::READ_IF_PRESENT,
|
IOobject::READ_IF_PRESENT,
|
||||||
IOobject::AUTO_WRITE
|
IOobject::AUTO_WRITE
|
||||||
@ -98,7 +98,7 @@ Foam::fv::homogeneousCondensation::homogeneousCondensation
|
|||||||
IOobject
|
IOobject
|
||||||
(
|
(
|
||||||
typedName(IOobject::groupName("mDotByAlpha", interface_.name())),
|
typedName(IOobject::groupName("mDotByAlpha", interface_.name())),
|
||||||
mesh.time().timeName(),
|
mesh.time().name(),
|
||||||
mesh,
|
mesh,
|
||||||
IOobject::READ_IF_PRESENT,
|
IOobject::READ_IF_PRESENT,
|
||||||
IOobject::AUTO_WRITE
|
IOobject::AUTO_WRITE
|
||||||
|
|||||||
@ -113,7 +113,7 @@ Foam::fv::homogeneousLiquidPhaseSeparation::homogeneousLiquidPhaseSeparation
|
|||||||
IOobject
|
IOobject
|
||||||
(
|
(
|
||||||
typedName(IOobject::groupName("d", interface_.name())),
|
typedName(IOobject::groupName("d", interface_.name())),
|
||||||
mesh.time().timeName(),
|
mesh.time().name(),
|
||||||
mesh,
|
mesh,
|
||||||
IOobject::READ_IF_PRESENT,
|
IOobject::READ_IF_PRESENT,
|
||||||
IOobject::AUTO_WRITE
|
IOobject::AUTO_WRITE
|
||||||
@ -126,7 +126,7 @@ Foam::fv::homogeneousLiquidPhaseSeparation::homogeneousLiquidPhaseSeparation
|
|||||||
IOobject
|
IOobject
|
||||||
(
|
(
|
||||||
typedName(IOobject::groupName("mDotByAlpha", interface_.name())),
|
typedName(IOobject::groupName("mDotByAlpha", interface_.name())),
|
||||||
mesh.time().timeName(),
|
mesh.time().name(),
|
||||||
mesh,
|
mesh,
|
||||||
IOobject::READ_IF_PRESENT,
|
IOobject::READ_IF_PRESENT,
|
||||||
IOobject::AUTO_WRITE
|
IOobject::AUTO_WRITE
|
||||||
|
|||||||
@ -89,7 +89,7 @@ Foam::heatTransferModels::wallBoilingHeatTransfer::wallBoilingHeatTransfer
|
|||||||
IOobject
|
IOobject
|
||||||
(
|
(
|
||||||
IOobject::groupName("fWallBoiling", interface_.name()),
|
IOobject::groupName("fWallBoiling", interface_.name()),
|
||||||
interface_.mesh().time().timeName(),
|
interface_.mesh().time().name(),
|
||||||
interface_.mesh(),
|
interface_.mesh(),
|
||||||
IOobject::READ_IF_PRESENT,
|
IOobject::READ_IF_PRESENT,
|
||||||
IOobject::AUTO_WRITE
|
IOobject::AUTO_WRITE
|
||||||
@ -102,7 +102,7 @@ Foam::heatTransferModels::wallBoilingHeatTransfer::wallBoilingHeatTransfer
|
|||||||
IOobject
|
IOobject
|
||||||
(
|
(
|
||||||
IOobject::groupName("departureDiameter", interface_.name()),
|
IOobject::groupName("departureDiameter", interface_.name()),
|
||||||
interface_.mesh().time().timeName(),
|
interface_.mesh().time().name(),
|
||||||
interface_.mesh(),
|
interface_.mesh(),
|
||||||
IOobject::READ_IF_PRESENT,
|
IOobject::READ_IF_PRESENT,
|
||||||
IOobject::AUTO_WRITE
|
IOobject::AUTO_WRITE
|
||||||
@ -115,7 +115,7 @@ Foam::heatTransferModels::wallBoilingHeatTransfer::wallBoilingHeatTransfer
|
|||||||
IOobject
|
IOobject
|
||||||
(
|
(
|
||||||
IOobject::groupName("departureFrequency", interface_.name()),
|
IOobject::groupName("departureFrequency", interface_.name()),
|
||||||
interface_.mesh().time().timeName(),
|
interface_.mesh().time().name(),
|
||||||
interface_.mesh(),
|
interface_.mesh(),
|
||||||
IOobject::READ_IF_PRESENT,
|
IOobject::READ_IF_PRESENT,
|
||||||
IOobject::AUTO_WRITE
|
IOobject::AUTO_WRITE
|
||||||
@ -128,7 +128,7 @@ Foam::heatTransferModels::wallBoilingHeatTransfer::wallBoilingHeatTransfer
|
|||||||
IOobject
|
IOobject
|
||||||
(
|
(
|
||||||
IOobject::groupName("nucleationSites", interface_.name()),
|
IOobject::groupName("nucleationSites", interface_.name()),
|
||||||
interface_.mesh().time().timeName(),
|
interface_.mesh().time().name(),
|
||||||
interface_.mesh(),
|
interface_.mesh(),
|
||||||
IOobject::READ_IF_PRESENT,
|
IOobject::READ_IF_PRESENT,
|
||||||
IOobject::AUTO_WRITE
|
IOobject::AUTO_WRITE
|
||||||
@ -141,7 +141,7 @@ Foam::heatTransferModels::wallBoilingHeatTransfer::wallBoilingHeatTransfer
|
|||||||
IOobject
|
IOobject
|
||||||
(
|
(
|
||||||
IOobject::groupName(typedName("dmdtf"), interface_.name()),
|
IOobject::groupName(typedName("dmdtf"), interface_.name()),
|
||||||
interface_.mesh().time().timeName(),
|
interface_.mesh().time().name(),
|
||||||
interface_.mesh(),
|
interface_.mesh(),
|
||||||
IOobject::READ_IF_PRESENT,
|
IOobject::READ_IF_PRESENT,
|
||||||
IOobject::AUTO_WRITE
|
IOobject::AUTO_WRITE
|
||||||
@ -154,7 +154,7 @@ Foam::heatTransferModels::wallBoilingHeatTransfer::wallBoilingHeatTransfer
|
|||||||
IOobject
|
IOobject
|
||||||
(
|
(
|
||||||
IOobject::groupName("qq", interface_.name()),
|
IOobject::groupName("qq", interface_.name()),
|
||||||
interface_.mesh().time().timeName(),
|
interface_.mesh().time().name(),
|
||||||
interface_.mesh(),
|
interface_.mesh(),
|
||||||
IOobject::READ_IF_PRESENT,
|
IOobject::READ_IF_PRESENT,
|
||||||
IOobject::AUTO_WRITE
|
IOobject::AUTO_WRITE
|
||||||
@ -167,7 +167,7 @@ Foam::heatTransferModels::wallBoilingHeatTransfer::wallBoilingHeatTransfer
|
|||||||
IOobject
|
IOobject
|
||||||
(
|
(
|
||||||
IOobject::groupName("Tsurface", interface_.name()),
|
IOobject::groupName("Tsurface", interface_.name()),
|
||||||
interface_.mesh().time().timeName(),
|
interface_.mesh().time().name(),
|
||||||
interface_.mesh(),
|
interface_.mesh(),
|
||||||
IOobject::READ_IF_PRESENT,
|
IOobject::READ_IF_PRESENT,
|
||||||
IOobject::AUTO_WRITE
|
IOobject::AUTO_WRITE
|
||||||
@ -180,7 +180,7 @@ Foam::heatTransferModels::wallBoilingHeatTransfer::wallBoilingHeatTransfer
|
|||||||
IOobject
|
IOobject
|
||||||
(
|
(
|
||||||
IOobject::groupName(typedName("K"), interface_.name()),
|
IOobject::groupName(typedName("K"), interface_.name()),
|
||||||
interface_.mesh().time().timeName(),
|
interface_.mesh().time().name(),
|
||||||
interface_.mesh(),
|
interface_.mesh(),
|
||||||
IOobject::READ_IF_PRESENT,
|
IOobject::READ_IF_PRESENT,
|
||||||
IOobject::AUTO_WRITE
|
IOobject::AUTO_WRITE
|
||||||
|
|||||||
@ -110,7 +110,7 @@ int main(int argc, char *argv[])
|
|||||||
const word oldInstance = mesh.pointsInstance();
|
const word oldInstance = mesh.pointsInstance();
|
||||||
|
|
||||||
// Search for list of objects for this time
|
// Search for list of objects for this time
|
||||||
IOobjectList objects(mesh, runTime.timeName());
|
IOobjectList objects(mesh, runTime.name());
|
||||||
|
|
||||||
if (fields) Info<< "Reading geometric fields" << nl << endl;
|
if (fields) Info<< "Reading geometric fields" << nl << endl;
|
||||||
|
|
||||||
|
|||||||
@ -73,7 +73,7 @@ codeRead
|
|||||||
IOobject
|
IOobject
|
||||||
(
|
(
|
||||||
IOobject::groupName("fDefault", phaseName),
|
IOobject::groupName("fDefault", phaseName),
|
||||||
mesh().time().timeName(),
|
mesh().time().name(),
|
||||||
mesh(),
|
mesh(),
|
||||||
IOobject::MUST_READ
|
IOobject::MUST_READ
|
||||||
),
|
),
|
||||||
@ -87,7 +87,7 @@ codeRead
|
|||||||
IOobject
|
IOobject
|
||||||
(
|
(
|
||||||
IOobject::groupName("f" + Foam::name(i), phaseName),
|
IOobject::groupName("f" + Foam::name(i), phaseName),
|
||||||
mesh().time().timeName(),
|
mesh().time().name(),
|
||||||
mesh(),
|
mesh(),
|
||||||
IOobject::READ_IF_PRESENT
|
IOobject::READ_IF_PRESENT
|
||||||
),
|
),
|
||||||
|
|||||||
@ -380,12 +380,6 @@ public:
|
|||||||
const int precision = curPrecision_
|
const int precision = curPrecision_
|
||||||
);
|
);
|
||||||
|
|
||||||
//- Return current time name (for backwards-compatibility)
|
|
||||||
const word& timeName() const
|
|
||||||
{
|
|
||||||
return dimensionedScalar::name();
|
|
||||||
}
|
|
||||||
|
|
||||||
//- Search a given directory for valid time directories
|
//- Search a given directory for valid time directories
|
||||||
static instantList findTimes
|
static instantList findTimes
|
||||||
(
|
(
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2022-2023 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2022-2024 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -64,7 +64,7 @@ Foam::solver::solver(fvMesh& mesh)
|
|||||||
IOobject
|
IOobject
|
||||||
(
|
(
|
||||||
typeName,
|
typeName,
|
||||||
mesh.time().timeName(),
|
mesh.time().name(),
|
||||||
mesh
|
mesh
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
|
|||||||
@ -257,7 +257,7 @@ bool Foam::fv::zeroDimensionalFixedPressureConstraint::constrain
|
|||||||
IOobject
|
IOobject
|
||||||
(
|
(
|
||||||
typedName("source"),
|
typedName("source"),
|
||||||
mesh().time().timeName(),
|
mesh().time().name(),
|
||||||
mesh(),
|
mesh(),
|
||||||
IOobject::READ_IF_PRESENT,
|
IOobject::READ_IF_PRESENT,
|
||||||
IOobject::AUTO_WRITE
|
IOobject::AUTO_WRITE
|
||||||
|
|||||||
@ -308,7 +308,7 @@ Foam::fvMeshMovers::multiValveEngine::movingObject::movingObject
|
|||||||
IOobject
|
IOobject
|
||||||
(
|
(
|
||||||
"motionScale_" + name,
|
"motionScale_" + name,
|
||||||
meshMover_.mesh().time().timeName(),
|
meshMover_.mesh().time().name(),
|
||||||
meshMover_.mesh(),
|
meshMover_.mesh(),
|
||||||
IOobject::NO_READ,
|
IOobject::NO_READ,
|
||||||
IOobject::NO_WRITE
|
IOobject::NO_WRITE
|
||||||
|
|||||||
@ -108,7 +108,7 @@ const Foam::volScalarField& Foam::fv::zeroDimensionalMassSourceBase::m() const
|
|||||||
typeIOobject<volScalarField> mIo
|
typeIOobject<volScalarField> mIo
|
||||||
(
|
(
|
||||||
typedName("m"),
|
typedName("m"),
|
||||||
mesh().time().timeName(),
|
mesh().time().name(),
|
||||||
mesh(),
|
mesh(),
|
||||||
IOobject::READ_IF_PRESENT,
|
IOobject::READ_IF_PRESENT,
|
||||||
IOobject::AUTO_WRITE
|
IOobject::AUTO_WRITE
|
||||||
@ -135,7 +135,7 @@ const Foam::volScalarField& Foam::fv::zeroDimensionalMassSourceBase::m() const
|
|||||||
IOobject
|
IOobject
|
||||||
(
|
(
|
||||||
typedName("factor"),
|
typedName("factor"),
|
||||||
mesh().time().timeName(),
|
mesh().time().name(),
|
||||||
mesh(),
|
mesh(),
|
||||||
IOobject::NO_READ,
|
IOobject::NO_READ,
|
||||||
IOobject::AUTO_WRITE
|
IOobject::AUTO_WRITE
|
||||||
@ -265,7 +265,7 @@ void Foam::fv::zeroDimensionalMassSourceBase::correct()
|
|||||||
IOobject
|
IOobject
|
||||||
(
|
(
|
||||||
typedName("deltaM"),
|
typedName("deltaM"),
|
||||||
mesh().time().timeName(),
|
mesh().time().name(),
|
||||||
mesh()
|
mesh()
|
||||||
),
|
),
|
||||||
mesh(),
|
mesh(),
|
||||||
|
|||||||
@ -49,7 +49,7 @@ void Foam::fv::propellerDisk::addActuationDiskAxialInertialResistance
|
|||||||
IOobject
|
IOobject
|
||||||
(
|
(
|
||||||
typedName("force"),
|
typedName("force"),
|
||||||
mesh().time().timeName(),
|
mesh().time().name(),
|
||||||
mesh(),
|
mesh(),
|
||||||
IOobject::NO_READ,
|
IOobject::NO_READ,
|
||||||
IOobject::AUTO_WRITE
|
IOobject::AUTO_WRITE
|
||||||
|
|||||||
@ -79,7 +79,7 @@ Foam::chemistryModel<ThermoType>::chemistryModel
|
|||||||
IOobject
|
IOobject
|
||||||
(
|
(
|
||||||
"RR." + Yvf_[fieldi].name(),
|
"RR." + Yvf_[fieldi].name(),
|
||||||
this->mesh().time().timeName(),
|
this->mesh().time().name(),
|
||||||
this->mesh(),
|
this->mesh(),
|
||||||
IOobject::NO_READ,
|
IOobject::NO_READ,
|
||||||
IOobject::NO_WRITE
|
IOobject::NO_WRITE
|
||||||
@ -102,7 +102,7 @@ Foam::chemistryModel<ThermoType>::chemistryModel
|
|||||||
typeIOobject<volScalarField> header
|
typeIOobject<volScalarField> header
|
||||||
(
|
(
|
||||||
Yvf_[i].name(),
|
Yvf_[i].name(),
|
||||||
this->mesh().time().timeName(),
|
this->mesh().time().name(),
|
||||||
this->mesh(),
|
this->mesh(),
|
||||||
IOobject::NO_READ
|
IOobject::NO_READ
|
||||||
);
|
);
|
||||||
|
|||||||
@ -26,7 +26,7 @@ codeWrite
|
|||||||
IOobject
|
IOobject
|
||||||
(
|
(
|
||||||
"R",
|
"R",
|
||||||
mesh().time().timeName(),
|
mesh().time().name(),
|
||||||
mesh()
|
mesh()
|
||||||
),
|
),
|
||||||
mag(XY & mesh().C())
|
mag(XY & mesh().C())
|
||||||
|
|||||||
@ -29,19 +29,19 @@ codeWrite
|
|||||||
|
|
||||||
vectorIOField
|
vectorIOField
|
||||||
(
|
(
|
||||||
IOobject("eR", mesh().time().timeName(), mesh()),
|
IOobject("eR", mesh().time().name(), mesh()),
|
||||||
xy/mag(xy)
|
xy/mag(xy)
|
||||||
).write();
|
).write();
|
||||||
|
|
||||||
vectorIOField
|
vectorIOField
|
||||||
(
|
(
|
||||||
IOobject("eTheta", mesh().time().timeName(), mesh()),
|
IOobject("eTheta", mesh().time().name(), mesh()),
|
||||||
(zStar ^ xy)/mag(zStar ^ xy)
|
(zStar ^ xy)/mag(zStar ^ xy)
|
||||||
).write();
|
).write();
|
||||||
|
|
||||||
vectorIOField
|
vectorIOField
|
||||||
(
|
(
|
||||||
IOobject("eZ", mesh().time().timeName(), mesh()),
|
IOobject("eZ", mesh().time().name(), mesh()),
|
||||||
zStar/mag(zStar)
|
zStar/mag(zStar)
|
||||||
).write();
|
).write();
|
||||||
#};
|
#};
|
||||||
|
|||||||
Reference in New Issue
Block a user