Changeset 46


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

Fixed some sample files

Location:
mso
Files:
7 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
  • mso/sample/controllers/sample_tanks_pid.mso

    r29 r46  
    127127       
    128128        OPTIONS
     129        NLASolver = "sundials";
    129130        time = [0:0.1:30] * "h" ;
    130131end
  • mso/sample/miscellaneous/sample_pend.mso

    r30 r46  
    6464        time = [0:0.1:30];
    6565        integration = "original"; # original, index0 or index1
    66         accuracyType = "scalar"; # scalar or vector     
    6766        relativeAccuracy = 1e-8;
    6867        absoluteAccuracy = 1e-9;
  • mso/sample/reactors/sample_pfr.mso

    r43 r46  
    7878        #mode = "steady";
    7979        time = [0:0.05:3] * "s";
     80        NLASolver = "sundials";
     81        #DAESolver = "dassl";
    8082end
  • mso/sample/stage_separators/sample_column.mso

    r33 r46  
    7373        OPTIONS
    7474        #relativeAccuracy = 1e-3;
     75        NLASolver = "sundials";
    7576        time = [0:10:1000];
    7677end
  • mso/sample/stage_separators/sample_tank.mso

    r42 r46  
    1111        NComp = PP.NumberOfComponents;
    1212       
     13        VARIABLES
     14        Qtank as heat_rate (Brief="Heat rate supplied to tank");
     15       
    1316        DEVICES
    1417        t as tank;
     
    1720        CONNECTIONS
    1821        s to t.Inlet;
     22        Qtank to t.Q;
    1923       
    2024        SPECIFY
     
    2529        s.v = 0.698;
    2630       
    27         t.Q = 0 * "J/s";
     31        Qtank = 0 * "J/s";
    2832        t.Outlet.F = 179 * "kmol/h";
    2933       
     
    5054        PP.VapourModel = "PR";
    5155        NComp = PP.NumberOfComponents;
     56
     57        VARIABLES
     58        Qtank as heat_rate (Brief="Heat rate supplied to tank");
    5259       
    5360        DEVICES
     
    5764        CONNECTIONS
    5865        s to t.Inlet;
     66        Qtank to t.Q;
    5967       
    6068        SPECIFY
     
    6573        s.v = 0.368;
    6674
    67         t.Q = 0 * "J/s";
     75        Qtank = 0 * "J/s";
    6876        t.Outlet.F = 490 * "kmol/h";
    6977       
Note: See TracChangeset for help on using the changeset viewer.