rhoThermo: Renamed thermo:rho -> rho

The thermodynamic density field is now named "rho" by default and only renamed
"thermo:rho" by solvers that create and maintain a separate continuity density
field which is named "rho".  This change significantly simplifies and
standardises the specification of schemes and boundary conditions requiring
density as it is now always named "rho" or "rho.<phase>" unless under some very
unusual circumstances the thermodynamic rather than continuity density is
required for a solver maintaining both.

The advantage of this change is particularly noticeable for multiphase
simulations in which each phase has its own density now named "rho.<phase>"
rather than "thermo:rho.<phase>" as separate phase continuity density fields are
not required so for multiphaseEulerFoam the scheme specification:

    "div\(alphaRhoPhi.*,\(p\|thermo:rho.*\)\)" Gauss limitedLinear 1;

is now written:

    "div\(alphaRhoPhi.*,\(p\|rho.*\)\)" Gauss limitedLinear 1;
This commit is contained in:
Henry Weller
2022-10-28 02:19:13 +01:00
parent 87a0b8a515
commit 4bd90bc969
89 changed files with 150 additions and 126 deletions

View File

@ -19,7 +19,7 @@ volScalarField rho
IOobject::NO_READ, IOobject::NO_READ,
IOobject::AUTO_WRITE IOobject::AUTO_WRITE
), ),
thermo.rho() thermo.renameRho()
); );
volScalarField& p = thermo.p(); volScalarField& p = thermo.p();

View File

@ -19,7 +19,7 @@ volScalarField rho
IOobject::NO_READ, IOobject::NO_READ,
IOobject::AUTO_WRITE IOobject::AUTO_WRITE
), ),
thermo.rho() thermo.renameRho()
); );
volScalarField& p = thermo.p(); volScalarField& p = thermo.p();

View File

@ -43,7 +43,7 @@
IOobject::NO_READ, IOobject::NO_READ,
IOobject::AUTO_WRITE IOobject::AUTO_WRITE
), ),
thermo.rho() thermo.renameRho()
); );
volScalarField Rspecific volScalarField Rspecific

View File

@ -34,7 +34,7 @@ volScalarField rho
IOobject::NO_READ, IOobject::NO_READ,
IOobject::AUTO_WRITE IOobject::AUTO_WRITE
), ),
thermo.rho() thermo.renameRho()
); );
volVectorField rhoU volVectorField rhoU

View File

@ -19,7 +19,7 @@ volScalarField rho
IOobject::READ_IF_PRESENT, IOobject::READ_IF_PRESENT,
IOobject::AUTO_WRITE IOobject::AUTO_WRITE
), ),
thermo.rho() thermo.renameRho()
); );
Info<< "Reading field U\n" << endl; Info<< "Reading field U\n" << endl;

View File

@ -14,7 +14,7 @@ volScalarField rho
IOobject::NO_READ, IOobject::NO_READ,
IOobject::NO_WRITE IOobject::NO_WRITE
), ),
thermo.rho() thermo.renameRho()
); );
volScalarField& p = thermo.p(); volScalarField& p = thermo.p();

View File

@ -18,7 +18,7 @@ volScalarField rho
IOobject::NO_READ, IOobject::NO_READ,
IOobject::AUTO_WRITE IOobject::AUTO_WRITE
), ),
thermo.rho() thermo.renameRho()
); );
Info<< "\nReading field U\n" << endl; Info<< "\nReading field U\n" << endl;

View File

