functionObjects: phaseScalarTransport: Solution control update

This commit is contained in:
Will Bainbridge
2019-02-14 19:40:23 +00:00
parent 111cdf3a65
commit a86fe1f3ac

View File

@ -167,16 +167,12 @@ Foam::functionObjects::phaseScalarTransport::alphaPhi()
writeDDt(0);
}
// Construct a non-orthogonal solution control
nonOrthogonalSolutionControl control
(
const_cast<fvMesh&>(mesh_),
// Lookup the non-orthogonal solution control
nonOrthogonalSolutionControl& control =
mesh_.lookupObjectRef<nonOrthogonalSolutionControl>
(
solutionControl::typeName
)
.algorithmName()
);
);
// Solve for the potential and correct alphaPhi with the resulting flux
if (phi.dimensions() == dimVolume/dimTime)