Changeset 631 for trunk/sample


Ignore:
Timestamp:
Sep 23, 2008, 5:23:00 PM (15 years ago)
Author:
gerson bicca
Message:

improved streams model

Location:
trunk/sample/pressure_changers
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/sample/pressure_changers/sample_compressor.mso

    r616 r631  
    5050        NComp = PP.NumberOfComponents;
    5151       
    52 
     52        S1.ValidPhases = "Vapour-Only";
     53        S1.CompositionBasis = "Molar";
    5354        C1.CompressorType = "Isentropic Operation";
    5455
    5556        SPECIFY
    56         C1.EfficiencyOperation  = 1;
     57        C1.EfficiencyOperation  = 0.80;
    5758        C1.MechanicalEff        = 1;
    58         S1.Outlet.F = 41.05             * 'kmol/h';
    59         S1.Outlet.P = 1                 * 'atm';
    60         S1.Outlet.T = 298                       * 'K' ;
    61         S1.Outlet.z = [0.79,0.21];
     59        S1.F = 41.05            * 'kmol/h';
     60        S1.P = 1                        * 'atm';
     61        S1.T = 298                      * 'K' ;
     62        S1.Composition = [0.79,0.21];
    6263       
    6364        C1.Outlet.P = 3 * 'atm';
     
    8889        NComp = PP.NumberOfComponents;
    8990       
     91        S1.ValidPhases = "Vapour-Only";
     92        S1.CompositionBasis = "Molar";
    9093        C1.CompressorType = "Polytropic Operation";
    9194        #C1.CompressorType = "Isentropic Operation";
     
    9598        C1.MechanicalEff        = 0.80;
    9699       
    97         S1.Outlet.F = 4                 * 'kmol/h';
    98         S1.Outlet.P = 100                       * 'kPa';
    99         S1.Outlet.T = 298                       * 'K' ;
    100         S1.Outlet.z = [1];
     100        #W1.Work = 2*'kW';
     101       
     102        S1.F = 4                * 'kmol/h';
     103        S1.P = 100                      * 'kPa';
     104        S1.T = 298                      * 'K' ;
     105        S1.Composition = [1];
    101106       
    102107        C1.Outlet.P = 1500      * 'kPa';
  • trunk/sample/pressure_changers/sample_pump.mso

    r372 r631  
    5252        P1.Beta = 425e-6        * '1/K';
    5353       
     54        S1.ValidPhases = "Vapour-Liquid";
     55        S1.CompositionBasis = "Molar";
     56       
    5457        SPECIFY
    55         S1.Outlet.F = 1000              * 'kmol/h';
    56         S1.Outlet.P = 10                        * 'atm';
    57         S1.Outlet.T = 298                       * 'K' ;
    58         S1.Outlet.z = [1,0];   
     58        S1.F = 1000             * 'kmol/h';
     59        S1.P = 10                       * 'atm';
     60        S1.T = 298                      * 'K' ;
     61        S1.Composition = [1,0];
    5962       
    6063        P1.Pdrop = -8           * 'kPa';
     
    7477        NComp   as Integer;
    7578
     79DEVICES
     80        p1 as pump;
     81        s1 as source;
     82
    7683        SET
    7784        NComp = PP.NumberOfComponents;
    7885       
    79         DEVICES
    80         p1 as pump;
    81         s1 as source;
     86        s1.ValidPhases = "Vapour-Liquid";
     87        s1.CompositionBasis = "Molar";
     88       
     89
    8290       
    8391        CONNECTIONS
     
    8593
    8694        SPECIFY
    87         s1.Outlet.F = 826 * 'kmol/h';
    88         s1.Outlet.P = 549 * 'kPa';
    89         s1.Outlet.T = 313 * 'K';
    90         s1.Outlet.z = 1/NComp;
     95        s1.F = 826 * 'kmol/h';
     96        s1.P = 549 * 'kPa';
     97        s1.T = 313 * 'K';
     98        s1.Composition = 1/NComp;
    9199        #s1.Outlet.v = 0.68;
    92100       
  • trunk/sample/pressure_changers/sample_turbine.mso

    r372 r631  
    3030        DEVICES
    3131        S1 as source;
    32         HT1 as Hidraulic_Turbine;
     32        HT1 as  Hidraulic_Turbine;
    3333       
    3434        CONNECTIONS
     
    4848        NComp = PP.NumberOfComponents();
    4949       
     50        S1.ValidPhases = "Vapour-Liquid";
     51        S1.CompositionBasis = "Molar";
     52
    5053        SPECIFY
    5154        HT1.Beta = 425e-6 / 'K';
     
    5356        HT1.Eff = 0.72;
    5457       
    55         S1.Outlet.F = 1000                      * 'kmol/h';
    56         S1.Outlet.P = 5                         * 'atm' ;
    57         S1.Outlet.T = 298                       * 'K' ;
    58         S1.Outlet.z = [1];
     58        S1.F = 1000                     * 'kmol/h';
     59        S1.P = 5                        * 'atm' ;
     60        S1.T = 298                      * 'K' ;
     61        S1.Composition = [1];
    5962       
    6063        #HT1.Pdrop = 100        * 'kPa';
  • trunk/sample/pressure_changers/sample_valve.mso

    r247 r631  
    4848
    4949        SPECIFY
    50         s1.Outlet.P = 150 * 'kPa';
    51         s1.Outlet.T = 281.75 * 'K';
    52         s1.Outlet.z = [0.664, 0.336];
     50        s1.P = 150 * 'kPa';
     51        s1.T = 281.75 * 'K';
     52        s1.Composition = [0.664, 0.336];
    5353
    5454        v1.x = 0.866;
     
    8787
    8888        SPECIFY
    89         s1.Outlet.P = 185 * 'kPa';
    90         s1.Outlet.T = 328.12 * 'K';
    91         s1.Outlet.z = [0.001848, 0.9982];
     89        s1.P = 185 * 'kPa';
     90        s1.T = 328.12 * 'K';
     91        s1.Composition = [0.001848, 0.9982];
    9292
    9393        v1.x = 0.3363;
     
    104104end
    105105
    106 FlowSheet valve_linear_Test
    107        
    108         DEVICES
    109         S1 as source;
    110         V1 as valve;
    111 
    112         CONNECTIONS
    113         S1.Outlet to V1.Inlet;
    114        
    115         PARAMETERS
    116         PP      as Plugin(Brief="Physical Properties",
    117                 Type="PP",
    118                 Components = [ "isobutane", "benzene"],
    119                 LiquidModel = "PR",
    120                 VapourModel = "PR"
    121         );
    122         NComp   as Integer              (Default= 1);
    123        
    124         SET
    125         NComp = PP.NumberOfComponents;
    126         V1.valve_type = "linear"; #"parabolic", "equal", "quick", "hyperbolic"
    127 
    128         SPECIFY
    129         S1.Outlet.P = 2169.78                   * 'kPa';
    130         S1.Outlet.T = 394.26                    * 'K' ;
    131         S1.Outlet.z = [1];
    132        
    133         V1.Qv = 113.56                  * 'm^3/h';
    134         V1.x = 0.5;
    135         V1.cv = 10                              * 'm^3/h/kPa^0.5';
    136        
    137         OPTIONS
    138         Dynamic = false;
    139         NLASolver(
    140                 RelativeAccuracy = 1e-6
    141         );
    142 end
Note: See TracChangeset for help on using the changeset viewer.