@ -79,7 +79,7 @@ Foam::compressibleTwoPhaseMixture::compressibleTwoPhaseMixture
( (
IOobject IOobject
( (
"thermo:rho", "rho",
U.mesh().time().timeName(), U.mesh().time().timeName(),
U.mesh(), U.mesh(),
IOobject::NO_READ, IOobject::NO_READ,

View File

@ -130,7 +130,7 @@ void Foam::fv::compressible::VoFCavitation::addSup
if (fieldName == "p_rgh") if (fieldName == "p_rgh")
{ {
const volScalarField::Internal& rho = const volScalarField::Internal& rho =
mesh().lookupObject<volScalarField>("thermo:rho"); mesh().lookupObject<volScalarField>("rho");
const volScalarField::Internal& gh = const volScalarField::Internal& gh =
mesh().lookupObject<volScalarField>("gh"); mesh().lookupObject<volScalarField>("gh");

View File

@ -79,7 +79,7 @@ Foam::solvers::isothermalFluid::isothermalFluid
IOobject::READ_IF_PRESENT, IOobject::READ_IF_PRESENT,
IOobject::AUTO_WRITE IOobject::AUTO_WRITE
), ),
thermo.rho() thermo.renameRho()
), ),
dpdt dpdt

View File

@ -113,7 +113,7 @@ Foam::compressibleMultiphaseMixture::compressibleMultiphaseMixture
( (
IOobject IOobject
( (
"thermo:rho", "rho",
U.mesh().time().timeName(), U.mesh().time().timeName(),
U.mesh(), U.mesh(),
IOobject::NO_READ, IOobject::NO_READ,

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2019-2021 OpenFOAM Foundation \\ / A nd | Copyright (C) 2019-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -81,7 +81,7 @@ Usage
field s.water; field s.water;
alphaPhi alphaRhoPhi.water; alphaPhi alphaRhoPhi.water;
rho thermo:rho.water; rho rho.water;
} }
\endverbatim \endverbatim

View File

@ -793,7 +793,7 @@ Foam::regionModels::momentumSurfaceFilm::momentumSurfaceFilm
IOobject IOobject
( (
// Must have same name as rho to enable mapping // Must have same name as rho to enable mapping
IOobject::groupName("thermo:rho", phaseName_), IOobject::groupName("rho", phaseName_),
time().timeName(), time().timeName(),
regionMesh(), regionMesh(),
IOobject::NO_READ, IOobject::NO_READ,

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2012-2021 OpenFOAM Foundation \\ / A nd | Copyright (C) 2012-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License

View File

@ -114,6 +114,11 @@ public:
// Fields derived from thermodynamic state variables // Fields derived from thermodynamic state variables
//- Rename the thermodynamic density field if stored and return
// This is used by solvers which create a separate continuity rho
// [kg/m^3]
virtual tmp<volScalarField> renameRho() = 0;
//- Gamma = Cp/Cv [] //- Gamma = Cp/Cv []
virtual tmp<volScalarField> gamma() const = 0; virtual tmp<volScalarField> gamma() const = 0;

View File

@ -115,6 +115,12 @@ Foam::tmp<Foam::scalarField> Foam::psiThermo::implementation::rho
} }
Foam::tmp<Foam::volScalarField> Foam::psiThermo::implementation::renameRho()
{
return rho();
}
Foam::tmp<Foam::volScalarField> Foam::psiThermo::implementation::rho0() const Foam::tmp<Foam::volScalarField> Foam::psiThermo::implementation::rho0() const
{ {
return p().oldTime()*psi_.oldTime(); return p().oldTime()*psi_.oldTime();

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2021 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -108,6 +108,10 @@ public:
//- Density for patch [kg/m^3] //- Density for patch [kg/m^3]
virtual tmp<scalarField> rho(const label patchi) const = 0; virtual tmp<scalarField> rho(const label patchi) const = 0;
//- Return the thermodynamic density field [kg/m^3]
// This is used by solvers which create a separate continuity rho
virtual tmp<volScalarField> renameRho() = 0;
//- Old-time density [kg/m^3] //- Old-time density [kg/m^3]
virtual tmp<volScalarField> rho0() const = 0; virtual tmp<volScalarField> rho0() const = 0;
@ -171,6 +175,10 @@ public:
//- Density for patch [kg/m^3] //- Density for patch [kg/m^3]
virtual tmp<scalarField> rho(const label patchi) const; virtual tmp<scalarField> rho(const label patchi) const;
//- Return the thermodynamic density field [kg/m^3]
// This is used by solvers which create a separate continuity rho
virtual tmp<volScalarField> renameRho();
//- Old-time density [kg/m^3] //- Old-time density [kg/m^3]
virtual tmp<volScalarField> rho0() const; virtual tmp<volScalarField> rho0() const;

View File

@ -46,7 +46,7 @@ Foam::rhoThermo::implementation::implementation
( (
IOobject IOobject
( (
phasePropertyName("thermo:rho", phaseName), phasePropertyName("rho", phaseName),
mesh.time().timeName(), mesh.time().timeName(),
mesh, mesh,
IOobject::NO_READ, IOobject::NO_READ,
@ -125,6 +125,13 @@ Foam::tmp<Foam::scalarField> Foam::rhoThermo::implementation::rho
} }
Foam::tmp<Foam::volScalarField> Foam::rhoThermo::implementation::renameRho()
{
rho_.rename(phasePropertyName("thermo:rho"));
return rho_;
}
Foam::volScalarField& Foam::rhoThermo::implementation::rho() Foam::volScalarField& Foam::rhoThermo::implementation::rho()
{ {
return rho_; return 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) 2011-2021 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -104,6 +104,10 @@ public:
//- Density for patch [kg/m^3] //- Density for patch [kg/m^3]
virtual tmp<scalarField> rho(const label patchi) const = 0; virtual tmp<scalarField> rho(const label patchi) const = 0;
//- Rename and return the thermodynamic density field [kg/m^3]
// This is used by solvers which create a separate continuity rho
virtual tmp<volScalarField> renameRho() = 0;
//- Return non-const access to the local density field [kg/m^3] //- Return non-const access to the local density field [kg/m^3]
virtual volScalarField& rho() = 0; virtual volScalarField& rho() = 0;
@ -141,7 +145,7 @@ protected:
// Protected data // Protected data
//- Density field [kg/m^3] //- Density field [kg/m^3]
// Named 'thermo:rho' to avoid (potential) conflict with solver density // Named 'rho' to avoid (potential) conflict with solver density
volScalarField rho_; volScalarField rho_;
//- Compressibility [s^2/m^2] //- Compressibility [s^2/m^2]
@ -176,6 +180,10 @@ public:
//- Density for patch [kg/m^3] //- Density for patch [kg/m^3]
virtual tmp<scalarField> rho(const label patchi) const; virtual tmp<scalarField> rho(const label patchi) const;
//- Rename and return the thermodynamic density field [kg/m^3]
// This is used by solvers which create a separate continuity rho
virtual tmp<volScalarField> renameRho();
//- Return non-const access to the local density field [kg/m^3] //- Return non-const access to the local density field [kg/m^3]
virtual volScalarField& rho(); virtual volScalarField& rho();

View File

@ -37,9 +37,9 @@ divSchemes
"div\(alphaRhoPhi.*,Yi\)" Gauss limitedLinear 1; "div\(alphaRhoPhi.*,Yi\)" Gauss limitedLinear 1;
"div\(alphaRhoPhi.*,(h|e).*\)" Gauss limitedLinear 1; "div\(alphaRhoPhi.*,(h|e).*\)" Gauss limitedLinear 1;
"div\(alphaRhoPhi.*,K.*\)" Gauss limitedLinear 1; "div\(alphaRhoPhi.*,K.*\)" Gauss limitedLinear 1;
"div\(alphaRhoPhi.*,\(p\|thermo:rho.*\)\)" Gauss limitedLinear 1; "div\(alphaRhoPhi.*,\(p\|rho.*\)\)" Gauss limitedLinear 1;
"div\(\(\(\(alpha.*\*thermo:rho.*\)*nuEff.*\)\*dev2\(T\(grad\(U.*\)\)\)\)\)" Gauss linear; "div\(\(\(\(alpha.*\*rho.*\)*nuEff.*\)\*dev2\(T\(grad\(U.*\)\)\)\)\)" Gauss linear;
} }
laplacianSchemes laplacianSchemes

View File

@ -37,9 +37,9 @@ divSchemes
"div\(alphaRhoPhi.*,Yi\)" Gauss limitedLinear 1; "div\(alphaRhoPhi.*,Yi\)" Gauss limitedLinear 1;
"div\(alphaRhoPhi.*,(h|e).*\)" Gauss limitedLinear 1; "div\(alphaRhoPhi.*,(h|e).*\)" Gauss limitedLinear 1;
"div\(alphaRhoPhi.*,K.*\)" Gauss limitedLinear 1; "div\(alphaRhoPhi.*,K.*\)" Gauss limitedLinear 1;
"div\(alphaRhoPhi.*,\(p\|thermo:rho.*\)\)" Gauss limitedLinear 1; "div\(alphaRhoPhi.*,\(p\|rho.*\)\)" Gauss limitedLinear 1;
"div\(\(\(\(alpha.*\*thermo:rho.*\)*nuEff.*\)\*dev2\(T\(grad\(U.*\)\)\)\)\)" Gauss linear; "div\(\(\(\(alpha.*\*rho.*\)*nuEff.*\)\*dev2\(T\(grad\(U.*\)\)\)\)\)" Gauss linear;
} }
laplacianSchemes laplacianSchemes

View File

@ -32,7 +32,7 @@ divSchemes
"div\(alphaRhoPhi.*,U.*\)" Gauss limitedLinearV 1; "div\(alphaRhoPhi.*,U.*\)" Gauss limitedLinearV 1;
"div\(alphaPhi.*,f.*\)" Gauss limitedLinear 1; "div\(alphaPhi.*,f.*\)" Gauss limitedLinear 1;
"div\(\(\(\(alpha.*\*thermo:rho.*\)\*nuEff.*\)\*dev2\(T\(grad\(U.*\)\)\)\)\)" Gauss linear; "div\(\(\(\(alpha.*\*rho.*\)\*nuEff.*\)\*dev2\(T\(grad\(U.*\)\)\)\)\)" Gauss linear;
} }
laplacianSchemes laplacianSchemes

View File

@ -32,7 +32,7 @@ divSchemes
"div\(alphaRhoPhi.*,U.*\)" Gauss limitedLinearV 1; "div\(alphaRhoPhi.*,U.*\)" Gauss limitedLinearV 1;
"div\(alphaPhi.*,f.*\)" Gauss limitedLinear 1; "div\(alphaPhi.*,f.*\)" Gauss limitedLinear 1;
"div\(\(\(\(alpha.*\*thermo:rho.*\)\*nuEff.*\)\*dev2\(T\(grad\(U.*\)\)\)\)\)" Gauss linear; "div\(\(\(\(alpha.*\*rho.*\)\*nuEff.*\)\*dev2\(T\(grad\(U.*\)\)\)\)\)" Gauss linear;
} }
laplacianSchemes laplacianSchemes

View File

@ -32,7 +32,7 @@ divSchemes
"div\(alphaRhoPhi.*,U.*\)" Gauss limitedLinearV 1; "div\(alphaRhoPhi.*,U.*\)" Gauss limitedLinearV 1;
"div\(alphaPhi.*,f.*\)" Gauss limitedLinear 1; "div\(alphaPhi.*,f.*\)" Gauss limitedLinear 1;
"div\(\(\(\(alpha.*\*thermo:rho.*\)\*nuEff.*\)\*dev2\(T\(grad\(U.*\)\)\)\)\)" Gauss linear; "div\(\(\(\(alpha.*\*rho.*\)\*nuEff.*\)\*dev2\(T\(grad\(U.*\)\)\)\)\)" Gauss linear;
} }
laplacianSchemes laplacianSchemes

View File

@ -23,7 +23,7 @@ waterSink
massFlowRate -21.86682; massFlowRate -21.86682;
phase water; phase water;
rho thermo:rho.water; rho rho.water;
fieldValues fieldValues
{ {

View File

@ -32,7 +32,7 @@ divSchemes
"div\(alphaRhoPhi.*,U.*\)" Gauss limitedLinearV 1; "div\(alphaRhoPhi.*,U.*\)" Gauss limitedLinearV 1;
"div\(alphaPhi.*,f.*\)" Gauss limitedLinear 1; "div\(alphaPhi.*,f.*\)" Gauss limitedLinear 1;
"div\(\(\(\(alpha.*\*thermo:rho.*\)\*nuEff.*\)\*dev2\(T\(grad\(U.*\)\)\)\)\)" Gauss linear; "div\(\(\(\(alpha.*\*rho.*\)\*nuEff.*\)\*dev2\(T\(grad\(U.*\)\)\)\)\)" Gauss linear;
} }
laplacianSchemes laplacianSchemes

