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: StreamNrtl2LiquidVapor s(Options(-1)); s.S(“flowoption”)->set(“Nw”); s.S(“flashoption”)->set(“PA”); s.Q(“P”)->set(101325.0, “Pa”); s.Q(“Tphase.w”, “H2O”)->set(0.0); s.Q(“Tphase.w”, “MEG”)->set(0.0); s.Q(“Tphase.w”, “DEG”)->set(0.0); s.Q(“Tphase.w”, “TEG”)->set(0.0); Loop over … Continue reading

Posted in C++, Chemeng | Leave a comment