| 296 | } |
| 297 | |
| 298 | double MultiPhase::enthalpy() const |
| 299 | { |
| 300 | double sum = 0.0; |
| 301 | updatePhases(); |
| 302 | for (size_t i = 0; i < nPhases(); i++) { |
| 303 | if (m_moles[i] > 0.0) { |
| 304 | sum += m_phase[i]->enthalpy_mole() * m_moles[i]; |
| 305 | } |
| 306 | } |
| 307 | return sum; |
| 308 | } |
| 309 | |
| 310 | double MultiPhase::IntEnergy() const |
| 311 | { |
no test coverage detected