From 156dd1bfbfb981e690c45f40e862c4d65129201a Mon Sep 17 00:00:00 2001 From: vyaas Date: Fri, 4 Mar 2022 09:46:26 -0600 Subject: [PATCH] Removed extra rho multiplication in species-energy transfer term. Thanks Steven! --- residue.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/residue.cpp b/residue.cpp index 57e20cd..6e205b2 100644 --- a/residue.cpp +++ b/residue.cpp @@ -872,8 +872,7 @@ int residue(double t, sum1=ZERO; for (k = 1; k <=nsp; k++) { sum=sum+wdot(k)*enthalpy(k); - sum1=sum1+(Cp(k)/data->gas->molecularWeight(k-1))*rho - *HALF*(YVmhalf(k)+YVphalf(k)); + sum1=sum1+(Cp(k)/data->gas->molecularWeight(k-1))*HALF*(YVmhalf(k)+YVphalf(k)); } sum=sum*Cantera::GasConstant*T(j); sum1=sum1*Cantera::GasConstant;