typeInfo: Added typedName functions to supersede the modelName function in IOobject

The typedName functions prepend the typeName to the object/field name to make a
unique name within the context of model or type.

Within a type which includes a typeName the typedName function can be called
with just the name of the object, e.g. within the kEpsilon model

    typeName("G")

generates the name

    kEpsilon:G

To create a typed name within another context the type name can be obtained from
the type specified in the function instantiation, e.g.

    Foam::typedName<viscosityModel>("nu")

generates the name

    viscosityModel:nu

This supersedes the modelName functionality provided in IOobject which could
only be used for IOobjects which provide the typeName, whereas typedName can be
used for any type providing a typeName.
This commit is contained in:
Henry Weller
2022-08-25 17:14:47 +01:00
parent 51bb40ce3d
commit 63892b01f4
66 changed files with 194 additions and 230 deletions

View File

@ -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) 2011-2020 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -128,7 +128,7 @@ Foam::kineticTheoryModels::frictionalStressModels::JohnsonJackson::nu
( (
IOobject::groupName IOobject::groupName
( (
IOobject::modelName("nu", frictionalStressModel::typeName), Foam::typedName<frictionalStressModel>("nu"),
phase.group() phase.group()
), ),
dimensionedScalar(dimTime, 0.5)*pf*sin(phi_) dimensionedScalar(dimTime, 0.5)*pf*sin(phi_)

View File

@ -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) 2016-2020 OpenFOAM Foundation \\ / A nd | Copyright (C) 2016-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -133,7 +133,7 @@ JohnsonJacksonSchaeffer::nu
( (
IOobject::groupName IOobject::groupName
( (
IOobject::modelName("nu", frictionalStressModel::typeName), Foam::typedName<frictionalStressModel>("nu"),
phase.group() phase.group()
), ),
phase.mesh(), phase.mesh(),

View File

@ -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) 2011-2020 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -122,7 +122,7 @@ Foam::kineticTheoryModels::frictionalStressModels::Schaeffer::nu
( (
IOobject::groupName IOobject::groupName
( (
IOobject::modelName("nu", frictionalStressModel::typeName), Foam::typedName<frictionalStressModel>("nu"),
phase.group() phase.group()
), ),
phase.mesh(), phase.mesh(),

View File

@ -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) 2011-2020 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -78,7 +78,7 @@ Foam::kineticTheoryModels::viscosityModels::Gidaspow::nu
( (
IOobject::groupName IOobject::groupName
( (
IOobject::modelName("nu", viscosityModel::typeName), Foam::typedName<viscosityModel>("nu"),
Theta.group() Theta.group()
), ),
da*sqrt(Theta) da*sqrt(Theta)

View File

@ -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) 2011-2020 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -88,7 +88,7 @@ Foam::kineticTheoryModels::viscosityModels::HrenyaSinclair::nu
( (
IOobject::groupName IOobject::groupName
( (
IOobject::modelName("nu", viscosityModel::typeName), Foam::typedName<viscosityModel>("nu"),
Theta.group() Theta.group()
), ),
da*sqrt(Theta)* da*sqrt(Theta)*

View File

@ -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) 2011-2020 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -78,7 +78,7 @@ Foam::kineticTheoryModels::viscosityModels::Syamlal::nu
( (
IOobject::groupName IOobject::groupName
( (
IOobject::modelName("nu", viscosityModel::typeName), Foam::typedName<viscosityModel>("nu"),
Theta.group() Theta.group()
), ),
da*sqrt(Theta) da*sqrt(Theta)

View File

@ -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) 2011-2020 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -67,7 +67,7 @@ Foam::tmp<Foam::volScalarField> Foam::kineticTheoryModels::noneViscosity::nu
( (
IOobject::groupName IOobject::groupName
( (
IOobject::modelName("nu", viscosityModel::typeName), Foam::typedName<viscosityModel>("nu"),
Theta.group() Theta.group()
), ),
alpha1.mesh(), alpha1.mesh(),

View File

@ -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) 2013-2020 OpenFOAM Foundation \\ / A nd | Copyright (C) 2013-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -54,7 +54,7 @@ Foam::diameterModels::IATEsources::dummy::R
( (
IOobject IOobject
( (
"dummy:R", typedName("R"),
iate_.phase().time().timeName(), iate_.phase().time().timeName(),
iate_.phase().mesh() iate_.phase().mesh()
), ),

View File

@ -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) 2013-2020 OpenFOAM Foundation \\ / A nd | Copyright (C) 2013-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -71,7 +71,7 @@ Foam::diameterModels::IATEsources::randomCoalescence::R
( (
IOobject IOobject
( (
"randomCoalescence:R", typedName("R"),
iate_.phase().time().timeName(), iate_.phase().time().timeName(),
iate_.phase().mesh() iate_.phase().mesh()
), ),

View File

@ -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) 2013-2020 OpenFOAM Foundation \\ / A nd | Copyright (C) 2013-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -70,7 +70,7 @@ Foam::diameterModels::IATEsources::turbulentBreakUp::R
( (
IOobject IOobject
( (
"turbulentBreakUp:R", typedName("R"),
iate_.phase().time().timeName(), iate_.phase().time().timeName(),
iate_.phase().mesh() iate_.phase().mesh()
), ),

View File

@ -68,7 +68,7 @@ Foam::diameterModels::IATEsources::wallBoiling::R
( (
IOobject IOobject
( (
"wallBoiling:R", typedName("R"),
phase().time().timeName(), phase().time().timeName(),
phase().mesh() phase().mesh()
), ),
@ -80,7 +80,7 @@ Foam::diameterModels::IATEsources::wallBoiling::R
( (
IOobject IOobject
( (
"wallBoiling:Rdk", typedName("Rdk"),
phase().time().timeName(), phase().time().timeName(),
phase().mesh() phase().mesh()
), ),

View File

@ -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) 2019-2021 OpenFOAM Foundation \\ / A nd | Copyright (C) 2019-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -115,7 +115,7 @@ Foam::diameterModels::shapeModels::sinteringModels::KochFriedlander::R() const
( (
IOobject IOobject
( (
"KochFriedlander:R", typedName("R"),
fi.time().timeName(), fi.time().timeName(),
fi.mesh() fi.mesh()
), ),

View File

@ -74,7 +74,7 @@ Foam::diameterModels::shapeModels::sinteringModels::noSintering::R() const
( (
IOobject IOobject
( (
"noSintering:R", typedName("R"),
fi.time().timeName(), fi.time().timeName(),
fi.mesh() fi.mesh()
), ),

View File

@ -70,7 +70,7 @@ Foam::diameterModels::driftModels::phaseChange::phaseChange
( (
IOobject IOobject
( (
IOobject::groupName(type() + ":W", interfaces_[i].name()), IOobject::groupName(typedName("W"), interfaces_[i].name()),
popBal_.mesh().time().timeName(), popBal_.mesh().time().timeName(),
popBal_.mesh() popBal_.mesh()
), ),

View File

@ -233,7 +233,7 @@ void Foam::diameterModels::populationBalanceModel::initialiseDmdtfs()
( (
IOobject::groupName IOobject::groupName
( (
"populationBalance:dmdtf", typedName("dmdtf"),
interface.name() interface.name()
), ),
mesh().time().timeName(), mesh().time().timeName(),

View File

@ -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) 2011-2021 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -43,7 +43,7 @@ SpalartAllmarasDDES<BasicMomentumTransportModel>::rd
{ {
return volScalarField::Internal::New return volScalarField::Internal::New
( (
modelName("rd"), typedName("rd"),
min min
( (
this->nuEff()() this->nuEff()()
@ -70,7 +70,7 @@ SpalartAllmarasDDES<BasicMomentumTransportModel>::fd
{ {
return volScalarField::Internal::New return volScalarField::Internal::New
( (
modelName("fd"), typedName("fd"),
1 - tanh(pow3(8*rd(magGradU))) 1 - tanh(pow3(8*rd(magGradU)))
); );
} }
@ -89,7 +89,7 @@ SpalartAllmarasDDES<BasicMomentumTransportModel>::dTilda
{ {
return volScalarField::Internal::New return volScalarField::Internal::New
( (
modelName("dTilda"), typedName("dTilda"),
max max
( (
this->y_ this->y_

View File

@ -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) 2011-2021 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -80,8 +80,6 @@ protected:
// Protected Member Functions // Protected Member Functions
using IOobject::modelName;
//- Length scale //- Length scale
virtual tmp<volScalarField::Internal> dTilda virtual tmp<volScalarField::Internal> dTilda
( (

View File

@ -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) 2011-2021 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -41,7 +41,7 @@ tmp<volScalarField> SpalartAllmarasDES<BasicMomentumTransportModel>::chi() const
{ {
return volScalarField::New return volScalarField::New
( (
modelName("chi"), typedName("chi"),
nuTilda_/this->nu() nuTilda_/this->nu()
); );
} }
@ -56,7 +56,7 @@ tmp<volScalarField> SpalartAllmarasDES<BasicMomentumTransportModel>::fv1
const volScalarField chi3("chi3", pow3(chi)); const volScalarField chi3("chi3", pow3(chi));
return volScalarField::New return volScalarField::New
( (
modelName("fv1"), typedName("fv1"),
chi3/(chi3 + pow3(Cv1_)) chi3/(chi3 + pow3(Cv1_))
); );
} }
@ -72,7 +72,7 @@ SpalartAllmarasDES<BasicMomentumTransportModel>::fv2
{ {
return volScalarField::Internal::New return volScalarField::Internal::New
( (
modelName("fv2"), typedName("fv2"),
1.0 - chi/(1.0 + chi*fv1) 1.0 - chi/(1.0 + chi*fv1)
); );
} }
@ -87,7 +87,7 @@ SpalartAllmarasDES<BasicMomentumTransportModel>::Omega
{ {
return volScalarField::Internal::New return volScalarField::Internal::New
( (
modelName("Omega"), typedName("Omega"),
sqrt(2.0)*mag(skew(gradU)) sqrt(2.0)*mag(skew(gradU))
); );
} }
@ -105,7 +105,7 @@ SpalartAllmarasDES<BasicMomentumTransportModel>::Stilda
{ {
return volScalarField::Internal::New return volScalarField::Internal::New
( (
modelName("Stilda"), typedName("Stilda"),
max max
( (
Omega Omega
@ -126,7 +126,7 @@ tmp<volScalarField::Internal> SpalartAllmarasDES<BasicMomentumTransportModel>::r
{ {
return volScalarField::Internal::New return volScalarField::Internal::New
( (
modelName("r"), typedName("r"),
min min
( (
nur nur
@ -153,11 +153,11 @@ SpalartAllmarasDES<BasicMomentumTransportModel>::fw
) const ) const
{ {
const volScalarField::Internal r(this->r(nuTilda_, Omega, dTilda)); const volScalarField::Internal r(this->r(nuTilda_, Omega, dTilda));
const volScalarField::Internal g(modelName("g"), r + Cw2_*(pow6(r) - r)); const volScalarField::Internal g(typedName("g"), r + Cw2_*(pow6(r) - r));
return volScalarField::Internal::New return volScalarField::Internal::New
( (
modelName("fw"), typedName("fw"),
g*pow((1 + pow6(Cw3_))/(pow6(g) + pow6(Cw3_)), 1.0/6.0) g*pow((1 + pow6(Cw3_))/(pow6(g) + pow6(Cw3_)), 1.0/6.0)
); );
} }
@ -174,7 +174,7 @@ SpalartAllmarasDES<BasicMomentumTransportModel>::dTilda
{ {
return volScalarField::Internal::New return volScalarField::Internal::New
( (
modelName("dTilda"), typedName("dTilda"),
min(CDES_*this->delta()(), y_) min(CDES_*this->delta()(), y_)
); );
} }
@ -186,11 +186,11 @@ void SpalartAllmarasDES<BasicMomentumTransportModel>::cacheLESRegion
const volScalarField::Internal& dTilda const volScalarField::Internal& dTilda
) const ) const
{ {
if (this->mesh_.cacheTemporaryObject(modelName("LESRegion"))) if (this->mesh_.cacheTemporaryObject(typedName("LESRegion")))
{ {
volScalarField::Internal::New volScalarField::Internal::New
( (
modelName("LESRegion"), typedName("LESRegion"),
neg(dTilda - y_()) neg(dTilda - y_())
); );
} }
@ -422,7 +422,7 @@ tmp<volScalarField> SpalartAllmarasDES<BasicMomentumTransportModel>::k() const
( (
volScalarField::New volScalarField::New
( (
modelName("k"), typedName("k"),
sqr(this->nut()/ck_/dTildaExtrapolated) sqr(this->nut()/ck_/dTildaExtrapolated)
) )
); );

View File

@ -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) 2011-2021 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -93,8 +93,6 @@ protected:
// Protected Member Functions // Protected Member Functions
using IOobject::modelName;
tmp<volScalarField> chi() const; tmp<volScalarField> chi() const;
tmp<volScalarField> fv1(const volScalarField& chi) const; tmp<volScalarField> fv1(const volScalarField& chi) const;

View File

@ -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) 2011-2021 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -40,7 +40,7 @@ SpalartAllmarasIDDES<BasicMomentumTransportModel>::IDDESalpha() const
{ {
return volScalarField::Internal::New return volScalarField::Internal::New
( (
modelName("alpha"), typedName("alpha"),
max(0.25 - this->y_()/IDDESDelta_.hmax(), scalar(-5)) max(0.25 - this->y_()/IDDESDelta_.hmax(), scalar(-5))
); );
} }
@ -55,7 +55,7 @@ SpalartAllmarasIDDES<BasicMomentumTransportModel>::ft
{ {
return volScalarField::Internal::New return volScalarField::Internal::New
( (
modelName("ft"), typedName("ft"),
tanh(pow3(sqr(ct_)*rd(this->nut_, magGradU))) tanh(pow3(sqr(ct_)*rd(this->nut_, magGradU)))
); );
} }
@ -70,7 +70,7 @@ SpalartAllmarasIDDES<BasicMomentumTransportModel>::fl
{ {
return volScalarField::Internal::New return volScalarField::Internal::New
( (
modelName("fl"), typedName("fl"),
tanh(pow(sqr(cl_)*rd(this->nu(), magGradU), 10)) tanh(pow(sqr(cl_)*rd(this->nu(), magGradU), 10))
); );
} }
@ -86,7 +86,7 @@ SpalartAllmarasIDDES<BasicMomentumTransportModel>::rd
{ {
return volScalarField::Internal::New return volScalarField::Internal::New
( (
modelName("rd"), typedName("rd"),
min min
( (
nur nur
@ -112,7 +112,7 @@ SpalartAllmarasIDDES<BasicMomentumTransportModel>::fd
{ {
return volScalarField::Internal::New return volScalarField::Internal::New
( (
modelName("fd"), typedName("fd"),
1 - tanh(pow3(8*rd(this->nuEff(), magGradU))) 1 - tanh(pow3(8*rd(this->nuEff(), magGradU)))
); );
} }
@ -133,17 +133,17 @@ SpalartAllmarasIDDES<BasicMomentumTransportModel>::dTilda
const volScalarField::Internal expTerm const volScalarField::Internal expTerm
( (
modelName("expTerm"), typedName("expTerm"),
exp(sqr(alpha)) exp(sqr(alpha))
); );
const volScalarField::Internal magGradU(modelName("magGradU"), mag(gradU)); const volScalarField::Internal magGradU(typedName("magGradU"), mag(gradU));
tmp<volScalarField::Internal> fHill tmp<volScalarField::Internal> fHill
( (
volScalarField::Internal::New volScalarField::Internal::New
( (
modelName("fHill"), typedName("fHill"),
2*(pos0(alpha)*pow(expTerm, -11.09) + neg(alpha)*pow(expTerm, -9.0)) 2*(pos0(alpha)*pow(expTerm, -11.09) + neg(alpha)*pow(expTerm, -9.0))
) )
); );
@ -152,14 +152,14 @@ SpalartAllmarasIDDES<BasicMomentumTransportModel>::dTilda
( (
volScalarField::Internal::New volScalarField::Internal::New
( (
modelName("fStep"), typedName("fStep"),
min(2*pow(expTerm, -9.0), scalar(1)) min(2*pow(expTerm, -9.0), scalar(1))
) )
); );
const volScalarField::Internal fHyb const volScalarField::Internal fHyb
( (
modelName("fHyb"), typedName("fHyb"),
max(1 - fd(magGradU), fStep) max(1 - fd(magGradU), fStep)
); );
@ -167,7 +167,7 @@ SpalartAllmarasIDDES<BasicMomentumTransportModel>::dTilda
( (
volScalarField::Internal::New volScalarField::Internal::New
( (
modelName("fAmp"), typedName("fAmp"),
1 - max(ft(magGradU), fl(magGradU)) 1 - max(ft(magGradU), fl(magGradU))
) )
); );
@ -176,7 +176,7 @@ SpalartAllmarasIDDES<BasicMomentumTransportModel>::dTilda
( (
volScalarField::Internal::New volScalarField::Internal::New
( (
modelName("fRestore"), typedName("fRestore"),
max(fHill - 1, scalar(0))*fAmp max(fHill - 1, scalar(0))*fAmp
) )
); );
@ -184,7 +184,7 @@ SpalartAllmarasIDDES<BasicMomentumTransportModel>::dTilda
// IGNORING ft2 terms // IGNORING ft2 terms
const volScalarField::Internal Psi const volScalarField::Internal Psi
( (
modelName("Psi"), typedName("Psi"),
sqrt sqrt
( (
min min
@ -201,7 +201,7 @@ SpalartAllmarasIDDES<BasicMomentumTransportModel>::dTilda
return volScalarField::Internal::New return volScalarField::Internal::New
( (
modelName("dTilda"), typedName("dTilda"),
max max
( (
dimensionedScalar(dimLength, small), dimensionedScalar(dimLength, small),

View File

@ -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) 2011-2021 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -107,8 +107,6 @@ protected:
// Protected Member Functions // Protected Member Functions
using IOobject::modelName;
//- Length scale //- Length scale
virtual tmp<volScalarField::Internal> dTilda virtual tmp<volScalarField::Internal> dTilda
( (

View File

@ -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) 2011-2021 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -259,14 +259,14 @@ void RNGkEpsilon<BasicMomentumTransportModel>::correct()
volScalarField::Internal divU volScalarField::Internal divU
( (
modelName("divU"), typedName("divU"),
fvc::div(fvc::absolute(this->phi(), U))() fvc::div(fvc::absolute(this->phi(), U))()
); );
tmp<volTensorField> tgradU = fvc::grad(U); tmp<volTensorField> tgradU = fvc::grad(U);
volScalarField::Internal S2 volScalarField::Internal S2
( (
modelName("S2"), typedName("S2"),
(tgradU().v() && dev(twoSymm(tgradU().v()))) (tgradU().v() && dev(twoSymm(tgradU().v())))
); );
tgradU.clear(); tgradU.clear();
@ -275,15 +275,15 @@ void RNGkEpsilon<BasicMomentumTransportModel>::correct()
volScalarField::Internal eta volScalarField::Internal eta
( (
modelName("eta"), typedName("eta"),
sqrt(mag(S2))*k_()/epsilon_() sqrt(mag(S2))*k_()/epsilon_()
); );
volScalarField::Internal eta3(modelName("eta3"), eta*sqr(eta)); volScalarField::Internal eta3(typedName("eta3"), eta*sqr(eta));
volScalarField::Internal R volScalarField::Internal R
( (
modelName("R"), typedName("R"),
((eta*(-eta/eta0_ + scalar(1)))/(beta_*eta3 + scalar(1))) ((eta*(-eta/eta0_ + scalar(1)))/(beta_*eta3 + scalar(1)))
); );

View File

@ -84,10 +84,6 @@ class RNGkEpsilon
: :
public eddyViscosity<RASModel<BasicMomentumTransportModel>> public eddyViscosity<RASModel<BasicMomentumTransportModel>>
{ {
// Private Member Functions
using IOobject::modelName;
protected: protected:

View File

@ -41,7 +41,7 @@ namespace RASModels
template<class BasicMomentumTransportModel> template<class BasicMomentumTransportModel>
tmp<volScalarField> SpalartAllmaras<BasicMomentumTransportModel>::chi() const tmp<volScalarField> SpalartAllmaras<BasicMomentumTransportModel>::chi() const
{ {
return volScalarField::New(modelName("chi"), nuTilda_/this->nu()); return volScalarField::New(typedName("chi"), nuTilda_/this->nu());
} }
@ -51,8 +51,8 @@ tmp<volScalarField> SpalartAllmaras<BasicMomentumTransportModel>::fv1
const volScalarField& chi const volScalarField& chi
) const ) const
{ {
const volScalarField chi3(modelName("chi3"), pow3(chi)); const volScalarField chi3(typedName("chi3"), pow3(chi));
return volScalarField::New(modelName("fv1"), chi3/(chi3 + pow3(Cv1_))); return volScalarField::New(typedName("fv1"), chi3/(chi3 + pow3(Cv1_)));
} }
@ -65,7 +65,7 @@ tmp<volScalarField::Internal> SpalartAllmaras<BasicMomentumTransportModel>::fv2
{ {
return volScalarField::Internal::New return volScalarField::Internal::New
( (
modelName("fv2"), typedName("fv2"),
1.0 - chi/(1.0 + chi*fv1) 1.0 - chi/(1.0 + chi*fv1)
); );
} }
@ -81,13 +81,13 @@ SpalartAllmaras<BasicMomentumTransportModel>::Stilda
{ {
const volScalarField::Internal Omega const volScalarField::Internal Omega
( (
modelName("Omega"), typedName("Omega"),
::sqrt(2.0)*mag(skew(fvc::grad(this->U_)().v())) ::sqrt(2.0)*mag(skew(fvc::grad(this->U_)().v()))
); );
return volScalarField::Internal::New return volScalarField::Internal::New
( (
modelName("Stilda"), typedName("Stilda"),
( (
max max
( (
@ -108,7 +108,7 @@ tmp<volScalarField::Internal> SpalartAllmaras<BasicMomentumTransportModel>::fw
{ {
const volScalarField::Internal r const volScalarField::Internal r
( (
modelName("r"), typedName("r"),
min min
( (
nuTilda_() nuTilda_()
@ -124,11 +124,11 @@ tmp<volScalarField::Internal> SpalartAllmaras<BasicMomentumTransportModel>::fw
) )
); );
const volScalarField::Internal g(modelName("g"), r + Cw2_*(pow6(r) - r)); const volScalarField::Internal g(typedName("g"), r + Cw2_*(pow6(r) - r));
return volScalarField::Internal::New return volScalarField::Internal::New
( (
modelName("fw"), typedName("fw"),
g*pow((1.0 + pow6(Cw3_))/(pow6(g) + pow6(Cw3_)), 1.0/6.0) g*pow((1.0 + pow6(Cw3_))/(pow6(g) + pow6(Cw3_)), 1.0/6.0)
); );
} }

View File

@ -87,10 +87,6 @@ class SpalartAllmaras
: :
public eddyViscosity<RASModel<BasicMomentumTransportModel>> public eddyViscosity<RASModel<BasicMomentumTransportModel>>
{ {
// Private Member Functions
using IOobject::modelName;
protected: protected:

View File

@ -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) 2021 OpenFOAM Foundation \\ / A nd | Copyright (C) 2021-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -59,13 +59,13 @@ tmp<volScalarField::Internal> kOmega2006<BasicMomentumTransportModel>::beta
const volScalarField::Internal ChiOmega const volScalarField::Internal ChiOmega
( (
modelName("ChiOmega"), typedName("ChiOmega"),
mag((Omega & Omega) && Shat)/pow3(betaStar_*omega_.v()) mag((Omega & Omega) && Shat)/pow3(betaStar_*omega_.v())
); );
const volScalarField::Internal fBeta const volScalarField::Internal fBeta
( (
modelName("fBeta"), typedName("fBeta"),
(1 + 85*ChiOmega)/(1 + 100*ChiOmega) (1 + 85*ChiOmega)/(1 + 100*ChiOmega)
); );
@ -294,7 +294,7 @@ void kOmega2006<BasicMomentumTransportModel>::correct()
volScalarField::Internal divU volScalarField::Internal divU
( (
modelName("divU"), typedName("divU"),
fvc::div(fvc::absolute(this->phi(), U))().v() fvc::div(fvc::absolute(this->phi(), U))().v()
); );

View File

@ -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) 2021 OpenFOAM Foundation \\ / A nd | Copyright (C) 2021-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -81,8 +81,6 @@ class kOmega2006
{ {
// Private Member Functions // Private Member Functions
using IOobject::modelName;
void correctNut(const volTensorField& gradU); void correctNut(const volTensorField& gradU);
tmp<volScalarField::Internal> beta(const volTensorField& gradU) const; tmp<volScalarField::Internal> beta(const volTensorField& gradU) const;

View File

@ -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) 2011-2021 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -88,8 +88,8 @@ template<class BasicMomentumTransportModel>
void realizableKE<BasicMomentumTransportModel>::correctNut() void realizableKE<BasicMomentumTransportModel>::correctNut()
{ {
const volTensorField gradU(fvc::grad(this->U_)); const volTensorField gradU(fvc::grad(this->U_));
const volScalarField S2(modelName("S2"), 2*magSqr(dev(symm(gradU)))); const volScalarField S2(typedName("S2"), 2*magSqr(dev(symm(gradU))));
const volScalarField magS(modelName("magS"), sqrt(S2)); const volScalarField magS(typedName("magS"), sqrt(S2));
correctNut(gradU, S2, magS); correctNut(gradU, S2, magS);
} }
@ -267,21 +267,21 @@ void realizableKE<BasicMomentumTransportModel>::correct()
volScalarField::Internal divU volScalarField::Internal divU
( (
modelName("divU"), typedName("divU"),
fvc::div(fvc::absolute(this->phi(), U))() fvc::div(fvc::absolute(this->phi(), U))()
); );
const volTensorField gradU(fvc::grad(U)); const volTensorField gradU(fvc::grad(U));
const volScalarField S2(modelName("S2"), 2*magSqr(dev(symm(gradU)))); const volScalarField S2(typedName("S2"), 2*magSqr(dev(symm(gradU))));
const volScalarField magS(modelName("magS"), sqrt(S2)); const volScalarField magS(typedName("magS"), sqrt(S2));
const volScalarField::Internal eta const volScalarField::Internal eta
( (
modelName("eta"), magS()*k_()/epsilon_() typedName("eta"), magS()*k_()/epsilon_()
); );
const volScalarField::Internal C1 const volScalarField::Internal C1
( (
modelName("C1"), typedName("C1"),
max(eta/(scalar(5) + eta), scalar(0.43)) max(eta/(scalar(5) + eta), scalar(0.43))
); );

View File

@ -79,10 +79,6 @@ class realizableKE
: :
public eddyViscosity<RASModel<BasicMomentumTransportModel>> public eddyViscosity<RASModel<BasicMomentumTransportModel>>
{ {
// Private Member Functions
using IOobject::modelName;
protected: protected:

View File

@ -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) 2012-2021 OpenFOAM Foundation \\ / A nd | Copyright (C) 2012-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -301,16 +301,16 @@ void v2f<BasicMomentumTransportModel>::correct()
const volScalarField G(this->GName(), nut*S2); const volScalarField G(this->GName(), nut*S2);
const volScalarField Ts(this->Ts()); const volScalarField Ts(this->Ts());
const volScalarField L2(type() + ":L2", sqr(Ls())); const volScalarField L2(typedName("L2"), sqr(Ls()));
const volScalarField v2fAlpha const volScalarField v2fAlpha
( (
type() + ":alpha", typedName("alpha"),
1.0/Ts*((C1_ - N)*v2_ - 2.0/3.0*k_*(C1_ - 1.0)) 1.0/Ts*((C1_ - N)*v2_ - 2.0/3.0*k_*(C1_ - 1.0))
); );
const volScalarField Ceps1 const volScalarField Ceps1
( (
"Ceps1", typedName("Ceps1"),
1.4*(1.0 + 0.05*min(sqrt(k_/v2_), scalar(100.0))) 1.4*(1.0 + 0.05*min(sqrt(k_/v2_), scalar(100.0)))
); );

View File

@ -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) 2018-2021 OpenFOAM Foundation \\ / A nd | Copyright (C) 2018-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -107,7 +107,7 @@ nu
( (
volScalarField::New volScalarField::New
( (
IOobject::groupName(type() + ":nu", nu0.group()), IOobject::groupName(typedName("nu"), nu0.group()),
nu0.mesh(), nu0.mesh(),
dimensionedScalar(dimViscosity, 0) dimensionedScalar(dimViscosity, 0)
) )

View File

@ -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) 2018-2021 OpenFOAM Foundation \\ / A nd | Copyright (C) 2018-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -67,7 +67,7 @@ strainRateViscosityModel::strainRateViscosityModel
( (
IOobject::groupName IOobject::groupName
( (
IOobject::modelName("nu", typeName), typedName("nu"),
U.group() U.group()
), ),
U.time().timeName(), U.time().timeName(),

View File

@ -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) 2020-2021 OpenFOAM Foundation \\ / A nd | Copyright (C) 2020-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -73,7 +73,7 @@ lambdaThixotropic<BasicMomentumTransportModel>::lambdaThixotropic
( (
IOobject::groupName IOobject::groupName
( (
IOobject::modelName("lambda", typeName), typedName("lambda"),
alphaRhoPhi.group() alphaRhoPhi.group()
), ),
this->runTime_.timeName(), this->runTime_.timeName(),
@ -90,7 +90,7 @@ lambdaThixotropic<BasicMomentumTransportModel>::lambdaThixotropic
( (
IOobject::groupName IOobject::groupName
( (
IOobject::modelName("nu", typeName), typedName("nu"),
alphaRhoPhi.group() alphaRhoPhi.group()
), ),
this->runTime_.timeName(), this->runTime_.timeName(),

View File

@ -142,7 +142,7 @@ public:
//- Helper function to return the name of the turbulence G field //- Helper function to return the name of the turbulence G field
inline word GName() const inline word GName() const
{ {
return modelName("G"); return typedName("G");
} }
//- Access function to velocity field //- Access function to velocity field

View File

@ -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) 2011-2021 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -224,11 +224,6 @@ public:
//- Return member (name without the extension) //- Return member (name without the extension)
static word member(const word& name); static word member(const word& name);
//- Return the name of the object within the given model
// as <model>:<name>
template<class Name>
static inline word modelName(Name name, const word& model);
//- Type of file modification checking //- Type of file modification checking
static fileCheckTypes fileModificationChecking; static fileCheckTypes fileModificationChecking;
@ -393,10 +388,6 @@ public:
//- Return member (name without the extension) //- Return member (name without the extension)
word member() const; word member() const;
//- Return the name of the object within this model
// as <model>:<name>
inline word modelName(const char* name) const;
const fileName& rootPath() const; const fileName& rootPath() const;
const fileName& caseName(const bool global) const; const fileName& caseName(const bool global) const;

View File

@ -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) 2011-2020 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -41,26 +41,6 @@ inline Foam::word Foam::IOobject::groupName(Name name, const word& group)
} }
template<class Name>
inline Foam::word Foam::IOobject::modelName(Name name, const word& model)
{
if (model != word::null)
{
return (model + ':') + name;
}
else
{
return name;
}
}
inline Foam::word Foam::IOobject::modelName(const char* name) const
{
return type() + ':' + name;
}
template<class Stream> template<class Stream>
inline Stream& Foam::IOobject::writeBanner(Stream& os, bool noHint) inline Stream& Foam::IOobject::writeBanner(Stream& os, bool noHint)
{ {

View File

@ -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) 2011-2018 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -64,12 +64,16 @@ Description
//- Declare a ClassNameNoDebug() with extra virtual type info //- Declare a ClassNameNoDebug() with extra virtual type info
#define TypeNameNoDebug(TypeNameString) \ #define TypeNameNoDebug(TypeNameString) \
ClassNameNoDebug(TypeNameString); \ ClassNameNoDebug(TypeNameString); \
virtual const word& type() const { return typeName; } virtual const word& type() const { return typeName; } \
template<class Name> \
word typedName(Name name) const { return (typeName + ':') + name; }
//- Declare a ClassName() with extra virtual type info //- Declare a ClassName() with extra virtual type info
#define TypeName(TypeNameString) \ #define TypeName(TypeNameString) \
ClassName(TypeNameString); \ ClassName(TypeNameString); \
virtual const word& type() const { return typeName; } virtual const word& type() const { return typeName; } \
template<class Name> \
word typedName(Name name) const { return (typeName + ':') + name; }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -138,6 +142,15 @@ inline bool isA(const Type& t)
} }
//- Return the name of the object within the given type
// as <typeName>:<name>
template<class TypeName, class Name>
inline word typedName(Name name)
{
return (TypeName::typeName + ':') + name;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam } // End namespace Foam

View File

@ -80,7 +80,7 @@ Foam::combustionModels::EDC::EDC
( (
IOobject IOobject
( (
this->thermo().phasePropertyName(typeName + ":kappa"), this->thermo().phasePropertyName(typedName("kappa")),
this->mesh().time().timeName(), this->mesh().time().timeName(),
this->mesh(), this->mesh(),
IOobject::NO_READ, IOobject::NO_READ,
@ -216,7 +216,7 @@ Foam::combustionModels::EDC::Qdot() const
{ {
return volScalarField::New return volScalarField::New
( (
this->thermo().phasePropertyName(typeName + ":Qdot"), this->thermo().phasePropertyName(typedName("Qdot")),
kappa_*chemistryPtr_->Qdot() kappa_*chemistryPtr_->Qdot()
); );
} }

View File

@ -54,7 +54,7 @@ Foam::combustionModels::PaSR::PaSR
( (
IOobject IOobject
( (
thermo.phasePropertyName(typeName + ":kappa"), thermo.phasePropertyName(typedName("kappa")),
this->mesh().time().timeName(), this->mesh().time().timeName(),
this->mesh(), this->mesh(),
IOobject::NO_READ, IOobject::NO_READ,
@ -116,7 +116,7 @@ Foam::combustionModels::PaSR::Qdot() const
{ {
return volScalarField::New return volScalarField::New
( (
this->thermo().phasePropertyName(typeName + ":Qdot"), this->thermo().phasePropertyName(typedName("Qdot")),
kappa_*laminar::Qdot() kappa_*laminar::Qdot()
); );
} }

View File

@ -79,7 +79,7 @@ Foam::combustionModels::noCombustion::Qdot() const
{ {
return volScalarField::New return volScalarField::New
( (
this->thermo().phasePropertyName(typeName + ":Qdot"), this->thermo().phasePropertyName(typedName("Qdot")),
this->mesh(), this->mesh(),
dimensionedScalar(dimEnergy/dimVolume/dimTime, 0) dimensionedScalar(dimEnergy/dimVolume/dimTime, 0)
); );

View File

@ -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) 2012-2021 OpenFOAM Foundation \\ / A nd | Copyright (C) 2012-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -139,7 +139,7 @@ void Foam::porosityModels::DarcyForchheimer::calcTransformModelData()
( (
IOobject IOobject
( (
typeName + ":D", typedName("D"),
mesh_.time().timeName(), mesh_.time().timeName(),
mesh_, mesh_,
IOobject::NO_READ, IOobject::NO_READ,
@ -152,7 +152,7 @@ void Foam::porosityModels::DarcyForchheimer::calcTransformModelData()
( (
IOobject IOobject
( (
typeName + ":F", typedName("F"),
mesh_.time().timeName(), mesh_.time().timeName(),
mesh_, mesh_,
IOobject::NO_READ, IOobject::NO_READ,

View File

@ -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) 2017-2021 OpenFOAM Foundation \\ / A nd | Copyright (C) 2017-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -126,7 +126,7 @@ Foam::tmp<Foam::volScalarField::Internal> Foam::fv::damping::forceCoeff() const
( (
IOobject IOobject
( (
type() + ":forceCoeff", typedName("forceCoeff"),
mesh().time().timeName(), mesh().time().timeName(),
mesh() mesh()
), ),
@ -152,7 +152,7 @@ Foam::tmp<Foam::volScalarField::Internal> Foam::fv::damping::forceCoeff() const
( (
IOobject IOobject
( (
type() + ":forceCoeff", typedName("forceCoeff"),
mesh().time().timeName(), mesh().time().timeName(),
mesh() mesh()
), ),

View File

@ -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) 2011-2021 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -122,7 +122,7 @@ Foam::fv::heatTransferModels::constant::htc() const
{ {
if (!htcPtr_.valid()) if (!htcPtr_.valid())
{ {
return volScalarField::New(type() + ":htc", mesh(), htc_); return volScalarField::New(typedName("htc"), mesh(), htc_);
} }
else else
{ {

View File

@ -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) 2011-2021 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -94,7 +94,7 @@ Foam::fv::heatTransferModels::function1::htc() const
tmp<volScalarField> tHtc = tmp<volScalarField> tHtc =
volScalarField::New volScalarField::New
( (
type() + ":htc", typedName("htc"),
mesh(), mesh(),
dimPower/dimTemperature/dimArea, dimPower/dimTemperature/dimArea,
zeroGradientFvPatchScalarField::typeName zeroGradientFvPatchScalarField::typeName

View File

@ -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) 2011-2021 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -70,7 +70,7 @@ Foam::fv::heatTransferModels::function2::function2
( (
IOobject IOobject
( (
type() + ":htc", typedName("htc"),
model.mesh().time().timeName(), model.mesh().time().timeName(),
model.mesh(), model.mesh(),
IOobject::NO_READ, IOobject::NO_READ,

View File

@ -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) 2021 OpenFOAM Foundation \\ / A nd | Copyright (C) 2021-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -169,7 +169,7 @@ Foam::tmp<Foam::volScalarField> Foam::fv::heatTransferModel::AoV() const
{ {
if (!AoVPtr_.valid()) if (!AoVPtr_.valid())
{ {
return volScalarField::New(type() + ":AoV", mesh_, AoV_); return volScalarField::New(typedName("AoV"), mesh_, AoV_);
} }
else else
{ {

View File

@ -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) 2011-2021 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -77,7 +77,7 @@ Foam::fv::heatTransferModels::variable::variable
( (
IOobject IOobject
( (
type() + ":htc", typedName("htc"),
mesh.time().timeName(), mesh.time().timeName(),
mesh, mesh,
IOobject::NO_READ, IOobject::NO_READ,

View File

@ -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) 2013-2020 OpenFOAM Foundation \\ / A nd | Copyright (C) 2013-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -42,7 +42,7 @@ void Foam::SuppressionCollision<CloudType>::collide
volScalarField vDotSweep(sc.vDotSweep()); volScalarField vDotSweep(sc.vDotSweep());
dimensionedScalar Dt("dt", dimTime, dt); dimensionedScalar Dt("dt", dimTime, dt);
volScalarField P(type() + ":p", 1.0 - exp(-vDotSweep*Dt)); volScalarField P(typedName("p"), 1.0 - exp(-vDotSweep*Dt));
forAllIter(typename CloudType, this->owner(), iter) forAllIter(typename CloudType, this->owner(), iter)
{ {

View File

@ -158,7 +158,7 @@ tmp<volScalarField> kinematicSingleLayer::pe()
return volScalarField::New return volScalarField::New
( (
IOobject::modelName("pe", typeName), typedName("pe"),
p_ // Pressure (mapped from primary region) p_ // Pressure (mapped from primary region)
- tpSp // Accumulated particle impingement - tpSp // Accumulated particle impingement
); );
@ -872,7 +872,7 @@ tmp<volScalarField> kinematicSingleLayer::sigma() const
( (
volScalarField::New volScalarField::New
( (
type() + ":sigma", typedName("sigma"),
regionMesh(), regionMesh(),
dimensionedScalar(dimMass/sqr(dimTime), 0), dimensionedScalar(dimMass/sqr(dimTime), 0),
extrapolatedCalculatedFvPatchScalarField::typeName extrapolatedCalculatedFvPatchScalarField::typeName
@ -1086,7 +1086,7 @@ tmp<volScalarField::Internal> kinematicSingleLayer::SYi
{ {
return volScalarField::Internal::New return volScalarField::Internal::New
( (
IOobject::modelName("SY(" + Foam::name(i) + ")", typeName), typedName("SY(" + Foam::name(i) + ")"),
primaryMesh(), primaryMesh(),
dimensionedScalar(dimMass/dimVolume/dimTime, 0) dimensionedScalar(dimMass/dimVolume/dimTime, 0)
); );
@ -1099,7 +1099,7 @@ tmp<volVectorField::Internal> kinematicSingleLayer::SU() const
( (
volVectorField::Internal::New volVectorField::Internal::New
( (
IOobject::modelName("SU", typeName), typedName("SU"),
primaryMesh(), primaryMesh(),
dimensionedVector(dimDensity*dimVelocity/dimTime, Zero) dimensionedVector(dimDensity*dimVelocity/dimTime, Zero)
) )
@ -1135,7 +1135,7 @@ tmp<volScalarField::Internal> kinematicSingleLayer::Sh() const
{ {
return volScalarField::Internal::New return volScalarField::Internal::New
( (
IOobject::modelName("Sh", typeName), typedName("Sh"),
primaryMesh(), primaryMesh(),
dimensionedScalar(dimEnergy/dimVolume/dimTime, 0) dimensionedScalar(dimEnergy/dimVolume/dimTime, 0)
); );

View File

@ -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) 2011-2021 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -75,7 +75,7 @@ tmp<volVectorField::Internal> laminar::Us() const
( (
volVectorField::Internal::New volVectorField::Internal::New
( (
IOobject::modelName("Us", typeName), typedName("Us"),
1.5*filmModel_.U() 1.5*filmModel_.U()
) )
); );

View File

@ -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) 2013-2021 OpenFOAM Foundation \\ / A nd | Copyright (C) 2013-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -81,7 +81,7 @@ thixotropicViscosity::thixotropicViscosity
( (
IOobject IOobject
( (
IOobject::modelName("lambda", typeName), typedName("lambda"),
film.regionMesh().time().timeName(), film.regionMesh().time().timeName(),
film.regionMesh(), film.regionMesh(),
IOobject::MUST_READ, IOobject::MUST_READ,

View File

@ -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) 2017-2021 OpenFOAM Foundation \\ / A nd | Copyright (C) 2017-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -59,7 +59,7 @@ void waxSolventViscosity::correctMu()
( (
film.regionMesh().lookupObject<uniformDimensionedScalarField> film.regionMesh().lookupObject<uniformDimensionedScalarField>
( (
IOobject::modelName("Wwax", waxSolventEvaporation::typeName) Foam::typedName<waxSolventEvaporation>("Wwax")
) )
); );
@ -67,7 +67,7 @@ void waxSolventViscosity::correctMu()
( (
film.regionMesh().lookupObject<uniformDimensionedScalarField> film.regionMesh().lookupObject<uniformDimensionedScalarField>
( (
IOobject::modelName("Wsolvent", waxSolventEvaporation::typeName) Foam::typedName<waxSolventEvaporation>("Wsolvent")
) )
); );
@ -75,7 +75,7 @@ void waxSolventViscosity::correctMu()
( (
film.regionMesh().lookupObject<uniformDimensionedScalarField> film.regionMesh().lookupObject<uniformDimensionedScalarField>
( (
IOobject::modelName("Ysolvent0", waxSolventEvaporation::typeName) Foam::typedName<waxSolventEvaporation>("Ysolvent0")
) )
); );
@ -83,7 +83,7 @@ void waxSolventViscosity::correctMu()
( (
film.regionMesh().lookupObject<volScalarField> film.regionMesh().lookupObject<volScalarField>
( (
IOobject::modelName("Ysolvent", waxSolventEvaporation::typeName) Foam::typedName<waxSolventEvaporation>("Ysolvent")
) )
); );
@ -116,7 +116,7 @@ waxSolventViscosity::waxSolventViscosity
( (
IOobject IOobject
( (
IOobject::modelName("muWax", typeName), typedName("muWax"),
film.regionMesh().time().timeName(), film.regionMesh().time().timeName(),
film.regionMesh(), film.regionMesh(),
IOobject::NO_READ, IOobject::NO_READ,
@ -139,7 +139,7 @@ waxSolventViscosity::waxSolventViscosity
( (
IOobject IOobject
( (
IOobject::modelName("muSolvent", typeName), typedName("muSolvent"),
film.regionMesh().time().timeName(), film.regionMesh().time().timeName(),
film.regionMesh(), film.regionMesh(),
IOobject::NO_READ, IOobject::NO_READ,

View File

@ -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) 2011-2021 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -105,7 +105,7 @@ contactAngleForce::contactAngleForce
( (
IOobject IOobject
( (
IOobject::modelName("contactForceMask", typeName), typedName("contactForceMask"),
filmModel_.time().timeName(), filmModel_.time().timeName(),
filmModel_.regionMesh(), filmModel_.regionMesh(),
IOobject::NO_READ, IOobject::NO_READ,
@ -133,7 +133,7 @@ tmp<fvVectorMatrix> contactAngleForce::correct(volVectorField& U)
( (
volVectorField::New volVectorField::New
( (
IOobject::modelName("contactForce", typeName), typedName("contactForce"),
filmModel_.regionMesh(), filmModel_.regionMesh(),
dimensionedVector(dimForce/dimVolume, Zero) dimensionedVector(dimForce/dimVolume, Zero)
) )

View File

@ -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) 2017-2019 OpenFOAM Foundation \\ / A nd | Copyright (C) 2017-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -63,7 +63,7 @@ distributionContactAngleForce::distributionContactAngleForce
( (
volScalarField::New volScalarField::New
( (
IOobject::modelName("theta", typeName), typedName("theta"),
filmModel_.regionMesh(), filmModel_.regionMesh(),
dimensionedScalar(dimless, 0) dimensionedScalar(dimless, 0)
) )

View File

@ -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) 2017-2021 OpenFOAM Foundation \\ / A nd | Copyright (C) 2017-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -86,7 +86,7 @@ perturbedTemperatureDependentContactAngleForce::theta() const
( (
volScalarField::New volScalarField::New
( (
IOobject::modelName("theta", typeName), typedName("theta"),
filmModel_.regionMesh(), filmModel_.regionMesh(),
dimensionedScalar(dimless, 0) dimensionedScalar(dimless, 0)
) )

View File

@ -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) 2017-2021 OpenFOAM Foundation \\ / A nd | Copyright (C) 2017-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -74,7 +74,7 @@ tmp<volScalarField> temperatureDependentContactAngleForce::theta() const
( (
volScalarField::New volScalarField::New
( (
IOobject::modelName("theta", typeName), typedName("theta"),
filmModel_.regionMesh(), filmModel_.regionMesh(),
dimensionedScalar(dimless, 0) dimensionedScalar(dimless, 0)
) )

View File

@ -59,7 +59,7 @@ constantRadiation::constantRadiation
( (
IOobject IOobject
( (
IOobject::modelName("qrConst", typeName), typedName("qrConst"),
film.time().timeName(), film.time().timeName(),
film.regionMesh(), film.regionMesh(),
IOobject::MUST_READ, IOobject::MUST_READ,
@ -71,7 +71,7 @@ constantRadiation::constantRadiation
( (
IOobject IOobject
( (
IOobject::modelName("mask", typeName), typedName("mask"),
film.time().timeName(), film.time().timeName(),
film.regionMesh(), film.regionMesh(),
IOobject::READ_IF_PRESENT, IOobject::READ_IF_PRESENT,
@ -108,7 +108,7 @@ tmp<volScalarField::Internal> constantRadiation::Shs()
{ {
return volScalarField::Internal::New return volScalarField::Internal::New
( (
IOobject::modelName("Shs", typeName), typedName("Shs"),
mask_*qrConst_*filmModel_.coverage()*absorptivity_ mask_*qrConst_*filmModel_.coverage()*absorptivity_
); );
} }
@ -116,7 +116,7 @@ tmp<volScalarField::Internal> constantRadiation::Shs()
{ {
return volScalarField::Internal::New return volScalarField::Internal::New
( (
IOobject::modelName("Shs", typeName), typedName("Shs"),
film().regionMesh(), film().regionMesh(),
dimensionedScalar(dimMass/pow3(dimTime), 0) dimensionedScalar(dimMass/pow3(dimTime), 0)
); );

View File

@ -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) 2011-2020 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -75,7 +75,7 @@ tmp<volScalarField::Internal> noRadiation::Shs()
{ {
return volScalarField::Internal::New return volScalarField::Internal::New
( (
IOobject::modelName("Shs", typeName), typedName("Shs"),
film().regionMesh(), film().regionMesh(),
dimensionedScalar(dimMass/pow3(dimTime), 0) dimensionedScalar(dimMass/pow3(dimTime), 0)
); );

View File

@ -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) 2012-2020 OpenFOAM Foundation \\ / A nd | Copyright (C) 2012-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -97,7 +97,7 @@ tmp<volScalarField::Internal> primaryRadiation::Shs()
{ {
return volScalarField::Internal::New return volScalarField::Internal::New
( (
IOobject::modelName("Shs", typeName), typedName("Shs"),
qinFilm_*filmModel_.coverage() qinFilm_*filmModel_.coverage()
); );
} }

View File

@ -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) 2011-2020 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -99,7 +99,7 @@ tmp<volScalarField::Internal> standardRadiation::Shs()
{ {
return volScalarField::Internal::New return volScalarField::Internal::New
( (
IOobject::modelName("Shs", typeName), typedName("Shs"),
beta_*qinFilm_*filmModel_.coverage() beta_*qinFilm_*filmModel_.coverage()
*(1 - exp(-kappaBar_*filmModel_.delta()())) *(1 - exp(-kappaBar_*filmModel_.delta()()))
); );

View File

@ -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) 2013-2021 OpenFOAM Foundation \\ / A nd | Copyright (C) 2013-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -75,7 +75,7 @@ solidification::solidification
( (
IOobject IOobject
( (
IOobject::modelName("mass", typeName), typedName("mass"),
film.regionMesh().time().timeName(), film.regionMesh().time().timeName(),
film.regionMesh(), film.regionMesh(),
IOobject::READ_IF_PRESENT, IOobject::READ_IF_PRESENT,
@ -88,7 +88,7 @@ solidification::solidification
( (
IOobject IOobject
( (
IOobject::modelName("thickness", typeName), typedName("thickness"),
film.regionMesh().time().timeName(), film.regionMesh().time().timeName(),
film.regionMesh(), film.regionMesh(),
IOobject::NO_READ, IOobject::NO_READ,

View File

@ -87,7 +87,7 @@ waxSolventEvaporation::waxSolventEvaporation
( (
IOobject IOobject
( (
IOobject::modelName("Wwax", typeName), typedName("Wwax"),
film.regionMesh().time().constant(), film.regionMesh().time().constant(),
film.regionMesh() film.regionMesh()
), ),
@ -97,7 +97,7 @@ waxSolventEvaporation::waxSolventEvaporation
( (
IOobject IOobject
( (
IOobject::modelName("Wsolvent", typeName), typedName("Wsolvent"),
film.regionMesh().time().constant(), film.regionMesh().time().constant(),
film.regionMesh() film.regionMesh()
), ),
@ -107,7 +107,7 @@ waxSolventEvaporation::waxSolventEvaporation
( (
IOobject IOobject
( (
IOobject::modelName("Ysolvent0", typeName), typedName("Ysolvent0"),
film.regionMesh().time().constant(), film.regionMesh().time().constant(),
film.regionMesh(), film.regionMesh(),
IOobject::MUST_READ, IOobject::MUST_READ,
@ -118,7 +118,7 @@ waxSolventEvaporation::waxSolventEvaporation
( (
IOobject IOobject
( (
IOobject::modelName("Ysolvent", typeName), typedName("Ysolvent"),
film.regionMesh().time().timeName(), film.regionMesh().time().timeName(),
film.regionMesh(), film.regionMesh(),
IOobject::MUST_READ, IOobject::MUST_READ,
@ -195,7 +195,7 @@ void waxSolventEvaporation::correctModel
( (
IOobject IOobject
( (
IOobject::modelName("evapRateCoeff", typeName), typedName("evapRateCoeff"),
film.regionMesh().time().timeName(), film.regionMesh().time().timeName(),
film.regionMesh(), film.regionMesh(),
IOobject::NO_READ, IOobject::NO_READ,
@ -210,7 +210,7 @@ void waxSolventEvaporation::correctModel
( (
IOobject IOobject
( (
IOobject::modelName("evapRateInf", typeName), typedName("evapRateInf"),
film.regionMesh().time().timeName(), film.regionMesh().time().timeName(),
film.regionMesh(), film.regionMesh(),
IOobject::NO_READ, IOobject::NO_READ,

View File

@ -597,7 +597,7 @@ tmp<volScalarField::Internal> thermoSingleLayer::SYi
( (
volScalarField::Internal::New volScalarField::Internal::New
( (
IOobject::modelName("SY(" + Foam::name(i) + ")", typeName), typedName("SY(" + Foam::name(i) + ")"),
primaryMesh(), primaryMesh(),
dimensionedScalar(dimMass/dimVolume/dimTime, 0) dimensionedScalar(dimMass/dimVolume/dimTime, 0)
) )
@ -639,7 +639,7 @@ tmp<volScalarField::Internal> thermoSingleLayer::Sh() const
( (
volScalarField::Internal::New volScalarField::Internal::New
( (
IOobject::modelName("Sh", typeName), typedName("Sh"),
primaryMesh(), primaryMesh(),
dimensionedScalar(dimEnergy/dimVolume/dimTime, 0) dimensionedScalar(dimEnergy/dimVolume/dimTime, 0)
) )

View File

@ -115,7 +115,7 @@ Foam::rigidBodyMeshMotionSolver::rigidBodyMeshMotionSolver
( (
IOobject IOobject
( (
"rigidBodyMotionSolver:meshSolver", typedName("meshSolver"),
mesh.time().constant(), mesh.time().constant(),
mesh mesh
), ),

View File

@ -408,7 +408,7 @@ Foam::meshToMesh::mapSrcToTgt
( (
IOobject IOobject
( (
type() + ":interpolate(" + field.name() + ")", typedName("interpolate(" + field.name() + ")"),
tgtMesh.time().timeName(), tgtMesh.time().timeName(),
tgtMesh, tgtMesh,
IOobject::NO_READ, IOobject::NO_READ,
@ -588,7 +588,7 @@ Foam::meshToMesh::mapTgtToSrc
( (
IOobject IOobject
( (
type() + ":interpolate(" + field.name() + ")", typedName("interpolate(" + field.name() + ")"),
srcMesh.time().timeName(), srcMesh.time().timeName(),
srcMesh, srcMesh,
IOobject::NO_READ, IOobject::NO_READ,

View File

@ -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) 2011-2021 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -191,7 +191,7 @@ Foam::interfaceProperties::interfaceProperties
( (
IOobject IOobject
( (
"interfaceProperties:K", typedName("interfaceProperties"),
alpha1_.time().timeName(), alpha1_.time().timeName(),
alpha1_.mesh() alpha1_.mesh()
), ),