- Timestamp:
- Jul 20, 2009, 12:51:45 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/eml/stage_separators/condenser.mso
r801 r802 47 47 outer PP as Plugin (Brief = "External Physical Properties", Type="PP"); 48 48 outer NComp as Integer (Brief = "Number of Components"); 49 49 50 Mw(NComp) as molweight (Brief = "Component Mol Weight",Hidden=true); 51 low_flow as flow_mol (Brief = "Low Flow",Default = 1E-6, Hidden=true); 52 zero_flow as flow_mol (Brief = "No Flow",Default = 0, Hidden=true); 53 KfConst as area (Brief="Constant for K factor pressure drop", Default = 1, Hidden=true); 54 55 VapourFlow as Switcher (Brief="Vapour Flow", Valid = ["on", "off"], Default = "on",Hidden=true); 56 57 Kfactor as positive (Brief="K factor for pressure drop", Lower = 1E-8, Default = 1E-3); 50 58 Pdrop as press_delta (Brief="Pressure Drop in the condenser",Default=0, Symbol="\Delta _P"); 59 60 SET 61 62 Mw = PP.MolecularWeight(); 63 low_flow = 1E-6 * 'kmol/h'; 64 zero_flow = 0 * 'kmol/h'; 65 KfConst = 1*'m^2'; 51 66 52 67 VARIABLES … … 54 69 out OutletLiquid as liquid_stream (Brief="Liquid outlet stream", PosX=0.53, PosY=1, Symbol="_{out}^{Liquid}"); 55 70 in InletQ as power (Brief="Heat Duty", PosX=1, PosY=0.08, Symbol="Q_{in}",Protected=true); 56 71 72 rho as dens_mass (Brief ="Inlet Vapour Mass Density",Hidden=true, Symbol ="\rho"); 73 57 74 out TI as control_signal (Brief="Temperature Indicator of Condenser", Protected = true, PosX=0.50, PosY=0); 58 75 out PI as control_signal (Brief="Pressure Indicator of Condenser", Protected = true, PosX=0.32, PosY=0); … … 60 77 EQUATIONS 61 78 79 switch VapourFlow 80 81 case "on": 82 InletVapour.F*sum(Mw*InletVapour.z) = Kfactor *sqrt(Pdrop*rho)*KfConst; 83 84 when InletVapour.F < low_flow switchto "off"; 85 86 case "off": 87 InletVapour.F = zero_flow; 88 89 when InletVapour.P > OutletLiquid.P switchto "on"; 90 91 end 92 62 93 "Molar Flow Balance" 63 94 InletVapour.F = OutletLiquid.F; … … 68 99 "Energy Balance" 69 100 InletVapour.F*InletVapour.h = OutletLiquid.F*OutletLiquid.h + InletQ; 101 102 "Inlet Vapour Density" 103 rho = PP.VapourDensity(InletVapour.T, InletVapour.P, InletVapour.z); 70 104 71 105 "Pressure Drop"
Note: See TracChangeset
for help on using the changeset viewer.