thermophysicalModels: Permit wildcard names of thermo dictionaries

This can be useful when reusing thermo configurations across multiple
setups. In one simulation, the fluid might be entirely air, and in
another there might be additional pollutant or fuel species. This could
be defined without changing the species' thermo enties as follows:

    "(mixture|air)"
    {
        specie
        {
            molWeight   28.9;
        }
        thermodynamics
        {
            Hf          0;
            Cv          724.8;
        }
        transport
        {
            mu          1.84e-05;
            Pr          0.7;
        }
    }

This was semi-supported before, but it lead to the wrong name (i.e., the
wildcard string) being stored in the base specie class. Now the name is
passed through the thermo constructors, so it is always correct.
This commit is contained in:
Will Bainbridge
2023-06-08 09:46:12 +01:00
parent f25278f9e2
commit 5233335924
116 changed files with 613 additions and 516 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) 2012-2018 OpenFOAM Foundation \\ / A nd | Copyright (C) 2012-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -55,8 +55,8 @@ int main(int argc, char *argv[])
dictionary dict(IFstream("thermoDict")()); dictionary dict(IFstream("thermoDict")());
ThermoType t1(dict.subDict("specie1")); ThermoType t1("specie1", dict.subDict("specie1"));
ThermoType t2(dict.subDict("specie2")); ThermoType t2("specie2", dict.subDict("specie2"));
Info<< "Checking Cp of mixture of hConstThermo" << endl; Info<< "Checking Cp of mixture of hConstThermo" << endl;

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-2019 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -101,48 +101,23 @@ int main(int argc, char *argv[])
scalar stoicCO2 = n; scalar stoicCO2 = n;
scalar stoicH2O = m/2.0; scalar stoicH2O = m/2.0;
thermo FUEL thermo FUEL("fuel", thermoData.subDict(fuelName));
(
"fuel",
thermo(thermoData.subDict(fuelName))
);
Info<< "fuel " << FUEL << ';' << endl; Info<< "fuel " << FUEL << ';' << endl;
FUEL *= FUEL.W(); FUEL *= FUEL.W();
thermo O2 thermo O2("O2", thermoData.subDict("O2"));
(
"O2",
thermo(thermoData.subDict("O2"))
);
O2 *= O2.W(); O2 *= O2.W();
thermo N2 thermo N2("N2", thermoData.subDict("N2"));
(
"N2",
thermo(thermoData.subDict("N2"))
);
N2 *= N2.W(); N2 *= N2.W();
thermo CO2 thermo CO2("CO2", thermoData.subDict("CO2"));
(
"CO2",
thermo(thermoData.subDict("CO2"))
);
CO2 *= CO2.W(); CO2 *= CO2.W();
thermo H2O thermo H2O("H2O", thermoData.subDict("H2O"));
(
"H2O",
thermo(thermoData.subDict("H2O"))
);
H2O *= H2O.W(); H2O *= H2O.W();
thermo oxidant thermo oxidant("oxidant", stoicO2*O2 + stoicN2*N2);
(
"oxidant",
stoicO2*O2
+ stoicN2*N2
);
Info<< "oxidant " << (1/oxidant.Y())*oxidant << ';' << endl; Info<< "oxidant " << (1/oxidant.Y())*oxidant << ';' << endl;
dimensionedScalar stoichiometricAirFuelMassRatio dimensionedScalar stoichiometricAirFuelMassRatio

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-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -77,19 +77,19 @@ int main(int argc, char *argv[])
const scalar T = 3000.0; const scalar T = 3000.0;
// Oxidant (mole-based) // Oxidant (mole-based)
thermo O2(thermoData.subDict("O2")); O2 *= O2.W(); thermo O2("O2", thermoData.subDict("O2")); O2 *= O2.W();
thermo N2(thermoData.subDict("N2")); N2 *= N2.W(); thermo N2("N2", thermoData.subDict("N2")); N2 *= N2.W();
// Intermediates (mole-based) // Intermediates (mole-based)
thermo H2(thermoData.subDict("H2")); H2 *= H2.W(); thermo H2("H2", thermoData.subDict("H2")); H2 *= H2.W();
thermo OH(thermoData.subDict("OH")); OH *= OH.W(); thermo OH("OH", thermoData.subDict("OH")); OH *= OH.W();
thermo H(thermoData.subDict("H")); H *= H.W(); thermo H("H", thermoData.subDict("H")); H *= H.W();
thermo O(thermoData.subDict("O")); O *= O.W(); thermo O("O", thermoData.subDict("O")); O *= O.W();
// Products (mole-based) // Products (mole-based)
thermo CO2(thermoData.subDict("CO2")); CO2 *= CO2.W(); thermo CO2("CO2", thermoData.subDict("CO2")); CO2 *= CO2.W();
thermo H2O(thermoData.subDict("H2O")); H2O *= H2O.W(); thermo H2O("H2O", thermoData.subDict("H2O")); H2O *= H2O.W();
thermo CO(thermoData.subDict("CO")); CO *= CO.W(); thermo CO("CO", thermoData.subDict("CO")); CO *= CO.W();
SLPtrList<thermo> EQreactions; SLPtrList<thermo> EQreactions;

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-2019 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -102,19 +102,19 @@ int main(int argc, char *argv[])
<< nl << endl; << nl << endl;
// Reactants (mole-based) // Reactants (mole-based)
thermo FUEL(thermoData.subDict(fuelName)); FUEL *= FUEL.W(); thermo FUEL(fuelName, thermoData.subDict(fuelName)); FUEL *= FUEL.W();
// Oxidant (mole-based) // Oxidant (mole-based)
thermo O2(thermoData.subDict("O2")); O2 *= O2.W(); thermo O2("O2", thermoData.subDict("O2")); O2 *= O2.W();
thermo N2(thermoData.subDict("N2")); N2 *= N2.W(); thermo N2("N2", thermoData.subDict("N2")); N2 *= N2.W();
// Intermediates (mole-based) // Intermediates (mole-based)
thermo H2(thermoData.subDict("H2")); H2 *= H2.W(); thermo H2("H2", thermoData.subDict("H2")); H2 *= H2.W();
// Products (mole-based) // Products (mole-based)
thermo CO2(thermoData.subDict("CO2")); CO2 *= CO2.W(); thermo CO2("CO2", thermoData.subDict("CO2")); CO2 *= CO2.W();
thermo H2O(thermoData.subDict("H2O")); H2O *= H2O.W(); thermo H2O("H2O", thermoData.subDict("H2O")); H2O *= H2O.W();
thermo CO(thermoData.subDict("CO")); CO *= CO.W(); thermo CO("CO", thermoData.subDict("CO")); CO *= CO.W();
// Product dissociation reactions // Product dissociation reactions

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-2019 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -97,22 +97,38 @@ int main(int argc, char *argv[])
dictionary thermoData(thermoDataFile); dictionary thermoData(thermoDataFile);
const thermo reactant0(thermoData.subDict(rMix[0].name())); const thermo reactant0
(
rMix[0].name(),
thermoData.subDict(rMix[0].name())
);
thermo reactants(rMix[0].volFrac()*reactant0.rho(p, T0)*reactant0); thermo reactants(rMix[0].volFrac()*reactant0.rho(p, T0)*reactant0);
for (label i=1; i<rMix.size(); i++) for (label i=1; i<rMix.size(); i++)
{ {
const thermo reactanti(thermoData.subDict(rMix[i].name())); const thermo reactanti
(
rMix[i].name(),
thermoData.subDict(rMix[i].name())
);
reactants += rMix[i].volFrac()*reactanti.rho(p, T0)*reactanti; reactants += rMix[i].volFrac()*reactanti.rho(p, T0)*reactanti;
} }
const thermo product0(thermoData.subDict(pMix[0].name())); const thermo product0
(
pMix[0].name(),
thermoData.subDict(pMix[0].name())
);
thermo products(pMix[0].volFrac()*product0.rho(p, T0)*product0); thermo products(pMix[0].volFrac()*product0.rho(p, T0)*product0);
for (label i=1; i<pMix.size(); i++) for (label i=1; i<pMix.size(); i++)
{ {
const thermo producti(thermoData.subDict(pMix[i].name())); const thermo producti
(
pMix[i].name(),
thermoData.subDict(pMix[i].name())
);
products += pMix[i].volFrac()*producti.rho(p, T0)*producti; products += pMix[i].volFrac()*producti.rho(p, T0)*producti;
} }

View File

@ -187,7 +187,7 @@ const solidType& thermalBaffle1DFvPatchScalarField<solidType>::solid() const
{ {
if (solidPtr_.empty()) if (solidPtr_.empty())
{ {
solidPtr_.reset(new solidType(solidDict_)); solidPtr_.reset(new solidType("solid", solidDict_));
} }
return solidPtr_(); return solidPtr_();

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-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -37,7 +37,7 @@ Foam::pureMixture<ThermoType>::pureMixture
) )
: :
basicMixture(thermoDict, mesh, phaseName), basicMixture(thermoDict, mesh, phaseName),
mixture_(thermoDict.subDict("mixture")) mixture_("mixture", thermoDict.subDict("mixture"))
{} {}
@ -46,7 +46,7 @@ Foam::pureMixture<ThermoType>::pureMixture
template<class ThermoType> template<class ThermoType>
void Foam::pureMixture<ThermoType>::read(const dictionary& thermoDict) void Foam::pureMixture<ThermoType>::read(const dictionary& thermoDict)
{ {
mixture_ = ThermoType(thermoDict.subDict("mixture")); mixture_ = ThermoType("mixture", thermoDict.subDict("mixture"));
} }

View File

