mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: Fixing entry consistency in PhaseMixtureEThermo.C
and reading dpdt in one basicThermo constructor
This commit is contained in:
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2016 OpenCFD Ltd.
|
\\ / A nd | Copyright (C) 2016-2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -570,7 +570,7 @@ bool Foam::twoPhaseMixtureEThermo::read()
|
|||||||
{
|
{
|
||||||
if (basicThermo::read() && thermoIncompressibleTwoPhaseMixture::read())
|
if (basicThermo::read() && thermoIncompressibleTwoPhaseMixture::read())
|
||||||
{
|
{
|
||||||
basicThermo::readEntry("pDivU", pDivU_);
|
basicThermo::readIfPresent("pDivU", pDivU_);
|
||||||
basicThermo::readEntry("TSat", TSat_);
|
basicThermo::readEntry("TSat", TSat_);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -242,7 +242,9 @@ Foam::basicThermo::basicThermo
|
|||||||
),
|
),
|
||||||
mesh,
|
mesh,
|
||||||
dimensionedScalar(dimensionSet(1, -1, -1, 0, 0), Zero)
|
dimensionedScalar(dimensionSet(1, -1, -1, 0, 0), Zero)
|
||||||
)
|
),
|
||||||
|
|
||||||
|
dpdt_(lookupOrDefault<Switch>("dpdt", true))
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user