- Timestamp:
- Nov 15, 2007, 11:36:42 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sample/miscellaneous/sample_gibbs_reactor_simple.mso
r401 r402 47 47 R as Real(Brief="Universal gas constant", Unit='J/mol/K', Default=8.314); 48 48 T0 as temperature(Default = 298.15); 49 P0 as pressure(Default=1);49 P0 as Real(Default=1, Unit='bar'); 50 50 G0(NComp) as energy_mol (Brief="Gibbs energy in standard state"); 51 51 H0(NComp) as energy_mol (Brief="Enthalpy in standard state"); … … 59 59 P as pressure; 60 60 ni(NComp) as positive(Brief="Initial number of mols", Unit='mol'); 61 n(NComp) as positive(Brief="Number of mols at equilibrium", Unit='mol', Upper= 2);62 advance as Real(Unit='mol', Lower=- 2, Upper=2);61 n(NComp) as positive(Brief="Number of mols at equilibrium", Unit='mol', Upper=10); 62 advance as Real(Unit='mol', Lower=-10, Upper=10); 63 63 64 64 K as Real(Brief="Reaction equilibrium constant at T"); … … 113 113 Dynamic = false; 114 114 end 115 116 117 # Ethanol production by ethylene hydratation at 250 degC and 35 bar 118 FlowSheet gibbs_reactor_simple_sample2 as gibbs_reactor_simple 119 PARAMETERS 120 PP as Plugin(Brief="Physical Properties", 121 Type="PP", 122 Components = ["ethylene", "water", "ethanol"], 123 LiquidModel = "IdealLiquid", 124 VapourModel = "PR" 125 ); 126 NComp as Integer; 127 128 SET 129 NComp = PP.NumberOfComponents; 130 stoic = [-1, -1, 1]; 131 132 SPECIFY 133 T = (250 + 273.15) * 'K'; 134 P = 35 * 'atm'; 135 ni = [1, 5, 0] * 'mol'; 136 137 # Expected results: 138 # advance = 0.21; 139 140 OPTIONS 141 Dynamic = false; 142 end 143 144 # Water-gas-shift T = 1100 K, P = 1 bar 145 FlowSheet gibbs_reactor_simple_sample3 as gibbs_reactor_simple 146 PARAMETERS 147 PP as Plugin(Brief="Physical Properties", 148 Type="PP", 149 Components = ["carbon monoxide", "water", "carbon dioxide", "hydrogen"], 150 LiquidModel = "IdealLiquid", 151 VapourModel = "PR" 152 ); 153 NComp as Integer; 154 155 SET 156 NComp = PP.NumberOfComponents; 157 stoic = [-1, -1, 1, 1]; 158 159 SPECIFY 160 T = 1100 * 'K'; 161 P = 1 * 'bar'; 162 ni = [1, 1, 0, 0] * 'mol'; 163 164 # Expected results: 165 # advance = 0.41; 166 167 OPTIONS 168 Dynamic = false; 169 end 170 171 172 # Water-gas-shift T = 1100 K, P = 10 bar 173 FlowSheet gibbs_reactor_simple_sample4 as gibbs_reactor_simple 174 PARAMETERS 175 PP as Plugin(Brief="Physical Properties", 176 Type="PP", 177 Components = ["carbon monoxide", "water", "carbon dioxide", "hydrogen"], 178 LiquidModel = "IdealLiquid", 179 VapourModel = "PR" 180 ); 181 NComp as Integer; 182 183 SET 184 NComp = PP.NumberOfComponents; 185 stoic = [-1, -1, 1, 1]; 186 187 SPECIFY 188 T = 1100 * 'K'; 189 P = 1 * 'bar'; 190 ni = [1, 1, 0, 0] * 'mol'; 191 192 # Expected results: 193 # advance = 0.41; 194 195 OPTIONS 196 Dynamic = false; 197 end 198 199 200 # Water-gas-shift T = 1100 K, P = 1 bar excess of water 201 FlowSheet gibbs_reactor_simple_sample5 as gibbs_reactor_simple 202 PARAMETERS 203 PP as Plugin(Brief="Physical Properties", 204 Type="PP", 205 Components = ["carbon monoxide", "water", "carbon dioxide", "hydrogen"], 206 LiquidModel = "IdealLiquid", 207 VapourModel = "PR" 208 ); 209 NComp as Integer; 210 211 SET 212 NComp = PP.NumberOfComponents; 213 stoic = [-1, -1, 1, 1]; 214 215 SPECIFY 216 T = 1100 * 'K'; 217 P = 1 * 'bar'; 218 ni = [1, 2, 0, 0] * 'mol'; 219 220 # Expected results: 221 # advance = 0.56; 222 223 OPTIONS 224 Dynamic = false; 225 end 226 227 # Ammonia synthesis from nitrogen and hydrogen T = 500 degC, P = 1 bar 228 FlowSheet gibbs_reactor_simple_sample6 as gibbs_reactor_simple 229 PARAMETERS 230 PP as Plugin(Brief="Physical Properties", 231 Type="PP", 232 Components = ["nitrogen", "hydrogen", "ammonia"], 233 LiquidModel = "IdealLiquid", 234 VapourModel = "PR" 235 ); 236 NComp as Integer; 237 238 SET 239 NComp = PP.NumberOfComponents; 240 stoic = [-1, -1, 2]; 241 242 SPECIFY 243 T = (500 + 273.15) * 'K'; 244 P = 1 * 'bar'; 245 ni = [1, 3, 0] * 'mol'; 246 247 # Expected results: 248 # K = 6e-5; 249 250 OPTIONS 251 Dynamic = false; 252 end 253 254 # Ammonia synthesis from nitrogen and hydrogen T = 500 degC, P = 300 bar 255 FlowSheet gibbs_reactor_simple_sample7 as gibbs_reactor_simple 256 PARAMETERS 257 PP as Plugin(Brief="Physical Properties", 258 Type="PP", 259 Components = ["nitrogen", "hydrogen", "ammonia"], 260 LiquidModel = "IdealLiquid", 261 VapourModel = "PR" 262 ); 263 NComp as Integer; 264 265 SET 266 NComp = PP.NumberOfComponents; 267 stoic = [-1, -3, 2]; 268 269 SPECIFY 270 T = (500 + 273.15) * 'K'; 271 P = 300 * 'bar'; 272 ni = [1, 3, 0] * 'mol'; 273 274 # Expected results: 275 # advance = 0.54; 276 277 OPTIONS 278 Dynamic = false; 279 end
Note: See TracChangeset
for help on using the changeset viewer.