From 6c26474ce39688c6ae0c56b40e37ea0e8367e82f Mon Sep 17 00:00:00 2001
From: sergio <s.ferraris@opencfd.co.uk>
Date: Wed, 22 Jun 2011 15:07:38 +0100
Subject: [PATCH] ENH: Add functionality to singleStepReactingMixture

---
 .../singleStepReactingMixture/singleStepReactingMixture.C | 2 ++
 .../singleStepReactingMixture/singleStepReactingMixture.H | 3 +++
 .../singleStepReactingMixtureI.H                          | 8 ++++++++
 3 files changed, 13 insertions(+)

diff --git a/src/thermophysicalModels/reactionThermo/mixtures/singleStepReactingMixture/singleStepReactingMixture.C b/src/thermophysicalModels/reactionThermo/mixtures/singleStepReactingMixture/singleStepReactingMixture.C
index 5ac41aa0e6c..839ef42ba22 100644
--- a/src/thermophysicalModels/reactionThermo/mixtures/singleStepReactingMixture/singleStepReactingMixture.C
+++ b/src/thermophysicalModels/reactionThermo/mixtures/singleStepReactingMixture/singleStepReactingMixture.C
@@ -108,6 +108,8 @@ void Foam::singleStepReactingMixture<ThermoType>::calculateMaxProducts()
         Yprod0_[specieI] =  this->speciesData()[specieI].W()/Wm*Xi[i];
     }
 
+    Info << "Maximum products mass concentrations :" << Yprod0_<< endl;
+
     // Normalize the stoichiometric coeff to mass
     forAll(specieStoichCoeffs_, i)
     {
diff --git a/src/thermophysicalModels/reactionThermo/mixtures/singleStepReactingMixture/singleStepReactingMixture.H b/src/thermophysicalModels/reactionThermo/mixtures/singleStepReactingMixture/singleStepReactingMixture.H
index 5f31f225eab..9e1270de055 100644
--- a/src/thermophysicalModels/reactionThermo/mixtures/singleStepReactingMixture/singleStepReactingMixture.H
+++ b/src/thermophysicalModels/reactionThermo/mixtures/singleStepReactingMixture/singleStepReactingMixture.H
@@ -152,6 +152,9 @@ public:
             //- Return the list to indicate if specie is produced/consumed
             inline const List<int>& specieProd() const;
 
+            //- Return the list of products mass concentrations
+            inline const scalarList& Yprod0() const;
+
 
         // I-O
 
diff --git a/src/thermophysicalModels/reactionThermo/mixtures/singleStepReactingMixture/singleStepReactingMixtureI.H b/src/thermophysicalModels/reactionThermo/mixtures/singleStepReactingMixture/singleStepReactingMixtureI.H
index f8cfe1d9f14..9fab9b30a07 100644
--- a/src/thermophysicalModels/reactionThermo/mixtures/singleStepReactingMixture/singleStepReactingMixtureI.H
+++ b/src/thermophysicalModels/reactionThermo/mixtures/singleStepReactingMixture/singleStepReactingMixtureI.H
@@ -94,4 +94,12 @@ Foam::singleStepReactingMixture<ThermoType>::specieProd() const
 }
 
 
+template<class ThermoType>
+inline const Foam::scalarList&
+Foam::singleStepReactingMixture<ThermoType>::Yprod0() const
+{
+    return Yprod0_;
+}
+
+
 // ************************************************************************* //
-- 
GitLab