View Issue Details

IDProjectCategoryView StatusLast Update
0003949OpenFOAMPatchpublic2023-01-04 13:58
Reportercgoessni Assigned Tohenry  
PrioritynormalSeverityminorReproducibilityN/A
Status closedResolutionno change required 
Product Versiondev 
Summary0003949: veryInhomogeneousMixture: impact of reaction regress variable on mixture state missing?
DescriptionI 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?
TagsNo tags attached.

Activities

henry

2023-01-04 13:58

manager   ~0012932

veryInhomogeneousMixture is not supported in XiFoam.

Issue History

Date Modified Username Field Change
2023-01-04 13:32 cgoessni New Issue
2023-01-04 13:58 henry Assigned To => henry
2023-01-04 13:58 henry Status new => closed
2023-01-04 13:58 henry Resolution open => no change required
2023-01-04 13:58 henry Note Added: 0012932