Commit 74430112 authored by sergio's avatar sergio Committed by Andrew Heather
Browse files

BUG: Fixing solid specie index in omega function

parent 78524117
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | \\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
| Copyright (C) 2013-2017 OpenFOAM Foundation | Copyright (C) 2013-2017 OpenFOAM Foundation
...@@ -264,7 +264,7 @@ Foam::pyrolysisChemistryModel<CompType, SolidThermo, GasThermo>::omega ...@@ -264,7 +264,7 @@ Foam::pyrolysisChemistryModel<CompType, SolidThermo, GasThermo>::omega
for (label s=0; s<Nl; s++) for (label s=0; s<Nl; s++)
{ {
label si = R.lhs()[s].index; label si = R.lhs()[s].index;
const scalar exp = R.lhs()[si].exponent; const scalar exp = R.lhs()[s].exponent;
kf *= kf *=
pow(c1[si]/Ys0_[si][celli], exp) pow(c1[si]/Ys0_[si][celli], exp)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment