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