mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
VoF: localize reading of alpha controls
This commit is contained in:
12
src/finiteVolume/cfdTools/general/include/alphaControls.H
Normal file
12
src/finiteVolume/cfdTools/general/include/alphaControls.H
Normal file
@ -0,0 +1,12 @@
|
||||
const dictionary& alphaControls = mesh.solverDict(alpha1.name());
|
||||
label nAlphaCorr(readLabel(alphaControls.lookup("nAlphaCorr")));
|
||||
label nAlphaSubCycles(readLabel(alphaControls.lookup("nAlphaSubCycles")));
|
||||
Switch MULESCorr(alphaControls.lookup("MULESCorr"));
|
||||
|
||||
if (nAlphaSubCycles > 1 && pimple.nCorrPIMPLE() != 1)
|
||||
{
|
||||
FatalErrorIn(args.executable())
|
||||
<< "Sub-cycling alpha is only allowed for PISO operation, "
|
||||
"i.e. when the number of outer-correctors = 1"
|
||||
<< exit(FatalError);
|
||||
}
|
||||
Reference in New Issue
Block a user