Mathcad Functions For Thermodynamic Analysis Of Ideal Gases

2y ago
18 Views
3 Downloads
240.76 KB
16 Pages
Last View : 1m ago
Last Download : 3m ago
Upload by : Mika Lloyd
Transcription

Session 3666MathCAD Functions for Thermodynamic Analysisof Ideal GasesStephen T. McClainAssistant ProfessorDepartment of Mechanical EngineeringThe University of Alabama at Birmingham1530 3rd Ave. S., BEC 358BBirmingham, AL 35294-4461AbstractData from “The Chemkin Thermodynamic Data Base” were used to generate MathCADfunctions for the molar specific enthalpy, internal energy, entropy, specific heat at constantvolume, and the specific heat at constant pressure for twelve chemical species of the carbonhydrogen-oxygen-nitrogen system. The functions for oxygen and nitrogen were then used togenerate ideal gas functions for air, including functions for relative pressure and relative volume.The MathCAD functions were made available for students in ME 242 Thermodynamics II and inME 448/548 Internal Combustion Engines. The ideal gas functions were generated to ease thecomplication of using tabulated data for ideal gas properties, to allow parametric studies ofthermodynamic systems using ideal gases, and to enable the students to generate relativepressure and relative volume functions for substances other than air. The details and usage of theideal gas MathCAD functions are discussed, and specific examples of their application toproblems in thermodynamics and combustion are presented.IntroductionTeaching with a combination of a textbook and a software package is a contemporaryengineering-thermodynamics pedagogy. Many software tools are available for evaluatingthermodynamic properties of engineering fluids. Many of these software tools are proprietarypackages sold by textbook publishers, such as “Interactive Thermodynamics: IT” [1]. In fact,finding a thermodynamics text that does not come with a software package is difficult. Sometextbooks are now built around using a software or web-based internet package [2]. While manyeducational software packages are available for evaluating thermodynamic properties, evidencethat shows that practicing engineers continue to use these thermodynamic-property softwarepackages after entering the workforce is not readily available.Proceedings of the 2005 American Society for Engineering Education Annual Conference & ExpositionCopyright 2005, American Society for EngineeringPage 10.920.1MathCAD, MatLab, and Engineering Equation Solver (EES) are all powerful computational andanalytical packages [3,4,5]. Many schools teach and require the use of a computational tool suchas MathCAD, MatLab, or EES [6]. From informal conversations with engineers who learned to

use one of these computational tools (all of whom are former students of mine), many of themcontinue to use these tools after graduation. Developing extensions or toolkits for software thatthe students will use after graduation seems more appropriate than developing complete softwarepackages that will only be used by students in an educational environment. Because of the needfor thermochemical functions for the widely used computational tools, functions were generatedto evaluate the thermodynamic properties of air and the thermochemical properties of twelvespecies of the CHON system in MathCAD.Each computational analysis package has strengths and weaknesses when compared to theothers. EES also has the thermodynamic functions discussed here (and functions for many otherfluids). However, the appearance of EES programs is similar to the appearance of C orFORTRAN programs, and some users find the unit conversion procedures awkward in EES.MathCAD was chosen for this project because of its mathematical report appearance, because ofits ability to perform calculations with automatic unit handling and conversion, and because ofits wide use in the Department of Mechanical Engineering at the University of Alabama atBirmingham.This effort started in an ME 448/548 Internal Combustion Engines course. Since combustion isan important topic in a senior/graduate level internal combustion (IC) engines course, the initialintent was to take some of the effort and distraction away from working combustion problemsand to allow the students to analyze more complicated combustion problems. The combustionmaterial covered in an IC engines course usually includes enthalpy of combustion, adiabaticflame temperature, and chemical equilibrium [7,8,9]. Without using computer programs,working fundamental combustion problems requires the arduous use of tables. Undergraduatesin an IC engines course often become frustrated using the tables and fail to comprehend eitherthe material or the significance of the material.The students in the ME 448/548 course received the MathCAD functions very well andperformed very complicated engine analyses with the functions [10]. After the MathCADfunctions were successfully used in ME 448/548, the utility of the functions for an undergraduatethermodynamics course was easily recognized. Ideal gas functions for air were subsequentlycreated and provided to students in an ME 242 Thermodynamics II course for analyzing idealgas air cycles such as Brayton, Otto, and Diesel Cycles.Function Worksheet FormatThe data used to create the functions came from “The Chemkin Thermodynamic Data Base” asreported by Turns [11]. Turns reports fourteen constants used to determine thermodynamic datafor twelve species (CO, CO2, H2, H, OH, H2O, N2, N, NO, NO2, O, O2) of the carbon-hydrogenoxygen-nitrogen (CHON) system as a function of temperature. The first seven constants foreach species are used to determine thermodynamic properties in the temperature range of 300 Kto 1000 K. The second seven constants for each species are valid between 1000 K and 5000 K.The property constant table was entered in the MathCAD worksheet, GASData.mcd. Theproperty constant table can be found in Appendix A.Page 10.920.2Proceedings of the 2005 American Society for Engineering Education Annual Conference & ExpositionCopyright 2005, American Society for Engineering

