Changeset 905 for branches/gui/sample/stage_separators/Sample_TankL_PID.mso
- Timestamp:
- Feb 16, 2010, 1:47:29 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/sample/stage_separators/Sample_TankL_PID.mso
r799 r905 3 3 *----------------------------------------------*# 4 4 5 using "streams ";6 using "pressure_changers/valve ";7 using "controllers/PIDs ";8 using "stage_separators/tank ";5 using "streams.mso"; 6 using "pressure_changers/valve.mso"; 7 using "controllers/PIDs.mso"; 8 using "stage_separators/tank.mso"; 9 9 10 10 FlowSheet Sample_TankL_PID … … 22 22 DEVICES 23 23 Feed as simple_source; 24 valve_liquid as valve_flow; 25 PID_LC as PID; 26 LiquidProduct as simple_sink; 27 Heat_Duty as energy_source2; 28 TankL_1 as TankL; 29 30 CONNECTIONS 31 PID_LC.Output to valve_liquid.FlowFraction; 32 valve_liquid.Outlet to LiquidProduct.Inlet; 33 Feed.Outlet to TankL_1.Inlet; 34 Heat_Duty.OutletQ to TankL_1.InletQ; 35 TankL_1.OutletLiquid to valve_liquid.Inlet; 36 TankL_1.LI to PID_LC.Input; 24 37 25 38 SET 39 PID_LC.PID_Select = "Parallel_AWBT" ; 40 PID_LC.Action = "Direct" ; 41 PID_LC.Mode = "Automatic" ; 42 PID_LC.Clip = "Clipped" ; 43 PID_LC.alpha = 1 ; 44 PID_LC.beta = 1 ; 45 PID_LC.bias = 0.5 ; 46 PID_LC.derivTime = 19 * 's' ; 47 PID_LC.intTime = 76 * 's' ; 48 PID_LC.gain = 1.1776 ; 49 PID_LC.gamma = 1 ; 50 PID_LC.tau = 1 * 's' ; 51 PID_LC.tauSet = 1 * 's' ; 52 PID_LC.MinInput = 0 ; 53 PID_LC.MaxInput = 2 ; 54 PID_LC.MinOutput = 0 ; 55 PID_LC.MaxOutput = 1 ; 56 TankL_1.Levelpercent_Initial = 0.80 ; 26 57 27 58 SPECIFY 28 Feed.MolarComposition(1) = 0.3; 29 Feed.MolarComposition(2) = 0.3; 30 Feed.MolarComposition(3) = 0.4; 31 Feed.F = 500 * 'kmol/h'; 32 Feed.T = 338 * 'K'; 33 Feed.P = 5 * 'atm'; 59 Feed.MolarComposition(1) = 0.3 ; 60 Feed.MolarComposition(2) = 0.3 ; 61 Feed.MolarComposition(3) = 0.4 ; 62 Feed.F = 500 * 'kmol/h' ; 63 Feed.T = 338 * 'K' ; 64 Feed.P = 5 * 'atm' ; 65 PID_LC.SetPoint = 0.7 ; 66 Heat_Duty.OutletQ = 0 * 'kW' ; 34 67 35 68 INITIAL 36 69 37 70 GUESS 38 39 DEVICES40 41 SET42 43 SPECIFY44 45 INITIAL46 47 GUESS48 49 DEVICES50 valve_liquid as valve_flow;51 52 SET53 54 SPECIFY55 56 INITIAL57 58 GUESS59 60 DEVICES61 62 63 SET64 65 SPECIFY66 67 INITIAL68 69 GUESS70 71 DEVICES72 PID_LC as PID;73 74 SET75 PID_LC.PID_Select = "Parallel_AWBT";76 PID_LC.Action = "Direct";77 PID_LC.Mode = "Automatic";78 PID_LC.Clip = "Clipped";79 PID_LC.alpha = 1;80 PID_LC.beta = 1;81 PID_LC.bias = 0.5;82 PID_LC.derivTime = 19 * 's';83 PID_LC.intTime = 76 * 's';84 PID_LC.gain = 1.1776;85 PID_LC.gamma = 1;86 PID_LC.tau = 1 * 's';87 PID_LC.tauSet = 1 * 's';88 PID_LC.MinInput = 0;89 PID_LC.MaxInput = 2;90 PID_LC.MinOutput = 0;91 PID_LC.MaxOutput = 1;92 93 SPECIFY94 PID_LC.SetPoint = 0.7;95 96 INITIAL97 98 GUESS99 100 DEVICES101 102 103 104 SPECIFY105 106 INITIAL107 108 GUESS109 110 DEVICES111 LiquidProduct as simple_sink;112 113 SET114 115 SPECIFY116 117 INITIAL118 119 GUESS120 121 DEVICES122 Heat_Duty as energy_source2;123 124 SET125 126 SPECIFY127 Heat_Duty.OutletQ = 0 * 'kW';128 129 INITIAL130 131 GUESS132 133 DEVICES134 V001 as TankL;135 136 SET137 V001.Orientation = "horizontal";138 V001.Heads = "hemispherical";139 V001.Diameter = 3.1 * 'm';140 V001.Lenght = 6 * 'm';141 V001.Levelpercent_Initial = 0.7;142 143 SPECIFY144 145 INITIAL146 147 GUESS148 149 CONNECTIONS150 PID_LC.Output to valve_liquid.FlowFraction;151 valve_liquid.Outlet to LiquidProduct.Inlet;152 Feed.Outlet to V001.Inlet;153 V001.LI to PID_LC.Input;154 Heat_Duty.OutletQ to V001.InletQ;155 V001.OutletLiquid to valve_liquid.Inlet;156 71 157 72 OPTIONS
Note: See TracChangeset
for help on using the changeset viewer.