BUG: Correction for commit ead256f50

This commit is contained in:
Andrew Heather
2017-06-28 14:07:26 +01:00
parent 1c05248249
commit 367095f666
2 changed files with 5 additions and 7 deletions

View File

@ -101,7 +101,7 @@ public:
{ {
if (is.good() && !is.eof()) if (is.good() && !is.eof())
{ {
this->ddtPhiCoeff_ = readScalar(is); is >> this->ddtPhiCoeff_;
} }
// Ensure the old-old-time cell volumes are available // Ensure the old-old-time cell volumes are available

View File

@ -171,10 +171,11 @@ tmp<surfaceScalarField> ddtScheme<Type>::fvcDdtPhiCoeff
) )
); );
surfaceScalarField& ddtCouplingCoeff = tddtCouplingCoeff.ref();
if (ddtPhiCoeff_ < 0) if (ddtPhiCoeff_ < 0)
{ {
tddtCouplingCoeff.ref() =- min ddtCouplingCoeff -= min
( (
mag(phiCorr) mag(phiCorr)
/(mag(phi) + dimensionedScalar("small", phi.dimensions(), SMALL)), /(mag(phi) + dimensionedScalar("small", phi.dimensions(), SMALL)),
@ -183,14 +184,11 @@ tmp<surfaceScalarField> ddtScheme<Type>::fvcDdtPhiCoeff
} }
else else
{ {
tddtCouplingCoeff.ref() = ddtCouplingCoeff =
dimensionedScalar("ddtPhiCoeff", dimless, ddtPhiCoeff_); dimensionedScalar("ddtPhiCoeff", dimless, ddtPhiCoeff_);
} }
surfaceScalarField& ddtCouplingCoeff = tddtCouplingCoeff.ref(); surfaceScalarField::Boundary& ccbf = ddtCouplingCoeff.boundaryFieldRef();
surfaceScalarField::Boundary& ccbf =
ddtCouplingCoeff.boundaryFieldRef();
forAll(U.boundaryField(), patchi) forAll(U.boundaryField(), patchi)
{ {