Using the appropriate seven constants (a1, a2,., a7) for the temperature range, the specific heats,the enthalpy, the internal energy, the entropy, and the Gibbs free energy are calculated asfunctions of temperature. Using the appropriate constants, the function for the molar specificheat at constant pressure for each species was created using the formula(c p (T ) Ru a1 a 2T a 3T 2 a 4T 3 a5T 4)(1)The function for the molar specific heat at constant pressure is called from MathCAD as“cpmXX(T)”, where the “m” was added as a reminder that the property is reported on a per-unitmole basis, and the “XX” represents the chemical formula for the species. The function molarspecific heat at constant volume, c v (T ) , was created usingcv (T ) c p (T ) Ru(2)The function for c v (T ) is called from MathCAD as “cvmXX(T)”. The function for the molarspecific enthalpy, h (T ) , was created using the formulaaaa aa h (T ) Ru T a1 2 T 3 T 2 4 T 3 5 T 4 6 2345T (3)The function for h (T ) is called from MathCAD as “hmXX(T)”. The function for the molarspecific internal energy, u (T ) , was created usingu (T ) h (T ) Ru T(4)The function for u (T ) is called from MathCAD as “umXX(T)”. The function for the molarspecific entropy, s (T ) , was created usingaaa s (T ) Ru a1 ln T a 2 T 3 T 2 4 T 3 5 T 4 a 7 234 (5)The function for s (T ) is called from MathCAD as “smXX(T)”. The function for the molarspecific Gibbs free energy, g (T ) , was created usingg (T ) h (T ) Ts (T )(6)The function for g (T ) is called from MathCAD as “µmXX(T)”.Proceedings of the 2005 American Society for Engineering Education Annual Conference & ExpositionCopyright 2005, American Society for EngineeringPage 10.920.3For all of the thermodynamic functions reported above, the temperature must be dimensionlessbut have the magnitude of Kelvin. While the temperature must go into the function

dimensionless, the output of the function will have the appropriate units. For example, the molarspecific enthalpy of O2 at 3000 K would be found in MathCAD using the statement:7hm O2( 3000) 9.803 10JkmolChemical equilibrium functions are also generated in the worksheet. For a general chemicalreaction of the formaA bB K eE fF K(7)The standard state Gibbs function change is() () G (T ) eg Eο (T ) fg Fο (T ) K ag οA (T ) bg Bο (T ) K(8)The equilibrium constant is then calculated from the standard state Gibbs function change using G (T ) K P (T ) exp Ru T (9)Equilibrium constant functions were generated for eight independent reactions of the CHONsystem. Those eight reactions are:I.II.III.IV.V.VI.VII.VIII.H 2 2HO 2 2ON 2 2NH 2 12 O 2 H 2 O2 H 2 O H 2 2OHN 2 O2 2 NOCO 2 CO 12 O 2CO 2 H 2 CO H 2 OThe functions for the equilibrium constant are called using “KpYY(T)”, where “YY” representsthe roman numeral listed for each reaction. For example, the equilibrium constant forCO 2 H 2 CO H 2 O at 4500 K is found in MathCAD using the statement:KpVIII( 4500) 8.932The equilibrium constant functions were validated using data from the JANAF ThermochemicalTables as reported by Russell and Adebiyi [12].Page 10.920.4Proceedings of the 2005 American Society for Engineering Education Annual Conference & ExpositionCopyright 2005, American Society for Engineering

