This repository has been archived on 2023-11-20. You can view files and clone it, but cannot push or open issues or pull requests.
foam-extend4.1-coherent-io/applications/solvers/coupled/transientFoam/readBlockSolverControls.H

34 lines
730 B
C++

label pRefCell = 0;
scalar pRefValue = 0;
// Number of outer correctors
const label nOuterCorrectors = readLabel
(
mesh.solutionDict().subDict("blockSolver").lookup("nOuterCorrectors")
);
setRefCell
(
p,
mesh.solutionDict().subDict("blockSolver"),
pRefCell,
pRefValue
);
mesh.solutionDict().subDict("blockSolver").readIfPresent
(
"convergence",
convergenceCriterion
);
mesh.solutionDict().subDict("blockSolver").readIfPresent
(
"convergence",
convergenceCriterion
);
mesh.solutionDict().subDict("blockSolver").readIfPresent
(
"convergence",
convergenceCriterion
);