compressibleMultiphaseInterFoam: VoF and MULES controls are now in the alpha sub-dict of fvSolution

consistent with multiphaseInterFoam and other VoF solvers
This commit is contained in:
Henry
2015-04-29 16:32:33 +01:00
parent b5b6791230
commit 00ce68ee18
2 changed files with 9 additions and 8 deletions

View File

@ -705,12 +705,9 @@ void Foam::multiphaseMixtureThermo::solve()
{ {
const Time& runTime = mesh_.time(); const Time& runTime = mesh_.time();
const dictionary& pimpleDict = mesh_.solutionDict().subDict("PIMPLE"); const dictionary& alphaControls = mesh_.solverDict("alpha");
label nAlphaSubCycles(readLabel(alphaControls.lookup("nAlphaSubCycles")));
label nAlphaSubCycles(readLabel(pimpleDict.lookup("nAlphaSubCycles"))); scalar cAlpha(readScalar(alphaControls.lookup("cAlpha")));
scalar cAlpha(readScalar(pimpleDict.lookup("cAlpha")));
volScalarField& alpha = phases_.first(); volScalarField& alpha = phases_.first();

View File

@ -17,6 +17,12 @@ FoamFile
solvers solvers
{ {
"alpha.*"
{
nAlphaSubCycles 4;
cAlpha 2;
}
pcorr pcorr
{ {
solver PCG; solver PCG;
@ -102,8 +108,6 @@ PIMPLE
{ {
nCorrectors 2; nCorrectors 2;
nNonOrthogonalCorrectors 0; nNonOrthogonalCorrectors 0;
nAlphaSubCycles 4;
cAlpha 2;
} }
relaxationFactors relaxationFactors