#*------------------------------------------------------------------- * EMSO Model Library (EML) Copyright (C) 2004 - 2007 ALSOC. * * This LIBRARY is free software; you can distribute it and/or modify * it under the therms of the ALSOC FREE LICENSE as available at * http://www.enq.ufrgs.br/alsoc. * * EMSO Copyright (C) 2004 - 2007 ALSOC, original code * from http://www.rps.eng.br Copyright (C) 2002-2004. * All rights reserved. * * EMSO is distributed under the therms of the ALSOC LICENSE as * available at http://www.enq.ufrgs.br/alsoc. * *-------------------------------------------------------------------- * Sample file for model valve (simplified) and valve_linear *-------------------------------------------------------------------- * * This sample file needs VRTherm DEMO (www.vrtech.com.br) to run. * *---------------------------------------------------------------------- * Author: Paula B. Staudt, Estefane Horn * $Id: sample_valve.mso 109 2007-01-11 22:03:27Z arge $ *--------------------------------------------------------------------*# using "pressure_changers/valve"; FlowSheet valve_Test_V # with vapour conditions PARAMETERS PP as CalcObject(Brief="Physical Properties",File="vrpp"); NComp as Integer; SET PP.Components = [ "isobutane", "benzene"]; PP.LiquidModel = "PR"; PP.VapourModel = "PR"; NComp = PP.NumberOfComponents; DEVICES v1 as valve; s1 as stream_therm; CONNECTIONS s1 to v1.Inlet; SPECIFY s1.P = 150 * "kPa"; s1.T = 281.75 * "K"; s1.z = [0.664, 0.336]; s1.v = 0.0; v1.x = 0.866; v1.Outlet.P = 148 * "kPa"; SET v1.k = 20 * "gal/min/psi^0.5"; OPTIONS relativeAccuracy = 1e-6; mode = "steady"; end FlowSheet valve_Test_L #with liquid conditions PARAMETERS PP as CalcObject(Brief="Physical Properties",File="vrpp"); NComp as Integer; SET PP.Components = [ "isobutane", "benzene"]; PP.LiquidModel = "PR"; PP.VapourModel = "PR"; NComp = PP.NumberOfComponents; DEVICES v1 as valve; s1 as stream_therm; CONNECTIONS s1 to v1.Inlet; SPECIFY s1.P = 185 * "kPa"; s1.T = 328.12 * "K"; s1.z = [0.001848, 0.9982]; s1.v = 0.0; v1.x = 0.3363; v1.Outlet.P = 183 * "kPa"; SET v1.k = 20 * "gal/min/psi^0.5"; OPTIONS relativeAccuracy = 1e-6; mode = "steady"; end FlowSheet valve_linear_Test DEVICES S1 as streamTP; V1 as valve_linear; CONNECTIONS S1 to V1.Inlet; PARAMETERS PP as CalcObject (Brief="External Physical Properties", File="vrpp"); NComp as Integer (Default= 1); SET PP.Components = ["water"]; PP.LiquidModel = "IdealLiquid"; PP.VapourModel = "Ideal"; PP.Derivatives = 0; NComp = PP.NumberOfComponents; SPECIFY S1.P = 2169.78 * "kPa"; S1.T = 394.26 * "K" ; S1.z = [1]; V1.Qv = 113.56 * "m^3/h"; V1.x = 0.5; V1.cv = 10 * "m^3/h/kPa^0.5"; OPTIONS relativeAccuracy = 1e-6; mode = "steady"; end