12 #ifndef FLASHROUTINES_H
13 #define FLASHROUTINES_H
32 T
static g_RachfordRice(
const std::vector<T>& z,
const std::vector<T>& lnK, T beta) {
35 for (std::size_t i = 0; i < z.size(); i++) {
37 summer += z[i] * (Ki - 1) / (1 - beta + beta * Ki);
45 for (std::size_t i = 0; i < z.size(); i++) {
47 summer += -z[i] * pow((Ki - 1) / (1 - beta + beta * Ki), 2);
171 HS_flash_singlephaseOptions& options);
181 HS_flash_twophaseOptions& options);
196 rhor(
HEOS.get_reducing_state().rhomolar),
204 return (peos -
p) /
p;