9 #include "cantera/thermo/mix_defs.h"
18 IdealGasPhase::IdealGasPhase():
34 m_tlast(right.m_tlast),
35 m_logc0(right.m_logc0)
189 for (
size_t k = 0; k <
m_kk; k++) {
201 scale(gibbsrt.begin(), gibbsrt.end(), muStar,
_RT());
204 for (
size_t k = 0; k <
m_kk; k++) {
218 for (
size_t k = 0; k <
m_kk; k++) {
220 mu[k] += rt*(log(xx));
232 scale(_h.begin(), _h.end(), hbar, rt);
243 scale(_s.begin(), _s.end(), sbar, r);
245 for (
size_t k = 0; k <
m_kk; k++) {
247 sbar[k] += r * (- logp - log(xx));
259 for (
size_t k = 0; k <
m_kk; k++) {
260 ubar[k] = rt * (_h[k] - 1.0);
280 for (
size_t k = 0; k <
m_kk; k++) {
295 copy(_h.begin(), _h.end(), hrt);
306 copy(_s.begin(), _s.end(), sr);
308 for (
size_t k = 0; k <
m_kk; k++) {
320 copy(gibbsrt.begin(), gibbsrt.end(), grt);
322 for (
size_t k = 0; k <
m_kk; k++) {
335 scale(gibbsrt.begin(), gibbsrt.end(), gpure,
_RT());
338 for (
size_t k = 0; k <
m_kk; k++) {
351 for (
size_t k = 0; k <
m_kk; k++) {
352 urt[k] = _h[k] - 1.0;
364 copy(_cpr.begin(), _cpr.end(), cpr);
378 for (
size_t k = 0; k <
m_kk; k++) {
393 copy(_h.begin(), _h.end(), hrt);
404 copy(gibbsrt.begin(), gibbsrt.end(), grt);
416 scale(gibbsrt.begin(), gibbsrt.end(), g,
_RT());
427 copy(_s.begin(), _s.end(), er);
438 for (
size_t k = 0; k <
m_kk; k++) {
439 urt[k] = _h[k] - 1.0;
451 copy(_cpr.begin(), _cpr.end(), cprt);
457 for (
size_t k = 0; k <
m_kk; k++) {
507 doublereal pres = 0.0;
508 for (
size_t k = 0; k <
m_kk; k++) {
509 tmp = -grt[k] + mu_RT[k];
512 }
else if (tmp > 500.0) {
549 for (
size_t k = 0; k <
m_kk; k++) {