Added the ability to set/unset the phase for the abstract state class

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
This commit is contained in:
Ian Bell
2014-09-15 16:17:01 +02:00
parent 0d10ba27a3
commit c0157c0814
5 changed files with 26 additions and 0 deletions

View File

@@ -56,6 +56,8 @@ public:
bool has_melting_line(){ return is_pure_or_pseudopure && components[0]->ancillaries.melting_line.enabled();};
long double calc_melting_line(int param, int given, long double value);
phases calc_phase(void){return _phase;};
void calc_specify_phase(phases phase){ specify_phase(phase); }
void calc_unspecify_phase(){ unspecify_phase(); }
long double calc_saturation_ancillary(parameters param, int Q, parameters given, double value);
const CoolProp::SimpleState &calc_state(const std::string &state);