View File

@ -24,7 +24,7 @@ massSource
massFlowRate 1e-3; massFlowRate 1e-3;
phase air1; phase air1;
rho thermo:rho.air1; rho rho.air1;
fieldValues fieldValues
{ {

View File

@ -37,7 +37,7 @@ divSchemes
"div\(alphaPhi.*,f.*\)" Gauss upwind; "div\(alphaPhi.*,f.*\)" Gauss upwind;
"div\(\(\(\(alpha.*\*thermo:rho.*\)\*nuEff.*\)\*dev2\(T\(grad\(U.*\)\)\)\)\)" Gauss linear; "div\(\(\(\(alpha.*\*rho.*\)\*nuEff.*\)\*dev2\(T\(grad\(U.*\)\)\)\)\)" Gauss linear;
} }
laplacianSchemes laplacianSchemes

View File

@ -23,7 +23,7 @@ waterSource
massFlowRate 30.785654; massFlowRate 30.785654;
phase water; phase water;
rho thermo:rho.water; rho rho.water;
fieldValues fieldValues
{ {

View File

@ -32,7 +32,7 @@ divSchemes
"div\(alphaRhoPhi.*,U.*\)" Gauss limitedLinearV 1; "div\(alphaRhoPhi.*,U.*\)" Gauss limitedLinearV 1;
"div\(alphaPhi.*,f.*\)" Gauss limitedLinear 1; "div\(alphaPhi.*,f.*\)" Gauss limitedLinear 1;
"div\(\(\(\(alpha.*\*thermo:rho.*\)\*nuEff.*\)\*dev2\(T\(grad\(U.*\)\)\)\)\)" Gauss linear; "div\(\(\(\(alpha.*\*rho.*\)\*nuEff.*\)\*dev2\(T\(grad\(U.*\)\)\)\)\)" Gauss linear;
} }
laplacianSchemes laplacianSchemes

View File

@ -32,7 +32,7 @@ divSchemes
"div\(alphaRhoPhi.*,U.*\)" Gauss limitedLinearV 1; "div\(alphaRhoPhi.*,U.*\)" Gauss limitedLinearV 1;
"div\(alphaPhi.*,f.*\)" Gauss limitedLinear 1; "div\(alphaPhi.*,f.*\)" Gauss limitedLinear 1;
"div\(\(\(\(alpha.*\*thermo:rho.*\)\*nuEff.*\)\*dev2\(T\(grad\(U.*\)\)\)\)\)" Gauss linear; "div\(\(\(\(alpha.*\*rho.*\)\*nuEff.*\)\*dev2\(T\(grad\(U.*\)\)\)\)\)" Gauss linear;
} }
laplacianSchemes laplacianSchemes

View File

@ -37,9 +37,9 @@ divSchemes
"div\(alphaRhoPhi.*,Yi\)" Gauss limitedLinear 1; "div\(alphaRhoPhi.*,Yi\)" Gauss limitedLinear 1;
"div\(alphaRhoPhi.*,(h|e).*\)" Gauss limitedLinear 1; "div\(alphaRhoPhi.*,(h|e).*\)" Gauss limitedLinear 1;
"div\(alphaRhoPhi.*,K.*\)" Gauss limitedLinear 1; "div\(alphaRhoPhi.*,K.*\)" Gauss limitedLinear 1;
"div\(alphaRhoPhi.*,\(p\|thermo:rho.*\)\)" Gauss limitedLinear 1; "div\(alphaRhoPhi.*,\(p\|rho.*\)\)" Gauss limitedLinear 1;
"div\(\(\(\(alpha.*\*thermo:rho.*\)*nuEff.*\)\*dev2\(T\(grad\(U.*\)\)\)\)\)" Gauss linear; "div\(\(\(\(alpha.*\*rho.*\)*nuEff.*\)\*dev2\(T\(grad\(U.*\)\)\)\)\)" Gauss linear;
} }
laplacianSchemes laplacianSchemes

View File

@ -26,19 +26,16 @@ boundaryField
{ {
type prghTotalPressure; type prghTotalPressure;
p0 uniform 1.18e5; p0 uniform 1.18e5;
rho thermo:rho;
} }
lowerOutlet lowerOutlet
{ {
type prghEntrainmentPressure; type prghEntrainmentPressure;
p0 $internalField; p0 $internalField;
rho thermo:rho;
} }
upperOutlet upperOutlet
{ {
type prghEntrainmentPressure; type prghEntrainmentPressure;
p0 $internalField; p0 $internalField;
rho thermo:rho;
} }
wall wall
{ {

View File

@ -37,7 +37,7 @@ divSchemes
div(rhoPhi,k) Gauss upwind; div(rhoPhi,k) Gauss upwind;
div(rhoPhi,epsilon) Gauss upwind; div(rhoPhi,epsilon) Gauss upwind;
div(phi,p) Gauss upwind; div(phi,p) Gauss upwind;
div(((thermo:rho*nuEff)*dev2(T(grad(U))))) Gauss linear; div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;
} }
laplacianSchemes laplacianSchemes

View File

@ -29,7 +29,6 @@ boundaryField
{ {
type prghTotalPressure; type prghTotalPressure;
p0 $internalField; p0 $internalField;
rho thermo:rho;
} }
#includeEtc "caseDicts/setConstraintTypes" #includeEtc "caseDicts/setConstraintTypes"

View File

@ -36,12 +36,12 @@ divSchemes
div(alphaRhoPhi.liquid,sigma.liquid) Gauss linearUpwind grad(sigma); div(alphaRhoPhi.liquid,sigma.liquid) Gauss linearUpwind grad(sigma);
div(((alpha.liquid*thermo:rho.liquid)*sigma.liquid)) Gauss linear; div(((alpha.liquid*rho.liquid)*sigma.liquid)) Gauss linear;
div((((alpha.liquid*thermo:rho.liquid)*nuM)*grad(U))) Gauss linear; div((((alpha.liquid*rho.liquid)*nuM)*grad(U))) Gauss linear;
div((((alpha.liquid*thermo:rho.liquid)*(mu.liquid|thermo:rho.liquid))*dev2(T(grad(U))))) Gauss linear; div((((alpha.liquid*rho.liquid)*(mu.liquid|rho.liquid))*dev2(T(grad(U))))) Gauss linear;
div((((alpha.air*thermo:rho.air)*nuEff.air)*dev2(T(grad(U))))) Gauss linear; div((((alpha.air*rho.air)*nuEff.air)*dev2(T(grad(U))))) Gauss linear;
div((((alpha.liquid*thermo:rho.liquid)*nuEff.liquid)*dev2(T(grad(U))))) Gauss linear; div((((alpha.liquid*rho.liquid)*nuEff.liquid)*dev2(T(grad(U))))) Gauss linear;
} }
laplacianSchemes laplacianSchemes

View File

@ -29,7 +29,6 @@ boundaryField
{ {
type prghTotalPressure; type prghTotalPressure;
p0 $internalField; p0 $internalField;
rho thermo:rho;
} }
"region0_to_wallFilm_.*" "region0_to_wallFilm_.*"

View File

@ -37,7 +37,7 @@ solution
interpolationSchemes interpolationSchemes
{ {
thermo:rho.air cell; rho.air cell;
U cellPoint; U cellPoint;
mu.air cell; mu.air cell;
T.air cell; T.air cell;

View File

@ -34,7 +34,7 @@ divSchemes
div(phi,p) Gauss upwind; div(phi,p) Gauss upwind;
div(rhoPhi,K) Gauss upwind; div(rhoPhi,K) Gauss upwind;
div(((thermo:rho*nuEff)*dev2(T(grad(U))))) Gauss linear; div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;
} }
laplacianSchemes laplacianSchemes

View File

@ -41,7 +41,6 @@ boundaryField
{ {
type prghTotalPressure; type prghTotalPressure;
p0 $internalField; p0 $internalField;
rho thermo:rho;
} }
defaultFaces defaultFaces

View File

