From 8ede7fdda49613fa406b0cb3f306f9f0c22b8974 Mon Sep 17 00:00:00 2001 From: Sergio Ferraris Date: Wed, 5 Oct 2011 13:37:07 +0100 Subject: [PATCH] ENH: Changing Yt to "calculated" to avoid division by zero --- .../multiComponentMixture/multiComponentMixture.C | 3 ++- .../fireFoam/les/oppositeBurningPanels/0/N2 | 15 +++++---------- .../combustion/fireFoam/les/smallPoolFire2D/0/N2 | 13 ++++--------- .../combustion/fireFoam/les/smallPoolFire3D/0/N2 | 13 ++++--------- .../reactingFoam/ras/counterFlowFlame2D/0/N2 | 11 +++-------- 5 files changed, 18 insertions(+), 37 deletions(-) diff --git a/src/thermophysicalModels/reactionThermo/mixtures/multiComponentMixture/multiComponentMixture.C b/src/thermophysicalModels/reactionThermo/mixtures/multiComponentMixture/multiComponentMixture.C index 394e35e536..d5707fe8fd 100644 --- a/src/thermophysicalModels/reactionThermo/mixtures/multiComponentMixture/multiComponentMixture.C +++ b/src/thermophysicalModels/reactionThermo/mixtures/multiComponentMixture/multiComponentMixture.C @@ -49,7 +49,8 @@ const ThermoType& Foam::multiComponentMixture::constructSpeciesData template void Foam::multiComponentMixture::correctMassFractions() { - volScalarField Yt("Yt", Y_[0]); + // It changes Yt patches to "calculated" + volScalarField Yt("Yt", 1.0*Y_[0]); for (label n=1; n