Changeset 206
- Timestamp:
- Mar 14, 2007, 11:15:22 PM (15 years ago)
- Location:
- branches/newlanguage
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/newlanguage/eml/pressure_changers/valve.mso
r205 r206 41 41 42 42 PARAMETERS 43 Valve_Type as Switcher (Valid = ["valve_linear", "valve_parabolic", "valve_equal", "valve_quick", "valve_hyperbolic"], Default = "valve_linear");43 valve_type as Switcher (Valid = ["linear", "parabolic", "equal", "quick", "hyperbolic"], Default = "linear"); 44 44 outer PP as Plugin (Brief = "External Physical Properties", Type = "PP"); 45 45 outer NComp as Integer (Brief = "Number of chemical components", Lower = 1); … … 92 92 vm = PP.LiquidVolume(Inlet.T,Inlet.P,Inlet.z); 93 93 94 switch Valve_Type95 case " valve_linear":94 switch valve_type 95 case "linear": 96 96 97 98 97 "Opening Equation" 99 98 fc = x; 100 99 101 case "valve_parabolic": 102 103 100 case "parabolic": 101 104 102 "Opening Equation" 105 103 fc = x^2; 106 104 105 case "equal": 107 106 108 case "valve_equal":109 110 111 107 "Opening Equation" 112 108 fc = x^2/(2-x^4)^(1/2); 113 109 114 115 case "valve_quick": 110 case "quick": 116 111 117 118 112 "Opening Equation" 119 113 fc = 10*x/sqrt(1+99*x^2); 120 114 115 case "hyperbolic": 121 116 122 case "valve_hyperbolic":123 124 125 117 "Opening Equation" 126 118 fc = 0.1*x/sqrt(1-0.99*x^2); -
branches/newlanguage/sample/pressure_changers/sample_valve.mso
r205 r206 14 14 * 15 15 *-------------------------------------------------------------------- 16 * Sample file for model valve (simplified) and valve_linear16 * Sample file for models valve_simplified and valve 17 17 *-------------------------------------------------------------------- 18 18 * … … 20 20 * 21 21 *---------------------------------------------------------------------- 22 * Author: Paula B. Staudt, Estefane Horn 22 * Author: Paula B. Staudt, Estefane Horn, Núbia do Carmo Ferreira 23 23 * $Id$ 24 24 *--------------------------------------------------------------------*# … … 115 115 PP.Derivatives = 0; 116 116 NComp = PP.NumberOfComponents; 117 117 V1.valve_type = "linear"; #"parabolic", "equal", "quick", "hyperbolic" 118 118 119 SPECIFY 119 120 S1.Outlet.P = 2169.78 * 'kPa';
Note: See TracChangeset
for help on using the changeset viewer.