@ -37,7 +37,7 @@ divSchemes
div(rhoPhi,epsilon) Gauss upwind; div(rhoPhi,epsilon) Gauss upwind;
div(rhoPhi,omega) Gauss upwind; div(rhoPhi,omega) Gauss upwind;
div(((thermo:rho*nuEff)*dev2(T(grad(U))))) Gauss linear; div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;
} }
laplacianSchemes laplacianSchemes

View File

@ -34,7 +34,7 @@ divSchemes
div(phi,p) Gauss upwind; div(phi,p) Gauss upwind;
div(phi,k) Gauss upwind; div(phi,k) Gauss upwind;
div(((thermo:rho*nuEff)*dev2(T(grad(U))))) Gauss linear; div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;
} }
laplacianSchemes laplacianSchemes

View File

@ -34,7 +34,7 @@ divSchemes
div(phi,p) Gauss upwind; div(phi,p) Gauss upwind;
div(phi,k) Gauss upwind; div(phi,k) Gauss upwind;
div(((thermo:rho*nuEff)*dev2(T(grad(U))))) Gauss linear; div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;
} }
laplacianSchemes laplacianSchemes

View File

@ -35,7 +35,6 @@ boundaryField
{ {
type prghTotalPressure; type prghTotalPressure;
p0 $internalField; p0 $internalField;
rho thermo:rho;
} }
#includeEtc "caseDicts/setConstraintTypes" #includeEtc "caseDicts/setConstraintTypes"

View File

@ -34,7 +34,7 @@ divSchemes
div(phi,p) Gauss upwind; div(phi,p) Gauss upwind;
div(rhoPhi,K) Gauss upwind; div(rhoPhi,K) Gauss upwind;
div(((thermo:rho*nuEff)*dev2(T(grad(U))))) Gauss linear; div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;
} }
laplacianSchemes laplacianSchemes

View File

@ -33,7 +33,7 @@ divSchemes
div(rhoPhi,K) Gauss linear; div(rhoPhi,K) Gauss linear;
div(phi,p) Gauss linear; div(phi,p) Gauss linear;
div(((thermo:rho*nuEff)*dev2(T(grad(U))))) Gauss linear; div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;
} }
laplacianSchemes laplacianSchemes

View File

@ -41,7 +41,6 @@ boundaryField
{ {
type prghTotalPressure; type prghTotalPressure;
p0 uniform 1e5; p0 uniform 1e5;
rho thermo:rho;
} }
defaultFaces defaultFaces

View File

@ -33,7 +33,7 @@ divSchemes
div(rhoPhi,T) Gauss upwind; div(rhoPhi,T) Gauss upwind;
div(rhoPhi,K) Gauss upwind; div(rhoPhi,K) Gauss upwind;
div(phi,p) Gauss upwind; div(phi,p) Gauss upwind;
div(((thermo:rho*nuEff)*dev2(T(grad(U))))) Gauss linear; div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;
} }
laplacianSchemes laplacianSchemes

View File

@ -31,7 +31,6 @@ boundaryField
atmosphere atmosphere
{ {
type prghTotalPressure; type prghTotalPressure;
rho rho;
psi none; psi none;
gamma 1; gamma 1;
p0 uniform 0; p0 uniform 0;

View File

@ -23,7 +23,6 @@ boundaryField
atmosphere atmosphere
{ {
type prghTotalPressure; type prghTotalPressure;
rho rho;
psi none; psi none;
gamma 1; gamma 1;
p0 uniform 0; p0 uniform 0;

View File

@ -38,10 +38,10 @@ divSchemes
"div\(alphaRhoPhi.*,(h|e).*\)" Gauss limitedLinear 1; "div\(alphaRhoPhi.*,(h|e).*\)" Gauss limitedLinear 1;
"div\(alphaRhoPhi.*,K.*\)" Gauss limitedLinear 1; "div\(alphaRhoPhi.*,K.*\)" Gauss limitedLinear 1;
"div\(alphaRhoPhi.*,\(p\|thermo:rho.*\)\)" Gauss limitedLinear 1; "div\(alphaRhoPhi.*,\(p\|rho.*\)\)" Gauss limitedLinear 1;
"div\(alphaRhoPhi.*,k.*\)" Gauss limitedLinear 1; "div\(alphaRhoPhi.*,k.*\)" Gauss limitedLinear 1;
"div\(\(\(\(alpha.*\*thermo:rho.*\)\*nuEff.*\)\*dev2\(T\(grad\(U.*\)\)\)\)\)" Gauss linear; "div\(\(\(\(alpha.*\*rho.*\)\*nuEff.*\)\*dev2\(T\(grad\(U.*\)\)\)\)\)" Gauss linear;
} }
laplacianSchemes laplacianSchemes

View File

@ -39,12 +39,12 @@ divSchemes
"div\(alphaRhoPhi.*,(h|e).*\)" Gauss linearUpwind limited; "div\(alphaRhoPhi.*,(h|e).*\)" Gauss linearUpwind limited;
"div\(alphaRhoPhi.*,f.*\)" Gauss upwind; "div\(alphaRhoPhi.*,f.*\)" Gauss upwind;
"div\(alphaRhoPhi.*,K.*\)" Gauss linearUpwind limited; "div\(alphaRhoPhi.*,K.*\)" Gauss linearUpwind limited;
"div\(alphaRhoPhi.*,\(p\|thermo:rho.*\)\)" Gauss linearUpwind limited; "div\(alphaRhoPhi.*,\(p\|rho.*\)\)" Gauss linearUpwind limited;
"div\(phi.*,kappai.*\)" Gauss linearUpwind limited; "div\(phi.*,kappai.*\)" Gauss linearUpwind limited;
"div\(alphaRhoPhi.*,(k|epsilon|omega).*\)" Gauss upwind; "div\(alphaRhoPhi.*,(k|epsilon|omega).*\)" Gauss upwind;
"div\(phim,(k|epsilon)m\)" Gauss upwind; "div\(phim,(k|epsilon)m\)" Gauss upwind;
"div\(\(\(\(alpha.*\*thermo:rho.*\)\*nuEff.*\)\*dev2\(T\(grad\(U.*\)\)\)\)\)" Gauss linear; "div\(\(\(\(alpha.*\*rho.*\)\*nuEff.*\)\*dev2\(T\(grad\(U.*\)\)\)\)\)" Gauss linear;
} }
laplacianSchemes laplacianSchemes

View File

@ -31,7 +31,7 @@ boundaryField
p0 $internalField; p0 $internalField;
U U.gas; U U.gas;
phi phi.gas; phi phi.gas;
rho thermo:rho.gas; rho rho.gas;
value $internalField; value $internalField;
} }

View File

@ -36,13 +36,13 @@ divSchemes
"div\(alphaRhoPhi.*,(h|e).*\)" Gauss limitedLinear 1; "div\(alphaRhoPhi.*,(h|e).*\)" Gauss limitedLinear 1;
"div\(alphaRhoPhi.*,K.*\)" Gauss limitedLinear 1; "div\(alphaRhoPhi.*,K.*\)" Gauss limitedLinear 1;
"div\(alphaRhoPhi.*,\(p\|thermo:rho.*\)\)" Gauss limitedLinear 1; "div\(alphaRhoPhi.*,\(p\|rho.*\)\)" Gauss limitedLinear 1;
div(alphaRhoPhi.solids,Theta.solids) Gauss limitedLinear 1; div(alphaRhoPhi.solids,Theta.solids) Gauss limitedLinear 1;
"div\(alphaRhoPhi.*,(k|epsilon).*\)" Gauss limitedLinear 1; "div\(alphaRhoPhi.*,(k|epsilon).*\)" Gauss limitedLinear 1;
div((((alpha.gas*thermo:rho.gas)*nuEff.gas)*dev2(T(grad(U.gas))))) Gauss linear; div((((alpha.gas*rho.gas)*nuEff.gas)*dev2(T(grad(U.gas))))) Gauss linear;
divDevTau(U.solids) Gauss linear; divDevTau(U.solids) Gauss linear;
} }

View File

