Changeset 310 for trunk/eml


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

Creating energy_stream and set its use.

Location:
trunk/eml
Files:
7 added
4 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/eml/stage_separators/condenser.mso

    r300 r310  
    5151out     OutletL as liquid_stream(Brief="Liquid outlet stream");
    5252out     OutletV as vapour_stream(Brief="Vapour outlet stream");
    53 in      Q as heat_rate (Brief="Heat supplied");
     53in      InletQ as energy_stream (Brief="Heat supplied");
    5454
    5555        M(NComp) as mol (Brief="Molar Holdup in the tray");
     
    6868        "Energy Balance"
    6969        diff(E) = InletV.F*InletV.h - OutletL.F*OutletL.h
    70                                 - OutletV.F*OutletV.h + Q;
     70                                - OutletV.F*OutletV.h + InletQ.Q;
    7171
    7272        "Molar Holdup"
     
    129129in      InletV as stream(Brief="Vapour inlet stream");
    130130out     OutletL as liquid_stream(Brief="Liquid outlet stream");
    131 in      Q as heat_rate (Brief="Heat supplied");
     131in      InletQ as energy_stream (Brief="Heat supplied");
    132132        DP as press_delta (Brief="Pressure Drop in the condenser");
    133133
     
    138138               
    139139        "Energy Balance"
    140         InletV.F*InletV.h = OutletL.F*OutletL.h + Q;
     140        InletV.F*InletV.h = OutletL.F*OutletL.h + InletQ.Q;
    141141       
    142142        "Pressure"
     
    184184out     OutletL as liquid_stream(Brief="Liquid outlet stream");
    185185out     OutletV as vapour_stream(Brief="Vapour outlet stream");
     186in      InletQ as energy_stream (Brief="Heat supplied");
    186187
    187188        M(NComp) as mol (Brief="Molar Holdup in the tray");
     
    192193        vV as volume_mol (Brief="Vapour Molar volume");
    193194        Level as length (Brief="Level of liquid phase");
    194         Q as heat_rate (Brief="Heat supplied");
    195195        Vol as volume;
    196196        r3 as reaction_mol (Brief = "Reaction resulting ethyl acetate", DisplayUnit = 'mol/l/s');
     
    210210        "Energy Balance"
    211211        diff(E) = InletV.F*InletV.h - OutletL.F*OutletL.h
    212                                 - OutletV.F*OutletV.h + Q + Hr * r3 * ML*vL;
     212                                - OutletV.F*OutletV.h + InletQ.Q + Hr * r3 * ML*vL;
    213213
    214214        "Molar Holdup"
  • trunk/eml/stage_separators/flash.mso

    r300 r310  
    5353        out     OutletL as liquid_stream(Brief="Liquid outlet stream");
    5454        out     OutletV as vapour_stream(Brief="Vapour outlet stream");
    55         in      Q as heat_rate (Brief="Rate of heat supply");
     55        in      InletQ as energy_stream (Brief="Rate of heat supply");
    5656
    5757        M(NComp) as mol (Brief="Molar Holdup in the tray");
     
    6969       
    7070        "Energy Balance"
    71         diff(E) = Inlet.F*Inlet.h - OutletL.F*OutletL.h - OutletV.F*OutletV.h + Q;
     71        diff(E) = Inlet.F*Inlet.h - OutletL.F*OutletL.h - OutletV.F*OutletV.h + InletQ.Q;
    7272       
    7373        "Molar Holdup"
     
    143143        out     OutletL as liquid_stream(Brief="Liquid outlet stream");
    144144        out     OutletV as vapour_stream(Brief="Vapour outlet stream");
    145         in      Q as heat_rate (Brief="Rate of heat supply");
     145        in      InletQ as energy_stream (Brief="Rate of heat supply");
    146146        vfrac as fraction;
    147147
     
    156156       
    157157        "Energy Balance"
    158         Inlet.F*Inlet.h  + Q = OutletL.F*OutletL.h + OutletV.F*OutletV.h;
     158        Inlet.F*Inlet.h  + InletQ.Q = OutletL.F*OutletL.h + OutletV.F*OutletV.h;
    159159       
    160160        "Thermal Equilibrium"
  • trunk/eml/stage_separators/reboiler.mso

    r300 r310  
    6060out     OutletL as liquid_stream(Brief="Liquid outlet stream");
    6161out     OutletV as vapour_stream(Brief="Vapour outlet stream");
    62 in      Q as heat_rate (Brief="Heat supplied");
     62in      InletQ as energy_stream (Brief="Heat supplied");
    6363
    6464        M(NComp) as mol (Brief="Molar Holdup in the tray");
     
    7878        "Energy Balance"
    7979        diff(E) = Inlet.F*Inlet.h + InletL.F*InletL.h
    80                 - OutletL.F*OutletL.h - OutletV.F*OutletV.h + Q;
     80                - OutletL.F*OutletL.h - OutletV.F*OutletV.h + InletQ.Q;
    8181       
    8282        "Molar Holdup"
     
    143143in      InletL as stream(Brief="Liquid inlet stream");
    144144out     OutletV as vapour_stream(Brief="Vapour outlet stream");
    145 in      Q as heat_rate (Brief="Heat supplied");
     145in      InletQ as energy_stream (Brief="Heat supplied");
    146146        vV as volume_mol (Brief="Vapour Molar volume");
    147147        rhoV as dens_mass (Brief="Vapour Density");
     
    159159
    160160        "Energy Balance"
    161         InletL.F*InletL.h + Q = OutletV.F*OutletV.h;
     161        InletL.F*InletL.h + InletQ.Q = OutletV.F*OutletV.h;
    162162       
    163163        "Pressure"
     
    190190in      InletL as stream(Brief="Liquid inlet stream");
    191191out     OutletV as stream(Brief="Vapour outlet stream");
    192 in      Q as heat_rate (Brief="Heat supplied");
     192in      InletQ as energy_stream (Brief="Heat supplied");
    193193
    194194        EQUATIONS
     
    198198       
    199199        "Energy Balance"
    200         InletL.F*InletL.h + Q = OutletV.F*OutletV.h;
     200        InletL.F*InletL.h + InletQ.Q = OutletV.F*OutletV.h;
    201201       
    202202        "Pressure"
     
    210210       
    211211        "Pressure Drop through the reboiler"
    212         OutletV.F = k*Q;
     212        OutletV.F = k*InletQ.Q;
    213213end
    214214
     
    257257out     OutletV as vapour_stream(Brief="Vapour outlet stream");
    258258
    259         Q as heat_rate (Brief="Heat supplied");
     259in      InletQ as energy_stream (Brief="Heat supplied");
    260260        M(NComp) as mol (Brief="Molar Holdup in the tray");
    261261        ML as mol (Brief="Molar liquid holdup");
     
    284284        "Energy Balance"
    285285        diff(E) = Inlet.F*Inlet.h + InletL.F*InletL.h
    286                 - OutletL.F*OutletL.h - OutletV.F*OutletV.h + Q + Hr * r3 * vL*ML;
     286                - OutletL.F*OutletL.h - OutletV.F*OutletV.h + InletQ.Q + Hr * r3 * vL*ML;
    287287       
    288288        "Molar Holdup"
  • trunk/eml/stage_separators/tank.mso

    r300 r310  
    6262out     Outlet as liquid_stream;
    6363
    64 in      Q as heat_rate (Brief="Rate of heat supply");
     64in      InletQ as energy_stream (Brief="Rate of heat supply");
    6565        Level    as length(Brief="Tank level");
    6666        M(NComp) as mol (Brief="Molar Holdup in the tank");
     
    7373       
    7474        "Energy balance"
    75         diff(E) = Inlet.F*Inlet.h - Outlet.F*Outlet.h + Q;
     75        diff(E) = Inlet.F*Inlet.h - Outlet.F*Outlet.h + InletQ.Q;
    7676
    7777        "Energy Holdup"
     
    123123out     Outlet as liquid_stream;
    124124
    125 in      Q as heat_rate (Brief="Rate of heat supply");
     125in      InletQ as energy_stream (Brief="Rate of heat supply");
    126126        Level    as length(Brief="Tank level");
    127127        Across as area (Brief="Tank cross section area", Default=2);
     
    135135       
    136136        "Energy balance"
    137         diff(E) = Inlet.F*Inlet.h - Outlet.F*Outlet.h + Q;
     137        diff(E) = Inlet.F*Inlet.h - Outlet.F*Outlet.h + InletQ.Q;
    138138
    139139        "Energy Holdup"
     
    187187out     Outlet as liquid_stream;
    188188
    189 in      Q as heat_rate (Brief="Rate of heat supply");
     189in      InletQ as energy_stream (Brief="Rate of heat supply");
    190190        Level    as length(Brief="Tank level");
    191191        M(NComp) as mol (Brief="Molar Holdup in the tank");
     
    198198       
    199199        "Energy balance"
    200         diff(E) = Feed.F*Feed.h + Inlet.F*Inlet.h - Outlet.F*Outlet.h + Q;
     200        diff(E) = Feed.F*Feed.h + Inlet.F*Inlet.h - Outlet.F*Outlet.h + InletQ.Q;
    201201
    202202        "Energy Holdup"
  • trunk/eml/streams.mso

    r299 r310  
    114114Model source
    115115        ATTRIBUTES
    116         Icon = "Source";
     116        Icon = "icon/Source";
    117117        Brief = "Material stream source";
    118118        Info = "
     
    205205Model sink
    206206        ATTRIBUTES
    207         Icon = "Sink";
     207        Icon = "icon/Sink";
    208208        Brief = "Material stream sink";
    209209        Info = "
     
    278278end
    279279
     280Model energy_stream
     281        ATTRIBUTES
     282        Pallete = false;
     283        Brief = "General Energy Stream";
     284        Info =
     285        "This is the basic building block for the EML models.
     286        Every model should have input and output energy streams
     287        derived from this model.";
     288
     289        VARIABLES
     290        Q as heat_rate(Brief="Energy rate");
     291end
    280292
    281293Model energy_source
    282294        ATTRIBUTES
    283         Icon = "Source";
     295        Icon = "icon/energy_source";
    284296        Brief = "Enegry stream source";
    285297
    286298        VARIABLES
    287         out Outlet                      as heat_rate;
    288 end
     299        out Outlet                      as energy_stream;
     300end
Note: See TracChangeset for help on using the changeset viewer.