Ignore:
Timestamp:
Feb 27, 2009, 7:18:32 PM (13 years ago)
Author:
gerson bicca
Message:

updates (changes in icons/models/samples)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/gui/eml/mixers_splitters/splitter.mso

    r574 r739  
    2323Model splitter_n
    2424        ATTRIBUTES
    25         Pallete         = true;
     25        Pallete         = false;
    2626        Icon            = "icon/splitter_n";
    27         Brief           = "Model of a splitter";
     27        Brief           = "Model of a splitter (NOT Handled by the GUI)";
    2828        Info            =
    2929"== Assumptions ==
     
    7575end
    7676
    77 
    78 Model splitter
     77Model splitter2
    7978        ATTRIBUTES
    8079        Pallete         = true;
     
    8382        Info            =
    8483"== Assumptions ==
    85 * thermodynamics equilibrium
    86 * adiabatic
     84*Thermodynamics equilibrium
     85*Adiabatic
    8786                       
    8887== Specify ==
    89 * the inlet stream
    90 * (Noutlet - 1) fraction of split of the outlet streams:
    91 
    92         frac(i) = (Mole Flow of the outlet stream i /
     88* The inlet stream
     89* One FlowRatios of split of the outlet streams:
     90
     91        FlowRatios(i) = (Mole Flow of the outlet stream i /
    9392                                Mole Flow of the inlet stream)
    94                                 where i = 1, 2,...,Noutlet
     93                                where i = 1, 2
    9594";
    9695
    97         VARIABLES
     96VARIABLES
    9897in  Inlet   as stream (Brief = "Inlet stream", PosX=0, PosY=0.5069, Symbol="_{in}");
    9998out Outlet1 as stream (Brief = "Outlet stream 1", PosX=1, PosY=0.3027, Symbol="_{out1}");
    10099out Outlet2 as stream (Brief = "Outlet stream 2", PosX=1, PosY=0.7141, Symbol="_{out2}");
    101         frac as fraction (Brief = "Fraction to Outlet 1", Symbol="\phi");
    102 
    103         EQUATIONS
    104         "Flow"
    105         Outlet1.F = Inlet.F * frac;
     100        FlowRatios(2)   as fraction     (Brief = "Distribution of Outlets", Default=0.33, Symbol="\phi");
     101
     102EQUATIONS
     103
     104"Normalize Flow Ratios"
     105        sum(FlowRatios) = 1;
     106       
     107"Flow"
     108        Outlet1.F = Inlet.F * FlowRatios(1);
    106109        Outlet1.F + Outlet2.F = Inlet.F;
    107         "Composition"
     110
     111"Composition"
    108112        Outlet1.z = Inlet.z;
    109113        Outlet2.z = Inlet.z;
    110         "Pressure"
     114
     115"Pressure"
    111116        Outlet1.P = Inlet.P;
    112117        Outlet2.P = Inlet.P;
    113         "Enthalpy"
     118
     119"Enthalpy"
    114120        Outlet1.h = Inlet.h;
    115121        Outlet2.h = Inlet.h;
    116         "Temperature"
     122
     123"Temperature"
    117124        Outlet1.T = Inlet.T;
    118125        Outlet2.T = Inlet.T;
    119         "Vapourisation Fraction"
     126
     127"Vapourisation Fraction"
    120128        Outlet1.v = Inlet.v;
    121129        Outlet2.v = Inlet.v;
     130
    122131end
     132
     133Model splitter3
     134        ATTRIBUTES
     135        Pallete         = true;
     136        Icon            = "icon/splitter";
     137        Brief           = "Model of a splitter with 3 outlet streams";
     138        Info            =
     139"== Assumptions ==
     140* Thermodynamics equilibrium
     141* Adiabatic
     142                       
     143== Specify ==
     144*The inlet stream
     145*Two FlowRatios of split of the outlet streams:
     146
     147        FlowRatios(i) = (Mole Flow of the outlet stream i /
     148                                Mole Flow of the inlet stream)
     149                                where i = 1, 2, 3
     150";
     151       
     152VARIABLES
     153
     154in      Inlet                           as stream       (Brief = "Inlet stream", PosX=0, PosY=0.5001, Symbol="_{in}");
     155out  Outlet1    as stream       (Brief = "Outlet stream 1", PosX=1, PosY=0.25, Symbol="_{Out1}");
     156out  Outlet2    as stream       (Brief = "Outlet stream 2", PosX=1, PosY=0.5059, Symbol="_{Out2}");
     157out  Outlet3    as stream       (Brief = "Outlet stream 3", PosX=1, PosY=0.75, Symbol="_{Out3}");
     158
     159        FlowRatios(3)   as fraction     (Brief = "Distribution of Outlets", Default=0.33, Symbol="\phi");
     160
     161EQUATIONS
     162       
     163"Normalize Flow Ratios"
     164        sum(FlowRatios) = 1;
     165       
     166"Outlet1 Flow"
     167        Outlet1.F = Inlet.F*FlowRatios(1);
     168       
     169"Outlet2 Flow"
     170        Outlet2.F = Inlet.F*FlowRatios(2);
     171       
     172"Outlet3 Flow"
     173        Outlet3.F = Inlet.F*FlowRatios(3);
     174       
     175"Outlet1 Composition"
     176        Outlet1.z = Inlet.z;
     177
     178"Outlet2 Composition"
     179        Outlet2.z = Inlet.z;
     180
     181"Outlet3 Composition"
     182        Outlet3.z = Inlet.z;
     183
     184"Outlet1 Pressure"
     185        Outlet1.P = Inlet.P;
     186
     187"Outlet2 Pressure"
     188        Outlet2.P = Inlet.P;
     189
     190"Outlet3 Pressure"
     191        Outlet3.P = Inlet.P;
     192
     193"Outlet1 Enthalpy"
     194        Outlet1.h = Inlet.h;
     195
     196"Outlet2 Enthalpy"
     197        Outlet2.h = Inlet.h;
     198
     199"Outlet3 Enthalpy"
     200        Outlet3.h = Inlet.h;
     201       
     202"Outlet1 Temperature"   
     203        Outlet1.T = Inlet.T;
     204
     205"Outlet2 Temperature"   
     206        Outlet2.T = Inlet.T;
     207
     208"Outlet3 Temperature"   
     209        Outlet3.T = Inlet.T;
     210
     211"Outlet1 Vapourisation Fraction"
     212        Outlet1.v = Inlet.v;
     213
     214"Outlet2 Vapourisation Fraction"
     215        Outlet2.v = Inlet.v;
     216       
     217"Outlet3 Vapourisation Fraction"
     218        Outlet3.v = Inlet.v;
     219
     220end
Note: See TracChangeset for help on using the changeset viewer.