BUG: Fixing entry consistency in PhaseMixtureEThermo.C

and reading dpdt in one basicThermo constructor
This commit is contained in:
sergio
2019-02-20 16:45:12 -08:00
committed by Andrew Heather
parent 4b1eea0cf1
commit 1dc9e7c4f4
2 changed files with 5 additions and 3 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 | \\ / 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;
} }

View File

@ -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))
{} {}