Browse Source

Removed extra rho multiplication in species-energy transfer term. Thanks Steven!

master
vyaas 2 years ago
parent
commit
156dd1bfbf
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      residue.cpp

+ 1
- 2
residue.cpp View File

@@ -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;


Loading…
Cancel
Save