@ -51,9 +51,9 @@ Foam::egrMixture<ThermoType>::egrMixture
stoicRatio_(thermoDict.lookup("stoichiometricAirFuelMassRatio")), stoicRatio_(thermoDict.lookup("stoichiometricAirFuelMassRatio")),
fuel_(thermoDict.subDict("fuel")), fuel_("fuel", thermoDict.subDict("fuel")),
oxidant_(thermoDict.subDict("oxidant")), oxidant_("oxidant", thermoDict.subDict("oxidant")),
products_(thermoDict.subDict("burntProducts")), products_("burntProducts", thermoDict.subDict("burntProducts")),
mixture_("mixture", fuel_), mixture_("mixture", fuel_),
@ -102,9 +102,10 @@ void Foam::egrMixture<ThermoType>::read(const dictionary& thermoDict)
{ {
stoicRatio_ = thermoDict.lookup("stoichiometricAirFuelMassRatio"); stoicRatio_ = thermoDict.lookup("stoichiometricAirFuelMassRatio");
fuel_ = ThermoType(thermoDict.subDict("fuel")); fuel_ = ThermoType("fuel", thermoDict.subDict("fuel"));
oxidant_ = ThermoType(thermoDict.subDict("oxidant")); oxidant_ = ThermoType("oxidant", thermoDict.subDict("oxidant"));
products_ = ThermoType(thermoDict.subDict("burntProducts")); products_ =
ThermoType("burntProducts", thermoDict.subDict("burntProducts"));
} }

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-2022 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -50,8 +50,8 @@ Foam::homogeneousMixture<ThermoType>::homogeneousMixture
phaseName phaseName
), ),
reactants_(thermoDict.subDict("reactants")), reactants_("reactants", thermoDict.subDict("reactants")),
products_(thermoDict.subDict("products")), products_("products", thermoDict.subDict("products")),
mixture_("mixture", reactants_), mixture_("mixture", reactants_),
b_(Y("b")) b_(Y("b"))
{} {}
@ -86,8 +86,8 @@ const ThermoType& Foam::homogeneousMixture<ThermoType>::mixture
template<class ThermoType> template<class ThermoType>
void Foam::homogeneousMixture<ThermoType>::read(const dictionary& thermoDict) void Foam::homogeneousMixture<ThermoType>::read(const dictionary& thermoDict)
{ {
reactants_ = ThermoType(thermoDict.subDict("reactants")); reactants_ = ThermoType("reactants", thermoDict.subDict("reactants"));
products_ = ThermoType(thermoDict.subDict("products")); products_ = ThermoType("products", thermoDict.subDict("products"));
} }

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-2022 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -56,9 +56,9 @@ Foam::inhomogeneousMixture<ThermoType>::inhomogeneousMixture
stoicRatio_(thermoDict.lookup("stoichiometricAirFuelMassRatio")), stoicRatio_(thermoDict.lookup("stoichiometricAirFuelMassRatio")),
fuel_(thermoDict.subDict("fuel")), fuel_("fuel", thermoDict.subDict("fuel")),
oxidant_(thermoDict.subDict("oxidant")), oxidant_("oxidant", thermoDict.subDict("oxidant")),
products_(thermoDict.subDict("burntProducts")), products_("burntProducts", thermoDict.subDict("burntProducts")),
mixture_("mixture", fuel_), mixture_("mixture", fuel_),
@ -100,9 +100,10 @@ void Foam::inhomogeneousMixture<ThermoType>::read(const dictionary& thermoDict)
{ {
stoicRatio_ = thermoDict.lookup("stoichiometricAirFuelMassRatio"); stoicRatio_ = thermoDict.lookup("stoichiometricAirFuelMassRatio");
fuel_ = ThermoType(thermoDict.subDict("fuel")); fuel_ = ThermoType("fuel", thermoDict.subDict("fuel"));
oxidant_ = ThermoType(thermoDict.subDict("oxidant")); oxidant_ = ThermoType("oxidant", thermoDict.subDict("oxidant"));
products_ = ThermoType(thermoDict.subDict("burntProducts")); products_ =
ThermoType("burntProducts", thermoDict.subDict("burntProducts"));
} }

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-2022 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -41,7 +41,7 @@ Foam::multicomponentMixture<ThermoType>::readSpeciesData
specieThermos.set specieThermos.set
( (
i, i,
new ThermoType(thermoDict.subDict(species_[i])) new ThermoType(species_[i], thermoDict.subDict(species_[i]))
); );
} }

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-2022 OpenFOAM Foundation \\ / A nd | Copyright (C) 2017-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -36,7 +36,7 @@ Foam::singleComponentMixture<ThermoType>::singleComponentMixture
) )
: :
basicSpecieMixture(thermoDict, wordList(), mesh, phaseName), basicSpecieMixture(thermoDict, wordList(), mesh, phaseName),
mixture_(thermoDict.subDict("mixture")) mixture_("mixture", thermoDict.subDict("mixture"))
{} {}
@ -55,7 +55,7 @@ void Foam::singleComponentMixture<ThermoType>::read
const dictionary& thermoDict const dictionary& thermoDict
) )
{ {
mixture_ = ThermoType(thermoDict.subDict("mixture")); mixture_ = ThermoType("mixture", thermoDict.subDict("mixture"));
} }

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-2022 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -57,9 +57,9 @@ Foam::veryInhomogeneousMixture<ThermoType>::veryInhomogeneousMixture
stoicRatio_(thermoDict.lookup("stoichiometricAirFuelMassRatio")), stoicRatio_(thermoDict.lookup("stoichiometricAirFuelMassRatio")),
fuel_(thermoDict.subDict("fuel")), fuel_("fuel", thermoDict.subDict("fuel")),
oxidant_(thermoDict.subDict("oxidant")), oxidant_("oxidant", thermoDict.subDict("oxidant")),
products_(thermoDict.subDict("burntProducts")), products_("burntProducts", thermoDict.subDict("burntProducts")),
mixture_("mixture", fuel_), mixture_("mixture", fuel_),
@ -102,9 +102,10 @@ void Foam::veryInhomogeneousMixture<ThermoType>::read
const dictionary& thermoDict const dictionary& thermoDict
) )
{ {
fuel_ = ThermoType(thermoDict.subDict("fuel")); fuel_ = ThermoType("fuel", thermoDict.subDict("fuel"));
oxidant_ = ThermoType(thermoDict.subDict("oxidant")); oxidant_ = ThermoType("oxidant", thermoDict.subDict("oxidant"));
products_ = ThermoType(thermoDict.subDict("burntProducts")); products_ =
ThermoType("burntProducts", thermoDict.subDict("burntProducts"));
} }

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-2022 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -31,10 +31,11 @@ License
template<class Thermo> template<class Thermo>
Foam::constAnisoSolidTransport<Thermo>::constAnisoSolidTransport Foam::constAnisoSolidTransport<Thermo>::constAnisoSolidTransport
( (
const word& name,
const dictionary& dict const dictionary& dict
) )
: :
Thermo(dict), Thermo(name, dict),
kappa_(dict.subDict("transport").lookup("kappa")) kappa_(dict.subDict("transport").lookup("kappa"))
{} {}

View File

@ -76,16 +76,13 @@ class constAnisoSolidTransport
vector kappa_; vector kappa_;
// Private Member Functions
//- Construct from components
inline constAnisoSolidTransport(const Thermo& t, const vector kappa);
public: public:
// Constructors // Constructors
//- Construct from components
inline constAnisoSolidTransport(const Thermo& t, const vector kappa);
//- Construct as named copy //- Construct as named copy
inline constAnisoSolidTransport inline constAnisoSolidTransport
( (
@ -93,8 +90,8 @@ public:
const constAnisoSolidTransport& const constAnisoSolidTransport&
); );
//- Construct from dictionary //- Construct from name and dictionary
constAnisoSolidTransport(const dictionary&); constAnisoSolidTransport(const word& name, const dictionary& dict);
//- Construct and return a clone //- Construct and return a clone
inline autoPtr<constAnisoSolidTransport> clone() const; inline autoPtr<constAnisoSolidTransport> clone() 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-2022 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -31,10 +31,11 @@ License
template<class Thermo> template<class Thermo>
Foam::constIsoSolidTransport<Thermo>::constIsoSolidTransport Foam::constIsoSolidTransport<Thermo>::constIsoSolidTransport
( (
const word& name,
const dictionary& dict const dictionary& dict
) )
: :
Thermo(dict), Thermo(name, dict),
kappa_(dict.subDict("transport").lookup<scalar>("kappa")) kappa_(dict.subDict("transport").lookup<scalar>("kappa"))
{} {}

View File

@ -77,16 +77,13 @@ class constIsoSolidTransport
scalar kappa_; scalar kappa_;
// Private Member Functions
//- Construct from components
inline constIsoSolidTransport(const Thermo& t, const scalar kappa);
public: public:
// Constructors // Constructors
//- Construct from components
inline constIsoSolidTransport(const Thermo& t, const scalar kappa);
//- Construct as named copy //- Construct as named copy
inline constIsoSolidTransport inline constIsoSolidTransport
( (
@ -94,8 +91,8 @@ public:
const constIsoSolidTransport& const constIsoSolidTransport&
); );
//- Construct from dictionary //- Construct from name and dictionary
constIsoSolidTransport(const dictionary& dict); constIsoSolidTransport(const word& name, const dictionary& dict);
//- Construct and return a clone //- Construct and return a clone
inline autoPtr<constIsoSolidTransport> clone() const; inline autoPtr<constIsoSolidTransport> clone() 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-2022 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -31,10 +31,11 @@ License
template<class Thermo> template<class Thermo>
Foam::exponentialSolidTransport<Thermo>::exponentialSolidTransport Foam::exponentialSolidTransport<Thermo>::exponentialSolidTransport
( (
const word& name,
const dictionary& dict const dictionary& dict
) )
: :
Thermo(dict), Thermo(name, dict),
kappa0_(0.0), kappa0_(0.0),
n0_(0.0), n0_(0.0),
Tref_(0.0) Tref_(0.0)