Along with the thermodynamic functions for the species of the CHON system, thethermodynamic functions for air were also generated. The specific internal energy, the specificenthalpy, and the specific entropy were generated using the equationsu air (T ) hair (T ) ο(T ) s airy N 2 u N 2 (T ) y O2 u O2 (T )M airy N 2 h N 2 (T ) y O2 hO2 (T )M airy N 2 s Nο 2 (T ) y O2 s Oο2 (T )M air u air , 298 K(10) hair , 298 K(11)ο s air, 298 K(12)where y N 2 is the mole fraction of diatomic nitrogen (79%), and y O2 is the mole fraction ofdiatomic oxygen. The reference values of the properties at 298 K were added so that the valuesreported by the functions equaled the values found in traditional ideal-gas air tables [13]. Thefunctions were created on a gravimetric basis for the same reason. Along with the functions forinternal energy, enthalpy, and entropy, functions were also created for the relative pressure andrelative volume. The formulas used to create the relative pressure and relative volume functionsarePr , air s ο (T ) exp air R air Cv r , air (T ) CR air T s ο (T ) exp air Rair (13)(14)where Rair is the gas constant for air and C is a constant used to force the function for the relativepressure report the value found at 298 K in the traditional ideal-gas air tables [13]. The ideal-gasair functions are called in MathCAD using the statements “uair(T)”, “hair(T)”, “sair(T)”, “prair(T)”,and “vrair(T)”.Proceedings of the 2005 American Society for Engineering Education Annual Conference & ExpositionCopyright 2005, American Society for EngineeringPage 10.920.5The inverse functions, which find temperature from the other air properties, are also available inthe worksheet. These function are called using the MathCAD statements “T uair(u)”, “T hair(h)”,“T sair(s)”, “T prair(pr)”, or “T vrair(vr)”. The internal energy, enthalpy, and entropy must beentered in the function with the correct units. Functions that provide internal energy and enthalpyas functions of relative pressure or relative volume are also available; these functions are calledusing the statements “u prair(pr)”, “u vrair(vr)”, “h prair(pr)”, or “h vrair(vr)”. The relativepressure and relative volume are dimensionless.

All of the functions generated are in one file (GASdata.mcd) and are available to the public fordownload at ASdata.mcd. (Note: If theweb server is down or the file is unavailable, please email me at smcclain@uab.edu and requestthe file.) To use the functions in a new MathCAD worksheet, the information in GASdata.mcddoes not have to be copied into the new worksheet. The function worksheet may be referencedby using the Insert, Reference command, and identifying the GASdata.mcd file. When this isdone correctly, a statement similar toReference:C:\ThermoII\GASdata.mcdwill appear in the worksheet. All functions generated in GASdata.mcd will then be available foruse in the new worksheet.Example Problems and SolutionsThree example problems are discussed below. The example problems involve the analysis of anideal-gas Brayton cycle, an analysis of the variation of thermal efficiency of Otto cycles versuscompression ratio, and the calculation of equilibrium composition of a reacting mixture. Thesolutions to the example problems are not thoroughly discussed below, but the ways in whichMathCAD and the ideal gas functions are used in the solution are discussed.Brayton Cycle AnalysisProblem Statement: A simple Brayton cycle using air as the working fluid has a pressureratio of 12. The minimum and maximum temperatures are 300 K and 1200 K. Assumingan isentropic efficiency of 85% for the compressor and 92% for the turbine, determine (a)the air temperature at the turbine exit, (b) the net work output, and (c) the thermalefficiency. Figure 1 presents a schematic for the cycle and the cycle T-s diagram.Figure 1. Brayton Cycle Schematic and T-s DiagramProceedings of the 2005 American Society for Engineering Education Annual Conference & ExpositionCopyright 2005, American Society for EngineeringPage 10.920.6The Brayton cycle analysis is an excellent example to demonstrate the use ideal gas functions forair. For an ideal gas analysis, the actual properties of the air exiting the compressor, indicated atstate 2a, must be found by first evaluating the properties of air that exits an isentropic

