Changeset 108 for mso/eml


Ignore:
Timestamp:
Jan 11, 2007, 5:32:06 PM (17 years ago)
Author:
nubinha
Message:

Correction in fc equations and added headers in the models

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mso/eml/pressure_changers/valve.mso

    r106 r108  
    2727*               * Isentalpic
    2828*               * Liquid
    29 *
     29*       
    3030*---------------------------------------------------------------------
    3131* Author: Estefane Horn, Núbia do Carmo Ferreira
     
    9292end
    9393
     94#*----------------------------------------------------------------------
     95* Model of a  valve_linear
     96*---------------------------------------------------------------------*#
     97#*      - Specify:
     98*               * Opening fraction (x)
     99*
     100*---------------------------------------------------------------------*#
     101
     102       
    94103Model valve_linear as valve_basic
    95104
     
    100109       
    101110        "Opening Equation"
    102         fc = 1*x;
    103 
    104 end
     111        fc = x;
     112
     113end
     114
     115#*----------------------------------------------------------------------
     116* Model of a valve_parabolic
     117*---------------------------------------------------------------------*#
     118#*      - Specify:
     119*               * Opening fraction (x)
     120*
     121*---------------------------------------------------------------------*#
    105122
    106123Model valve_parabolic as valve_basic
     
    115132       
    116133        "Opening Equation"
    117         fc = 1*x^n;
    118 
    119 end
    120 
    121 Model valve_equal as valve_basic
     134        fc = x^n;
     135
     136end
     137
     138#*----------------------------------------------------------------------
     139* Model of a  valve_equal
     140*---------------------------------------------------------------------*#
     141#*      - Specify:
     142*               * Opening fraction (x)
     143*
     144*---------------------------------------------------------------------*#
     145
     146        Model valve_equal as valve_basic
    122147
    123148        PARAMETERS
     
    133158
    134159end
     160
     161#*----------------------------------------------------------------------
     162* Model of a  valve_quick
     163*---------------------------------------------------------------------*#
     164#*      - Specify:
     165*               * Opening fraction (x)
     166*
     167*---------------------------------------------------------------------*#
    135168
    136169Model valve_quick as valve_basic
     
    214247        #if Inlet.P > Outlet.P then
    215248        #       "Flow"
    216                 Outlet.F * v = k*x*sqrt((Inlet.P - Outlet.P)*rho_ref / rho ) ;
     249                Outlet.F * v = cv*x*sqrt((Inlet.P - Outlet.P)*rho_ref / rho ) ;
    217250        #else
    218251        #       "Closed"
Note: See TracChangeset for help on using the changeset viewer.