Changeset 921 for branches/gui/sample/optimization/flash_opt.mso
 Timestamp:
 Feb 28, 2010, 2:06:16 AM (13 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

branches/gui/sample/optimization/flash_opt.mso
r578 r921 51 51 52 52 EQUATIONS 53 leves = fl.OutletV .z(1)+fl.OutletV.z(2);53 leves = fl.OutletVapour.z(1)+fl.OutletVapour.z(2); 54 54 55 55 SPECIFY … … 57 57 s1.T = 338 * 'K'; 58 58 s1.P = 507.1 * 'kPa'; 59 #s1.Outlet.v = 0.1380;60 59 s1.Composition = [0.2379,0.3082,0.09959,0.1373,0.08872,0.1283]; 61 60 62 fl.OutletL .P = 2.5 * 'atm';61 fl.OutletLiquid.P = 2.5 * 'atm'; 63 62 64 #Q.OutletQ .Q= 0 * 'kJ/h';65 fl.OutletL .T = 315.06 * 'K';63 #Q.OutletQ = 0 * 'kJ/h'; 64 fl.OutletLiquid.T = 315.06 * 'K'; 66 65 67 66 OPTIONS … … 78 77 79 78 FREE 80 fl.OutletL .T;81 #fl.OutletL .P;79 fl.OutletLiquid.T; 80 #fl.OutletLiquid.P; 82 81 83 82 EQUATIONS 84 fl.OutletL .T < 320 * 'K';85 fl.OutletL .T > 300 * 'K';83 fl.OutletLiquid.T < 320 * 'K'; 84 fl.OutletLiquid.T > 300 * 'K'; 86 85 87 86 OPTIONS 88 87 Dynamic = false; 89 NLPSolveNLA = false;88 NLPSolveNLA = true; 90 89 NLPSolver(#File = "complex", 91 90 #File = "optpp_emso", 92 91 File = "ipopt_emso", 92 MaxIterations = 1000, 93 93 RelativeAccuracy = 1e6); 94 94 end
Note: See TracChangeset
for help on using the changeset viewer.