compressor with the same pressure ratio. The isentropic compressor exit properties, indicated atstate 2s in Figure 1, are determined using a relative pressure analysis. The relative pressure atstate 2s equals the product of the relative pressure at state 1 and the pressure ratio between states1 and 2a. Once the relative pressure at state 2s is known, the relevant properties at states 2s and2a may be found using either ideal-gas air tables from a thermodynamics text or the MathCADfunctions. The properties of the air exiting the turbine are also found using the assignedproperties at state 3 entering the turbine and the ratio of the relative pressures between states 3and 4s. The detailed solution to the Brayton cycle analysis using the ideal-gas air functions forMathCAD is presented in Appendix 1. At each state in the Brayton cycle, at least one of the idealgas properties of air, such as temperature, relative pressure, or enthalpy, is evaluated using thefunctions included in the GASdata.mcd file.Otto Cycle Variation AnalysisProblem Statement: Air at 300 K and 1 atmosphere enters a piston and cylinder devicethat completes an ideal Otto cycle using isooctane as a fuel at the stoichiometric air-tofuel ratio. How does the cycle efficiency vary as the compression ratio of the cyclevaries from 3 to 12 if the intake air and combustion products are perfect gases with theproperties of air at room temperature? How does the cycle efficiency vary if the intakeair and combustion products are ideal gases with the properties of air? How does thecycle efficiency vary if the combustion products are evaluated as the gas mixture thatwould result from the complete, stoichiometric combustion of isooctane in air?For the perfect-gas (constant specific heats) Otto-cycle analysis, the thermal efficiency is asimple function of the compression ratio, rc, and the ratio of specific heats, k.η PG 1 rc1 k(15)For the ideal gas Otto-cycle analysis treating the combustion products as air, the cycle must beanalyzed using the relative volumes. The air-standard, ideal-gas Otto cycle analysis is easilyperformed using the MathCAD functions. The detailed analysis of the air-standard, ideal-gasOtto cycle is presented in Appendix B.For the Otto-cycle analysis based on the complete, stoichiometric combustion products ofisooctane in air, new thermodynamic functions were constructed for the specific internal energy,entropy, and relative volume for a gas mixture that is 12.5% CO2, 14% H2O, and 73.5% N2 byvolume. Appendix B also contains the detailed solution for Otto Cycles based on complete,stoichiometric combustion with varying compression ratio. Figure 2 presents the efficiency ofthe Otto cycle based on the perfect gas air standard analysis, ηPG, the ideal gas air standardanalysis, ηIG, and the ideal gas analysis considering stoichiometric combustion, ηIGC, as thecompression ratio varies from 3 to 12.Page 10.920.7Proceedings of the 2005 American Society for Engineering Education Annual Conference & ExpositionCopyright 2005, American Society for Engineering

0.6η PG0.5η IGη IGC 0.40.34681012rcFigure 2. Thermal Efficiency of a Three Different Otto Cycles Versus the Compression RatioChemical EquilibriumProblem Statement: One mole of methane is burned in air with a pressure of 10 atm. Ifthe products of combustion are CO2, CO, H2, H2O, OH, O2 and N2, how does theequilibrium composition vary if the temperature varies from 2500 K to 5000 K with 95%theoretical air?The equations to solve for the equilibrium composition of this system are developed from theconservation of species and from the equilibrium equations. Each of the equilibrium equationshas the formKp N Ee N Ff L P N Aa N bB L N (e f K) ( a b K)(16)based on the general chemical reaction of equation (7). In equation (16), P is the total pressurein atmospheres, and N is the total moles of reacting and inert species. Since the problem statesthat the N2 does not dissociate into N or form NOx, there are six unknowns that must bedetermined. Three linear equations come from the conservation of carbon, oxygen, andhydrogen. The other three equations are nonlinear and come from the equilibrium of reactionsIV, V, and VII.Proceedings of the 2005 American Society for Engineering Education Annual Conference & ExpositionCopyright 2005, American Society for EngineeringPage 10.920.8A Given-Find block in MathCAD is used to solve the system of six nonlinear equations and sixunknowns. The interesting aspect of this solution is that the Given-Find block was made to be afunction of the temperature and the percentage theoretical air. This allowed the equilibriumcomposition to be easily plotted versus either temperature or percentage theoretical air. Figure 3presents the results of the MathCAD analysis and shows how the composition of each species

