using "stage_separators/flash"; # exemplo baseado nos dados do artigo do Gani 1985. FlowSheet flash_Test PARAMETERS PP as CalcObject(Brief="Physical Properties",File="vrpp"); NComp as Integer; VARIABLES Q as heat_rate (Brief="Heat supplied"); SET PP.Components = ["1,3-butadiene", "isobutene", "n-pentane", "1-pentene", "1-hexene", "benzene"]; PP.LiquidModel = "PR"; PP.VapourModel = "PR"; NComp = PP.NumberOfComponents; DEVICES fl as flash; s1 as stream_therm; CONNECTIONS s1 to fl.Inlet; Q to fl.Q; SPECIFY s1.F = 496.3 * "kmol/h"; s1.T = 338 * "K"; s1.P = 507.1 * "kPa"; s1.v = 0.1380; s1.z = [0.2379,0.3082,0.09959,0.1373,0.08872,0.1283]; fl.OutletV.F = 68.5 * "kmol/h"; fl.OutletL.F = 400*sqrt(fl.Level/"m") * "kmol/h"; Q = 1 * "kJ/h"; SET fl.V = 2000 * "m^3"; fl.Across = 1 * "m^2"; INITIAL fl.OutletL.T = 330 *"K"; fl.Level = 1 * "m"; fl.OutletL.z(1) = 0.1; fl.OutletL.z(2) = 0.1; fl.OutletL.z(3) = 0.1; fl.OutletL.z(4) = 0.1; fl.OutletL.z(5) = 0.1; OPTIONS relativeAccuracy = 1e-6; outputLevel = "medium"; time = [0:100:10000]; end # exemplo baseado nos dados do artigo do Gani 1985. FlowSheet flashSteady_Test PARAMETERS PP as CalcObject(Brief="Physical Properties",File="vrpp"); NComp as Integer; VARIABLES Q as heat_rate (Brief="Heat supplied"); SET PP.Components = ["1,3-butadiene", "isobutene", "n-pentane", "1-pentene", "1-hexene", "benzene"]; PP.LiquidModel = "PR"; PP.VapourModel = "PR"; NComp = PP.NumberOfComponents; DEVICES fl as flash_Steady; s1 as stream_therm; CONNECTIONS s1 to fl.Inlet; Q to fl.Q; SPECIFY s1.F = 496.3 * "kmol/h"; s1.T = 338 * "K"; s1.P = 507.1 * "kPa"; s1.v = 0.1380; s1.z = [0.2379,0.3082,0.09959,0.1373,0.08872,0.1283]; fl.OutletL.P = 2.5 * "atm"; #Q = 0 * "kJ/h"; fl.OutletL.T = 315.06 * "K"; OPTIONS mode = "steady"; outputLevel = "medium"; end