using "stage_separators/tank"; FlowSheet tank_Test PARAMETERS PP as CalcObject(Brief="Physical Properties",File="vrpp"); NComp as Integer; SET PP.Components = ["ethane", "propane", "propylene", "1-butene", "n-hexane"]; PP.LiquidModel = "PR"; PP.VapourModel = "PR"; NComp = PP.NumberOfComponents; DEVICES t as tank; s as stream_therm; CONNECTIONS s to t.Inlet; SPECIFY s.P = 480 * "kPa"; s.T = 310 * "K"; s.F = 180 * "kmol/h"; s.z = 1.0/NComp; s.v = 0.698; t.Q = 0 * "J/s"; t.Outlet.F = 179 * "kmol/h"; SET t.Across = 2.20 * "m^2"; INITIAL t.Outlet.T = 305 *"K"; t.Level = 0.5 * "m"; t.Outlet.z([1:4]) = 1.0/NComp; OPTIONS relativeAccuracy = 1e-5; outputLevel = "medium"; time = [0:100:1000]; end FlowSheet tank_cylindrical_Test PARAMETERS PP as CalcObject(Brief="Physical Properties",File="vrpp"); NComp as Integer; SET PP.Components = ["propane", "propylene", "1-butene","1,3-butadiene", "n-hexane"]; PP.LiquidModel = "PR"; PP.VapourModel = "PR"; NComp = PP.NumberOfComponents; DEVICES t as tank_cylindrical; s as stream_therm; CONNECTIONS s to t.Inlet; SPECIFY s.F = 500 * "kmol/h"; s.T = 300 * "K"; s.P = 400 * "kPa"; s.z = 1/NComp; s.v = 0.368; t.Q = 0 * "J/s"; t.Outlet.F = 490 * "kmol/h"; SET t.radius = 0.9 * "m"; t.L = 7.12 * "m"; INITIAL t.Outlet.T = 280*"K"; t.Level = 1 * "m"; t.Outlet.z([1:4]) = 1.0/NComp; OPTIONS relativeAccuracy = 1e-5; outputLevel = "medium"; time = [0:100:1000]; end