mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-02-02 18:05:18 -05:00
``` C++
std::vector<std::string> names; names.push_back("Methane"); names.push_back("H2S");
shared_ptr<CoolProp::HelmholtzEOSMixtureBackend> mix(new CoolProp::HelmholtzEOSMixtureBackend(names));
mix->specify_phase(iphase_gas);
std::vector<CoolPropDbl> z(2,0);
for (double x0 = 0.01; x0 < 0.5; x0 += 0.01)
{
z[0] = x0; z[1] = 1-x0;
mix->set_mole_fractions(z);
std::vector<CoolProp::SimpleState> critpts = mix->find_all_critical_points();
int rr = 4;
}
```