varies as the temperature of the products varies from 2500 K to 5000 K. The detailed solution ofthe combustion equilibrium problem is presented in McClain [10].2D ( 0.95 , T i) 0D ( 0.95 , T i) 11.5D ( 0.95 , T i) 2D ( 0.95 , T i) 31D ( 0.95 , T i) 4D ( 0.95 , T i) 5 0.5030003500400045005000TiFigure 3. Equilibrium Composition of Selected Methane Combustion ProductsDiscussion and ConclusionsThe MathCAD functions were provided to students in ME 242 Thermodynamics II and in ME448/548 Internal Combustion Engines. The functions were introduced with a brief review ofMathCAD and then with examples worked in class using a laptop and computer projectorsystem. The students were required to use the functions in selected homework problems and ontheir projects. The projects in ME 448/548 required significant MathCAD programming [10].Proceedings of the 2005 American Society for Engineering Education Annual Conference & ExpositionCopyright 2005, American Society for EngineeringPage 10.920.9The main purposes for constructing the air and CHON functions in MathCAD were to developideal gas thermodynamics tools for a modern computational software system, to shorten the timerequired to teach combustion in ME 448/548, and to make solving complicated ideal-gasthermodynamics and combustion problems easier for the students. The CHON functions wereused in the Fall 2003 semester in ME 448/548 and in the Spring 2004 semester in ME 242. Afteronly one semester of using the MathCAD functions in ME 448/548, it is difficult to tell if thefunctions shortened the time spent on combustion material. However, it was obvious that theMathCAD functions eased the tediousness of solving thermochemical problems presented in aninternal combustion engines course and allowed a deeper understanding of combustion-problemintricacies. The students in ME 242 used the air functions to perform complicated Brayton,Otto, and Diesel cycle analyses that would have been impractical to solve using tabulatedinformation.

Student response to the MathCAD functions was overwhelmingly positive. Once students arecomfortable using MathCAD, very little time is required to learn and use the air and CHONfunctions. Learning MathCAD took several students in ME 242, who had never had aprogramming language, a little longer than expected, but once they became comfortable withMathCAD’s syntax, the students made only positive responses about MathCAD. The positivestudent comments focused on the ability of MathCAD to easily handle calculations with unitsand the ability to perform the complicated ideal gas analyses for air without interpolating usingthe air tables.AcknowledgementsI thank Bharat K. Soni and the Department of Mechanical Engineering at the University ofAlabama at Birmingham for their support of these teaching activities. I would also like to thankmy students for their enthusiasm, dedication, and professionalism. Finally, I thank my wife,Anne S. McClain, for her help, encouragement, and 11][12][13]“Interactive Thermodynamics: IT,” packaged with M. J. Moran and H. N. Shapiro, Fundamentals ofEngineering Thermodynamics, New York: Wiley and Sons, Fifth Edition, 2004.Schmidt, P. S., O. A. Ezekoye, J. R. Howell, and D. K. Baker, Thermodynamics: An integrated LearningSystem, New York: Wiley and Sons, 2006.“MathCAD,” http://www.mathcad.com/, 2005.“MATLAB 7.0.1: The Language of Technical Computing,” http://www.mathworks.com/products/ matlab/,2005.“EES: Engineering Equation Solver,” http://www.fchart.com/ees/ees.shtml, 2004.Hodge, B. K. and W. G. Steele, “Computational Paradigms in Undergraduate Mechanical EngineeringEducation,” Presented at the 2001 ASEE Annual Conference and Exposition, Albuquerque, NM, June 2001.ASEE2001-0147Heywood, J. B., Internal Combustion Engine Fundamentals, New York: McGraw-Hill Inc., 1988.Pulkrabek, W. W., Engineering Fundamentals of the Internal Combustion Engine, Upper Saddle River, NJ:Pearson/Prentice-Hall Inc., 2nd ed., 2004.Ferguson, C. R. and A. T. Kirkpatrick, Internal Combustion Engines: Applied Thermosciences, New York:John Wiley & Sons, Inc., 2nd ed., 2001.McClain, S. T., “The Use of MathCAD Functions for Thermochemical Analysis of the CHON System in anInternal Combustion Engines Course,” Presented at the 2004 ASEE Annual Conference and Exposition, SaltLake City, UT, June 20-23, 2004. ASEE2004-0731Turns, S. R., An Introduction to Combustion: Concepts and Applications, Boston: McGraw-Hill Inc., 2ndedition, 2000.Russell, L. D. and G. A. Adebiyi, Classical Thermodynamics, Fort Worth, TX: Saunders College Publishing,1993.Keenan, J. H. and J. Kaye, Gas Tables, New York: John Wiley & Sons, 1948.STEPHEN T. MCCLAINProceedings of the 2005 American Society for Engineering Education Annual Conference & ExpositionCopyright 2005, American Society for EngineeringPage 10.920.10Stephen T. McClain is an Assistant Professor at the University of Alabama at Birmingham. He received his B.S. inmechanical engineering from The University of Memphis in 1995, and he received his M.S. (1997) and Ph.D.(2002) degrees in mechanical engineering from Mississippi State University. Dr. McClain has taught classes inthermodynamics, fluid mechanics, internal combustion engines, and experimental design and uncertainty analysis.

