diff --git a/applications/solvers/multiphase/reactingEulerFoam/reactingMultiphaseEulerFoam/setRDeltaT.H b/applications/solvers/multiphase/reactingEulerFoam/reactingMultiphaseEulerFoam/setRDeltaT.H index 9e9ca5423090d416c988e44e5663849fad33119f..c0ca68835cee98c1ad49aaef2c6e24e9e8080418 100644 --- a/applications/solvers/multiphase/reactingEulerFoam/reactingMultiphaseEulerFoam/setRDeltaT.H +++ b/applications/solvers/multiphase/reactingEulerFoam/reactingMultiphaseEulerFoam/setRDeltaT.H @@ -1,13 +1,21 @@ { volScalarField& rDeltaT = trDeltaT(); + const dictionary& pimpleDict = pimple.dict(); + + scalar maxCo + ( + pimpleDict.lookupOrDefault<scalar>("maxCo", 0.2) + ); + + scalar maxDeltaT + ( + pimpleDict.lookupOrDefault<scalar>("maxDeltaT", GREAT) + ); + scalar rDeltaTSmoothingCoeff ( - runTime.controlDict().lookupOrDefault<scalar> - ( - "rDeltaTSmoothingCoeff", - 0.02 - ) + pimpleDict.lookupOrDefault<scalar>("rDeltaTSmoothingCoeff", 0.02) ); surfaceScalarField maxPhi("maxPhi", phi); diff --git a/applications/solvers/multiphase/reactingEulerFoam/reactingTwoPhaseEulerFoam/setRDeltaT.H b/applications/solvers/multiphase/reactingEulerFoam/reactingTwoPhaseEulerFoam/setRDeltaT.H index f9f736f788d8816494ddd07728401eb84ee3b312..ff07dc4a32220dad7329838e4b87f17d5c94e762 100644 --- a/applications/solvers/multiphase/reactingEulerFoam/reactingTwoPhaseEulerFoam/setRDeltaT.H +++ b/applications/solvers/multiphase/reactingEulerFoam/reactingTwoPhaseEulerFoam/setRDeltaT.H @@ -1,13 +1,21 @@ { volScalarField& rDeltaT = trDeltaT(); + const dictionary& pimpleDict = pimple.dict(); + + scalar maxCo + ( + pimpleDict.lookupOrDefault<scalar>("maxCo", 0.2) + ); + + scalar maxDeltaT + ( + pimpleDict.lookupOrDefault<scalar>("maxDeltaT", GREAT) + ); + scalar rDeltaTSmoothingCoeff ( - runTime.controlDict().lookupOrDefault<scalar> - ( - "rDeltaTSmoothingCoeff", - 0.02 - ) + pimpleDict.lookupOrDefault<scalar>("rDeltaTSmoothingCoeff", 0.02) ); // Set the reciprocal time-step from the local Courant number