alphaControls.H
Go to the documentation of this file.
1 const dictionary& alphaControls = mesh.solverDict(alpha1.name());
2 
3 label nAlphaCorr(readLabel(alphaControls.lookup("nAlphaCorr")));
4 
5 label nAlphaSubCycles(readLabel(alphaControls.lookup("nAlphaSubCycles")));
6 
7 bool MULESCorr(alphaControls.lookupOrDefault<Switch>("MULESCorr", false));
8 
9 // Apply the compression correction from the previous iteration
10 // Improves efficiency for steady-simulations but can only be applied
11 // once the alpha field is reasonably steady, i.e. fully developed
12 //bool alphaApplyPrevCorr
13 //(
14 // alphaControls.lookupOrDefault<Switch>("alphaApplyPrevCorr", false)
15 //);
16 
17 // Isotropic compression coefficient
18 scalar icAlpha
19 (
20  alphaControls.lookupOrDefault<scalar>("icAlpha", 0)
21 );
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Definition: label.H:59
dynamicFvMesh & mesh
const dictionary & alphaControls
Definition: alphaControls.H:1
label readLabel(Istream &is)
Definition: label.H:64
label nAlphaCorr(readLabel(alphaControls.lookup("nAlphaCorr")))
scalar icAlpha(alphaControls.lookupOrDefault< scalar >("icAlpha", 0))
volScalarField & alpha1
Definition: createFields.H:15
label nAlphaSubCycles(readLabel(alphaControls.lookup("nAlphaSubCycles")))
bool MULESCorr(alphaControls.lookupOrDefault< Switch >("MULESCorr", false))