Changeset 765 for branches


Ignore:
Timestamp:
Jun 16, 2009, 10:15:20 AM (13 years ago)
Author:
Rafael de Pelegrini Soares
Message:

Tutorial files simplified.

Location:
branches/gui/tutorial
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/gui/tutorial/ThreeTank1.mso

    r25 r765  
    1515*-------------------------------------------------------------------*#
    1616
    17 using "stage_separators/tank";
     17Model tank_simplified
     18        PARAMETERS
     19        k as Real (Brief="Valve Constant", Unit = 'm^2.5/h', Default=4);
     20        A as Real (Brief="Tank area", Default=2, Unit = 'm^2');
     21
     22        VARIABLES
     23        Level as Real(Brief="Tank level", Unit='m');
     24in      Fin  as Real(Brief="Input flow", Unit='m^3/h');
     25out     Fout as Real(Brief="Output flow", Unit='m^3/h');
     26
     27        EQUATIONS
     28        "Mass balance"
     29        diff(A*Level) = Fin - Fout;
     30
     31        "Valve equation"
     32        Fout = k*sqrt(Level);           
     33end
     34
    1835
    1936FlowSheet ThreeTank
    2037        VARIABLES
    21         Feed    as flow_vol;
     38        Feed    as Real(Unit='m^3/h');
    2239       
    2340        DEVICES
  • branches/gui/tutorial/ThreeTank2.mso

    r397 r765  
    1515*-------------------------------------------------------------------*#
    1616
    17 using "stage_separators/tank";
     17Model tank_simplified
     18        PARAMETERS
     19        k as Real (Brief="Valve Constant", Unit = 'm^2.5/h', Default=4);
     20        A as Real (Brief="Tank area", Default=2, Unit = 'm^2');
     21
     22        VARIABLES
     23        Level as Real(Brief="Tank level", Unit='m');
     24in      Fin  as Real(Brief="Input flow", Unit='m^3/h');
     25out     Fout as Real(Brief="Output flow", Unit='m^3/h');
     26
     27        EQUATIONS
     28        "Mass balance"
     29        diff(A*Level) = Fin - Fout;
     30
     31        "Valve equation"
     32        Fout = k*sqrt(Level);           
     33end
     34
    1835
    1936FlowSheet ThreeTank
    2037        VARIABLES
    21         Feed    as flow_vol;
     38        Feed    as Real(Unit='m^3/h');
    2239
    2340        DEVICES
  • branches/gui/tutorial/ThreeTank3.mso

    r397 r765  
    1515*-------------------------------------------------------------------*#
    1616
    17 using "stage_separators/tank";
     17Model tank_simplified
     18        PARAMETERS
     19        k as Real (Brief="Valve Constant", Unit = 'm^2.5/h', Default=4);
     20        A as Real (Brief="Tank area", Default=2, Unit = 'm^2');
     21
     22        VARIABLES
     23        Level as Real(Brief="Tank level", Unit='m');
     24in      Fin  as Real(Brief="Input flow", Unit='m^3/h');
     25out     Fout as Real(Brief="Output flow", Unit='m^3/h');
     26
     27        EQUATIONS
     28        "Mass balance"
     29        diff(A*Level) = Fin - Fout;
     30
     31        "Valve equation"
     32        Fout = k*sqrt(Level);           
     33end
     34
    1835
    1936FlowSheet ThreeTank
    2037        VARIABLES
    21         Feed    as flow_vol;
     38        Feed    as Real(Unit='m^3/h');
    2239
    2340        DEVICES
Note: See TracChangeset for help on using the changeset viewer.