Changeset 424


Ignore:
Timestamp:
Nov 30, 2007, 1:06:38 PM (15 years ago)
Author:
Rodolfo Rodrigues
Message:

Updated and added symbols

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sample/miscellaneous/ntanks_plant/ntanks_plant.mso

    r412 r424  
    3939*--------------------------------------------------------------------*#
    4040Model stream
     41        ATTRIBUTES
     42        Brief   = "Simple stream model";
     43       
    4144        VARIABLES
    4245        F       as flow_vol             (Brief="Volumetric flow", DisplayUnit='cm^3/s');
     
    5053       
    5154        VARIABLES
    52 out Outlet      as stream       (Brief="Outlet stream", PosX=0.5, PosY=0);
     55out Outlet      as stream       (Brief="Outlet stream", PosX=0.5, PosY=0, Symbol="_{out}");
    5356end
    5457
     
    6063       
    6164        VARIABLES
    62 in      Inlet   as stream       (Brief="Inlet stream", PosX=0.5, PosY=0);
     65in      Inlet   as stream       (Brief="Inlet stream", PosX=0.5, PosY=0, Symbol="_{in}");
    6366end
    6467
     
    7477       
    7578        VARIABLES
    76 in  Inlet   as stream   (Brief="Inlet stream", PosX=0.5, PosY=1);
    77 out Outlet1 as stream   (Brief="Outlet stream 1", PosX=1, PosY=0.5);
    78 out Outlet2 as stream   (Brief="Outlet stream 2", PosX=0.5, PosY=0);
     79in  Inlet   as stream   (Brief="Inlet stream", PosX=0.5, PosY=1, Symbol="_{in}");
     80out Outlet1 as stream   (Brief="Outlet stream 1", PosX=1, PosY=0.5, Symbol="_{out,1}");
     81out Outlet2 as stream   (Brief="Outlet stream 2", PosX=0.5, PosY=0, Symbol="_{out,2}");
    7982        X               as fraction     (Brief="Fraction to Outlet 1");
    8083
     
    98101       
    99102        VARIABLES
    100 in  Inlet1      as stream       (Brief="Inlet stream 1", PosX=0, PosY=0.5);
    101 in  Inlet2      as stream       (Brief="Inlet stream 2", PosX=0.5, PosY=0);
    102 out Outlet      as stream       (Brief="Outlet stream", PosX=0.5, PosY=1);
     103in  Inlet1      as stream       (Brief="Inlet stream 1", PosX=0, PosY=0.5, Symbol="_{in,1}");
     104in  Inlet2      as stream       (Brief="Inlet stream 2", PosX=0.5, PosY=0, Symbol="_{in,2}");
     105out Outlet      as stream       (Brief="Outlet stream", PosX=0.5, PosY=1, Symbol="_{out}");
    103106       
    104107        EQUATIONS
     
    118121       
    119122        PARAMETERS
    120         pi              as Real         (Brief="Number pi", Default=3.141593);
    121123        g               as acceleration(Brief="Acceleration of gravity", Default=9.80665);
    122124       
    123125        VARIABLES
    124 in      Inlet   as stream       (Brief="Inlet stream", PosX=0.5, PosY=0);
    125 out     Outlet  as stream       (Brief="Outlet stream", PosX=0.5, PosY=1);
     126in      Inlet   as stream       (Brief="Inlet stream", PosX=0.5, PosY=0, Symbol="_{in}");
     127out     Outlet  as stream       (Brief="Outlet stream", PosX=0.5, PosY=1, Symbol="_{out}");
    126128
    127         tank    as vol_tank     (Brief="Tank volume routine calculation");
     129        tank    as vol_tank     (Brief="Tank volume routine calculation", Symbol="_{tank}");
    128130        K               as Real         (Brief="Discharge constant", Unit='cm^2.5/s');
    129131        a               as area         (Brief="Cross-section of outlet hole", DisplayUnit='cm^2');
     
    136138        Outlet.F = K*sqrt(tank.Level);
    137139       
    138         "Constant"
     140        "Discharge constant"
    139141        K = a*sqrt(2*g);
    140142end
Note: See TracChangeset for help on using the changeset viewer.