View File

@ -80,7 +80,9 @@ class exponentialSolidTransport
scalar Tref_; scalar Tref_;
// Private Member Functions public:
// Constructors
//- Construct from components //- Construct from components
inline exponentialSolidTransport inline exponentialSolidTransport
@ -91,11 +93,6 @@ class exponentialSolidTransport
const scalar Tref const scalar Tref
); );
public:
// Constructors
//- Construct as named copy //- Construct as named copy
inline exponentialSolidTransport inline exponentialSolidTransport
( (
@ -103,8 +100,8 @@ public:
const exponentialSolidTransport& const exponentialSolidTransport&
); );
//- Construct from dictionary //- Construct from name and dictionary
exponentialSolidTransport(const dictionary&); exponentialSolidTransport(const word& name, const dictionary& dict);
//- Construct and return a clone //- Construct and return a clone
inline autoPtr<exponentialSolidTransport> clone() const; inline autoPtr<exponentialSolidTransport> clone() 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) 2013-2022 OpenFOAM Foundation \\ / A nd | Copyright (C) 2013-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -31,10 +31,11 @@ License
template<class Thermo, int PolySize> template<class Thermo, int PolySize>
Foam::polynomialSolidTransport<Thermo, PolySize>::polynomialSolidTransport Foam::polynomialSolidTransport<Thermo, PolySize>::polynomialSolidTransport
( (
const word& name,
const dictionary& dict const dictionary& dict
) )
: :
Thermo(dict), Thermo(name, dict),
kappaCoeffs_ kappaCoeffs_
( (
dict.subDict("transport").lookup dict.subDict("transport").lookup

View File

@ -113,7 +113,9 @@ class polynomialSolidTransport
Polynomial<PolySize> kappaCoeffs_; Polynomial<PolySize> kappaCoeffs_;
// Private Member Functions public:
// Constructors
//- Construct from components //- Construct from components
inline polynomialSolidTransport inline polynomialSolidTransport
@ -122,11 +124,6 @@ class polynomialSolidTransport
const Polynomial<PolySize>& kappaPoly const Polynomial<PolySize>& kappaPoly
); );
public:
// Constructors
//- Construct as named copy //- Construct as named copy
inline polynomialSolidTransport inline polynomialSolidTransport
( (
@ -134,8 +131,8 @@ public:
const polynomialSolidTransport& const polynomialSolidTransport&
); );
//- Construct from dictionary //- Construct from name and dictionary
polynomialSolidTransport(const dictionary& dict); polynomialSolidTransport(const word& name, const dictionary& dict);
//- Construct and return a clone //- Construct and return a clone
inline autoPtr<polynomialSolidTransport> clone() const; inline autoPtr<polynomialSolidTransport> clone() 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) 2021-2022 OpenFOAM Foundation \\ / A nd | Copyright (C) 2021-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -31,10 +31,11 @@ License
template<class Thermo> template<class Thermo>
Foam::tabulatedSolidTransport<Thermo>::tabulatedSolidTransport Foam::tabulatedSolidTransport<Thermo>::tabulatedSolidTransport
( (
const word& name,
const dictionary& dict const dictionary& dict
) )
: :
Thermo(dict), Thermo(name, dict),
kappa_("kappa", dict.subDict("transport").subDict("kappa")) kappa_("kappa", dict.subDict("transport").subDict("kappa"))
{} {}

View File

@ -101,7 +101,9 @@ class tabulatedSolidTransport
nonUniformTable kappa_; nonUniformTable kappa_;
// Private Member Functions public:
// Constructors
//- Construct from components //- Construct from components
inline tabulatedSolidTransport inline tabulatedSolidTransport
@ -110,11 +112,6 @@ class tabulatedSolidTransport
const nonUniformTable& kappa const nonUniformTable& kappa
); );
public:
// Constructors
//- Construct as named copy //- Construct as named copy
inline tabulatedSolidTransport inline tabulatedSolidTransport
( (
@ -122,8 +119,8 @@ public:
const tabulatedSolidTransport& const tabulatedSolidTransport&
); );
//- Construct from dictionary //- Construct from name and dictionary
tabulatedSolidTransport(const dictionary&); tabulatedSolidTransport(const word& name, const dictionary& dict);
//- Construct and return a clone //- Construct and return a clone
inline autoPtr<tabulatedSolidTransport> clone() const; inline autoPtr<tabulatedSolidTransport> clone() 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) 2015-2019 OpenFOAM Foundation \\ / A nd | Copyright (C) 2015-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -31,10 +31,11 @@ License
template<class Specie> template<class Specie>
Foam::Boussinesq<Specie>::Boussinesq Foam::Boussinesq<Specie>::Boussinesq
( (
const word& name,
const dictionary& dict const dictionary& dict
) )
: :
Specie(dict), Specie(name, dict),
rho0_(dict.subDict("equationOfState").lookup<scalar>("rho0")), rho0_(dict.subDict("equationOfState").lookup<scalar>("rho0")),
T0_(dict.subDict("equationOfState").lookup<scalar>("T0")), T0_(dict.subDict("equationOfState").lookup<scalar>("T0")),
beta_(dict.subDict("equationOfState").lookup<scalar>("beta")) beta_(dict.subDict("equationOfState").lookup<scalar>("beta"))

View File

@ -136,8 +136,8 @@ public:
const scalar beta const scalar beta
); );
//- Construct from dictionary //- Construct from name and dictionary
Boussinesq(const dictionary& dict); Boussinesq(const word& name, const dictionary& dict);
//- Construct as named copy //- Construct as named copy
inline Boussinesq inline Boussinesq

View File

@ -31,7 +31,10 @@ License
template<class Specie> template<class Specie>
inline Foam::Boussinesq<Specie>::Boussinesq inline Foam::Boussinesq<Specie>::Boussinesq
( (
const Specie& sp, const scalar rho0, const scalar T0, const scalar beta const Specie& sp,
const scalar rho0,
const scalar T0,
const scalar beta
) )
: :
Specie(sp), Specie(sp),

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) 2014-2019 OpenFOAM Foundation \\ / A nd | Copyright (C) 2014-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -31,10 +31,11 @@ License
template<class Specie> template<class Specie>
Foam::PengRobinsonGas<Specie>::PengRobinsonGas Foam::PengRobinsonGas<Specie>::PengRobinsonGas
( (
const word& name,
const dictionary& dict const dictionary& dict
) )
: :
Specie(dict), Specie(name, dict),
Tc_(dict.subDict("equationOfState").lookup<scalar>("Tc")), Tc_(dict.subDict("equationOfState").lookup<scalar>("Tc")),
Vc_(dict.subDict("equationOfState").lookup<scalar>("Vc")), Vc_(dict.subDict("equationOfState").lookup<scalar>("Vc")),
Zc_(1.0), Zc_(1.0),

View File

@ -144,8 +144,8 @@ public:
const scalar& omega const scalar& omega
); );
//- Construct from dictionary //- Construct from name and dictionary
PengRobinsonGas(const dictionary& dict); PengRobinsonGas(const word& name, const dictionary& dict);
//- Construct as named copy //- Construct as named copy
inline PengRobinsonGas(const word& name, const PengRobinsonGas&); inline PengRobinsonGas(const word& name, const PengRobinsonGas&);

View File

@ -26,7 +26,7 @@ License
#include "PengRobinsonGas.H" #include "PengRobinsonGas.H"
#include "mathematicalConstants.H" #include "mathematicalConstants.H"
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class Specie> template<class Specie>
inline Foam::PengRobinsonGas<Specie>::PengRobinsonGas inline Foam::PengRobinsonGas<Specie>::PengRobinsonGas
@ -48,8 +48,6 @@ inline Foam::PengRobinsonGas<Specie>::PengRobinsonGas
{} {}
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class Specie> template<class Specie>
inline Foam::PengRobinsonGas<Specie>::PengRobinsonGas inline Foam::PengRobinsonGas<Specie>::PengRobinsonGas
( (

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-2019 OpenFOAM Foundation \\ / A nd | Copyright (C) 2013-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -31,10 +31,11 @@ License
template<class Specie> template<class Specie>
Foam::adiabaticPerfectFluid<Specie>::adiabaticPerfectFluid Foam::adiabaticPerfectFluid<Specie>::adiabaticPerfectFluid
( (
const word& name,
const dictionary& dict const dictionary& dict
) )
: :
Specie(dict), Specie(name, dict),
p0_(dict.subDict("equationOfState").lookup<scalar>("p0")), p0_(dict.subDict("equationOfState").lookup<scalar>("p0")),
rho0_(dict.subDict("equationOfState").lookup<scalar>("rho0")), rho0_(dict.subDict("equationOfState").lookup<scalar>("rho0")),
gamma_(dict.subDict("equationOfState").lookup<scalar>("gamma")), gamma_(dict.subDict("equationOfState").lookup<scalar>("gamma")),

View File

@ -143,8 +143,8 @@ public:
const scalar B const scalar B
); );
//- Construct from dictionary //- Construct from name and dictionary
adiabaticPerfectFluid(const dictionary& dict); adiabaticPerfectFluid(const word& name, const dictionary& dict);
//- Construct as named copy //- Construct as named copy
inline adiabaticPerfectFluid inline adiabaticPerfectFluid

