Ignore:
Timestamp:
Jul 13, 2007, 6:28:33 PM (16 years ago)
Author:
Argimiro Resende Secchi
Message:

Creating energy_stream and set its use.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sample/stage_separators/sample_column.mso

    r297 r310  
    201201       
    202202        VARIABLES
    203         Qc as heat_rate (Brief="Heat rate removed from condenser");
    204         Qr as heat_rate (Brief="Heat rate supplied to reboiler");
     203        Qc as energy_source (Brief="Heat rate removed from condenser");
     204        Qr as energy_source (Brief="Heat rate supplied to reboiler");
    205205       
    206206        SET
     
    217217        zero to col.trays([1:4]).Inlet;
    218218        zero to col.trays([6:col.NTrays]).Inlet;
    219         Qc to col.cond.Q;
    220         Qr to col.reb.Q;
     219        Qc.Outlet to col.cond.InletQ;
     220        Qr.Outlet to col.reb.InletQ;
    221221       
    222222        SPECIFY
     
    237237        col.sptop.frac = 0.444445;
    238238        col.cond.OutletV.F = 0 * 'kmol/h';
    239         Qr = 3.7743e6 * 'kJ/h';
    240         Qc = -3.71e6 * 'kJ/h';
     239        Qr.Outlet.Q = 3.7743e6 * 'kJ/h';
     240        Qc.Outlet.Q = -3.71e6 * 'kJ/h';
    241241        col.pump1.dP = 16 * 'kPa';
    242242        col.trays.Emv = 1;
     
    293293       
    294294        VARIABLES
    295         Qc as heat_rate (Brief="Heat rate removed from condenser");
    296         Qr as heat_rate (Brief="Heat rate supplied to reboiler");
    297         Qttop as heat_rate (Brief="Heat rate removed from condenser");
    298         Qtbottom as heat_rate (Brief="Heat rate supplied to reboiler");
     295        Qc as energy_source (Brief="Heat rate removed from condenser");
     296        Qr as energy_source (Brief="Heat rate supplied to reboiler");
     297        Qttop as energy_source (Brief="Heat rate removed from condenser");
     298        Qtbottom as energy_source (Brief="Heat rate supplied to reboiler");
    299299       
    300300        SET
     
    310310        zero to col.trays([1:4]).Inlet;
    311311        zero to col.trays([6:col.NTrays]).Inlet;
    312         Qttop to col.ttop.Q;
    313         Qtbottom to col.tbottom.Q;
    314         Qc to col.cond.Q;
    315         Qr to col.reb.Q;
     312        Qttop.Outlet to col.ttop.InletQ;
     313        Qtbottom.Outlet to col.tbottom.InletQ;
     314        Qc.Outlet to col.cond.InletQ;
     315        Qr.Outlet to col.reb.InletQ;
    316316       
    317317        SPECIFY
     
    332332        col.spbottom.Outlet1.F = 100 * 'kmol/h';
    333333       
    334         Qr = 3.7743e6 * 'kJ/h';
    335         Qc = -3.71e6 * 'kJ/h';
    336         Qttop = 0 * 'kJ/h';
    337         Qtbottom = 0 * 'kJ/h';
     334        Qr.Outlet.Q = 3.7743e6 * 'kJ/h';
     335        Qc.Outlet.Q = -3.71e6 * 'kJ/h';
     336        Qttop.Outlet.Q = 0 * 'kJ/h';
     337        Qtbottom.Outlet.Q = 0 * 'kJ/h';
    338338       
    339339        col.pump1.dP = 16 * 'kPa';
     
    407407
    408408        VARIABLES
    409         Qc as heat_rate (Brief="Heat rate removed from condenser");
    410         Qr as heat_rate (Brief="Heat rate supplied to reboiler");
     409        Qc as energy_source (Brief="Heat rate removed from condenser");
     410        Qr as energy_source (Brief="Heat rate supplied to reboiler");
    411411        Had_top as Real (Brief="Dimensionless condenser level");
    412412        Had_bot as Real (Brief="Dimensionless reboiler level");
     
    432432        zero to col.trays([1:4]).Inlet;
    433433        zero to col.trays([6:col.NTrays]).Inlet;
    434         Qc to col.cond.Q;
    435         Qr to col.reb.Q;
     434        Qc.Outlet to col.cond.InletQ;
     435        Qr.Outlet to col.reb.InletQ;
    436436
    437437        EQUATIONS
     
    452452        TCcond.Ports.input = Tad;
    453453        Tad = (col.cond.OutletL.T-Tmin)/(Tmax-Tmin);
    454         Qc = Qcmin+(Qcmax-Qcmin)*TCcond.Ports.output;   
     454        Qc.Outlet.Q = Qcmin+(Qcmax-Qcmin)*TCcond.Ports.output; 
    455455
    456456        "Pressure Controller"
     
    529529        zero.h = 0 * 'J/mol';
    530530       
    531         Qr = 3e6 * 'kJ/h';
     531        Qr.Outlet.Q = 3e6 * 'kJ/h';
    532532        col.pump1.dP = 16 * 'kPa';
    533533        col.trays.Emv = 1;
Note: See TracChangeset for help on using the changeset viewer.