瀏覽代碼

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

master
vyaas 2 年之前
父節點
當前提交
156dd1bfbf
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. +1
    -2
      residue.cpp

+ 1
- 2
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;


Loading…
取消
儲存