Appendix A – Example Brayton Cycle ProblemReference:C:\ThermoII\GASdata.mcdProblem Statement: A simple Brayton cycle using air as the working fluid has a pressure ratio of 12.The minimum and maximum temperatures are 300 K and 1200 K. Assuming an isentropic efficiencyof 85% for the compressor and 92% for the turbine, determine (a) the air temperature at the turbineexit, (b) the net work output, and (c) the thermal efficiency.Sketches:Solution: The solution begins by entering known quantities:T1 : 300 KT3 : 1200 Krp : 12η c : 85%η t : 92%The enthalpies and relative pressures at each state are determined.State 1 : T1 K h 1 : h air h 1 300.19 T1 K kJpr1 : prair kgpr1 1.386State 2 : the relative pressure at state 2s is found from the pressure ratio and the relative pressure atstate 1.pr2s : pr1 rp(pr2s 16.632 T2s K h 2s : h air h 2s 610.17)T2s : T pr air pr2s KT2s 601.84KkJkgThe actual state 2 properties are found from the definition of isentropic compressor efficiency:h 2s h 1ηch 2a 664.872kJkg( )T2a : T h air h 2a KT2a 653.515KProceedings of the 2005 American Society for Engineering Education Annual Conference & ExpositionCopyright 2005, American Society for EngineeringPage 10.920.11h 2a : h 1

Appendix A – Example Brayton Cycle Problem (continued.)State 3 : T3 K h 3 : h air h 3 1280.89 T3 K kJpr3 : prair kgpr3 242.177State 4 : The relative pressure at state 4s is found from the pressure ratio and the relative pressure atstate 3.pr4s : pr3(pr4s 20.181rp T4s K h 4s : h air h 4s 644.474)T4s : T pr air pr4s KT4s 634.311KkJkgThe actual state 4 is found from the definition of isentropic turbine efficiency:(h 4a : h 3 η t h 3 h 4s)h 4a 695.39kJkgThe actual temperature at state 4 is found using the actual enthalpy at state 4.( )T4a : T h air h 4a KT4a 682.097KThe specific net work output is the sum of the turbine work and the compressor work. Neglectingkinetic and potential energy changes across both devices, the specific work for each device is justthe change in specific enthalpy across each device.() ()wnet : h 3 h 4a h 1 h 2akJwnet 220.822kgThe specific heat input is the change in specific enthalpy across the combustor.q in : h 3 h 2aq in 616.02kJkgThe First Law efficiency is then the specific net work over the specific heat input.η 1 : wnetq inη 1 35.847%An ideal-gas Brayton cycle with a pressure ratio of 12, a compressor efficiency of 85%, a turbineefficiency of 92%, an entrance air temperature of 300 K, and a maximum cycle temperature of 1200K will produce a specific net work of 220.8 kJ/kg of air and an efficiency of 35.85%.Page 10.920.12Proceedings of the 2005 American Society for Engineering Education Annual Conference & ExpositionCopyright 2005, American Society for Engineering

Appendix B – Example Otto Cycle AnalysisReference:C:\ThermoII\GASdata.mcdProblem Statement: Air at 300 K and 1 atmosphere enters a piston and cylinder device that completesan ideal Otto cycle using isooctane as a fuel at the stoichiometric air-to-fuel ratio. How does the cycleefficiency vary as the compression ratio of the cycle varies from 3 to 12 if the intake air and combustionproducts are perfect gases with the properties of air at room temperature? How does the cycleefficiency vary if the intake air and combustion products are ideal gases with the properties of air? Howdoes the cycle efficiency vary if the combustion products are evaluated as the gas mixture that wouldresult from the complete, stoichiometric combustion of isooctane in air?Sketches : A schematic and a Pressure-Volume diagram are presented for an Otto Cycle.Solution: To begin the solution, the known parameters, the inlet temperature (T1 ), the ratio of specificheats at room temperature for air (k), the air to fuel mass ratio (AF), and the lower heating value of thefuel per unit mass of fuel (QLHV ) are entered. The temperature of the air is entered with magnitude ofKelvin, but without units.kJQLHV: 47810 T1 : 300k : 1.4AF : 15.083kgThe heat input per unit mass of air is calculated and displayed in both SI and English units.q in : QLHV3 kJq in 3.17 103 BTUq in 1.363 10AFkglbSince the compression ratio varies from three to twelve, an array is constructed for all of the values of thecompression ratio. N pt 1 is the total number compression ratios analyzed, i is a counting variable andranges from 0 to Npt , and rc is the array of compression ratios.Npt : 100i : 0 . Nptirc : 3 9 NptiPerfect Gas Analysis : For the perfect gas analysis (specific heats are constant and assumed to that ofair at room temperature), the Otto Cycle efficiency is a simple function of the compression ratio:η PG : 1 rc ii1 k Proceedings of the 2005 American Society for Engineering Education Annual Conference & ExpositionCopyright 2005, American Society for EngineeringPage 10.920.13Ideal Gas Analysis : For the ideal gas analysis, the relative volume and internal energy functions of airfound in the GASdata.mcd file must be used. To begin the ideal gas analysis, the internal energy andthe relative volume of air at inlet conditions is evaluated.

