View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0003949 | OpenFOAM | Patch | public | 2023-01-04 13:32 | 2023-01-04 13:58 |
Reporter | cgoessni | Assigned To | henry | ||
Priority | normal | Severity | minor | Reproducibility | N/A |
Status | closed | Resolution | no change required | ||
Product Version | dev | ||||
Summary | 0003949: veryInhomogeneousMixture: impact of reaction regress variable on mixture state missing? | ||||
Description | I am trying to simulate multi-cycle internal combustion engine LES simulations with XiFoam. I am trying to understand how to consider unburnt gas and residual gas from the previous cycle in the cylinder. veryInhomogeneousMixture seems appropriate for this task. However, I am not sure if it accounts for the state of the combustion: src/thermophysicalModels/multicomponentThermo/mixtures/veryInhomogeneousMixture/veryInhomogeneousMixture.C, lines 74-96 read as: template<class ThermoType> const ThermoType& Foam::veryInhomogeneousMixture<ThermoType>::mixture ( const scalar ft, const scalar fu ) const { if (ft < 0.0001) { return oxidant_; } else { scalar ox = 1 - ft - (ft - fu)*stoicRatio().value(); scalar pr = 1 - fu - ox; mixture_ = fu*fuel_; mixture_ += ox*oxidant_; mixture_ += pr*products_; return mixture_; } } Shouldn't it consider b for fu? scalar ox = 1 - ft - (ft - b*fu)*stoicRatio().value(); scalar pr = 1 - b*fu - ox; mixture_ = b*fu*fuel_; mixture_ += ox*oxidant_; mixture_ += pr*products_; return mixture_; Otherwise, the combustion state would not have an impact on the composition of the mixture? | ||||
Tags | No tags attached. | ||||