From a0ebb5f96c7632ef576f71fc5a2cdb24e3bf94be Mon Sep 17 00:00:00 2001 From: Ian Bell Date: Sun, 2 Aug 2015 18:10:26 -0600 Subject: [PATCH] Implement surface_tension for tabular backends; closes #760 --- src/Backends/Tabular/TabularBackends.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Backends/Tabular/TabularBackends.h b/src/Backends/Tabular/TabularBackends.h index 25624f27..14a09b6f 100644 --- a/src/Backends/Tabular/TabularBackends.h +++ b/src/Backends/Tabular/TabularBackends.h @@ -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);