Changeset 312


Ignore:
Timestamp:
Jul 13, 2007, 9:34:39 PM (15 years ago)
Author:
Argimiro Resende Secchi
Message:

Update models to new energy_stream.

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/eml/mixers_splitters/mixer.mso

    r304 r312  
    4141out Outlet                      as stream (Brief = "Outlet stream");
    4242out Out_int                             as stream (Brief = "Intermediate Outlet stream");
    43         zeroQ as heat_rate (Brief="No Heat rate supplied");
     43        zeroQ as energy_source (Brief="No Heat rate supplied");
    4444       
    4545        CONNECTIONS
    4646       
    4747        Out_int to Inlet;
    48         zeroQ to Q;
     48        zeroQ.Outlet to InletQ;
    4949
    5050        EQUATIONS
     
    7979        Outlet.P = Inlet.P;
    8080       
    81         zeroQ = 0*'kW';
     81        zeroQ.Outlet.Q = 0*'kW';       
    8282       
    8383end
  • trunk/sample/controllers/Sample_flash_pid.mso

    r294 r312  
    5252        L_ad as Real;
    5353        P_ad as Real;
    54         Q       as heat_rate (Brief="Heat supplied");
     54        Q       as energy_source (Brief="Heat supplied");
    5555       
    5656        DEVICES
     
    8686        CONNECTIONS
    8787        s1.Outlet to fl.Inlet;
    88         Q to fl.Q;
     88        Q.Outlet to fl.InletQ;
    8989       
    9090        SPECIFY
    9191
    92         Q = 1026.32 * 'kJ/s';
     92        Q.Outlet.Q = 1026.32 * 'kJ/s';
    9393
    9494        #Parâmetros do controlador de nível
  • trunk/sample/optimization/ammonia.mso

    r247 r312  
    132132        production as flow_mol(DisplayUnit = 'lbmol/h', Brief="Ammonia in the product");
    133133        loose as flow_mol(DisplayUnit = 'lbmol/h', Brief="Ammonia in the purge");
    134         Q1 as heat_rate;
    135         Q2 as heat_rate;
     134        Q1 as energy_source;
     135        Q2 as energy_source;
    136136
    137137        CONNECTIONS
     
    147147        C102.Outlet    to   M102.Inlet2;
    148148       
    149         Q1             to   F101.Q;
    150         Q2             to   F102.Q;     
     149        Q1.Outlet      to   F101.InletQ;
     150        Q2.Outlet      to   F102.InletQ;       
    151151       
    152152        SET
     
    169169       
    170170        F102.OutletV.P = 10 * 'atm';
    171         F102.Q = 0 * 'kJ/h';
     171        F102.InletQ.Q = 0 * 'kJ/h';
    172172       
    173173        # We can choose between one of the following specs
  • trunk/sample/optimization/ammonia_opt.mso

    r258 r312  
    2626        MINIMIZE
    2727       
    28         abs(Q1) + abs(Q2)
     28        abs(Q1.Outlet.Q) + abs(Q2.Outlet.Q)
    2929        #loose / 'lbmol/h'
    3030        # C102.Pot/'kW'*180
  • trunk/sample/optimization/flash_opt.mso

    r260 r312  
    3535
    3636        VARIABLES
    37         Q       as heat_rate (Brief="Heat supplied");
     37        Q       as energy_source (Brief="Heat supplied");
    3838        leves as fraction;
    3939       
     
    4848        CONNECTIONS
    4949        s1.Outlet to fl.Inlet;
    50         Q to fl.Q;
     50        Q.Outlet to fl.InletQ;
    5151       
    5252        EQUATIONS
     
    6262        fl.OutletL.P = 2.5 * 'atm';
    6363
    64         #Q = 0 * 'kJ/h';
     64        #Q.Outlet.Q = 0 * 'kJ/h';
    6565        fl.OutletL.T = 315.06 * 'K';
    6666       
Note: See TracChangeset for help on using the changeset viewer.