#*---------------------------------------------- * FlowSheet generated automaticaly by EMSO-GUI *----------------------------------------------*# using "heat_exchangers/Heatex"; using "streams"; FlowSheet Sample_Simplified PARAMETERS PP as Plugin(Brief="Physical Properties", Type="PP", Components = ["water","n-butane","benzene"], LiquidModel = "PR", VapourModel = "PR" ); NComp as Integer; SET NComp = PP.NumberOfComponents; DEVICES Heatex_NTU_1 as Heatex_NTU; SET Heatex_NTU_1.ExchangerType = "Shell and Tube"; SPECIFY Heatex_NTU_1.A = 17 * 'm^2'; Heatex_NTU_1.U = 3 * 'kW/m^2/K'; Heatex_NTU_1.PdropHotSide = 0 * 'kPa'; Heatex_NTU_1.PdropColdSide = 0 * 'kPa'; INITIAL GUESS DEVICES simple_source_1 as simple_source; SET SPECIFY simple_source_1.MolarComposition(1) = 1; simple_source_1.MolarComposition(2) = 0; simple_source_1.MolarComposition(3) = 0; simple_source_1.F = 36 * 'kmol/h'; simple_source_1.T_Cdeg = 89.85 * 'K'; simple_source_1.P = 1.18431 * 'atm'; INITIAL GUESS DEVICES simple_source_2 as simple_source; SET SPECIFY simple_source_2.MolarComposition(1) = 0.1; simple_source_2.MolarComposition(2) = 0.7; simple_source_2.MolarComposition(3) = 0.2; simple_source_2.F = 10 * 'kmol/h'; simple_source_2.T = 313 * 'K'; simple_source_2.P = 1.18431 * 'atm'; INITIAL GUESS DEVICES simple_sink_1 as simple_sink; SET SPECIFY INITIAL GUESS DEVICES simple_sink_2 as simple_sink; SET SPECIFY INITIAL GUESS CONNECTIONS simple_source_1.Outlet to Heatex_NTU_1.InletHot; simple_source_2.Outlet to Heatex_NTU_1.InletCold; Heatex_NTU_1.OutletCold to simple_sink_1.Inlet; Heatex_NTU_1.OutletHot to simple_sink_2.Inlet; OPTIONS Dynamic = false; Integration = "original"; NLASolver( File = "sundials", RelativeAccuracy = 1e-3, AbsoluteAccuracy = 1e-6, MaxIterations = 100 ); DAESolver( File = "", RelativeAccuracy = 1e-3, AbsoluteAccuracy = 1e-6, EventAccuracy = 1e-2 ); end