Changeset 210 for branches/newlanguage/eml/pressure_changers/compressor.mso
- Timestamp:
- Mar 15, 2007, 9:52:28 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/newlanguage/eml/pressure_changers/compressor.mso
r196 r210 33 33 outer PP as Plugin (Brief = "External Physical Properties", Type="PP"); 34 34 outer NComp as Integer (Brief = "Number of chemical components", Lower = 1); 35 Effs as positive (Default = 0.72, Brief = "Isentropic efficiency", Lower = 0, Upper = 1);36 35 R as positive (Default = 8.31451, Brief = "Constant of Gases", Unit= 'kJ/kmol/K'); 37 36 Mw(NComp) as molweight (Brief = "Molar Weight"); 38 37 39 38 VARIABLES 40 n as positive (Brief = "Politropic Coefficient" );41 k as positive (Brief = "Isentropic Coefficient" );39 n as positive (Brief = "Politropic Coefficient", Lower=0); 40 k as positive (Brief = "Isentropic Coefficient", Lower=0); 42 41 Cp as cp_mol (Brief = "Heat Capacity"); 43 42 Cv as cv_mol (Brief = "Heat Capacity"); … … 47 46 Ws as energy_mol (Brief = "Isentropic Head"); 48 47 Tiso as temperature (Brief = "Isentropic Temperature"); 49 Effp as positive (Brief = "Politropic efficiency", Lower = 0, Upper = 1); 48 Effp as efficiency (Brief = "Politropic efficiency"); 49 Effs as efficiency (Brief = "Isentropic efficiency"); 50 50 FPower as power (Brief = "Fluid Power"); 51 51 Mwm as molweight (Brief = "Mixture Molar Weight"); 52 52 53 53 SET 54 54 Mw = PP.MolecularWeight(); … … 57 57 58 58 "Calculate Mwm for Inlet Mixture" 59 Mwm = sum(Mw ([1:NComp])*Inlet.z([1:NComp]));59 Mwm = sum(Mw*Inlet.z); 60 60 61 61 "Calculate Outlet Stream Pressure" … … 72 72 73 73 "Calculate Isentropic Coeficient" 74 k = Cp/Cv;74 k * Cv = Cp; 75 75 76 76 "Calculate Isentropic Head" … … 87 87 88 88 "Calculate Politropic Efficiency" 89 Effp = (n/(n-1))/(k/(k-1));89 Effp * (n-1) * k = n * (k-1); 90 90 91 91 "Calculate Politropic Head" … … 99 99 100 100 Outlet.z = Inlet.z; 101 102 103 101 end
Note: See TracChangeset
for help on using the changeset viewer.