[cantera] r3437 committed - Fixing typo in RedlichKwongMFTP::cv_mole

2 views
Skip to first unread message

can...@googlecode.com

unread,
Jun 9, 2015, 12:57:37 PM6/9/15
to cantera...@googlegroups.com
Revision: 3437
Author: steven....@gmail.com
Date: Tue Jun 9 16:49:57 2015 UTC
Log: Fixing typo in RedlichKwongMFTP::cv_mole
https://code.google.com/p/cantera/source/detail?r=3437

Modified:
/cantera/trunk/src/thermo/RedlichKwongMFTP.cpp

=======================================
--- /cantera/trunk/src/thermo/RedlichKwongMFTP.cpp Tue Jun 9 16:49:54 2015
UTC
+++ /cantera/trunk/src/thermo/RedlichKwongMFTP.cpp Tue Jun 9 16:49:57 2015
UTC
@@ -218,7 +218,7 @@
doublereal vpb = mv + m_b_current;
doublereal cvref = GasConstant * (mean_X(m_cp0_R) - 1.0);
doublereal dadt = da_dt();
- doublreal fac = TKelvin * dadt - 3.0 * m_a_current / 2.0;
+ doublereal fac = TKelvin * dadt - 3.0 * m_a_current / 2.0;
return (cvref - 1.0/(2.0 * m_b_current * TKelvin * sqt) *
log(vpb/mv)*fac
+1.0/(m_b_current * sqt) *
log(vpb/mv)*(-0.5*dadt));
}
Reply all
Reply to author
Forward
0 new messages