Monthly Archives: August 2011

How to produce a Txy isothermal VLE diagram with LIBPF ?

Instantiate components: components.addcomp(new purecomps::water); // 0 components.addcomp(new purecomps::EthyleneGlycol("MEG")); // 1 components.addcomp(new purecomps::DiethyleneGlycol("DEG")); // 2 components.addcomp(new purecomps::TriethyleneGlycol("TEG")); // 3 Instantiate and setup the stream object: StreamNrtl1LiquidVapor s; s.S("flowoption") = "Nw"; s.S("flashoption") = "PA"; s.Q("P") = Value(101325.0, "Pa"); s.Q("Tphase.w", "H2O") = Zero; … Continue reading

Posted in C++, Chemeng | Leave a comment