Changeset 149 for branches/newlanguage
- Timestamp:
- Feb 5, 2007, 9:31:00 AM (17 years ago)
- Location:
- branches/newlanguage
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/newlanguage/eml/heat_exchangers/HeatExchangerSimplified.mso
r148 r149 348 348 end 349 349 350 Model Heatex_Basic_NTU as HeatExchangerSimplified_Basic350 Model Heatex_Basic_NTU as HeatExchangerSimplified_Basic 351 351 352 352 ATTRIBUTES … … 368 368 end 369 369 370 Model Heatex_Basic_LMTD 370 Model Heatex_Basic_LMTD as HeatExchangerSimplified_Basic 371 371 372 372 ATTRIBUTES … … 418 418 end 419 419 420 Model HeatExchanger_LMTD as Heatex_Basic_LMTD420 Model HeatExchanger_LMTD as Heatex_Basic_LMTD 421 421 422 422 ATTRIBUTES … … 453 453 end 454 454 455 Model Shell_and_Tubes_LMTD as Heatex_Basic_LMTD455 Model Shell_and_Tubes_LMTD as Heatex_Basic_LMTD 456 456 457 457 ATTRIBUTES … … 635 635 end 636 636 637 Model HeatExchanger_NTU as Heatex_Basic_NTU637 Model HeatExchanger_NTU as Heatex_Basic_NTU 638 638 639 639 ATTRIBUTES … … 684 684 685 685 end 686 687 Model E_Shell_NTUas Heatex_Basic_NTU688 686 687 Model Shell_and_Tubes_NTU as Heatex_Basic_NTU 688 689 689 ATTRIBUTES 690 690 Pallete = true; 691 Brief = "Shell and Tubes Heat Exchanger with 1 shell pass - NTU Method";691 Brief = "Shell and Tubes Heat Exchanger with 1 or 2 shell pass - NTU Method"; 692 692 Info = 693 693 "write some information"; 694 694 695 PARAMETERS 696 697 ShellType as Switcher(Brief="TEMA Designation",Valid=["Eshell","Fshell"],Default="Eshell"); 698 699 VARIABLES 700 701 Eft1 as positive (Brief="Effectiveness Correction",Lower=0.01,Upper=1,Default=0.5); 702 695 703 EQUATIONS 696 "TEMA E Shell Effectiveness" 697 Eft = 2*(1+Details.Cr+sqrt(1+Details.Cr^2)*((1+exp(-Details.NTU*sqrt(1+Details.Cr^2)))/(1-exp(-Details.NTU*sqrt(1+Details.Cr^2)))) )^-1; 698 699 end 700 701 Model F_Shell_NTU as Heatex_Basic_NTU 702 703 ATTRIBUTES 704 Pallete = true; 705 Brief = "Shell and Tubes Heat Exchanger with 2 shell pass - NTU Method"; 706 Info = 707 "write some information"; 708 709 VARIABLES 710 711 Eft1 as positive (Brief="Effectiveness Correction",Lower=0.01,Upper=1,Default=0.5); 712 713 EQUATIONS 714 715 "Effectiveness Correction" 704 705 switch ShellType 706 707 case "Fshell": 708 709 "Effectiveness Correction for 2 pass shell side" 716 710 Eft1 = 2*(1+Details.Cr+sqrt(1+Details.Cr^2)*((1+exp(-Details.NTU*sqrt(1+Details.Cr^2)))/(1-exp(-Details.NTU*sqrt(1+Details.Cr^2)))) )^-1; 717 711 … … 719 713 Eft = ( ((1-Eft1*Details.Cr)/(1-Eft1))^2 -1 )*( ((1-Eft1*Details.Cr)/(1-Eft1))^2 - Details.Cr )^-1; 720 714 721 end 715 case "Eshell": 716 717 "TEMA E Shell Effectiveness" 718 Eft = 2*(1+Details.Cr+sqrt(1+Details.Cr^2)*((1+exp(-Details.NTU*sqrt(1+Details.Cr^2)))/(1-exp(-Details.NTU*sqrt(1+Details.Cr^2)))) )^-1; 719 720 "Variable not in use when 1 Pass Shell Side" 721 Eft1 = Eft; 722 723 end 724 725 end -
branches/newlanguage/sample/heat_exchangers/sampleEshell.mso
r148 r149 32 32 NComp as Integer; 33 33 34 DEVICES 35 exchanger as Shell_and_Tubes_NTU; 36 streamhot as source; 37 streamcold as source; 38 34 39 SET 35 40 36 41 PP.LiquidModel = "PR"; 37 42 PP.VapourModel = "PR"; 38 PP.Components = ["water","n-butane", "benzene", "n-octane" ];39 NComp 43 PP.Components = ["water","n-butane", "benzene", "n-octane" ]; 44 NComp = PP.NumberOfComponents; 40 45 41 DEVICES 42 exchanger as E_Shell_NTU; 43 streamhot as streamTP; 44 streamcold as streamTP; 45 46 exchanger.ShellType = "Eshell"; 47 46 48 CONNECTIONS 47 49 48 streamhot 49 streamcold to exchanger.Inlet.Cold;50 streamhot.Outlet to exchanger.Inlet.Hot; 51 streamcold.Outlet to exchanger.Inlet.Cold; 50 52 51 53 SPECIFY … … 55 57 exchanger.PressureDrop.Hot.Pdrop = 0.1*"kPa"; 56 58 exchanger.PressureDrop.Cold.Pdrop = 0.2*"kPa"; 57 streamhot.F = 20 * "kmol/h"; 58 streamhot.T = 450 * "K"; 59 streamhot.P = 120 * "kPa"; 60 streamhot.z = [1,0,0,0]; 61 streamcold.F = 10 * "kmol/h"; 62 streamcold.P = 120 * "kPa"; 63 streamcold.T = 300 * "K"; 64 streamcold.z = [0,0.5, 0.1, 0.4]; 59 60 streamhot.Outlet.F = 20 * "kmol/h"; 61 streamhot.Outlet.T = 450 * "K"; 62 streamhot.Outlet.P = 120 * "kPa"; 63 streamhot.Outlet.z = [1,0,0,0]; 64 65 streamcold.Outlet.F = 10 * "kmol/h"; 66 streamcold.Outlet.P = 120 * "kPa"; 67 streamcold.Outlet.T = 300 * "K"; 68 streamcold.Outlet.z = [0,0.5, 0.1, 0.4]; 69 65 70 exchanger.Outlet.Cold.T = 347*"K"; 66 71 67 72 OPTIONS 68 mode = "steady";73 Dynamic = false; 69 74 end -
branches/newlanguage/sample/heat_exchangers/sampleFshell_LMTD.mso
r148 r149 34 34 35 35 DEVICES 36 exchanger as F_Shell_LMTD;36 exchanger as Shell_and_Tubes_LMTD; 37 37 streamhot as source; 38 38 streamcold as source; … … 48 48 49 49 exchanger.LMTDcorrection = "Bowmann"; 50 exchanger.ShellType = "Fshell"; 50 51 51 52 -
branches/newlanguage/sample/heat_exchangers/samples1.mso
r100 r149 33 33 34 34 exchanger as HeatExchanger_NTU; 35 streamhot as stream_therm;36 streamcold as stream_therm;35 streamhot as vapour_stream; 36 streamcold as liquid_stream; 37 37 38 38 CONNECTIONS … … 43 43 PARAMETERS 44 44 45 PP as CalcObject(File="vrpp");45 PP as Plugin (File="vrpp"); 46 46 NComp as Integer; 47 47 48 48 SET 49 49 50 PP.LiquidModel = "PR";50 PP.LiquidModel = "PR"; 51 51 PP.VapourModel = "PR"; 52 52 PP.Components = ["water"]; 53 NComp = PP.NumberOfComponents; 54 exchanger.HE.FlowDirection = "Counter"; 53 NComp = PP.NumberOfComponents; 54 55 exchanger.FlowDirection = "counter"; 55 56 56 57 SPECIFY … … 59 60 #============================================ 60 61 streamhot.F = 100 * "kmol/h"; 61 streamhot.T = 450 * "K"; 62 streamhot.v = 1; 62 streamhot.T = 400 * "K"; 63 63 streamhot.P = 1.5 * "atm"; 64 64 streamhot.z = [1]; … … 70 70 streamcold.P = 1 * "atm"; 71 71 streamcold.T = 350 * "K"; 72 streamcold.v = 0;73 72 streamcold.z = [1]; 74 73 … … 79 78 exchanger.Details.Ud = 0.74 *"W/m^2/K"; 80 79 exchanger.Details.Uc = 0.74 *"W/m^2/K"; 81 exchanger.PressureDrop.Hot.Pdrop = 0 *"atm";82 exchanger.PressureDrop.Cold.Pdrop = 0 *"atm";80 exchanger.PressureDrop.Hot.Pdrop = 0.001*"atm"; 81 exchanger.PressureDrop.Cold.Pdrop = 0.003*"atm"; 83 82 84 83 OPTIONS … … 86 85 # Simulation Options 87 86 #============================================ 88 mode = "steady";87 Dynamic = false; 89 88 90 89 end -
branches/newlanguage/sample/heat_exchangers/samples2.mso
r100 r149 32 32 #=============================================================== 33 33 34 exchanger as E_Shell_LMTD;35 streamhot as stream_therm;36 streamcold as stream_therm;34 exchanger as Shell_and_Tubes_LMTD; 35 streamhot as vapour_stream; 36 streamcold as liquid_stream; 37 37 38 38 CONNECTIONS 39 39 40 streamhot 40 streamhot to exchanger.Inlet.Hot; 41 41 streamcold to exchanger.Inlet.Cold; 42 42 43 43 PARAMETERS 44 44 45 PP as CalcObject(File="vrpp");45 PP as Plugin (File="vrpp"); 46 46 NComp as Integer; 47 47 … … 51 51 #=============================================================== 52 52 53 PP.LiquidModel = "RK";54 PP.VapourModel = " RK";53 PP.LiquidModel = "PR"; 54 PP.VapourModel = "PR"; 55 55 PP.Components = ["water"]; 56 NComp = PP.NumberOfComponents; 56 NComp = PP.NumberOfComponents; 57 58 exchanger.ShellType = "Eshell"; 59 exchanger.LMTDcorrection = "Fakeri"; 57 60 58 61 SPECIFY … … 62 65 streamhot.F = 100 * "kmol/h"; 63 66 streamhot.T = 450 * "K"; 64 streamhot.v = 1;65 67 streamhot.P = 1.5 * "atm"; 66 68 streamhot.z = [1]; … … 72 74 streamcold.P = 1 * "atm"; 73 75 streamcold.T = 350 * "K"; 74 streamcold.v = 0;75 76 streamcold.z = [1]; 76 77 … … 78 79 # Required Details 79 80 #============================================ 80 exchanger.Details.A = 65 *"m^2"; 81 exchanger.Details.Ud = 0.74 *"W/m^2/K"; 82 exchanger.Details.Uc = 0.74 *"W/m^2/K"; 83 exchanger.PressureDrop.Hot.Pdrop = 0 * "atm"; 84 exchanger.PressureDrop.Cold.Pdrop = 0 * "atm"; 81 exchanger.Details.A = 65 *"m^2"; 82 exchanger.Details.Ud = 0.74 *"W/m^2/K"; 83 exchanger.Details.Uc = 0.74 *"W/m^2/K"; 84 exchanger.PressureDrop.Hot.Pdrop = 0.01 * "atm"; 85 exchanger.PressureDrop.Cold.Pdrop = 0.2 * "atm"; 86 85 87 OPTIONS 86 88 #============================================ 87 89 # Simulation Options 88 90 #============================================ 89 mode = "steady";91 Dynamic = false; 90 92 91 93 end
Note: See TracChangeset
for help on using the changeset viewer.