Changeset 124
- Timestamp:
- Jan 19, 2007, 3:54:55 PM (15 years ago)
- Location:
- branches/newlanguage
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/newlanguage/eml/stage_separators/tray.mso
r103 r124 56 56 57 57 PARAMETERS 58 ext PP as CalcObject;59 extNComp as Integer;58 outer PP as Plugin; 59 outer NComp as Integer; 60 60 V as volume(Brief="Total Volume of the tray"); 61 61 Q as heat_rate (Brief="Rate of heat supply"); … … 66 66 in InletL as stream; 67 67 in InletV as stream; 68 out OutletL as stream_therm;69 out OutletV as stream_therm;68 out OutletL as liquid_stream; 69 out OutletV as vapour_stream; 70 70 71 71 M(NComp) as mol (Brief="Molar Holdup in the tray"); … … 119 119 V = ML* vL + MV*vV; 120 120 121 "vaporization fraction "122 OutletV.v = 1.0;123 OutletL.v = 0.0;124 125 121 "Level of clear liquid over the weir" 126 122 Level = ML*vL/Ap; … … 147 143 rhoV = PP.VapourDensity(InletV.T, InletV.P, InletV.z); 148 144 149 if (Level > (beta * hw)) then145 if Level > (beta * hw) then 150 146 "Francis Equation" 151 147 OutletL.F = 1.84*"m^0.5/s"*lw*((Level-(beta*hw))/(beta))^2/vL; … … 163 159 164 160 PARAMETERS 165 ext PP as CalcObject;166 extNComp as Integer;161 outer PP as Plugin; 162 outer NComp as Integer; 167 163 V as volume(Brief="Total Volume of the tray"); 168 164 Q as power (Brief="Rate of heat supply"); … … 184 180 in InletL as stream; 185 181 in InletV as stream; 186 out OutletL as stream_therm;187 out OutletV as stream_therm;182 out OutletL as liquid_stream; 183 out OutletV as vapour_stream; 188 184 189 185 yideal(NComp) as fraction; … … 250 246 rhoV = PP.VapourDensity(InletV.T, InletV.P, InletV.z); 251 247 252 if (Level > (beta * hw)) then248 if Level > (beta * hw) then 253 249 "Francis Equation" 254 250 OutletL.F = (1.84*"1/s"*lw*((Level-(beta*hw))/(beta))^2/vL); -
branches/newlanguage/eml/streams.mso
r123 r124 111 111 end 112 112 113 Model sink2114 VARIABLES115 in Inlet as stream;116 end117 118 113 Model sink 119 114 ATTRIBUTES -
branches/newlanguage/sample/miscellaneous/sample_if.mso
r83 r124 45 45 y = 0; 46 46 47 OPTIONS48 time = [0:0.01:10];49 47 end 50 48 -
branches/newlanguage/sample/stage_separators/sample_flash.mso
r123 r124 68 68 fl.OutletL.T = 338 *"K"; 69 69 fl.Level = 1 * "m"; 70 70 71 fl.OutletL.z(1) = 0.1; 71 72 fl.OutletL.z(2) = 0.1; -
branches/newlanguage/sample/stage_separators/sample_stream.mso
r123 r124 39 39 DEVICES 40 40 s1 as source; 41 s2 as sink 2;41 s2 as sink; 42 42 43 43 CONNECTIONS … … 52 52 53 53 OPTIONS 54 RelativeAccuracy = 1e- 7;55 AbsoluteAccuracy = 1e- 9;54 RelativeAccuracy = 1e-4; 55 AbsoluteAccuracy = 1e-8; 56 56 Dynamic = false; 57 57 TimeStep = 0.1;
Note: See TracChangeset
for help on using the changeset viewer.