@ -38,12 +38,12 @@ divSchemes
"div\(alphaRhoPhi.*,(h|e).*\)" Gauss limitedLinear 1; "div\(alphaRhoPhi.*,(h|e).*\)" Gauss limitedLinear 1;
"div\(alphaRhoPhi.*,K.*\)" Gauss limitedLinear 1; "div\(alphaRhoPhi.*,K.*\)" Gauss limitedLinear 1;
"div\(alphaRhoPhi.*,\(p\|thermo:rho.*\)\)" Gauss limitedLinear 1; "div\(alphaRhoPhi.*,\(p\|rho.*\)\)" Gauss limitedLinear 1;
"div\(alphaRhoPhi.*,(k|epsilon).*\)" Gauss limitedLinear 1; "div\(alphaRhoPhi.*,(k|epsilon).*\)" Gauss limitedLinear 1;
"div\(phim,(k|epsilon)m\)" Gauss limitedLinear 1; "div\(phim,(k|epsilon)m\)" Gauss limitedLinear 1;
"div\(\(\(\(alpha.*\*thermo:rho.*\)*nuEff.*\)\*dev2\(T\(grad\(U.*\)\)\)\)\)" Gauss linear; "div\(\(\(\(alpha.*\*rho.*\)*nuEff.*\)\*dev2\(T\(grad\(U.*\)\)\)\)\)" Gauss linear;
} }
laplacianSchemes laplacianSchemes

View File

@ -37,12 +37,12 @@ divSchemes
"div\(alphaRhoPhi.*,Yi\)" Gauss limitedLinear 1; "div\(alphaRhoPhi.*,Yi\)" Gauss limitedLinear 1;
"div\(alphaRhoPhi.*,(h|e).*\)" Gauss limitedLinear 1; "div\(alphaRhoPhi.*,(h|e).*\)" Gauss limitedLinear 1;
"div\(alphaRhoPhi.*,K.*\)" Gauss limitedLinear 1; "div\(alphaRhoPhi.*,K.*\)" Gauss limitedLinear 1;
"div\(alphaRhoPhi.*,\(p\|thermo:rho.*\)\)" Gauss limitedLinear 1; "div\(alphaRhoPhi.*,\(p\|rho.*\)\)" Gauss limitedLinear 1;
"div\(alphaRhoPhi.*,(k|epsilon).*\)" Gauss limitedLinear 1; "div\(alphaRhoPhi.*,(k|epsilon).*\)" Gauss limitedLinear 1;
"div\(phim,(k|epsilon)m\)" Gauss limitedLinear 1; "div\(phim,(k|epsilon)m\)" Gauss limitedLinear 1;
"div\(\(\(\(alpha.*\*thermo:rho.*\)\*nuEff.*\)\*dev2\(T\(grad\(U.*\)\)\)\)\)" Gauss linear; "div\(\(\(\(alpha.*\*rho.*\)\*nuEff.*\)\*dev2\(T\(grad\(U.*\)\)\)\)\)" Gauss linear;
} }
laplacianSchemes laplacianSchemes

View File

@ -23,7 +23,7 @@ massSource
massFlowRate 6e-7; massFlowRate 6e-7;
phase air1; phase air1;
rho thermo:rho.air1; rho rho.air1;
fieldValues fieldValues
{ {

View File

@ -36,7 +36,7 @@ divSchemes
"div\(alphaRhoPhi.*,(k|epsilon|omega).*\)" Gauss limitedLinear 1; "div\(alphaRhoPhi.*,(k|epsilon|omega).*\)" Gauss limitedLinear 1;
"div\(alphaPhi.*,f.*\)" Gauss limitedLinear 1; "div\(alphaPhi.*,f.*\)" Gauss limitedLinear 1;
"div\(\(\(\(alpha.*\*thermo:rho.*\)*nuEff.*\)*dev2\(T\(grad\(U.*\)\)\)\)\)" Gauss linear; "div\(\(\(\(alpha.*\*rho.*\)*nuEff.*\)*dev2\(T\(grad\(U.*\)\)\)\)\)" Gauss linear;
} }
laplacianSchemes laplacianSchemes

View File

@ -36,13 +36,13 @@ divSchemes
"div\(alphaRhoPhi.*,(h|e).*\)" Gauss limitedLinear 1; "div\(alphaRhoPhi.*,(h|e).*\)" Gauss limitedLinear 1;
"div\(alphaRhoPhi.*,K.*\)" Gauss limitedLinear 1; "div\(alphaRhoPhi.*,K.*\)" Gauss limitedLinear 1;
"div\(alphaRhoPhi.*,\(p\|thermo:rho.*\)\)" Gauss limitedLinear 1; "div\(alphaRhoPhi.*,\(p\|rho.*\)\)" Gauss limitedLinear 1;
div(alphaRhoPhi.particles,Theta.particles) Gauss limitedLinear 1; div(alphaRhoPhi.particles,Theta.particles) Gauss limitedLinear 1;
"div\(alphaRhoPhi.*,(k|epsilon).*\)" Gauss limitedLinear 1; "div\(alphaRhoPhi.*,(k|epsilon).*\)" Gauss limitedLinear 1;
div((((alpha.air*thermo:rho.air)*nuEff.air)*dev2(T(grad(U.air))))) Gauss linear; div((((alpha.air*rho.air)*nuEff.air)*dev2(T(grad(U.air))))) Gauss linear;
divDevTau(U.particles) Gauss linear; divDevTau(U.particles) Gauss linear;
} }

View File

@ -39,11 +39,11 @@ divSchemes
"div\(alphaRhoPhi.*,(h|e|k|epsilon).*\)" Gauss limitedLinear 1; "div\(alphaRhoPhi.*,(h|e|k|epsilon).*\)" Gauss limitedLinear 1;
"div\(alphaRhoPhi.*,K.*\)" Gauss limitedLinear 1; "div\(alphaRhoPhi.*,K.*\)" Gauss limitedLinear 1;
div(alphaRhoPhi.water,(p|thermo:rho.water)) Gauss limitedLinear 1; div(alphaRhoPhi.water,(p|rho.water)) Gauss limitedLinear 1;
div((((alpha.water*thermo:rho.water)*nuEff.water)*dev2(T(grad(U.water))))) Gauss linear; div((((alpha.water*rho.water)*nuEff.water)*dev2(T(grad(U.water))))) Gauss linear;
div((((thermo:rho.particles*nut.particles)*dev2(T(grad(U.particles))))+(((thermo:rho.particles*lambda.particles)*div(phi.particles))*I))) Gauss linear; div((((rho.particles*nut.particles)*dev2(T(grad(U.particles))))+(((rho.particles*lambda.particles)*div(phi.particles))*I))) Gauss linear;
} }
laplacianSchemes laplacianSchemes

View File

@ -129,11 +129,11 @@ functions
objects objects
( (
thermo:rho.gas rho.gas
mu.gas mu.gas
psi.gas psi.gas
kappa.gas kappa.gas
thermo:rho.liquid rho.liquid
mu.liquid mu.liquid
psi.liquid psi.liquid
kappa.liquid kappa.liquid

View File

@ -38,11 +38,11 @@ divSchemes
"div\(alphaRhoPhi.*,Yi\)" Gauss linearUpwind limited; "div\(alphaRhoPhi.*,Yi\)" Gauss linearUpwind limited;
"div\(alphaRhoPhi.*,(h|e).*\)" Gauss linearUpwind limited; "div\(alphaRhoPhi.*,(h|e).*\)" Gauss linearUpwind limited;
"div\(alphaRhoPhi.*,K.*\)" Gauss linearUpwind limited; "div\(alphaRhoPhi.*,K.*\)" Gauss linearUpwind limited;
"div\(alphaRhoPhi.*,\(p\|thermo:rho.*\)\)" Gauss linearUpwind limited; "div\(alphaRhoPhi.*,\(p\|rho.*\)\)" Gauss linearUpwind limited;
"div\(alphaRhoPhi.*,(k|epsilon|omega).*\)" Gauss linearUpwind limited; "div\(alphaRhoPhi.*,(k|epsilon|omega).*\)" Gauss linearUpwind limited;
"div\(phim,(k|epsilon)m\)" Gauss linearUpwind limited; "div\(phim,(k|epsilon)m\)" Gauss linearUpwind limited;
"div\(\(\(\(alpha.*\*thermo:rho.*\)\*nuEff.*\)\*dev2\(T\(grad\(U.*\)\)\)\)\)" Gauss linear; "div\(\(\(\(alpha.*\*rho.*\)\*nuEff.*\)\*dev2\(T\(grad\(U.*\)\)\)\)\)" Gauss linear;
} }
laplacianSchemes laplacianSchemes

