Implement fugacity through low-level interface; closes #699

This commit is contained in:
Ian Bell
2015-06-30 22:04:08 -06:00
parent 39b1c90004
commit 111371df98
10 changed files with 54 additions and 10 deletions

View File

@@ -431,10 +431,14 @@ double AbstractState::gas_constant(void){
if (!_gas_constant) _gas_constant = calc_gas_constant();
return _gas_constant;
}
double AbstractState::fugacity_coefficient(int i){
double AbstractState::fugacity_coefficient(std::size_t i){
// TODO: Cache the fug. coeff for each component
return calc_fugacity_coefficient(i);
}
double AbstractState::fugacity(std::size_t i){
// TODO: Cache the fug. coeff for each component
return calc_fugacity(i);
}
void AbstractState::build_phase_envelope(const std::string &type)
{
calc_phase_envelope(type);