openfoam/applications/solvers/stressAnalysis/solidDisplacementFoam/readSolidDisplacementFoamControls.H
Mark Olesen 80b8071e75 ENH: add default control values to ease SIMPLE->PIMPLE transition
- add const-ness for control variables

- drop unused fluxGradp variable

- use lookupOrDefault instead of found/lookup combination
2010-05-20 08:24:55 +02:00

7 lines
296 B
C

const dictionary& stressControl = mesh.solutionDict().subDict("stressAnalysis");
const int nCorr = stressControl.lookupOrDefault<int>("nCorrectors", 1);
scalar convergenceTolerance(readScalar(stressControl.lookup("D")));
Switch compactNormalStress(stressControl.lookup("compactNormalStress"));