Changeset 133 for branches/newlanguage
- Timestamp:
- Jan 25, 2007, 12:15:43 PM (17 years ago)
- Location:
- branches/newlanguage
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/newlanguage/eml/heat_exchangers/heater.mso
r78 r133 36 36 #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++# 37 37 PARAMETERS 38 ext PP as CalcObject(Brief="Physical Properties");39 ext NComp as Integer(Brief="Number of Components");40 Ninlet as Integer(Brief="Number of Inlet Streams",Lower=1);38 outer PP as Plugin (Brief="Physical Properties"); 39 outer NComp as Integer (Brief="Number of Components"); 40 Ninlet as Integer (Brief="Number of Inlet Streams",Lower=1); 41 41 42 42 VARIABLES 43 in Inlet(Ninlet) as stream ; #(Brief="Inlet Streams")44 out Outlet as stream_therm;#(Brief="Outlet Stream")45 Q as power(Brief = "Heat Transfer");46 Vfrac as fraction(Brief = "Vapor fraction Outlet Stream");47 Lfrac as fraction(Brief = "Liquid fraction Outlet Stream");43 in Inlet(Ninlet) as stream (Brief="Inlet Streams"); 44 out Outlet as liquid_stream (Brief="Outlet Stream"); 45 Q as power (Brief = "Heat Transfer"); 46 Vfrac as fraction (Brief = "Vapor fraction Outlet Stream"); 47 Lfrac as fraction (Brief = "Liquid fraction Outlet Stream"); 48 48 49 49 EQUATIONS … … 59 59 end 60 60 61 "Outlet Vapourisation Fraction"62 Outlet.v = PP.VapourFraction(Outlet.T,Outlet.P,Outlet.z);61 #"Outlet Vapourisation Fraction" 62 #Outlet.v = PP.VapourFraction(Outlet.T,Outlet.P,Outlet.z); 63 63 64 "Vapor fraction Outlet Stream"65 Vfrac = Outlet.v;64 #"Vapor fraction Outlet Stream" 65 # Vfrac = Outlet.v; 66 66 67 67 "Liquid fraction Outlet Stream" -
branches/newlanguage/sample/heat_exchangers/heater_project.mso
r89 r133 28 28 FlowSheet Heater_Project 29 29 30 PARAMETERS 31 32 PP as Plugin (File="vrpp"); 33 NComp as Integer; 34 30 35 DEVICES 31 36 32 37 heater as Heater; 33 streamcold1 as s tream_therm;38 streamcold1 as source; 34 39 35 40 36 41 CONNECTIONS 37 42 38 streamcold1 to heater.Inlet(1); 39 40 41 PARAMETERS 42 43 PP as CalcObject (File="vrpp"); 44 NComp as Integer; 43 streamcold1.Outlet to heater.Inlet(1); 45 44 46 45 SET 47 46 48 PP.LiquidModel = " RK";49 PP.VapourModel = " RK";47 PP.LiquidModel = "PR"; 48 PP.VapourModel = "PR"; 50 49 51 50 PP.Components = ["water"]; … … 55 54 SPECIFY 56 55 57 streamcold1.F = 100 * "kmol/h"; 58 streamcold1.P = 1 * "atm"; 59 streamcold1.T = 343 * "K"; 60 streamcold1.v = 0; 61 streamcold1.z = [1]; 56 streamcold1.Outlet.F = 100 * "kmol/h"; 57 streamcold1.Outlet.P = 1 * "atm"; 58 streamcold1.Outlet.T = 343 * "K"; 59 streamcold1.Outlet.z = [1]; 62 60 63 61 … … 69 67 OPTIONS 70 68 71 mode = "steady";69 Dynamic = false; 72 70 73 71 end … … 75 73 FlowSheet Cooler_Project 76 74 75 PARAMETERS 76 77 PP as Plugin(File="vrpp"); 78 NComp as Integer; 79 77 80 DEVICES 78 81 79 82 cooler as Cooler; 80 streamcold1 as s tream_therm;83 streamcold1 as source; 81 84 82 85 83 86 CONNECTIONS 84 87 85 streamcold1 to cooler.Inlet(1);88 streamcold1.Outlet to cooler.Inlet(1); 86 89 87 88 PARAMETERS89 90 PP as CalcObject (File="vrpp");91 NComp as Integer;92 90 93 91 SET … … 101 99 SPECIFY 102 100 103 streamcold1.F = 100 * "kmol/h"; 104 streamcold1.P = 1 * "atm"; 105 streamcold1.T = 343 * "K"; 106 streamcold1.v = 0; 107 streamcold1.z = [1]; 101 streamcold1.Outlet.F = 100 * "kmol/h"; 102 streamcold1.Outlet.P = 1 * "atm"; 103 streamcold1.Outlet.T = 343 * "K"; 104 streamcold1.Outlet.z = [1]; 108 105 109 106 … … 115 112 OPTIONS 116 113 117 mode = "steady";114 Dynamic = false; 118 115 119 116
Note: See TracChangeset
for help on using the changeset viewer.