OpenFOAM-5.x/applications/solvers/heatTransfer/chtMultiRegionFoam/chtMultiRegionSimpleFoam/solid/readSolidMultiRegionResidualControls.H
Henry Weller f04f5b1563 chtMultiRegionSimpleFoam: Added residual convergence control
Patch contributed by Tobias Holzmann
Resolves contribution request https://bugs.openfoam.org/view.php?id=2548
2017-05-21 11:39:24 +01:00

19 lines
555 B
C

const dictionary& residualControl =
mesh.solutionDict().subDict("SIMPLE").subOrEmptyDict("residualControl");
scalar hTol = -1.;
if (!residualControl.empty())
{
if (!residualControl.subOrEmptyDict("h").empty())
{
hTol = readScalar(residualControl.subDict("h").lookup("tolerance"));
//- Used residual control for actual solid region
if (hTol != -1)
{
residualControlUsed = true;
resReachedSolid = false;
}
}
}