View File

@ -38,12 +38,12 @@ divSchemes
"div\(alphaRhoPhi.*,Yi\)" Gauss linearUpwind limited; "div\(alphaRhoPhi.*,Yi\)" Gauss linearUpwind limited;
"div\(alphaRhoPhi.*,(h|e).*\)" Gauss linearUpwind limited; "div\(alphaRhoPhi.*,(h|e).*\)" Gauss linearUpwind limited;
"div\(alphaRhoPhi.*,K.*\)" Gauss linearUpwind limited; "div\(alphaRhoPhi.*,K.*\)" Gauss linearUpwind limited;
"div\(alphaRhoPhi.*,\(p\|thermo:rho.*\)\)" Gauss linearUpwind limited; "div\(alphaRhoPhi.*,\(p\|rho.*\)\)" Gauss linearUpwind limited;
"div\(phi.*,kappai.*\)" Gauss linearUpwind limited; "div\(phi.*,kappai.*\)" Gauss linearUpwind limited;
"div\(alphaRhoPhi.*,(k|epsilon|omega).*\)" Gauss linearUpwind limited; "div\(alphaRhoPhi.*,(k|epsilon|omega).*\)" Gauss linearUpwind limited;
"div\(phim,(k|epsilon)m\)" Gauss linearUpwind limited; "div\(phim,(k|epsilon)m\)" Gauss linearUpwind limited;
"div\(\(\(\(alpha.*\*thermo:rho.*\)\*nuEff.*\)\*dev2\(T\(grad\(U.*\)\)\)\)\)" Gauss linear; "div\(\(\(\(alpha.*\*rho.*\)\*nuEff.*\)\*dev2\(T\(grad\(U.*\)\)\)\)\)" Gauss linear;
} }
laplacianSchemes laplacianSchemes

View File

@ -39,11 +39,11 @@ divSchemes
"div\(alphaRhoPhi.*,(h|e).*\)" Gauss linearUpwind limited; "div\(alphaRhoPhi.*,(h|e).*\)" Gauss linearUpwind limited;
"div\(alphaPhi.*,f.*\)" Gauss linearUpwind limited; "div\(alphaPhi.*,f.*\)" Gauss linearUpwind limited;
"div\(alphaRhoPhi.*,K.*\)" Gauss linearUpwind limited; "div\(alphaRhoPhi.*,K.*\)" Gauss linearUpwind limited;
"div\(alphaRhoPhi.*,\(p\|thermo:rho.*\)\)" Gauss linearUpwind limited; "div\(alphaRhoPhi.*,\(p\|rho.*\)\)" Gauss linearUpwind limited;
"div\(alphaRhoPhi.*,(k|epsilon|omega).*\)" Gauss linearUpwind limited; "div\(alphaRhoPhi.*,(k|epsilon|omega).*\)" Gauss linearUpwind limited;
"div\(phim,(k|epsilon)m\)" Gauss linearUpwind limited; "div\(phim,(k|epsilon)m\)" Gauss linearUpwind limited;
"div\(\(\(\(alpha.*\*thermo:rho.*\)\*nuEff.*\)\*dev2\(T\(grad\(U.*\)\)\)\)\)" Gauss linear; "div\(\(\(\(alpha.*\*rho.*\)\*nuEff.*\)\*dev2\(T\(grad\(U.*\)\)\)\)\)" Gauss linear;
} }
laplacianSchemes laplacianSchemes

View File

@ -39,11 +39,11 @@ divSchemes
"div\(alphaRhoPhi.*,(h|e).*\)" Gauss linearUpwind limited; "div\(alphaRhoPhi.*,(h|e).*\)" Gauss linearUpwind limited;
"div\(alphaPhi.*,f.*\)" Gauss linearUpwind limited; "div\(alphaPhi.*,f.*\)" Gauss linearUpwind limited;
"div\(alphaRhoPhi.*,K.*\)" Gauss linearUpwind limited; "div\(alphaRhoPhi.*,K.*\)" Gauss linearUpwind limited;
"div\(alphaRhoPhi.*,\(p\|thermo:rho.*\)\)" Gauss linearUpwind limited; "div\(alphaRhoPhi.*,\(p\|rho.*\)\)" Gauss linearUpwind limited;
"div\(alphaRhoPhi.*,(k|epsilon|omega).*\)" Gauss linearUpwind limited; "div\(alphaRhoPhi.*,(k|epsilon|omega).*\)" Gauss linearUpwind limited;
"div\(phim,(k|epsilon)m\)" Gauss linearUpwind limited; "div\(phim,(k|epsilon)m\)" Gauss linearUpwind limited;
"div\(\(\(\(alpha.*\*thermo:rho.*\)\*nuEff.*\)\*dev2\(T\(grad\(U.*\)\)\)\)\)" Gauss linear; "div\(\(\(\(alpha.*\*rho.*\)\*nuEff.*\)\*dev2\(T\(grad\(U.*\)\)\)\)\)" Gauss linear;
} }
laplacianSchemes laplacianSchemes

View File

@ -25,7 +25,7 @@ boundaryField
p0 $internalField; p0 $internalField;
U U.air; U U.air;
phi phi.air; phi phi.air;
rho thermo:rho.air; rho rho.air;
value $internalField; value $internalField;
} }
walls walls

View File

@ -30,7 +30,7 @@ massSource
} }
phase water; phase water;
rho thermo:rho.water; rho rho.water;
fieldValues fieldValues
{ {

View File

@ -36,9 +36,9 @@ divSchemes
"div\(alphaRhoPhi.*,(h|e).*\)" Gauss limitedLinear 1; "div\(alphaRhoPhi.*,(h|e).*\)" Gauss limitedLinear 1;
"div\(alphaRhoPhi.*,K.*\)" Gauss limitedLinear 1; "div\(alphaRhoPhi.*,K.*\)" Gauss limitedLinear 1;
"div\(alphaRhoPhi.*,\(p\|thermo:rho.*\)\)" Gauss limitedLinear 1; "div\(alphaRhoPhi.*,\(p\|rho.*\)\)" Gauss limitedLinear 1;
"div\(\(\(\(alpha.*\*thermo:rho.*\)*nuEff.*\)\*dev2\(T\(grad\(U.*\)\)\)\)\)" Gauss linear; "div\(\(\(\(alpha.*\*rho.*\)*nuEff.*\)\*dev2\(T\(grad\(U.*\)\)\)\)\)" Gauss linear;
} }
laplacianSchemes laplacianSchemes

View File

@ -30,7 +30,7 @@ boundaryField
p0 $internalField; p0 $internalField;
U U.air; U U.air;
phi phi.air; phi phi.air;
rho thermo:rho.air; rho rho.air;
value $internalField; value $internalField;
} }
walls walls

View File

@ -38,10 +38,10 @@ divSchemes
"div\(alphaRhoPhi.*,(h|e).*\)" Gauss limitedLinear 1; "div\(alphaRhoPhi.*,(h|e).*\)" Gauss limitedLinear 1;
"div\(alphaRhoPhi.*,K.*\)" Gauss limitedLinear 1; "div\(alphaRhoPhi.*,K.*\)" Gauss limitedLinear 1;
"div\(alphaRhoPhi.*,\(p\|thermo:rho.*\)\)" Gauss limitedLinear 1; "div\(alphaRhoPhi.*,\(p\|rho.*\)\)" Gauss limitedLinear 1;
"div\(alphaRhoPhi.*,\(p\|thermo:rho.*\)\)" Gauss limitedLinear 1; "div\(alphaRhoPhi.*,\(p\|rho.*\)\)" Gauss limitedLinear 1;
"div\(\(\(\(alpha.*\*thermo:rho.*\)*nuEff.*\)\*dev2\(T\(grad\(U.*\)\)\)\)\)" Gauss linear; "div\(\(\(\(alpha.*\*rho.*\)*nuEff.*\)\*dev2\(T\(grad\(U.*\)\)\)\)\)" Gauss linear;
} }
laplacianSchemes laplacianSchemes