View File

@ -25,7 +25,7 @@ License
#include "adiabaticPerfectFluid.H" #include "adiabaticPerfectFluid.H"
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class Specie> template<class Specie>
inline Foam::adiabaticPerfectFluid<Specie>::adiabaticPerfectFluid inline Foam::adiabaticPerfectFluid<Specie>::adiabaticPerfectFluid
@ -45,8 +45,6 @@ inline Foam::adiabaticPerfectFluid<Specie>::adiabaticPerfectFluid
{} {}
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class Specie> template<class Specie>
inline Foam::adiabaticPerfectFluid<Specie>::adiabaticPerfectFluid inline Foam::adiabaticPerfectFluid<Specie>::adiabaticPerfectFluid
( (

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-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -29,9 +29,13 @@ License
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class Specie, int PolySize> template<class Specie, int PolySize>
Foam::icoPolynomial<Specie, PolySize>::icoPolynomial(const dictionary& dict) Foam::icoPolynomial<Specie, PolySize>::icoPolynomial
(
const word& name,
const dictionary& dict
)
: :
Specie(dict), Specie(name, dict),
rhoCoeffs_ rhoCoeffs_
( (
dict.subDict("equationOfState").lookup dict.subDict("equationOfState").lookup

View File

@ -131,8 +131,8 @@ public:
const Polynomial<PolySize>& rhoPoly const Polynomial<PolySize>& rhoPoly
); );
//- Construct from dictionary //- Construct from name and dictionary
icoPolynomial(const dictionary& dict); icoPolynomial(const word& name, const dictionary& dict);
//- Construct as named copy //- Construct as named copy
inline icoPolynomial(const word& name, const icoPolynomial&); inline icoPolynomial(const word& name, const icoPolynomial&);

View File

@ -25,7 +25,7 @@ License
#include "icoPolynomial.H" #include "icoPolynomial.H"
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class Specie, int PolySize> template<class Specie, int PolySize>
inline Foam::icoPolynomial<Specie, PolySize>::icoPolynomial inline Foam::icoPolynomial<Specie, PolySize>::icoPolynomial
@ -39,8 +39,6 @@ inline Foam::icoPolynomial<Specie, PolySize>::icoPolynomial
{} {}
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class Specie, int PolySize> template<class Specie, int PolySize>
inline Foam::icoPolynomial<Specie, PolySize>::icoPolynomial inline Foam::icoPolynomial<Specie, PolySize>::icoPolynomial
( (

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 OpenFOAM Foundation \\ / A nd | Copyright (C) 2020-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -29,9 +29,13 @@ License
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class Specie> template<class Specie>
Foam::icoTabulated<Specie>::icoTabulated(const dictionary& dict) Foam::icoTabulated<Specie>::icoTabulated
(
const word& name,
const dictionary& dict
)
: :
Specie(dict), Specie(name, dict),
rho_("rho", dict.subDict("equationOfState").subDict("rho")) rho_("rho", dict.subDict("equationOfState").subDict("rho"))
{} {}

View File

@ -91,7 +91,10 @@ class icoTabulated
: :
public Specie public Specie
{ {
typedef Function1s::NonUniformTable<scalar> nonUniformTable; // Private Typedefs
//- Table type
typedef Function1s::NonUniformTable<scalar> nonUniformTable;
// Private Data // Private Data
@ -111,8 +114,8 @@ public:
const nonUniformTable& rho const nonUniformTable& rho
); );
//- Construct from dictionary //- Construct from name and dictionary
icoTabulated(const dictionary& dict); icoTabulated(const word& name, const dictionary& dict);
//- Construct as named copy //- Construct as named copy
inline icoTabulated(const word& name, const icoTabulated&); inline icoTabulated(const word& name, const icoTabulated&);

View File

@ -25,7 +25,7 @@ License
#include "icoTabulated.H" #include "icoTabulated.H"
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class Specie> template<class Specie>
inline Foam::icoTabulated<Specie>::icoTabulated inline Foam::icoTabulated<Specie>::icoTabulated
@ -39,8 +39,6 @@ inline Foam::icoTabulated<Specie>::icoTabulated
{} {}
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class Specie> template<class Specie>
inline Foam::icoTabulated<Specie>::icoTabulated inline Foam::icoTabulated<Specie>::icoTabulated
( (

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-2019 OpenFOAM Foundation \\ / A nd | Copyright (C) 2012-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -31,10 +31,11 @@ License
template<class Specie> template<class Specie>
Foam::incompressiblePerfectGas<Specie>::incompressiblePerfectGas Foam::incompressiblePerfectGas<Specie>::incompressiblePerfectGas
( (
const word& name,
const dictionary& dict const dictionary& dict
) )
: :
Specie(dict), Specie(name, dict),
pRef_(dict.subDict("equationOfState").lookup<scalar>("pRef")) pRef_(dict.subDict("equationOfState").lookup<scalar>("pRef"))
{} {}

View File

@ -118,8 +118,8 @@ public:
//- Construct from components //- Construct from components
inline incompressiblePerfectGas(const Specie& sp, const scalar pRef); inline incompressiblePerfectGas(const Specie& sp, const scalar pRef);
//- Construct from dictionary //- Construct from name and dictionary
incompressiblePerfectGas(const dictionary& dict); incompressiblePerfectGas(const word& name, const dictionary& dict);
//- Construct as named copy //- Construct as named copy
inline incompressiblePerfectGas inline incompressiblePerfectGas

View File

@ -31,7 +31,8 @@ License
template<class Specie> template<class Specie>
inline Foam::incompressiblePerfectGas<Specie>::incompressiblePerfectGas inline Foam::incompressiblePerfectGas<Specie>::incompressiblePerfectGas
( (
const Specie& sp, const scalar pRef const Specie& sp,
const scalar pRef
) )
: :
Specie(sp), Specie(sp),

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-2019 OpenFOAM Foundation \\ / A nd | Copyright (C) 2013-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -29,9 +29,9 @@ License
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class Specie> template<class Specie>
Foam::linear<Specie>::linear(const dictionary& dict) Foam::linear<Specie>::linear(const word& name, const dictionary& dict)
: :
Specie(dict), Specie(name, dict),
psi_(dict.subDict("equationOfState").lookup<scalar>("psi")), psi_(dict.subDict("equationOfState").lookup<scalar>("psi")),
rho0_(dict.subDict("equationOfState").lookup<scalar>("rho0")) rho0_(dict.subDict("equationOfState").lookup<scalar>("rho0"))
{} {}

View File

@ -129,8 +129,8 @@ public:
const scalar rho0 const scalar rho0
); );
//- Construct from dictionary //- Construct from name and dictionary
linear(const dictionary& dict); linear(const word& name, const dictionary& dict);
//- Construct as named copy //- Construct as named copy
inline linear(const word& name, const linear&); inline linear(const word& name, const linear&);

View File

@ -25,7 +25,7 @@ License
#include "linear.H" #include "linear.H"
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class Specie> template<class Specie>
inline Foam::linear<Specie>::linear inline Foam::linear<Specie>::linear
@ -41,8 +41,6 @@ inline Foam::linear<Specie>::linear
{} {}
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class Specie> template<class Specie>
inline Foam::linear<Specie>::linear inline Foam::linear<Specie>::linear
( (

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-2019 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -29,9 +29,13 @@ License
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class Specie> template<class Specie>
Foam::perfectFluid<Specie>::perfectFluid(const dictionary& dict) Foam::perfectFluid<Specie>::perfectFluid
(
const word& name,
const dictionary& dict
)
: :
Specie(dict), Specie(name, dict),
R_(dict.subDict("equationOfState").lookup<scalar>("R")), R_(dict.subDict("equationOfState").lookup<scalar>("R")),
rho0_(dict.subDict("equationOfState").lookup<scalar>("rho0")) rho0_(dict.subDict("equationOfState").lookup<scalar>("rho0"))
{} {}

View File

@ -133,8 +133,8 @@ public:
const scalar rho0 const scalar rho0
); );
//- Construct from dictionary //- Construct from name and dictionary
perfectFluid(const dictionary& dict); perfectFluid(const word& name, const dictionary& dict);
//- Construct as named copy //- Construct as named copy
inline perfectFluid(const word& name, const perfectFluid&); inline perfectFluid(const word& name, const perfectFluid&);

View File

@ -25,7 +25,7 @@ License
#include "perfectFluid.H" #include "perfectFluid.H"
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class Specie> template<class Specie>
inline Foam::perfectFluid<Specie>::perfectFluid inline Foam::perfectFluid<Specie>::perfectFluid
@ -41,8 +41,6 @@ inline Foam::perfectFluid<Specie>::perfectFluid
{} {}
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class Specie> template<class Specie>
inline Foam::perfectFluid<Specie>::perfectFluid inline Foam::perfectFluid<Specie>::perfectFluid
( (

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-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -29,9 +29,9 @@ License
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class Specie> template<class Specie>
Foam::perfectGas<Specie>::perfectGas(const dictionary& dict) Foam::perfectGas<Specie>::perfectGas(const word& name, const dictionary& dict)
: :
Specie(dict) Specie(name, dict)
{} {}

View File

@ -103,8 +103,8 @@ public:
//- Construct from components //- Construct from components
inline perfectGas(const Specie& sp); inline perfectGas(const Specie& sp);
//- Construct from dictionary //- Construct from name and dictionary
perfectGas(const dictionary& dict); perfectGas(const word& name, const dictionary& dict);
//- Construct as named copy //- Construct as named copy
inline perfectGas(const word& name, const perfectGas&); inline perfectGas(const word& name, const perfectGas&);

View File

@ -25,7 +25,7 @@ License
#include "perfectGas.H" #include "perfectGas.H"
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class Specie> template<class Specie>
inline Foam::perfectGas<Specie>::perfectGas(const Specie& sp) inline Foam::perfectGas<Specie>::perfectGas(const Specie& sp)
@ -34,8 +34,6 @@ inline Foam::perfectGas<Specie>::perfectGas(const Specie& sp)
{} {}
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class Specie> template<class Specie>
inline Foam::perfectGas<Specie>::perfectGas inline Foam::perfectGas<Specie>::perfectGas
( (

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 OpenFOAM Foundation \\ / A nd | Copyright (C) 2019-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -29,9 +29,13 @@ License
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class Specie> template<class Specie>
Foam::rPolynomial<Specie>::rPolynomial(const dictionary& dict) Foam::rPolynomial<Specie>::rPolynomial
(
const word& name,
const dictionary& dict
)
: :
Specie(dict), Specie(name, dict),
C_(dict.subDict("equationOfState").lookup("C")) C_(dict.subDict("equationOfState").lookup("C"))
{} {}

View File

@ -111,13 +111,14 @@ class rPolynomial
: :
public Specie public Specie
{ {
// Private Data // Private Classes
//- Coefficient list class
class coeffList class coeffList
: :
public VectorSpace<coeffList, scalar, 5> public VectorSpace<coeffList, scalar, 5>
{ {
public: public:
// Constructors // Constructors
@ -133,6 +134,8 @@ class rPolynomial
}; };
// Private Data
//- Density coefficients //- Density coefficients
coeffList C_; coeffList C_;
@ -142,14 +145,10 @@ public:
// Constructors // Constructors
//- Construct from components //- Construct from components
inline rPolynomial inline rPolynomial(const Specie& sp, const coeffList& coeffs);
(
const Specie& sp,
const coeffList& coeffs
);
//- Construct from dictionary //- Construct from name and dictionary
rPolynomial(const dictionary& dict); rPolynomial(const word& name, const dictionary& dict);
//- Construct as named copy //- Construct as named copy
inline rPolynomial(const word& name, const rPolynomial&); inline rPolynomial(const word& name, const rPolynomial&);

View File

@ -25,7 +25,7 @@ License
#include "rPolynomial.H" #include "rPolynomial.H"
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class Specie> template<class Specie>
inline Foam::rPolynomial<Specie>::rPolynomial inline Foam::rPolynomial<Specie>::rPolynomial
@ -39,8 +39,6 @@ inline Foam::rPolynomial<Specie>::rPolynomial
{} {}
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class Specie> template<class Specie>
inline Foam::rPolynomial<Specie>::rPolynomial inline Foam::rPolynomial<Specie>::rPolynomial
( (

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-2019 OpenFOAM Foundation \\ / A nd | Copyright (C) 2012-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -29,9 +29,9 @@ License
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class Specie> template<class Specie>
Foam::rhoConst<Specie>::rhoConst(const dictionary& dict) Foam::rhoConst<Specie>::rhoConst(const word& name, const dictionary& dict)
: :
Specie(dict), Specie(name, dict),
rho_(dict.subDict("equationOfState").lookup<scalar>("rho")) rho_(dict.subDict("equationOfState").lookup<scalar>("rho"))
{} {}

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-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -113,8 +113,8 @@ public:
//- Construct from components //- Construct from components
inline rhoConst(const Specie& sp, const scalar rho); inline rhoConst(const Specie& sp, const scalar rho);
//- Construct from dictionary //- Construct from name and dictionary
rhoConst(const dictionary& dict); rhoConst(const word& name, const dictionary& dict);
//- Construct as named copy //- Construct as named copy
inline rhoConst(const word& name, const rhoConst&); inline rhoConst(const word& name, const rhoConst&);

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-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -25,7 +25,7 @@ License
#include "rhoConst.H" #include "rhoConst.H"
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class Specie> template<class Specie>
inline Foam::rhoConst<Specie>::rhoConst inline Foam::rhoConst<Specie>::rhoConst
@ -39,8 +39,6 @@ inline Foam::rhoConst<Specie>::rhoConst
{} {}
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class Specie> template<class Specie>
inline Foam::rhoConst<Specie>::rhoConst inline Foam::rhoConst<Specie>::rhoConst
( (

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 OpenFOAM Foundation \\ / A nd | Copyright (C) 2020-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -29,9 +29,13 @@ License
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class Specie> template<class Specie>
Foam::rhoTabulated<Specie>::rhoTabulated(const dictionary& dict) Foam::rhoTabulated<Specie>::rhoTabulated
(
const word& name,
const dictionary& dict
)
: :
Specie(dict), Specie(name, dict),
rho_("rho", dict.subDict("equationOfState").subDict("rho")) rho_("rho", dict.subDict("equationOfState").subDict("rho"))
{} {}

View File

@ -128,7 +128,10 @@ class rhoTabulated
: :
public Specie public Specie
{ {
typedef Function2s::UniformTable<scalar> table2D; // Private Typedefs
//- Table type
typedef Function2s::UniformTable<scalar> table2D;
// Private Data // Private Data
@ -148,8 +151,8 @@ public:
const table2D& rho const table2D& rho
); );
//- Construct from dictionary //- Construct from name and dictionary
rhoTabulated(const dictionary& dict); rhoTabulated(const word& name, const dictionary& dict);
//- Construct as named copy //- Construct as named copy
inline rhoTabulated(const word& name, const rhoTabulated&); inline rhoTabulated(const word& name, const rhoTabulated&);

View File

@ -25,7 +25,7 @@ License
#include "rhoTabulated.H" #include "rhoTabulated.H"
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class Specie> template<class Specie>
inline Foam::rhoTabulated<Specie>::rhoTabulated inline Foam::rhoTabulated<Specie>::rhoTabulated
@ -39,8 +39,6 @@ inline Foam::rhoTabulated<Specie>::rhoTabulated
{} {}
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class Specie> template<class Specie>
inline Foam::rhoTabulated<Specie>::rhoTabulated inline Foam::rhoTabulated<Specie>::rhoTabulated
( (

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-2019 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -36,9 +36,9 @@ namespace Foam
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
Foam::specie::specie(const dictionary& dict) Foam::specie::specie(const word& name, const dictionary& dict)
: :
name_(dict.dictName()), name_(name),
Y_(dict.subDict("specie").lookupOrDefault("massFraction", 1.0)), Y_(dict.subDict("specie").lookupOrDefault("massFraction", 1.0)),
molWeight_(dict.subDict("specie").lookup<scalar>("molWeight")) molWeight_(dict.subDict("specie").lookup<scalar>("molWeight"))
{} {}

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-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -99,8 +99,8 @@ public:
//- Construct as named copy //- Construct as named copy
inline specie(const word& name, const specie&); inline specie(const word& name, const specie&);
//- Construct from dictionary //- Construct from name and dictionary
specie(const dictionary& dict); specie(const word& name, const dictionary& dict);
//- Copy constructor //- Copy constructor
specie(const specie&) = default; specie(const specie&) = default;

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-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -62,6 +62,7 @@ public:
return "absoluteEnthalpy"; return "absoluteEnthalpy";
} }
// Fundamental properties // Fundamental properties
static bool enthalpy() static bool enthalpy()

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-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -63,6 +63,7 @@ public:
return "absoluteInternalEnergy"; return "absoluteInternalEnergy";
} }
// Fundamental properties // Fundamental properties
static bool enthalpy() static bool enthalpy()

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-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -29,9 +29,13 @@ License
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class EquationOfState> template<class EquationOfState>
Foam::eConstThermo<EquationOfState>::eConstThermo(const dictionary& dict) Foam::eConstThermo<EquationOfState>::eConstThermo
(
const word& name,
const dictionary& dict
)
: :
EquationOfState(dict), EquationOfState(name, dict),
Cv_(dict.subDict("thermodynamics").lookup<scalar>("Cv")), Cv_(dict.subDict("thermodynamics").lookup<scalar>("Cv")),
Hf_(dict.subDict("thermodynamics").lookup<scalar>("Hf")), Hf_(dict.subDict("thermodynamics").lookup<scalar>("Hf")),
Tref_(dict.subDict("thermodynamics").lookupOrDefault<scalar>("Tref", Tstd)), Tref_(dict.subDict("thermodynamics").lookupOrDefault<scalar>("Tref", Tstd)),

View File

@ -121,7 +121,9 @@ class eConstThermo
scalar Esref_; scalar Esref_;
// Private Member Functions public:
// Constructors
//- Construct from components //- Construct from components
inline eConstThermo inline eConstThermo
@ -133,13 +135,8 @@ class eConstThermo
const scalar Esref const scalar Esref
); );
//- Construct from name and dictionary
public: eConstThermo(const word& name, const dictionary& dict);
// Constructors
//- Construct from dictionary
eConstThermo(const dictionary& dict);
//- Construct as named copy //- Construct as named copy
inline eConstThermo(const word&, const eConstThermo&); inline eConstThermo(const word&, const eConstThermo&);

View File

@ -23,7 +23,7 @@ License
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class EquationOfState> template<class EquationOfState>
inline Foam::eConstThermo<EquationOfState>::eConstThermo inline Foam::eConstThermo<EquationOfState>::eConstThermo
@ -43,8 +43,6 @@ inline Foam::eConstThermo<EquationOfState>::eConstThermo
{} {}
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class EquationOfState> template<class EquationOfState>
inline Foam::eConstThermo<EquationOfState>::eConstThermo inline Foam::eConstThermo<EquationOfState>::eConstThermo
( (

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 OpenFOAM Foundation \\ / A nd | Copyright (C) 2020-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -31,10 +31,11 @@ License
template<class EquationOfState> template<class EquationOfState>
Foam::eIcoTabulatedThermo<EquationOfState>::eIcoTabulatedThermo Foam::eIcoTabulatedThermo<EquationOfState>::eIcoTabulatedThermo
( (
const word& name,
const dictionary& dict const dictionary& dict
) )
: :
EquationOfState(dict), EquationOfState(name, dict),
Hf_(dict.subDict("thermodynamics").lookup<scalar>("Hf")), Hf_(dict.subDict("thermodynamics").lookup<scalar>("Hf")),
Sf_(dict.subDict("thermodynamics").lookup<scalar>("Sf")), Sf_(dict.subDict("thermodynamics").lookup<scalar>("Sf")),
Cv_("Cv", dict.subDict("thermodynamics").subDict("Cv")) Cv_("Cv", dict.subDict("thermodynamics").subDict("Cv"))

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-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -95,7 +95,10 @@ class eIcoTabulatedThermo
: :
public EquationOfState public EquationOfState
{ {
typedef Function1s::integratedNonUniformTable integratedNonUniformTable; // Private Typedefs
//- Table type
typedef Function1s::integratedNonUniformTable integratedNonUniformTable;
// Private Data // Private Data
@ -114,8 +117,8 @@ public:
// Constructors // Constructors
//- Construct from dictionary //- Construct from name and dictionary
eIcoTabulatedThermo(const dictionary& dict); eIcoTabulatedThermo(const word& name, const dictionary& dict);
//- Construct as a named copy //- Construct as a named copy
inline eIcoTabulatedThermo(const word&, const eIcoTabulatedThermo&); inline eIcoTabulatedThermo(const word&, const eIcoTabulatedThermo&);

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 OpenFOAM Foundation \\ / A nd | Copyright (C) 2020-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -31,10 +31,11 @@ License
template<class EquationOfState, int PolySize> template<class EquationOfState, int PolySize>
Foam::ePolynomialThermo<EquationOfState, PolySize>::ePolynomialThermo Foam::ePolynomialThermo<EquationOfState, PolySize>::ePolynomialThermo
( (
const word& name,
const dictionary& dict const dictionary& dict
) )
: :
EquationOfState(dict), EquationOfState(name, dict),
Hf_(dict.subDict("thermodynamics").lookup<scalar>("Hf")), Hf_(dict.subDict("thermodynamics").lookup<scalar>("Hf")),
Sf_(dict.subDict("thermodynamics").lookup<scalar>("Sf")), Sf_(dict.subDict("thermodynamics").lookup<scalar>("Sf")),
CvCoeffs_ CvCoeffs_

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-2022 OpenFOAM Foundation \\ / A nd | Copyright (C) 2021-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -161,8 +161,8 @@ public:
// Constructors // Constructors
//- Construct from dictionary //- Construct from name and dictionary
ePolynomialThermo(const dictionary& dict); ePolynomialThermo(const word& name, const dictionary& dict);
//- Construct as a named copy //- Construct as a named copy
inline ePolynomialThermo(const word&, const ePolynomialThermo&); inline ePolynomialThermo(const word&, const ePolynomialThermo&);

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 OpenFOAM Foundation \\ / A nd | Copyright (C) 2020-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -25,7 +25,7 @@ License
#include "ePolynomialThermo.H" #include "ePolynomialThermo.H"
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class EquationOfState, int PolySize> template<class EquationOfState, int PolySize>
inline Foam::ePolynomialThermo<EquationOfState, PolySize>::ePolynomialThermo inline Foam::ePolynomialThermo<EquationOfState, PolySize>::ePolynomialThermo
@ -47,8 +47,6 @@ inline Foam::ePolynomialThermo<EquationOfState, PolySize>::ePolynomialThermo
{} {}
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class EquationOfState, int PolySize> template<class EquationOfState, int PolySize>
inline Foam::ePolynomialThermo<EquationOfState, PolySize>::ePolynomialThermo inline Foam::ePolynomialThermo<EquationOfState, PolySize>::ePolynomialThermo
( (

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 OpenFOAM Foundation \\ / A nd | Copyright (C) 2020-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -31,10 +31,11 @@ License
template<class EquationOfState> template<class EquationOfState>
Foam::ePowerThermo<EquationOfState>::ePowerThermo Foam::ePowerThermo<EquationOfState>::ePowerThermo
( (
const word& name,
const dictionary& dict const dictionary& dict
) )
: :
EquationOfState(dict), EquationOfState(name, dict),
c0_(dict.subDict("thermodynamics").lookup<scalar>("C0")), c0_(dict.subDict("thermodynamics").lookup<scalar>("C0")),
n0_(dict.subDict("thermodynamics").lookup<scalar>("n0")), n0_(dict.subDict("thermodynamics").lookup<scalar>("n0")),
Tref_(dict.subDict("thermodynamics").lookup<scalar>("Tref")), Tref_(dict.subDict("thermodynamics").lookup<scalar>("Tref")),

View File

@ -126,6 +126,11 @@ class ePowerThermo
//- Check given temperature is within the range of the fitted coeffs //- Check given temperature is within the range of the fitted coeffs
inline void checkT(const scalar T) const; inline void checkT(const scalar T) const;
public:
// Constructors
//- Construct from components //- Construct from components
inline ePowerThermo inline ePowerThermo
( (
@ -136,13 +141,8 @@ class ePowerThermo
const scalar Hf const scalar Hf
); );
//- Construct from name and dictionary
public: ePowerThermo(const word& name, const dictionary& dict);
// Constructors
//- Construct from dictionary
ePowerThermo(const dictionary&);
//- Construct as a named copy //- Construct as a named copy
inline ePowerThermo inline ePowerThermo

View File

@ -44,21 +44,6 @@ inline void Foam::ePowerThermo<EquationOfState>::checkT
} }
template<class EquationOfState>
inline Foam::ePowerThermo<EquationOfState>::ePowerThermo
(
const word& name,
const ePowerThermo& jt
)
:
EquationOfState(name, jt),
c0_(jt.c0_),
n0_(jt.n0_),
Tref_(jt.Tref_),
Hf_(jt.Hf_)
{}
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class EquationOfState> template<class EquationOfState>
@ -79,6 +64,21 @@ inline Foam::ePowerThermo<EquationOfState>::ePowerThermo
{} {}
template<class EquationOfState>
inline Foam::ePowerThermo<EquationOfState>::ePowerThermo
(
const word& name,
const ePowerThermo& jt
)
:
EquationOfState(name, jt),
c0_(jt.c0_),
n0_(jt.n0_),
Tref_(jt.Tref_),
Hf_(jt.Hf_)
{}
template<class EquationOfState> template<class EquationOfState>
inline Foam::autoPtr<Foam::ePowerThermo<EquationOfState>> inline Foam::autoPtr<Foam::ePowerThermo<EquationOfState>>
Foam::ePowerThermo<EquationOfState>::clone() const Foam::ePowerThermo<EquationOfState>::clone() 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) 2020 OpenFOAM Foundation \\ / A nd | Copyright (C) 2020-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -31,10 +31,11 @@ License
template<class EquationOfState> template<class EquationOfState>
Foam::eTabulatedThermo<EquationOfState>::eTabulatedThermo Foam::eTabulatedThermo<EquationOfState>::eTabulatedThermo
( (
const word& name,
const dictionary& dict const dictionary& dict
) )
: :
EquationOfState(dict), EquationOfState(name, dict),
Hf_(dict.subDict("thermodynamics").lookup<scalar>("Hf")), Hf_(dict.subDict("thermodynamics").lookup<scalar>("Hf")),
Sf_(dict.subDict("thermodynamics").lookup<scalar>("Sf")), Sf_(dict.subDict("thermodynamics").lookup<scalar>("Sf")),
Es_("Es", dict.subDict("thermodynamics").subDict("Es")), Es_("Es", dict.subDict("thermodynamics").subDict("Es")),

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 OpenFOAM Foundation \\ / A nd | Copyright (C) 2020-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -126,7 +126,10 @@ class eTabulatedThermo
: :
public EquationOfState public EquationOfState
{ {
typedef Function2s::UniformTable<scalar> table2D; // Private Typedefs
//- Table type
typedef Function2s::UniformTable<scalar> table2D;
// Private Data // Private Data
@ -151,8 +154,8 @@ public:
// Constructors // Constructors
//- Construct from dictionary //- Construct from name and dictionary
eTabulatedThermo(const dictionary& dict); eTabulatedThermo(const word& name, const dictionary& dict);
//- Construct as a named copy //- Construct as a named copy
inline eTabulatedThermo(const word&, const eTabulatedThermo&); inline eTabulatedThermo(const word&, const eTabulatedThermo&);

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-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -29,9 +29,13 @@ License
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class EquationOfState> template<class EquationOfState>
Foam::hConstThermo<EquationOfState>::hConstThermo(const dictionary& dict) Foam::hConstThermo<EquationOfState>::hConstThermo
(
const word& name,
const dictionary& dict
)
: :
EquationOfState(dict), EquationOfState(name, dict),
Cp_(dict.subDict("thermodynamics").lookup<scalar>("Cp")), Cp_(dict.subDict("thermodynamics").lookup<scalar>("Cp")),
Hf_(dict.subDict("thermodynamics").lookup<scalar>("Hf")), Hf_(dict.subDict("thermodynamics").lookup<scalar>("Hf")),
Tref_(dict.subDict("thermodynamics").lookupOrDefault<scalar>("Tref", Tstd)), Tref_(dict.subDict("thermodynamics").lookupOrDefault<scalar>("Tref", Tstd)),

View File

@ -121,7 +121,9 @@ class hConstThermo
scalar Hsref_; scalar Hsref_;
// Private Member Functions public:
// Constructors
//- Construct from components //- Construct from components
inline hConstThermo inline hConstThermo
@ -133,13 +135,8 @@ class hConstThermo
const scalar Hsref const scalar Hsref
); );
//- Construct from name and dictionary
public: hConstThermo(const word& name, const dictionary& dict);
// Constructors
//- Construct from dictionary
hConstThermo(const dictionary& dict);
//- Construct as named copy //- Construct as named copy
inline hConstThermo(const word&, const hConstThermo&); inline hConstThermo(const word&, const hConstThermo&);

View File

@ -23,7 +23,7 @@ License
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class EquationOfState> template<class EquationOfState>
inline Foam::hConstThermo<EquationOfState>::hConstThermo inline Foam::hConstThermo<EquationOfState>::hConstThermo
@ -43,8 +43,6 @@ inline Foam::hConstThermo<EquationOfState>::hConstThermo
{} {}
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class EquationOfState> template<class EquationOfState>
inline Foam::hConstThermo<EquationOfState>::hConstThermo inline Foam::hConstThermo<EquationOfState>::hConstThermo
( (

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 OpenFOAM Foundation \\ / A nd | Copyright (C) 2020-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -31,10 +31,11 @@ License
template<class EquationOfState> template<class EquationOfState>
Foam::hIcoTabulatedThermo<EquationOfState>::hIcoTabulatedThermo Foam::hIcoTabulatedThermo<EquationOfState>::hIcoTabulatedThermo
( (
const word& name,
const dictionary& dict const dictionary& dict
) )
: :
EquationOfState(dict), EquationOfState(name, dict),
Hf_(dict.subDict("thermodynamics").lookup<scalar>("Hf")), Hf_(dict.subDict("thermodynamics").lookup<scalar>("Hf")),
Sf_(dict.subDict("thermodynamics").lookup<scalar>("Sf")), Sf_(dict.subDict("thermodynamics").lookup<scalar>("Sf")),
Cp_("Cp", dict.subDict("thermodynamics").subDict("Cp")) Cp_("Cp", dict.subDict("thermodynamics").subDict("Cp"))

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-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -96,7 +96,10 @@ class hIcoTabulatedThermo
: :
public EquationOfState public EquationOfState
{ {
typedef Function1s::integratedNonUniformTable integratedNonUniformTable; // Private Typedefs
//- Table type
typedef Function1s::integratedNonUniformTable integratedNonUniformTable;
// Private Data // Private Data
@ -115,8 +118,8 @@ public:
// Constructors // Constructors
//- Construct from dictionary //- Construct from name and dictionary
hIcoTabulatedThermo(const dictionary& dict); hIcoTabulatedThermo(const word& name, const dictionary& dict);
//- Construct as a named copy //- Construct as a named copy
inline hIcoTabulatedThermo(const word&, const hIcoTabulatedThermo&); inline hIcoTabulatedThermo(const word&, const hIcoTabulatedThermo&);

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-2019 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -31,10 +31,11 @@ License
template<class EquationOfState, int PolySize> template<class EquationOfState, int PolySize>
Foam::hPolynomialThermo<EquationOfState, PolySize>::hPolynomialThermo Foam::hPolynomialThermo<EquationOfState, PolySize>::hPolynomialThermo
( (
const word& name,
const dictionary& dict const dictionary& dict
) )
: :
EquationOfState(dict), EquationOfState(name, dict),
Hf_(dict.subDict("thermodynamics").lookup<scalar>("Hf")), Hf_(dict.subDict("thermodynamics").lookup<scalar>("Hf")),
Sf_(dict.subDict("thermodynamics").lookup<scalar>("Sf")), Sf_(dict.subDict("thermodynamics").lookup<scalar>("Sf")),
CpCoeffs_ CpCoeffs_

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-2022 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -141,7 +141,9 @@ class hPolynomialThermo
Polynomial<PolySize> sCoeffs_; Polynomial<PolySize> sCoeffs_;
// Private Member Functions public:
// Constructors
//- Construct from components //- Construct from components
inline hPolynomialThermo inline hPolynomialThermo
@ -154,13 +156,8 @@ class hPolynomialThermo
const Polynomial<PolySize>& sCoeffs const Polynomial<PolySize>& sCoeffs
); );
//- Construct from name and dictionary
public: hPolynomialThermo(const word& name, const dictionary& dict);
// Constructors
//- Construct from dictionary
hPolynomialThermo(const dictionary& dict);
//- Construct as a named copy //- Construct as a named copy
inline hPolynomialThermo(const word&, const hPolynomialThermo&); inline hPolynomialThermo(const word&, const hPolynomialThermo&);

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-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -25,7 +25,7 @@ License
#include "hPolynomialThermo.H" #include "hPolynomialThermo.H"
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class EquationOfState, int PolySize> template<class EquationOfState, int PolySize>
inline Foam::hPolynomialThermo<EquationOfState, PolySize>::hPolynomialThermo inline Foam::hPolynomialThermo<EquationOfState, PolySize>::hPolynomialThermo
@ -47,8 +47,6 @@ inline Foam::hPolynomialThermo<EquationOfState, PolySize>::hPolynomialThermo
{} {}
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class EquationOfState, int PolySize> template<class EquationOfState, int PolySize>
inline Foam::hPolynomialThermo<EquationOfState, PolySize>::hPolynomialThermo inline Foam::hPolynomialThermo<EquationOfState, PolySize>::hPolynomialThermo
( (

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-2019 OpenFOAM Foundation \\ / A nd | Copyright (C) 2012-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -31,10 +31,11 @@ License
template<class EquationOfState> template<class EquationOfState>
Foam::hPowerThermo<EquationOfState>::hPowerThermo Foam::hPowerThermo<EquationOfState>::hPowerThermo
( (
const word& name,
const dictionary& dict const dictionary& dict
) )
: :
EquationOfState(dict), EquationOfState(name, dict),
c0_(dict.subDict("thermodynamics").lookup<scalar>("C0")), c0_(dict.subDict("thermodynamics").lookup<scalar>("C0")),
n0_(dict.subDict("thermodynamics").lookup<scalar>("n0")), n0_(dict.subDict("thermodynamics").lookup<scalar>("n0")),
Tref_(dict.subDict("thermodynamics").lookup<scalar>("Tref")), Tref_(dict.subDict("thermodynamics").lookup<scalar>("Tref")),

View File

@ -123,6 +123,11 @@ class hPowerThermo
//- Check given temperature is within the range of the fitted coeffs //- Check given temperature is within the range of the fitted coeffs
inline void checkT(const scalar T) const; inline void checkT(const scalar T) const;
public:
// Constructors
//- Construct from components //- Construct from components
inline hPowerThermo inline hPowerThermo
( (
@ -133,13 +138,8 @@ class hPowerThermo
const scalar Hf const scalar Hf
); );
//- Construct from name and dictionary
public: hPowerThermo(const word& name, const dictionary& dict);
// Constructors
//- Construct from dictionary
hPowerThermo(const dictionary&);
//- Construct as a named copy //- Construct as a named copy
inline hPowerThermo inline hPowerThermo

View File

@ -44,21 +44,6 @@ inline void Foam::hPowerThermo<EquationOfState>::checkT
} }
template<class EquationOfState>
inline Foam::hPowerThermo<EquationOfState>::hPowerThermo
(
const word& name,
const hPowerThermo& jt
)
:
EquationOfState(name, jt),
c0_(jt.c0_),
n0_(jt.n0_),
Tref_(jt.Tref_),
Hf_(jt.Hf_)
{}
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class EquationOfState> template<class EquationOfState>
@ -79,6 +64,21 @@ inline Foam::hPowerThermo<EquationOfState>::hPowerThermo
{} {}
template<class EquationOfState>
inline Foam::hPowerThermo<EquationOfState>::hPowerThermo
(
const word& name,
const hPowerThermo& jt
)
:
EquationOfState(name, jt),
c0_(jt.c0_),
n0_(jt.n0_),
Tref_(jt.Tref_),
Hf_(jt.Hf_)
{}
template<class EquationOfState> template<class EquationOfState>
inline Foam::autoPtr<Foam::hPowerThermo<EquationOfState>> inline Foam::autoPtr<Foam::hPowerThermo<EquationOfState>>
Foam::hPowerThermo<EquationOfState>::clone() const Foam::hPowerThermo<EquationOfState>::clone() 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) 2020 OpenFOAM Foundation \\ / A nd | Copyright (C) 2020-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -31,10 +31,11 @@ License
template<class EquationOfState> template<class EquationOfState>
Foam::hTabulatedThermo<EquationOfState>::hTabulatedThermo Foam::hTabulatedThermo<EquationOfState>::hTabulatedThermo
( (
const word& name,
const dictionary& dict const dictionary& dict
) )
: :
EquationOfState(dict), EquationOfState(name, dict),
Hf_(dict.subDict("thermodynamics").lookup<scalar>("Hf")), Hf_(dict.subDict("thermodynamics").lookup<scalar>("Hf")),
Sf_(dict.subDict("thermodynamics").lookup<scalar>("Sf")), Sf_(dict.subDict("thermodynamics").lookup<scalar>("Sf")),
Hs_("Hs", dict.subDict("thermodynamics").subDict("Hs")), Hs_("Hs", dict.subDict("thermodynamics").subDict("Hs")),

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 OpenFOAM Foundation \\ / A nd | Copyright (C) 2020-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -126,7 +126,10 @@ class hTabulatedThermo
: :
public EquationOfState public EquationOfState
{ {
typedef Function2s::UniformTable<scalar> table2D; // Private Typedefs
//- Table type
typedef Function2s::UniformTable<scalar> table2D;
// Private Data // Private Data
@ -151,8 +154,8 @@ public:
// Constructors // Constructors
//- Construct from dictionary //- Construct from name and dictionary
hTabulatedThermo(const dictionary& dict); hTabulatedThermo(const word& name, const dictionary& dict);
//- Construct as a named copy //- Construct as a named copy
inline hTabulatedThermo(const word&, const hTabulatedThermo&); inline hTabulatedThermo(const word&, const hTabulatedThermo&);

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-2019 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -57,9 +57,13 @@ void Foam::janafThermo<EquationOfState>::checkInputData() const
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class EquationOfState> template<class EquationOfState>
Foam::janafThermo<EquationOfState>::janafThermo(const dictionary& dict) Foam::janafThermo<EquationOfState>::janafThermo
(
const word& name,
const dictionary& dict
)
: :
EquationOfState(dict), EquationOfState(name, dict),
Tlow_(dict.subDict("thermodynamics").lookup<scalar>("Tlow")), Tlow_(dict.subDict("thermodynamics").lookup<scalar>("Tlow")),
Thigh_(dict.subDict("thermodynamics").lookup<scalar>("Thigh")), Thigh_(dict.subDict("thermodynamics").lookup<scalar>("Thigh")),
Tcommon_(dict.subDict("thermodynamics").lookup<scalar>("Tcommon")), Tcommon_(dict.subDict("thermodynamics").lookup<scalar>("Tcommon")),

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-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -136,9 +136,15 @@ class janafThermo
public: public:
// Public data // Public static data
//- Number of coefficients
static const int nCoeffs_ = 7; static const int nCoeffs_ = 7;
// Public typdefs
//- Coefficient array type
typedef FixedList<scalar, nCoeffs_> coeffArray; typedef FixedList<scalar, nCoeffs_> coeffArray;
@ -149,7 +155,10 @@ private:
// Temperature limits of applicability of functions // Temperature limits of applicability of functions
scalar Tlow_, Thigh_, Tcommon_; scalar Tlow_, Thigh_, Tcommon_;
//- Cp coefficients for the high temperature range (Tcommon to Thigh)
coeffArray highCpCoeffs_; coeffArray highCpCoeffs_;
//- Cp coefficients for the low temperature range (Tlow to Tcommon)
coeffArray lowCpCoeffs_; coeffArray lowCpCoeffs_;
@ -178,8 +187,8 @@ public:
const bool convertCoeffs = false const bool convertCoeffs = false
); );
//- Construct from dictionary //- Construct from name and dictionary
janafThermo(const dictionary& dict); janafThermo(const word& name, const dictionary& dict);
//- Construct as a named copy //- Construct as a named copy
inline janafThermo(const word&, const janafThermo&); inline janafThermo(const word&, const janafThermo&);

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-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -28,6 +28,26 @@ License
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
template<class EquationOfState>
inline const typename Foam::janafThermo<EquationOfState>::coeffArray&
Foam::janafThermo<EquationOfState>::coeffs
(
const scalar T
) const
{
if (T < Tcommon_)
{
return lowCpCoeffs_;
}
else
{
return highCpCoeffs_;
}
}
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class EquationOfState> template<class EquationOfState>
inline Foam::janafThermo<EquationOfState>::janafThermo inline Foam::janafThermo<EquationOfState>::janafThermo
( (
@ -64,26 +84,6 @@ inline Foam::janafThermo<EquationOfState>::janafThermo
} }
template<class EquationOfState>
inline const typename Foam::janafThermo<EquationOfState>::coeffArray&
Foam::janafThermo<EquationOfState>::coeffs
(
const scalar T
) const
{
if (T < Tcommon_)
{
return lowCpCoeffs_;
}
else
{
return highCpCoeffs_;
}
}
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class EquationOfState> template<class EquationOfState>
inline Foam::janafThermo<EquationOfState>::janafThermo inline Foam::janafThermo<EquationOfState>::janafThermo
( (

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-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -62,6 +62,7 @@ public:
return "sensibleEnthalpy"; return "sensibleEnthalpy";
} }
// Fundamental properties // Fundamental properties
static bool enthalpy() static bool enthalpy()

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-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -63,6 +63,7 @@ public:
return "sensibleInternalEnergy"; return "sensibleInternalEnergy";
} }
// Fundamental properties // Fundamental properties
static bool enthalpy() static bool enthalpy()

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-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -37,9 +37,13 @@ const int Foam::species::thermo<Thermo, Type>::maxIter_ = 100;
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class Thermo, template<class> class Type> template<class Thermo, template<class> class Type>
Foam::species::thermo<Thermo, Type>::thermo(const dictionary& dict) Foam::species::thermo<Thermo, Type>::thermo
(
const word& name,
const dictionary& dict
)
: :
Thermo(dict) Thermo(name, dict)
{} {}

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-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -102,8 +102,10 @@ class thermo
public: public:
//- The thermodynamics of the individual species' // Public Typedefs
typedef thermo<Thermo, Type> thermoType;
//- The thermodynamics of the individual species'
typedef thermo<Thermo, Type> thermoType;
// Constructors // Constructors
@ -111,8 +113,8 @@ public:
//- Construct from components //- Construct from components
inline thermo(const Thermo& sp); inline thermo(const Thermo& sp);
//- Construct from dictionary //- Construct from name and dictionary
thermo(const dictionary& dict); thermo(const word& name, const dictionary& dict);
//- Construct as named copy //- Construct as named copy
inline thermo(const word& name, const thermo&); inline thermo(const word& name, const thermo&);

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-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -29,9 +29,13 @@ License
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class Thermo> template<class Thermo>
Foam::AndradeTransport<Thermo>::AndradeTransport(const dictionary& dict) Foam::AndradeTransport<Thermo>::AndradeTransport
(
const word& name,
const dictionary& dict
)
: :
Thermo(dict), Thermo(name, dict),
muCoeffs_(dict.subDict("transport").lookup("muCoeffs")), muCoeffs_(dict.subDict("transport").lookup("muCoeffs")),
kappaCoeffs_(dict.subDict("transport").lookup("kappaCoeffs")) kappaCoeffs_(dict.subDict("transport").lookup("kappaCoeffs"))
{} {}

View File

@ -117,10 +117,14 @@ class AndradeTransport
: :
public Thermo public Thermo
{ {
// Private Data // Private Typedefs
//- Coefficient list type
typedef FixedList<scalar, 5> coeffList; typedef FixedList<scalar, 5> coeffList;
// Private Data
//- Dynamic viscosity coefficients //- Dynamic viscosity coefficients
coeffList muCoeffs_; coeffList muCoeffs_;
@ -128,7 +132,9 @@ class AndradeTransport
coeffList kappaCoeffs_; coeffList kappaCoeffs_;
// Private Member Functions public:
// Constructors
//- Construct from components //- Construct from components
inline AndradeTransport inline AndradeTransport
@ -138,20 +144,16 @@ class AndradeTransport
const coeffList& kappaCoeffs const coeffList& kappaCoeffs
); );
public:
// Constructors
//- Construct as named copy //- Construct as named copy
inline AndradeTransport inline AndradeTransport
( (
const word&, const word&,
const AndradeTransport& const AndradeTransport&
); );
//- Construct from dictionary //- Construct from name and dictionary
AndradeTransport(const dictionary& dict); AndradeTransport(const word& name, const dictionary& dict);
//- Construct and return a clone //- Construct and return a clone
inline autoPtr<AndradeTransport> clone() const; inline autoPtr<AndradeTransport> clone() 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) 2018-2019 OpenFOAM Foundation \\ / A nd | Copyright (C) 2018-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -42,9 +42,13 @@ Foam::scalar Foam::WLFTransport<Thermo>::readCoeff
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class Thermo> template<class Thermo>
Foam::WLFTransport<Thermo>::WLFTransport(const dictionary& dict) Foam::WLFTransport<Thermo>::WLFTransport
(
const word& name,
const dictionary& dict
)
: :
Thermo(dict), Thermo(name, dict),
mu0_(readCoeff("mu0", dict)), mu0_(readCoeff("mu0", dict)),
Tr_(readCoeff("Tr", dict)), Tr_(readCoeff("Tr", dict)),
C1_(readCoeff("C1", dict)), C1_(readCoeff("C1", dict)),

View File

@ -131,7 +131,15 @@ class WLFTransport
scalar rPr_; scalar rPr_;
// Private Constructors // Private Member Functions
//- Read coefficient from dictionary
scalar readCoeff(const word& coeffName, const dictionary& dict);
public:
// Constructors
//- Construct from components //- Construct from components
inline WLFTransport inline WLFTransport
@ -144,22 +152,11 @@ class WLFTransport
const scalar Pr const scalar Pr
); );
// Private Member Functions
//- Read coefficient from dictionary
scalar readCoeff(const word& coeffName, const dictionary& dict);
public:
// Constructors
//- Construct as named copy //- Construct as named copy
inline WLFTransport(const word&, const WLFTransport&); inline WLFTransport(const word&, const WLFTransport&);
//- Construct from dictionary //- Construct from name and dictionary
WLFTransport(const dictionary& dict); WLFTransport(const word& name, const dictionary& dict);
//- Construct and return a clone //- Construct and return a clone
inline autoPtr<WLFTransport> clone() const; inline autoPtr<WLFTransport> clone() const;

Some files were not shown because too many files have changed in this diff Show More