Ignore:
Timestamp:
Nov 7, 2006, 2:47:55 PM (16 years ago)
Author:
Paula Bettio Staudt
Message:

Fixed some sample files

Location:
mso/eml/stage_separators
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • mso/eml/stage_separators/column.mso

    r42 r46  
    167167        "Pressure Drop through the tray"
    168168        trays(top).OutletV.F = (1 + tanh(1 * (trays(top).OutletV.P - ttop.Outlet.P)/"Pa"))/2 *
    169                 trays(top).Ah/trays(top).vV * sqrt(2*(trays(top).OutletV.P -
     169                trays(top).Ah/trays(top).vV /2* sqrt(2*(trays(top).OutletV.P -
    170170                ttop.Outlet.P + 1e-8 * "atm") / (trays(top).alfa*trays(top).rhoV));
    171171               
     
    173173            (trays([top+topdown:topdown:bot]).OutletV.P -
    174174            trays([top+topdown:topdown:bot]).InletL.P)/"Pa"))/2 *
    175             trays([top+topdown:topdown:bot]).Ah/trays([top+topdown:topdown:bot]).vV *
     175            trays([top+topdown:topdown:bot]).Ah/trays([top+topdown:topdown:bot]).vV /2*
    176176            sqrt(2*(trays([top+topdown:topdown:bot]).OutletV.P -
    177177                trays([top+topdown:topdown:bot]).InletL.P + 1e-8 * "atm") /
  • mso/eml/stage_separators/reboiler.mso

    r38 r46  
    139139        "Vapourisation Fraction"
    140140        OutletV.v = 1.0;
     141end
     142
     143Model reboilerSteady_fakeH
     144        PARAMETERS
     145ext PP as CalcObject;
     146ext NComp as Integer;
     147        DP as press_delta (Brief="Pressure Drop in the reboiler");
     148        k as Real (Brief = "Flow Constant", Unit="mol/J");
     149       
     150        VARIABLES
     151in      InletL as stream; #(Brief="Liquid inlet stream");
     152out     OutletV as stream; #(Brief="Vapour outlet stream");
     153in      Q as heat_rate (Brief="Heat supplied");
     154
     155        EQUATIONS
     156        "Molar Balance"
     157        InletL.F = OutletV.F;
     158        InletL.z = OutletV.z;
     159       
     160        "Energy Balance"
     161        InletL.F*InletL.h + Q = OutletV.F*OutletV.h;
     162       
     163        "Pressure"
     164        DP = InletL.P - OutletV.P;
     165
     166        "Fake Vapourisation Fraction"
     167        OutletV.v = 1.0;
     168       
     169        "Fake output temperature"
     170        OutletV.T = 300*"K";
     171       
     172        "Pressure Drop through the reboiler"
     173        OutletV.F = k*Q;
    141174end
    142175
Note: See TracChangeset for help on using the changeset viewer.