- Timestamp:
- Sep 8, 2008, 12:30:03 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/eml/stage_separators/columnTeste.mso
r617 r618 66 66 67 67 PARAMETERS 68 outer PP as Plugin (Brief ="External Physical Properties", Type="PP");69 outer NComp as Integer ;68 outer PP as Plugin (Brief="External Physical Properties", Type="PP"); 69 outer NComp as Integer (Brief="Number of components"); 70 70 NumberOfTrays as Integer (Brief="Number of trays", Default=2); 71 71 SpecialTrayIndex(NumberOfTrays) as Integer (Brief="Number of trays", Default=0,Hidden=true); 72 FeedTray as Integer (Brief="Number of Feed tray", Default=2);72 FeedTrayLocation as Integer (Brief="Feed tray Location", Default=2); 73 73 topdown as Integer (Brief="Trays counting (1=top-down, -1=bottom-up)", Default=1,Hidden=true); 74 74 top as Integer (Brief="Number of top tray",Hidden=true); 75 75 bot as Integer (Brief="Number of bottom tray",Hidden=true); 76 76 g as acceleration (Brief="Gravity Acceleration",Default=9.81,Hidden=true); 77 Mw(NComp) as molweight (Brief="Component Mol Weight" );77 Mw(NComp) as molweight (Brief="Component Mol Weight",Hidden=true); 78 78 79 79 VapourFlowModel as Switcher (Valid = ["Reepmeyer", "Feehery_Fv", "Roffel_Fv", "Klingberg", "Wang_Fv", "Elgue"], Default = "Reepmeyer"); 80 80 LiquidFlowModel as Switcher (Valid = ["default", "Wang_Fl", "Olsen", "Feehery_Fl", "Roffel_Fl"], Default = "default"); 81 82 V as volume (Brief="Total Volume of the tray"); 83 Q as heat_rate (Brief="Rate of heat supply"); 84 Ap as area (Brief="Plate area = Atray - Adowncomer"); 85 86 Ah as area (Brief="Total holes area"); 87 lw as length (Brief="Weir length"); 88 hw as length (Brief="Weir height"); 81 82 VolumeOfTray as volume (Brief="Total Volume of the tray"); 83 HeatSupply as heat_rate (Brief="Rate of heat supply"); 84 PlateArea as area (Brief="Plate area = Atray - Adowncomer"); 85 86 HolesArea as area (Brief="Total holes area"); 87 WeirLength as length (Brief="Weir length"); 88 WeirHeight as length (Brief="Weir height"); 89 FeeheryCoeff as Real (Brief="Feeherys correlation coefficient", Unit='1/m^4', Default=1); 90 ElgueCoeff as Real (Brief="Elgues correlation coefficient", Unit='kg/m/mol^2', Default=1); 91 OlsenCoeff as Real (Brief="Olsens correlation coefficient", Default=1); 92 TrayLiquidPasses as Real (Brief="Number of liquid passes in the tray", Default=1); 93 94 V as volume (Brief="Total Volume of the tray",Hidden=true); 95 Q as heat_rate (Brief="Rate of heat supply",Hidden=true); 96 Ap as area (Brief="Plate area = Atray - Adowncomer",Hidden=true); 97 98 Ah as area (Brief="Total holes area",Hidden=true); 99 lw as length (Brief="Weir length",Hidden=true); 100 hw as length (Brief="Weir height",Hidden=true); 89 101 beta as fraction (Brief="Aeration fraction"); 90 102 alfa as fraction (Brief="Dry pressure drop coefficient"); 91 w as Real (Brief="Feeherys correlation coefficient", Unit='1/m^4', Default=1 );92 btray as Real (Brief="Elgues correlation coefficient", Unit='kg/m/mol^2', Default=1 );93 fw as Real (Brief="Olsens correlation coefficient", Default=1 );94 Np as Real (Brief="Number of liquid passes in the tray", Default=1 );103 w as Real (Brief="Feeherys correlation coefficient", Unit='1/m^4', Default=1,Hidden=true); 104 btray as Real (Brief="Elgues correlation coefficient", Unit='kg/m/mol^2', Default=1,Hidden=true); 105 fw as Real (Brief="Olsens correlation coefficient", Default=1,Hidden=true); 106 Np as Real (Brief="Number of liquid passes in the tray", Default=1,Hidden=true); 95 107 96 108 VapourFlow as Switcher (Valid = ["on", "off"], Default = "on",Hidden=true); … … 100 112 top = (NumberOfTrays-1)*(1-topdown)/2+1; 101 113 bot = NumberOfTrays/top; 102 SpecialTrayIndex(FeedTray ) =1;114 SpecialTrayIndex(FeedTrayLocation) =1; 103 115 Mw = PP.MolecularWeight(); 104 116 117 VolumeOfTray = V; 118 HeatSupply = Q; 119 PlateArea = Ap; 120 HolesArea = Ah; 121 WeirLength = lw; 122 WeirHeight = hw; 123 FeeheryCoeff = w; 124 ElgueCoeff = btray; 125 OlsenCoeff = fw; 126 TrayLiquidPasses = Np; 105 127 106 128 VARIABLES 107 in Inlet as stream (Brief="Feed stream", PosX=0, PosY=0.55); 108 trays(NumberOfTrays) as trayTeste; 109 110 in Lin as stream (Brief="Feed stream", PosX=0.80, PosY=0); 111 in Vin as stream (Brief="Feed stream", PosX=0.30, PosY=1); 112 113 out Lout as liquid_stream (Brief="Feed stream", PosX=0.80, PosY=1); 114 out Vout as vapour_stream (Brief="Feed stream", PosX=0.30, PosY=0); 115 116 LiquidConnector as stream (Brief="Feed stream", PosX=0.75, PosY=1,Hidden=true); 117 VapourConnector as stream (Brief="Feed stream", PosX=0.55, PosY=0,Hidden=true); 129 130 in FeedTray as stream (Brief="Feed stream", PosX=0, PosY=0.55); 131 132 in LiquidInlet as stream (Brief="Liquid Inlet in the section", PosX=0.80, PosY=0); 133 out VapourOutlet as vapour_stream (Brief="Vapour Outlet in the section", PosX=0.30, PosY=0); 134 135 trays(NumberOfTrays) as trayTeste (Brief="Number of trays"); 136 137 in VapourInlet as stream (Brief="Vapour Inlet in the section", PosX=0.30, PosY=1); 138 out LiquidOutlet as liquid_stream (Brief="Liquid Outlet in the section", PosX=0.80, PosY=1); 139 140 LiquidConnector as stream (Brief="Liquid connection at the middle trays", PosX=0.75, PosY=1,Hidden=true); 141 VapourConnector as stream (Brief="Vapour connection at the middle trays", PosX=0.55, PosY=0,Hidden=true); 118 142 119 143 CONNECTIONS … … 127 151 EQUATIONS 128 152 129 LiquidConnector.F= Li n.F;130 LiquidConnector.T = Li n.T;131 LiquidConnector.P = Li n.P;132 LiquidConnector.z = Li n.z;133 LiquidConnector.v = Li n.v;134 LiquidConnector.h = Li n.h;135 136 VapourConnector.F= V in.F;137 VapourConnector.T = V in.T;138 VapourConnector.P = V in.P;139 VapourConnector.z = V in.z;140 VapourConnector.v = V in.v;141 VapourConnector.h = V in.h;142 143 L out.F= trays(NumberOfTrays).OutletL.F;144 L out.T = trays(NumberOfTrays).OutletL.T;145 L out.P = trays(NumberOfTrays).OutletL.P;146 L out.z = trays(NumberOfTrays).OutletL.z;147 148 V out.F= trays(1).OutletV.F;149 V out.T = trays(1).OutletV.T;150 V out.P = trays(1).OutletV.P;151 V out.z = trays(1).OutletV.z;153 LiquidConnector.F= LiquidInlet.F; 154 LiquidConnector.T = LiquidInlet.T; 155 LiquidConnector.P = LiquidInlet.P; 156 LiquidConnector.z = LiquidInlet.z; 157 LiquidConnector.v = LiquidInlet.v; 158 LiquidConnector.h = LiquidInlet.h; 159 160 VapourConnector.F= VapourInlet.F; 161 VapourConnector.T = VapourInlet.T; 162 VapourConnector.P = VapourInlet.P; 163 VapourConnector.z = VapourInlet.z; 164 VapourConnector.v = VapourInlet.v; 165 VapourConnector.h = VapourInlet.h; 166 167 LiquidOutlet.F= trays(NumberOfTrays).OutletL.F; 168 LiquidOutlet.T = trays(NumberOfTrays).OutletL.T; 169 LiquidOutlet.P = trays(NumberOfTrays).OutletL.P; 170 LiquidOutlet.z = trays(NumberOfTrays).OutletL.z; 171 172 VapourOutlet.F= trays(1).OutletV.F; 173 VapourOutlet.T = trays(1).OutletV.T; 174 VapourOutlet.P = trays(1).OutletV.P; 175 VapourOutlet.z = trays(1).OutletV.z; 152 176 153 177 # Connecting Trays 154 Inlet.F*SpecialTrayIndex= trays.Inlet.F;155 Inlet.T = trays.Inlet.T;156 Inlet.P = trays.Inlet.P;157 Inlet.z = trays.Inlet.z;158 Inlet.v = trays.Inlet.v;159 Inlet.h = trays.Inlet.h;178 FeedTray.F*SpecialTrayIndex= trays.Inlet.F; 179 FeedTray.T = trays.Inlet.T; 180 FeedTray.P = trays.Inlet.P; 181 FeedTray.z = trays.Inlet.z; 182 FeedTray.v = trays.Inlet.v; 183 FeedTray.h = trays.Inlet.h; 160 184 161 185 for i in [1:NumberOfTrays] do
Note: See TracChangeset
for help on using the changeset viewer.