Changeset 144 for branches/newlanguage/sample/heat_exchangers
- Timestamp:
- Jan 30, 2007, 4:01:53 PM (17 years ago)
- Location:
- branches/newlanguage/sample/heat_exchangers
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/newlanguage/sample/heat_exchangers/Mheatex_sample1.mso
r140 r144 1 #*------------------------------------------------------------------- 2 * EMSO Model Library (EML) Copyright (C) 2004 - 2007 ALSOC. 3 * 4 * This LIBRARY is free software; you can distribute it and/or modify 5 * it under the therms of the ALSOC FREE LICENSE as available at 6 * http://www.enq.ufrgs.br/alsoc. 7 * 8 * EMSO Copyright (C) 2004 - 2007 ALSOC, original code 9 * from http://www.rps.eng.br Copyright (C) 2002-2004. 10 * All rights reserved. 11 * 12 * EMSO is distributed under the therms of the ALSOC LICENSE as 13 * available at http://www.enq.ufrgs.br/alsoc. 14 * 15 *-------------------------------------------------------------------- 16 * Sample file with cocurrent flow Multistream Heat Exchanger 17 *-------------------------------------------------------------------- 18 * 19 * This sample file needs VRTherm (www.vrtech.com.br) to run. 20 * 21 *---------------------------------------------------------------------- 22 * Author: Gerson B. Bicca 23 * $Id: Mheatex_sample1.mso 135 2007-01-25 20:00:26Z bicca $ 24 *--------------------------------------------------------------------*# 1 25 using "heat_exchangers/Mheatex"; 2 26 3 FlowSheet Discreto_A27 FlowSheet Mheatex_cocurrent 4 28 5 29 DEVICES 6 30 7 Mheater1 as Mheatex; 8 Mheater2 as Mheatex; 31 Mheater as Mheatex; 9 32 10 11 streamhot1 as stream_therm; 12 streamhot2 as stream_therm; 13 14 streamcold1 as stream_therm; 15 streamcold2 as stream_therm; 33 streamhot1 as source; 34 streamcold1 as source; 35 streamcold2 as source; 16 36 17 37 PARAMETERS 18 38 19 PP as CalcObject(File="vrpp");20 NComp as Integer 39 PP as Plugin (File="vrpp"); 40 NComp as Integer (Brief="Number Components"); 21 41 22 42 SET 23 43 24 PP.LiquidModel = "PR";44 PP.LiquidModel = "PR"; 25 45 PP.VapourModel = "PR"; 26 46 PP.Components = ["water","methanol","benzene","toluene"]; 27 NComp = PP.NumberOfComponents;47 NComp = PP.NumberOfComponents; 28 48 29 Mheater 1.Nhot = 2;30 Mheater2.Nhot= 2;49 Mheater.Nhot = 1; 50 Mheater.Ncold = 2; 31 51 32 Mheater1.Ncold = 2; 33 Mheater2.Ncold = 2; 34 35 Mheater1.HE.FlowDirection = "Cocurrent"; 36 Mheater2.HE.FlowDirection = "Cocurrent"; 52 Mheater.FlowDirection = "cocurrent"; 37 53 38 54 CONNECTIONS 39 55 40 streamcold1 to Mheater1.Inlet.Cold(1); 41 streamhot1 to Mheater1.Inlet.Hot(1); 42 43 streamhot2 to Mheater1.Inlet.Hot(2); 44 streamcold2 to Mheater1.Inlet.Cold(2); 45 46 Mheater1.Outlet.Cold(1) to Mheater2.Inlet.Cold(1); 47 48 49 Mheater1.Outlet.Cold(2) to Mheater2.Inlet.Cold(2); 50 51 52 53 Mheater1.Outlet.Hot(1) to Mheater2.Inlet.Hot(1); 54 55 56 57 Mheater1.Outlet.Hot(2) to Mheater2.Inlet.Hot(2); 58 59 56 streamcold1.Outlet to Mheater.Inlet.Cold(1); 57 streamhot1.Outlet to Mheater.Inlet.Hot(1); 58 streamcold2.Outlet to Mheater.Inlet.Cold(2); 60 59 61 60 SPECIFY … … 63 62 # Cold Streams 64 63 #===================================================================== 65 streamcold1.F = 500 * "kmol/h"; 66 streamcold1.P = 1 * "atm"; 67 streamcold1.T = 278 * "K"; 68 streamcold1.v = 0; 69 streamcold1.z = [1,0,0,0]; 64 streamcold1.Outlet.F = 500 * "kmol/h"; 65 streamcold1.Outlet.P = 1 * "atm"; 66 streamcold1.Outlet.T = 278 * "K"; 67 streamcold1.Outlet.z = [1,0,0,0]; 70 68 71 72 streamcold2.F = 50 * "kmol/h"; 73 streamcold2.P = 1 * "atm"; 74 streamcold2.T = 298 * "K"; 75 streamcold2.v = 0; 76 streamcold2.z = [1,0,0,0]; 77 69 streamcold2.Outlet.F = 50 * "kmol/h"; 70 streamcold2.Outlet.P = 1 * "atm"; 71 streamcold2.Outlet.T = 298 * "K"; 72 streamcold2.Outlet.z = [0,0.1,0.65,0.25]; 78 73 79 74 #===================================================================== 80 # Hot Streams 75 # Hot Streams 81 76 #===================================================================== 82 streamhot1.F = 100* "kmol/h"; 83 streamhot1.P = 1 * "atm"; 84 streamhot1.T = 330 * "K"; 85 streamhot1.v = 0; 86 streamhot1.z = [0,1,0,0]; 77 streamhot1.Outlet.F = 100* "kmol/h"; 78 streamhot1.Outlet.P = 1 * "atm"; 79 streamhot1.Outlet.T = 330 * "K"; 80 streamhot1.Outlet.z = [1,0,0,0]; 87 81 88 streamhot2.F = 100* "kmol/h";89 streamhot2.P = 1 * "atm";90 streamhot2.T = 340 * "K";91 streamhot2.v = 0;92 streamhot2.z = [0,0,0.75,0.25];93 94 95 82 #===================================================================== 96 83 # Temperature Outlet 97 84 #===================================================================== 98 Mheater2.Outlet.Hot(1).T = 308*"K"; 99 Mheater2.Outlet.Hot(2).T = 303*"K"; 100 101 Mheater2.Outlet.Cold(2).T = 299*"K"; 85 Mheater.Outlet.Hot(1).T = 308*"K"; 86 Mheater.Outlet.Cold(2).T = 310*"K"; 102 87 103 88 #===================================================================== 104 89 # Pressure Outlet 105 90 #===================================================================== 106 Mheater2.Outlet.Hot(1).P = 1 * "atm"; 107 Mheater2.Outlet.Hot(2).P = 1 * "atm"; 108 109 Mheater2.Outlet.Cold(1).P = 1 * "atm"; 110 Mheater2.Outlet.Cold(2).P = 1 * "atm"; 91 Mheater.Outlet.Hot(1).P = 1 * "atm"; 92 Mheater.Outlet.Cold(1).P = 1 * "atm"; 93 Mheater.Outlet.Cold(2).P = 1 * "atm"; 111 94 112 95 OPTIONS 113 96 114 mode = "steady"; 115 relativeAccuracy = 1e-8; 97 Dynamic = false; 116 98 117 99 end -
branches/newlanguage/sample/heat_exchangers/Mheatex_sample2.mso
r135 r144 1 1 #*------------------------------------------------------------------- 2 * EMSO Model Library (EML) Copyright (C) 2004 - 2007 ALSOC. 3 * 4 * This LIBRARY is free software; you can distribute it and/or modify 5 * it under the therms of the ALSOC FREE LICENSE as available at 6 * http://www.enq.ufrgs.br/alsoc. 7 * 8 * EMSO Copyright (C) 2004 - 2007 ALSOC, original code 9 * from http://www.rps.eng.br Copyright (C) 2002-2004. 10 * All rights reserved. 11 * 12 * EMSO is distributed under the therms of the ALSOC LICENSE as 13 * available at http://www.enq.ufrgs.br/alsoc. 14 * 15 *-------------------------------------------------------------------- 16 * Sample file with counter flow Multistream Heat Exchanger 17 *-------------------------------------------------------------------- 18 * 19 * This sample file needs VRTherm (www.vrtech.com.br) to run. 20 * 21 *---------------------------------------------------------------------- 22 * Author: Gerson B. Bicca 23 * $Id: Mheatex_sample2.mso 135 2007-01-25 20:00:26Z bicca $ 24 *--------------------------------------------------------------------*# 2 25 using "heat_exchangers/Mheatex"; 3 26 4 FlowSheet MHeate r27 FlowSheet MHeatex_counter 5 28 6 29 PARAMETERS … … 31 54 Mheater.Nhot = 2; 32 55 Mheater.Ncold = 2; 56 57 Mheater.FlowDirection = "counter"; 33 58 34 59 SPECIFY -
branches/newlanguage/sample/heat_exchangers/Sample_Simplified.mso
r100 r144 82 82 83 83 exchanger as HeatExchanger_NTU; 84 streamhot as s tream_therm;85 streamcold as s tream_therm;84 streamhot as source; 85 streamcold as source; 86 86 87 87 CONNECTIONS 88 88 89 streamhot to exchanger.Inlet.Hot;90 streamcold to exchanger.Inlet.Cold;89 streamhot.Outlet to exchanger.Inlet.Hot; 90 streamcold.Outlet to exchanger.Inlet.Cold; 91 91 92 92 PARAMETERS 93 PP as CalcObject(File="vrpp");93 PP as Plugin (File="vrpp"); 94 94 NComp as Integer; 95 95 SET … … 100 100 NComp = PP.NumberOfComponents; 101 101 102 exchanger. HE.FlowDirection = "Cocurrent";102 exchanger.FlowDirection = "cocurrent"; 103 103 # exchanger.HE.FlowDirection = "Counter"; 104 104 … … 111 111 exchanger.PressureDrop.Cold.Pdrop = 0*"atm"; 112 112 113 streamhot. F = 1000 * "kmol/h";114 streamhot. T = 450 * "K";115 116 streamhot. P = 1.5 * "atm";117 streamhot. z = [1];113 streamhot.Outlet .F = 1000 * "kmol/h"; 114 streamhot.Outlet .T = 450 * "K"; 115 #streamhot.v = 1; 116 streamhot.Outlet .P = 1.5 * "atm"; 117 streamhot.Outlet .z = [1]; 118 118 119 streamcold. F = 500 * "kmol/h";120 streamcold. P = 1 * "atm";121 streamcold. T = 350 * "K";122 123 streamcold. z = [1];119 streamcold.Outlet .F = 500 * "kmol/h"; 120 streamcold.Outlet .P = 1 * "atm"; 121 streamcold.Outlet .T = 350 * "K"; 122 #streamcold.v = 0; 123 streamcold.Outlet .z = [1]; 124 124 125 125 OPTIONS 126 mode = "steady";126 Dynamic= false; 127 127 end 128 128 -
branches/newlanguage/sample/heat_exchangers/sampleLMTD.mso
r100 r144 29 29 PARAMETERS 30 30 31 PP as CalcObject(Brief="Physical Properties",File="vrpp");31 PP as Plugin (Brief="Physical Properties",File="vrpp"); 32 32 NComp as Integer; 33 33 34 DEVICES 34 35 35 36 DEVICES37 36 exchanger as HeatExchanger_LMTD; 38 streamhot as streamTP; 39 streamcold as streamTP; 37 streamhot as source; 38 streamcold as source; 39 40 40 SET 41 41 … … 43 43 PP.VapourModel = "PR"; 44 44 PP.Components = ["water","n-butane", "benzene", "n-octane" ]; 45 NComp = PP.NumberOfComponents; 46 exchanger.HE.FlowDirection = "Cocurrent"; 45 NComp = PP.NumberOfComponents; 46 47 exchanger.FlowDirection = "cocurrent"; 48 47 49 CONNECTIONS 48 50 49 streamhot to exchanger.Inlet.Hot;50 streamcold 51 51 streamhot.Outlet to exchanger.Inlet.Hot; 52 streamcold.Outlet to exchanger.Inlet.Cold; 53 52 54 SPECIFY 53 55 54 56 "LMTD Correction Factor" 55 exchanger.Fc = 1;57 exchanger.Fc = 0.8; 56 58 57 59 "Overall Heat Transfer Coefficient" … … 62 64 exchanger.PressureDrop.Cold.Pdrop = 0.2*"kPa"; 63 65 64 streamhot. F = 20 * "kmol/h";65 streamhot. T = 450 * "K";66 streamhot. P = 120 * "kPa";67 streamhot. z = [1,0,0,0];66 streamhot.Outlet.F = 20 * "kmol/h"; 67 streamhot.Outlet.T = 400 * "K"; 68 streamhot.Outlet.P = 120 * "kPa"; 69 streamhot.Outlet.z = [1,0,0,0]; 68 70 69 streamcold. F = 10* "kmol/h";70 streamcold. P = 120 * "kPa";71 streamcold. T = 300 * "K";72 streamcold. z = [0,0.5, 0.1, 0.4];71 streamcold.Outlet.F = 5 * "kmol/h"; 72 streamcold.Outlet.P = 120 * "kPa"; 73 streamcold.Outlet.T = 300 * "K"; 74 streamcold.Outlet.z = [0,0.5, 0.1, 0.4]; 73 75 74 exchanger.Outlet.Cold.T = 3 40*"K";76 exchanger.Outlet.Cold.T = 305*"K"; 75 77 76 78 OPTIONS 77 mode = "steady"; 79 80 Dynamic = false; 81 78 82 end -
branches/newlanguage/sample/heat_exchangers/sampleNTU.mso
r100 r144 29 29 PARAMETERS 30 30 31 PP as CalcObject(Brief="Physical Properties",File="vrpp");32 NComp as Integer;31 PP as Plugin (Brief="Physical Properties",File="vrpp"); 32 NComp as Integer; 33 33 34 34 DEVICES 35 35 36 36 exchanger as HeatExchanger_NTU; 37 streamhot as streamTP; 38 streamcold as streamTP; 37 streamhot as source; 38 streamcold as source; 39 39 40 40 41 SET … … 45 46 NComp = PP.NumberOfComponents; 46 47 47 exchanger. HE.FlowDirection = "Cocurrent";48 exchanger.FlowDirection = "cocurrent"; 48 49 49 50 CONNECTIONS 50 51 51 streamhot to exchanger.Inlet.Hot; 52 streamcold to exchanger.Inlet.Cold; 52 streamhot.Outlet to exchanger.Inlet.Hot; 53 streamcold.Outlet to exchanger.Inlet.Cold; 54 53 55 54 56 SPECIFY … … 59 61 exchanger.PressureDrop.Cold.Pdrop = 0.2*"kPa"; 60 62 61 streamhot. F = 20 * "kmol/h";62 streamhot. T = 450 * "K";63 streamhot. P = 120 * "kPa";64 streamhot. z = [1,0,0,0];63 streamhot.Outlet.F = 20 * "kmol/h"; 64 streamhot.Outlet.T = 450 * "K"; 65 streamhot.Outlet.P = 120 * "kPa"; 66 streamhot.Outlet.z = [1,0,0,0]; 65 67 66 streamcold. F = 10 * "kmol/h";67 streamcold. P = 120 * "kPa";68 streamcold. T = 300 * "K";69 streamcold. z = [0,0.5, 0.1, 0.4];68 streamcold.Outlet.F = 10 * "kmol/h"; 69 streamcold.Outlet.P = 120 * "kPa"; 70 streamcold.Outlet.T = 300 * "K"; 71 streamcold.Outlet.z = [0,0.5, 0.1, 0.4]; 70 72 71 73 exchanger.Details.A = 20*"m^2"; … … 73 75 OPTIONS 74 76 75 mode = "steady";77 Dynamic = false; 76 78 77 79 end
Note: See TracChangeset
for help on using the changeset viewer.