Implement surface_tension for tabular backends; closes #760

This commit is contained in:
Ian Bell
2015-08-02 18:10:26 -06:00
parent e4fe7f1c67
commit a0ebb5f96c

View File

@@ -811,7 +811,12 @@ class TabularBackend : public AbstractState
this->AS->set_T(_T);
return this->AS->cp0molar();
}
/// Calculate the surface tension using the wrapped class (fast enough)
CoolPropDbl calc_surface_tension(void){
this->AS->set_T(_T);
return this->AS->surface_tension();
this->AS->set_T(_HUGE);
}
CoolPropDbl calc_p(void);
CoolPropDbl calc_T(void);
CoolPropDbl calc_rhomolar(void);