Commit 7309d6cf authored by Andrew Heather's avatar Andrew Heather
Browse files

BUG: Correction for commit 19cbd48b

parent 7d6db0fd
......@@ -101,7 +101,7 @@ public:
{
if (is.good() && !is.eof())
{
this->ddtPhiCoeff_ = readScalar(is);
is >> this->ddtPhiCoeff_;
}
// Ensure the old-old-time cell volumes are available
......
......@@ -171,10 +171,11 @@ tmp<surfaceScalarField> ddtScheme<Type>::fvcDdtPhiCoeff
)
);
surfaceScalarField& ddtCouplingCoeff = tddtCouplingCoeff.ref();
if (ddtPhiCoeff_ < 0)
{
tddtCouplingCoeff.ref() =- min
ddtCouplingCoeff -= min
(
mag(phiCorr)
/(mag(phi) + dimensionedScalar("small", phi.dimensions(), SMALL)),
......@@ -183,14 +184,11 @@ tmp<surfaceScalarField> ddtScheme<Type>::fvcDdtPhiCoeff
}
else
{
tddtCouplingCoeff.ref() =
ddtCouplingCoeff =
dimensionedScalar("ddtPhiCoeff", dimless, ddtPhiCoeff_);
}
surfaceScalarField& ddtCouplingCoeff = tddtCouplingCoeff.ref();
surfaceScalarField::Boundary& ccbf =
ddtCouplingCoeff.boundaryFieldRef();
surfaceScalarField::Boundary& ccbf = ddtCouplingCoeff.boundaryFieldRef();
forAll(U.boundaryField(), patchi)
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment