Ignore:
Timestamp:
Feb 20, 2010, 4:16:49 AM (12 years ago)
Author:
Argimiro Resende Secchi
Message:

Checking new EML.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/gui/eml/stage_separators/tank.mso

    r883 r913  
    689689end
    690690
     691Model tank_simplified
     692        ATTRIBUTES
     693        Pallete         = true;
     694        Icon            = "icon/Tank";
     695        Brief           = "Model of a simplified tank.";
     696        Info            =
     697"== Specify ==
     698* the Inlet flow rate;
     699
     700== Initial Conditions ==
     701* the tank initial level (Level);
     702";
     703
     704        PARAMETERS
     705        k as Real (Brief="Valve Constant", Unit = 'm^2.5/h', Default=4);
     706        A as area (Brief="Tank area", Default=2);
     707
     708        VARIABLES
     709        Level as length(Brief="Tank level");
     710in      Fin  as flow_vol(Brief="Input flow", PosX=0.3037, PosY=0);
     711out     Fout as flow_vol(Brief="Output flow", PosX=1, PosY=1);
     712
     713        EQUATIONS
     714        "Mass balance"
     715        diff(A*Level) = Fin - Fout;
     716
     717        "Valve equation"
     718        Fout = k*sqrt(Level);           
     719end
Note: See TracChangeset for help on using the changeset viewer.