Changeset 651


Ignore:
Timestamp:
Oct 1, 2008, 12:29:05 AM (14 years ago)
Author:
gerson bicca
Message:

added source with no flow condition/added some UOM for energy

Location:
trunk/eml
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/eml/Units.xml

    r635 r651  
    317317                <Unit>cal/s</Unit>
    318318                <Unit>Btu/h</Unit>
     319                <Unit>kJ/h</Unit>
     320                <Unit>J/h</Unit>
     321                <Unit>kJ/s</Unit>
     322                <Unit>J/s</Unit>
     323
    319324        </Type>
    320325        <Type>
     
    356361                <Unit>cal/s</Unit>
    357362                <Unit>Btu/h</Unit>
     363                <Unit>kJ/h</Unit>
     364                <Unit>J/h</Unit>
     365                <Unit>kJ/s</Unit>
     366                <Unit>J/s</Unit>
    358367        </Type>
    359368        <Type>
  • trunk/eml/streams.mso

    r631 r651  
    547547        out OutletQ             as energy_stream (Brief = "Outlet energy stream", PosX=1, PosY=0.46, Symbol="_{out}");
    548548end
     549
     550Model sourceNoFlow
     551
     552ATTRIBUTES
     553        Pallete = true;
     554        Icon = "icon/SourceNoFlow";
     555        Brief = "Simple Material stream source with no flow.";
     556        Info = "
     557        This model should be used for boundary streams.
     558        Usually these streams are known and come from another process
     559        units.";
     560
     561PARAMETERS
     562        outer PP                                as Plugin                       (Brief = "External Physical Properties", Type="PP");
     563        outer NComp             as Integer                      (Brief = "Number of chemical components", Lower = 1);
     564
     565VARIABLES
     566
     567        out Outlet                      as stream                       (Brief = "Outlet stream", PosX=1, PosY=0.5256, Symbol="_{out}",Protected=true);
     568
     569EQUATIONS
     570
     571"Stream Molar Composition"
     572        Outlet.z = 1/NComp;
     573
     574"Stream Molar Enthalpy"
     575        Outlet.h = 0 * 'J/mol';
     576
     577"Stream Temperature"
     578        Outlet.T = 300 * 'K';
     579
     580"Stream Molar Flow"
     581        Outlet.F = 0 * 'kmol/h';
     582
     583"Stream Pressure"
     584        Outlet.P = 1 * 'atm';
     585
     586"Stream Vapour Fraction"
     587        Outlet.v = 0;
     588
     589end
Note: See TracChangeset for help on using the changeset viewer.