View File

@ -65,9 +65,9 @@ totalMass
mesh().lookupObject<volScalarField>("alpha.liquid"); mesh().lookupObject<volScalarField>("alpha.liquid");
const volScalarField& rhoGas = const volScalarField& rhoGas =
mesh().lookupObject<volScalarField>("thermo:rho.gas"); mesh().lookupObject<volScalarField>("rho.gas");
const volScalarField& rhoLiquid = const volScalarField& rhoLiquid =
mesh().lookupObject<volScalarField>("thermo:rho.liquid"); mesh().lookupObject<volScalarField>("rho.liquid");
const scalarField& v = mesh().V(); const scalarField& v = mesh().V();

View File

@ -37,9 +37,9 @@ divSchemes
"div\(alphaRhoPhi.*,Yi\)" Gauss limitedLinear 1; "div\(alphaRhoPhi.*,Yi\)" Gauss limitedLinear 1;
"div\(alphaRhoPhi.*,(h|e).*\)" Gauss limitedLinear 1; "div\(alphaRhoPhi.*,(h|e).*\)" Gauss limitedLinear 1;
"div\(alphaRhoPhi.*,K.*\)" Gauss limitedLinear 1; "div\(alphaRhoPhi.*,K.*\)" Gauss limitedLinear 1;
"div\(alphaRhoPhi.*,\(p\|thermo:rho.*\)\)" Gauss limitedLinear 1; "div\(alphaRhoPhi.*,\(p\|rho.*\)\)" Gauss limitedLinear 1;
"div\(\(\(\(alpha.*\*thermo:rho.*\)*nuEff.*\)\*dev2\(T\(grad\(U.*\)\)\)\)\)" Gauss linear; "div\(\(\(\(alpha.*\*rho.*\)*nuEff.*\)\*dev2\(T\(grad\(U.*\)\)\)\)\)" Gauss linear;
} }
laplacianSchemes laplacianSchemes

View File

@ -37,9 +37,9 @@ divSchemes
"div\(alphaRhoPhi.*,Yi\)" Gauss limitedLinear 1; "div\(alphaRhoPhi.*,Yi\)" Gauss limitedLinear 1;
"div\(alphaRhoPhi.*,(h|e).*\)" Gauss limitedLinear 1; "div\(alphaRhoPhi.*,(h|e).*\)" Gauss limitedLinear 1;
"div\(alphaRhoPhi.*,K.*\)" Gauss limitedLinear 1; "div\(alphaRhoPhi.*,K.*\)" Gauss limitedLinear 1;
"div\(alphaRhoPhi.*,\(p\|thermo:rho.*\)\)" Gauss limitedLinear 1; "div\(alphaRhoPhi.*,\(p\|rho.*\)\)" Gauss limitedLinear 1;
"div\(\(\(\(alpha.*\*thermo:rho.*\)*nuEff.*\)\*dev2\(T\(grad\(U.*\)\)\)\)\)" Gauss linear; "div\(\(\(\(alpha.*\*rho.*\)*nuEff.*\)\*dev2\(T\(grad\(U.*\)\)\)\)\)" Gauss linear;
} }
laplacianSchemes laplacianSchemes

View File

@ -40,9 +40,9 @@ divSchemes
"div\(alphaRhoPhi.*,(h|e).*\)" Gauss limitedLinear 1; "div\(alphaRhoPhi.*,(h|e).*\)" Gauss limitedLinear 1;
"div\(alphaRhoPhi.*,K.*\)" Gauss limitedLinear 1; "div\(alphaRhoPhi.*,K.*\)" Gauss limitedLinear 1;
"div\(alphaRhoPhi.*,\(p\|thermo:rho.*\)\)" Gauss limitedLinear 1; "div\(alphaRhoPhi.*,\(p\|rho.*\)\)" Gauss limitedLinear 1;
"div\(\(\(\(alpha.*\*thermo:rho.*\)*nuEff.*\)\*dev2\(T\(grad\(U.*\)\)\)\)\)" Gauss linear; "div\(\(\(\(alpha.*\*rho.*\)*nuEff.*\)\*dev2\(T\(grad\(U.*\)\)\)\)\)" Gauss linear;
} }
laplacianSchemes laplacianSchemes

View File

@ -43,7 +43,7 @@ boundaryField
p0 $internalField; p0 $internalField;
U U.air; U U.air;
phi phi.air; phi phi.air;
rho thermo:rho.air; rho rho.air;
value $internalField; value $internalField;
} }

View File

@ -34,9 +34,9 @@ divSchemes
"div\(alphaRhoPhi.*,(h|e).*\)" Gauss limitedLinear 1; "div\(alphaRhoPhi.*,(h|e).*\)" Gauss limitedLinear 1;
"div\(alphaRhoPhi.*,K.*\)" Gauss limitedLinear 1; "div\(alphaRhoPhi.*,K.*\)" Gauss limitedLinear 1;
"div\(alphaRhoPhi.*,\(p\|thermo:rho.*\)\)" Gauss limitedLinear 1; "div\(alphaRhoPhi.*,\(p\|rho.*\)\)" Gauss limitedLinear 1;
"div\(\(\(\(alpha.*\*thermo:rho.*\)*nuEff.*\)\*dev2\(T\(grad\(U.*\)\)\)\)\)" Gauss linear; "div\(\(\(\(alpha.*\*rho.*\)*nuEff.*\)\*dev2\(T\(grad\(U.*\)\)\)\)\)" Gauss linear;
} }
laplacianSchemes laplacianSchemes

View File

@ -36,9 +36,9 @@ divSchemes
"div\(alphaRhoPhi.*,(h|e).*\)" Gauss limitedLinear 1; "div\(alphaRhoPhi.*,(h|e).*\)" Gauss limitedLinear 1;
"div\(alphaRhoPhi.*,K.*\)" Gauss limitedLinear 1; "div\(alphaRhoPhi.*,K.*\)" Gauss limitedLinear 1;
"div\(alphaRhoPhi.*,\(p\|thermo:rho.*\)\)" Gauss limitedLinear 1; "div\(alphaRhoPhi.*,\(p\|rho.*\)\)" Gauss limitedLinear 1;
div((((alpha.air*thermo:rho.air)*nuEff.air)*dev2(T(grad(U.air))))) Gauss linear; div((((alpha.air*rho.air)*nuEff.air)*dev2(T(grad(U.air))))) Gauss linear;
} }
laplacianSchemes laplacianSchemes

View File

@ -24,7 +24,7 @@ massSource
); );
phase air; phase air;
rho thermo:rho.air; rho rho.air;
massFlowRate massFlowRate
{ {

View File

@ -38,9 +38,9 @@ divSchemes
"div\(alphaRhoPhi.*,(h|e).*\)" Gauss limitedLinear 1; "div\(alphaRhoPhi.*,(h|e).*\)" Gauss limitedLinear 1;
"div\(alphaRhoPhi.*,K.*\)" Gauss limitedLinear 1; "div\(alphaRhoPhi.*,K.*\)" Gauss limitedLinear 1;
"div\(alphaRhoPhi.*,\(p\|thermo:rho.*\)\)" Gauss limitedLinear 1; "div\(alphaRhoPhi.*,\(p\|rho.*\)\)" Gauss limitedLinear 1;
"div\(\(\(\(alpha.*\*thermo:rho.*\)\*nuEff.*\)\*dev2\(T\(grad\(U.*\)\)\)\)\)" Gauss linear; "div\(\(\(\(alpha.*\*rho.*\)\*nuEff.*\)\*dev2\(T\(grad\(U.*\)\)\)\)\)" Gauss linear;
} }
laplacianSchemes laplacianSchemes

View File

