mirror of
https://github.com/OpenFOAM/OpenFOAM-6.git
synced 2025-12-08 06:57:46 +00:00
chemFoam: Limit the initial time-step to that specified in controlDict
This commit is contained in:
@ -1,8 +1,12 @@
|
||||
BasicChemistryModel<psiReactionThermo>& chemistry = pChemistry();
|
||||
scalar dtChem = refCast<const BasicChemistryModel<psiReactionThermo>>
|
||||
scalar dtChem = min
|
||||
(
|
||||
chemistry
|
||||
).deltaTChem()[0];
|
||||
refCast<const BasicChemistryModel<psiReactionThermo>>
|
||||
(
|
||||
chemistry
|
||||
).deltaTChem()[0],
|
||||
runTime.deltaT().value()
|
||||
);
|
||||
basicSpecieMixture& composition = thermo.composition();
|
||||
PtrList<volScalarField>& Y = composition.Y();
|
||||
volScalarField& p = thermo.p();
|
||||
|
||||
Reference in New Issue
Block a user