OpenFOAM
5.0
The OpenFOAM Foundation
applications
solvers
heatTransfer
chtMultiRegionFoam
chtMultiRegionSimpleFoam
solid
readSolidMultiRegionResidualControls.H
Go to the documentation of this file.
1
const
dictionary&
residualControl
=
2
mesh
.solutionDict().subDict(
"SIMPLE"
).subOrEmptyDict(
"residualControl"
);
3
4
scalar hTol = -1.;
5
6
if
(!residualControl.empty())
7
{
8
if
(!residualControl.subOrEmptyDict(
"h"
).empty())
9
{
10
hTol =
readScalar
(residualControl.subDict(
"h"
).lookup(
"tolerance"
));
11
12
//- Used residual control for actual solid region
13
if
(hTol != -1)
14
{
15
residualControlUsed
=
true
;
16
resReachedSolid
=
false
;
17
}
18
}
19
}
readScalar
#define readScalar
Definition:
doubleScalar.C:38
residualControlUsed
bool & residualControlUsed
Definition:
setRegionFluidFields.H:38
residualControl
const dictionary & residualControl
Definition:
readSolidMultiRegionResidualControls.H:1
mesh
dynamicFvMesh & mesh
Definition:
createDynamicFvMesh.H:18
resReachedSolid
bool & resReachedSolid
Definition:
setRegionSolidFields.H:34
Generated by
1.8.13