Changeset 530
- Timestamp:
- May 30, 2008, 5:21:43 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/eml/reactors/equil.mso
r471 r530 112 112 113 113 for i in [1:NComp] 114 if (Outletm.z(i) > 0) then114 if (Outletm.z(i) > 1e-16) then 115 115 "Molar conversion" 116 116 Outlet.F*Outlet.z(i) = Outletm.F*Outletm.z(i)*(1 - conv(i)); … … 203 203 204 204 for i in [1:NComp] 205 if (Outletm.z(i) > 0) then205 if (Outletm.z(i) > 1e-16) then 206 206 "Molar conversion" 207 207 Outlet.F*Outlet.z(i) = Outletm.F*Outletm.z(i)*(1 - conv(i)); -
trunk/eml/reactors/gibbs.mso
r471 r530 108 108 G(i) + sumt(lambda*na(:,i)) = -Rg*Outlet.T*ln(activ(i)); 109 109 110 if (Outletm.z(i) > 0) then110 if (Outletm.z(i) > 1e-16) then 111 111 "Molar conversion" 112 112 Fi(i) = Outletm.F*Outletm.z(i)*(1 - conv(i)); … … 195 195 G(i) + sumt(lambda*na(:,i)) = -Rg*Outlet.T*ln(activ(i)); 196 196 197 if (Outletm.z(i) > 0) then197 if (Outletm.z(i) > 1e-16) then 198 198 "Molar conversion" 199 199 Fi(i) = Outletm.F*Outletm.z(i)*(1 - conv(i)); -
trunk/eml/reactors/stoic.mso
r426 r530 73 73 74 74 for i in [1:NComp] 75 if (Outletm.z(i) > 0) then75 if (Outletm.z(i) > 1e-16) then 76 76 "Molar conversion" 77 77 Outlet.F*Outlet.z(i) = Outletm.F*Outletm.z(i)*(1 - conv(i)); … … 124 124 125 125 for i in [1:NComp] 126 if (Outletm.z(i) > 0) then126 if (Outletm.z(i) > 1e-16) then 127 127 "Molar conversion" 128 128 Outlet.F*Outlet.z(i) = Outletm.F*Outletm.z(i)*(1 - conv(i)); -
trunk/eml/reactors/yield.mso
r426 r530 85 85 86 86 for i in [1:NComp] 87 if (Outletm.z(i) > 0) then87 if (Outletm.z(i) > 1e-16) then 88 88 "Molar conversion" 89 89 Outlet.F*Outlet.z(i) = Outletm.F*Outletm.z(i)*(1 - conv(i)); -
trunk/sample/controllers/sample_PIDIncr_MIMO.mso
r342 r530 264 264 col.trays.Emv = 1; 265 265 # col.sptop.Outlet2.F = 75 * 'kmol/h'; # reflux 266 col.alfaTopo = 2; 266 267 267 268 xtop_sp = 1e-3; # benzene … … 337 338 TimeUnit = 'h'; 338 339 InitialFile = "Column_MPID.rlt"; 340 DAESolver(File="dassl"); 339 341 #GuessFile = "Column_MPID.rlt"; 340 342 #Dynamic = false; -
trunk/sample/controllers/sample_PID_MIMO.mso
r340 r530 265 265 col.trays.Emv = 1; 266 266 # col.sptop.Outlet2.F = 75 * 'kmol/h'; # reflux 267 col.alfaTopo = 2; 267 268 268 269 xtop_sp = 1e-3; # benzene … … 338 339 TimeUnit = 'h'; 339 340 InitialFile = "Column_ctrl.rlt"; 341 DAESolver(File="dassl"); 340 342 #GuessFile = "Column_ctrl.rlt"; 341 343 #Dynamic = false; -
trunk/sample/costs/sample_distillation_kettle_cond_cost.mso
r331 r530 80 80 col.pump1.dP = 16 * 'kPa'; 81 81 col.trays.Emv = 1; 82 col.alfaTopo = 2; 82 83 83 84 SET … … 127 128 128 129 # reboiler 129 col.reb.OutletL.T = 3 30 *'K';130 col.reb.OutletL.T = 300 *'K'; 130 131 col.reb.Level = 1 * 'm'; 131 132 col.reb.OutletL.z([1:4]) = [0.1, 0.7, 0.01, 0.01]; 132 133 133 134 # column trays 134 col.trays.OutletL.T = [290:(3 30-290)/(col.NTrays-1):330] * 'K';135 col.trays.OutletL.T = [290:(300-290)/(col.NTrays-1):300] * 'K'; 135 136 col.trays.Level = 1.2 * col.trays.hw; 136 137 col.trays.OutletL.z([1:4]) = [0.5, 0.05, 0.01, 0.01]; -
trunk/sample/miscellaneous/tenprobs/prob03.mso
r283 r530 170 170 # File = "ipopt_emso", 171 171 File = "complex", 172 ObjTol = 1e-6, 173 AcceptableObjTol = 1e-6); 172 ObjTol = 1e-6); 174 173 Dynamic = false; 175 174 end … … 197 196 File = "ipopt_emso", 198 197 # File = "complex", 199 ObjTol = 1e-6, 200 AcceptableObjTol = 1e-6); 198 ObjTol = 1e-6); 201 199 Dynamic = false; 202 200 end … … 225 223 File = "ipopt_emso", 226 224 # File = "complex", 227 ObjTol = 1e-6, 228 AcceptableObjTol = 1e-6); 229 Dynamic = false; 230 end 225 ObjTol = 1e-6); 226 Dynamic = false; 227 end -
trunk/sample/stage_separators/sample_column.mso
r515 r530 94 94 95 95 INITIAL 96 sec.trays.OutletL.T = 2 90 *'K';96 sec.trays.OutletL.T = 270 *'K'; 97 97 sec.trays.Level = 0.9 * sec.trays.hw; 98 98 sec.trays.OutletL.z(1) = 0.5; … … 178 178 179 179 INITIAL 180 sec.trays.OutletL.T = [290:(3 30-290)/(sec.NTrays-1):330] *'K';180 sec.trays.OutletL.T = [290:(300-290)/(sec.NTrays-1):300] *'K'; 181 181 sec.trays.Level = 0.3 * sec.trays.hw; 182 182 sec.trays.OutletL.z(1) = 0.5; … … 267 267 268 268 # reboiler 269 col.reb.OutletL.T = 3 30 *'K';269 col.reb.OutletL.T = 350 *'K'; 270 270 col.reb.Level = 1 * 'm'; 271 271 col.reb.OutletL.z([1:4]) = [0.1, 0.7, 0.01, 0.01]; … … 499 499 TimeUnit = 'h'; 500 500 InitialFile = "Column_ctrl.rlt"; 501 DAESolver(File="dassl"); 501 502 #GuessFile = "Column_ctrl.rlt"; 502 503 #Dynamic = false; -
trunk/sample/stage_separators/sample_columnReact.mso
r346 r530 125 125 PIDLreb.Parameters.gamma=1; 126 126 PIDLreb.Parameters.beta=1; 127 PIDLreb.Parameters.gain= 1;128 PIDLreb.Parameters.intTime= 10*'s';129 PIDLreb.Parameters.derivTime= 1*'s';127 PIDLreb.Parameters.gain=0.9; 128 PIDLreb.Parameters.intTime=20*'s'; 129 PIDLreb.Parameters.derivTime=0*'s'; 130 130 PIDLreb.Options.action=-1; 131 131 PIDLreb.Options.clip=1; … … 174 174 PIDTcond.Parameters.gamma=1; 175 175 PIDTcond.Parameters.beta=1; 176 PIDTcond.Parameters.gain= 1;177 PIDTcond.Parameters.intTime=10 *'s';176 PIDTcond.Parameters.gain=0.9; 177 PIDTcond.Parameters.intTime=100*'s'; 178 178 PIDTcond.Parameters.derivTime=1*'s'; 179 179 PIDTcond.Options.action=1;
Note: See TracChangeset
for help on using the changeset viewer.