Appendix B – Example Otto Cycle Analysis (continued.)kJvr1 : vrair T1vr1 621.183kgThe temperature after compression (T2 ) is found using the relationship that vr2 vr1 (V2 /V 1 ) vr1 /rc. Foreach value of vr1 /rc, the "T vrair (vr)" function is used to evaluate T2 .( )u 1 : u air T1( )u 1 214.07 vr1 T2 : T vr air rci iThe First Law of Thermodynamics (u3 u 2 q in ) is then used to determine the temperature aftercombustion. For each value of u3 , the "T uair (u)" function is used to evaluate T3 .T3 : T u air u air T2 q in ii The temperature after compression is found using the relationship that vr4 vr3 (V4 /V 3 ) vr3 rc.T4 : T vr air rc vrair T3 i ii Once the temperatures at each of the four states are determined, the net work of the cycle is the sum ofthe change in internal energy across the expansion process (State 3 to State 4) and the change ininternal energy across the compr

specific enthalpy of O 2 at 3000 K would be found in MathCAD using the statement: hm O2 ( ) 9.803 103000 7 u J kmo l Chemical equilibrium functions are also generated in the worksheet.

Related Documents:

PTC Mathcad Prime 4.0 PTC Mathcad Prime 5 PTC Mathcad Prime 4.0 M010 PTC Mathcad Prime 7 Prime 8 2022 PTC Mathcad Prime 6 PTC Mathcad Prime x.0 Major releases with new functionality From 2016, yearly frequency to match subscription period Prime

41. Simplify MathCAD polynomials 42. Factor MathCAD polynomial roots 43. Insert MathCAD graphics 44. Convert MathCAD angles 45. Use MathCAD truncation 46. Use MathCAD roundoff Student Contributions Each student will spend approximately 2.5-5 hours per week preparing for class and completing

Mathcad on client systems. The Mathcad Calculation Server supports all built-in math functionality within Mathcad for faithful presentation of worksheets, in addition to support for installed user EFIs. Mathcad Ca lculation Server does not replace the full power and interactivity of Mathcad on the desktop, but rather is a way to present

15: Extending and Automating Mathcad 231 Overview 231 Programming within Mathcad 231 Building Function DLLs 243 Creating Your Own Components 243 Accessing Mathcad from Within Another Application 248 Functions and Operators 16: Functions 249 Built-in Functions 249 Function Categories 249 Mathcad

chance to learn, understand and apply the MathCAD Tool to solve homework problem. I realized that the MathCAD tool does help me to solve the homework faster and cleaner. Therefore, in this paper, I will try my very best to explain to you the concept of the MathCAD tool. Here is the outline of the MathCAD tool that I will cover in this paper. 1.

PTC MathCAD & Creo Parametric Integration Guide MathCAD and Creo Parametric are well integrated and the process is documented. This one-page guide aims to clarify this process. Prerequisites: User must have Creo Parametric and PTC MathCAD installed. See Article CS201396 for version requirements. How to Integrate PTC MathCAD & Creo Parametric: 1.

MathCAD using the statement: KpVIII( ) 8.9324500 The equilibrium constant functions were validated using data from the JANAF Thermochemical Tables as reported by Russell and Adebiyi [9]. Along with the thermodynamic functions for the species of the CHON system,

Bruksanvisning för bilstereo . Bruksanvisning for bilstereo . Instrukcja obsługi samochodowego odtwarzacza stereo . Operating Instructions for Car Stereo . 610-104 . SV . Bruksanvisning i original