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