@ -34,9 +34,9 @@ divSchemes
"div\(alphaRhoPhi.*,(h|e).*\)" Gauss limitedLinear 1; "div\(alphaRhoPhi.*,(h|e).*\)" Gauss limitedLinear 1;
"div\(alphaRhoPhi.*,K.*\)" Gauss limitedLinear 1; "div\(alphaRhoPhi.*,K.*\)" Gauss limitedLinear 1;
"div\(alphaRhoPhi.*,\(p\|thermo:rho.*\)\)" Gauss limitedLinear 1; "div\(alphaRhoPhi.*,\(p\|rho.*\)\)" Gauss limitedLinear 1;
"div\(\(\(\(alpha.*\*thermo:rho.*\)*nuEff.*\)\*dev2\(T\(grad\(U.*\)\)\)\)\)" Gauss linear; "div\(\(\(\(alpha.*\*rho.*\)*nuEff.*\)\*dev2\(T\(grad\(U.*\)\)\)\)\)" Gauss linear;
} }
laplacianSchemes laplacianSchemes

View File

@ -34,9 +34,9 @@ divSchemes
"div\(alphaRhoPhi.*,(h|e).*\)" Gauss limitedLinear 1; "div\(alphaRhoPhi.*,(h|e).*\)" Gauss limitedLinear 1;
"div\(alphaRhoPhi.*,K.*\)" Gauss limitedLinear 1; "div\(alphaRhoPhi.*,K.*\)" Gauss limitedLinear 1;
"div\(alphaRhoPhi.*,\(p\|thermo:rho.*\)\)" Gauss limitedLinear 1; "div\(alphaRhoPhi.*,\(p\|rho.*\)\)" Gauss limitedLinear 1;
"div\(\(\(\(alpha.*\*thermo:rho.*\)*nuEff.*\)\*dev2\(T\(grad\(U.*\)\)\)\)\)" Gauss linear; "div\(\(\(\(alpha.*\*rho.*\)*nuEff.*\)\*dev2\(T\(grad\(U.*\)\)\)\)\)" Gauss linear;
} }
laplacianSchemes laplacianSchemes

View File

@ -24,7 +24,7 @@ massSource
); );
phase steam; phase steam;
rho thermo:rho.steam; rho rho.steam;
massFlowRate massFlowRate
{ {

View File

@ -37,12 +37,12 @@ divSchemes
"div\(alphaRhoPhi.*,Yi\)" Gauss limitedLinear 1; "div\(alphaRhoPhi.*,Yi\)" Gauss limitedLinear 1;
"div\(alphaRhoPhi.*,(h|e).*\)" Gauss limitedLinear 1; "div\(alphaRhoPhi.*,(h|e).*\)" Gauss limitedLinear 1;
"div\(alphaRhoPhi.*,K.*\)" Gauss limitedLinear 1; "div\(alphaRhoPhi.*,K.*\)" Gauss limitedLinear 1;
"div\(alphaRhoPhi.*,\(p\|thermo:rho.*\)\)" Gauss limitedLinear 1; "div\(alphaRhoPhi.*,\(p\|rho.*\)\)" Gauss limitedLinear 1;
"div\(alphaRhoPhi.*,(k|epsilon).*\)" Gauss limitedLinear 1; "div\(alphaRhoPhi.*,(k|epsilon).*\)" Gauss limitedLinear 1;
"div\(phim,(k|epsilon)m\)" Gauss limitedLinear 1; "div\(phim,(k|epsilon)m\)" Gauss limitedLinear 1;
"div\(\(\(\(alpha.*\*thermo:rho.*\)\*nuEff.*\)\*dev2\(T\(grad\(U.*\)\)\)\)\)" Gauss linear; "div\(\(\(\(alpha.*\*rho.*\)\*nuEff.*\)\*dev2\(T\(grad\(U.*\)\)\)\)\)" Gauss linear;
} }
laplacianSchemes laplacianSchemes

View File

@ -25,7 +25,7 @@ boundaryField
{ {
type flowRateInletVelocity; type flowRateInletVelocity;
massFlowRate 2.173893e-07; massFlowRate 2.173893e-07;
rho thermo:rho.vapor; rho rho.vapor;
profile laminarBL; profile laminarBL;
value $internalField; value $internalField;
} }

View File

@ -32,7 +32,7 @@ boundaryField
type prghTotalPressure; type prghTotalPressure;
U U.vapor; U U.vapor;
phi phi.vapor; phi phi.vapor;
rho thermo:rho.vapor; rho rho.vapor;
p0 uniform 1e5; p0 uniform 1e5;
value $internalField; value $internalField;
} }

View File

@ -38,12 +38,12 @@ divSchemes
"div\(alphaRhoPhi.*,(k|epsilon|h|e).*\)" Gauss limitedLinear 1; "div\(alphaRhoPhi.*,(k|epsilon|h|e).*\)" Gauss limitedLinear 1;
"div\(alphaRhoPhi.*,K.*\)" Gauss limitedLinear 1; "div\(alphaRhoPhi.*,K.*\)" Gauss limitedLinear 1;
"div\(alphaRhoPhi.*,Y.*\)" Gauss limitedLinear 1; "div\(alphaRhoPhi.*,Y.*\)" Gauss limitedLinear 1;
"div\(alphaRhoPhi.*,\(p\|thermo:rho.*\)\)" Gauss limitedLinear 1; "div\(alphaRhoPhi.*,\(p\|rho.*\)\)" Gauss limitedLinear 1;
"div\(alphaPhi.*,f.*\)" Gauss upwind; "div\(alphaPhi.*,f.*\)" Gauss upwind;
"div\(fAlphaPhi.*,kappa.*\)" Gauss linearUpwind limited; "div\(fAlphaPhi.*,kappa.*\)" Gauss linearUpwind limited;
"div\(\(\(\(alpha.*\*thermo:rho.*\)\*nuEff.*\)\*dev2\(T\(grad\(U.*\)\)\)\)\)" Gauss linear; "div\(\(\(\(alpha.*\*rho.*\)\*nuEff.*\)\*dev2\(T\(grad\(U.*\)\)\)\)\)" Gauss linear;
} }
laplacianSchemes laplacianSchemes

View File

@ -25,7 +25,7 @@ boundaryField
{ {
type flowRateInletVelocity; type flowRateInletVelocity;
massFlowRate 2.173893e-07; massFlowRate 2.173893e-07;
rho thermo:rho.vapor; rho rho.vapor;
profile laminarBL; profile laminarBL;
value $internalField; value $internalField;
} }

View File

@ -32,7 +32,7 @@ boundaryField
type prghTotalPressure; type prghTotalPressure;
U U.vapor; U U.vapor;
phi phi.vapor; phi phi.vapor;
rho thermo:rho.vapor; rho rho.vapor;
p0 uniform 1e5; p0 uniform 1e5;
value $internalField; value $internalField;
} }

View File

@ -38,12 +38,12 @@ divSchemes
"div\(alphaRhoPhi.*,(k|epsilon|h|e).*\)" Gauss limitedLinear 1; "div\(alphaRhoPhi.*,(k|epsilon|h|e).*\)" Gauss limitedLinear 1;
"div\(alphaRhoPhi.*,K.*\)" Gauss limitedLinear 1; "div\(alphaRhoPhi.*,K.*\)" Gauss limitedLinear 1;
"div\(alphaRhoPhi.*,Y.*\)" Gauss limitedLinear 1; "div\(alphaRhoPhi.*,Y.*\)" Gauss limitedLinear 1;
"div\(alphaRhoPhi.*,\(p\|thermo:rho.*\)\)" Gauss limitedLinear 1; "div\(alphaRhoPhi.*,\(p\|rho.*\)\)" Gauss limitedLinear 1;
"div\(alphaPhi.*,f.*\)" Gauss upwind; "div\(alphaPhi.*,f.*\)" Gauss upwind;
"div\(fAlphaPhi.*,kappa.*\)" Gauss linearUpwind limited; "div\(fAlphaPhi.*,kappa.*\)" Gauss linearUpwind limited;
"div\(\(\(\(alpha.*\*thermo:rho.*\)\*nuEff.*\)\*dev2\(T\(grad\(U.*\)\)\)\)\)" Gauss linear; "div\(\(\(\(alpha.*\*rho.*\)\*nuEff.*\)\*dev2\(T\(grad\(U.*\)\)\)\)\)" Gauss linear;
} }
laplacianSchemes laplacianSchemes