Air is contained within a cylinder in which heat is being transferred to it via a...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Air is contained within a cylinder in which heat is being transferred to it via a heating coil. Initially the air is at a temperature T₁ and is heated until a final temperature of T2. The total heat transferred to the system is Q. Assuming the specific heat is the average of the specific heat at the initial and final temperatures: Cp(T₁) + Cp (T2) Cp = Eq(2) 2 determine the final temperature (T2) of the system. Develop a program using MATLAB that performs successive iterations on a provided initial guess for T₂ to numerically solve for the final temperature based on Eqs. (1) and (2). The program should accomplish the following: 1. Prompt the user to specify an initial guess for T₂ 2. Read in the provided data for Cp from CpData.txt 3. Provide an error if the initial guess for T₂ falls outside of the range of the Cp data 4. Perform successive iterations to improve the guess for T₂ until a relative error between the numerical solution and exact solution is less than 0.05% 5. Store the guess for T2 at each iteration 6. Output to the command window the converged solution and the number of iterations required to achieve it 7. Plot the iteration number vs. numerical solution to demonstrate the convergence of the solution Please note: The program must be your original code The code should function regardless of the initial guess specified The heat transfer, Q, mass, m, and initial temperature, T₁, are known and will be provided. Q = mcp (T2 - T₁) Eq(1) Specific Heat Capacity of Air Temperature (K) Cp (J/kgK) 250 1003 300 1005 350 1008 400 1013 450 1020 500 1029 550 1040 600 1051 650 1063 700 1075 750 1087 800 1099 900 1121 1000 1142 1100 1155 1200 1173 1300 1190 1400 1204 1500 1216 Air is contained within a cylinder in which heat is being transferred to it via a heating coil. Initially the air is at a temperature T₁ and is heated until a final temperature of T2. The total heat transferred to the system is Q. Assuming the specific heat is the average of the specific heat at the initial and final temperatures: Cp(T₁) + Cp (T2) Cp = Eq(2) 2 determine the final temperature (T2) of the system. Develop a program using MATLAB that performs successive iterations on a provided initial guess for T₂ to numerically solve for the final temperature based on Eqs. (1) and (2). The program should accomplish the following: 1. Prompt the user to specify an initial guess for T₂ 2. Read in the provided data for Cp from CpData.txt 3. Provide an error if the initial guess for T₂ falls outside of the range of the Cp data 4. Perform successive iterations to improve the guess for T₂ until a relative error between the numerical solution and exact solution is less than 0.05% 5. Store the guess for T2 at each iteration 6. Output to the command window the converged solution and the number of iterations required to achieve it 7. Plot the iteration number vs. numerical solution to demonstrate the convergence of the solution Please note: The program must be your original code The code should function regardless of the initial guess specified The heat transfer, Q, mass, m, and initial temperature, T₁, are known and will be provided. Q = mcp (T2 - T₁) Eq(1) Specific Heat Capacity of Air Temperature (K) Cp (J/kgK) 250 1003 300 1005 350 1008 400 1013 450 1020 500 1029 550 1040 600 1051 650 1063 700 1075 750 1087 800 1099 900 1121 1000 1142 1100 1155 1200 1173 1300 1190 1400 1204 1500 1216
Expert Answer:
Related Book For
Posted Date:
Students also viewed these programming questions
-
Water, initially at 40F, is contained within a thin-walled cylindrical vessel having a diameter of 18 in. Plot the temperature of the water vs. time up to 1 h if the water and container are immersed...
-
Suppose a monatomic ideal gas is contained within a vertical cylinder that is fitted with a movable piston. The piston is frictionless and has a negligible mass. The area of the piston is 3.14 10-2...
-
Air contained within a piston cylinder assembly undergoes three processes in series: Process 1-2: Compression at constant pressure from P1=10 lbf/in2, V1= 4ft3 to state 2. Process 2-3:...
-
In 1789, Henry Cavendish estimated the density of the earth by using a torsion balance. His 29 measurements follow, expressed as a multiple of the density of water. (a) Calculate the sample mean,...
-
Which of these compounds will have more of the conformation with the substituent on the cyclohexane ring axial present at equilibrium? CH,CH3 CI CH3 Ph CH,CH, b) or or or
-
Arlington Corporations financial statements (dollars and shares are in millions) are provided here. a. What was net operating working capital for 2015 and 2016? b. What was Arlingtons 2016 free cash...
-
Forward Premiums on the Japanese Yen. Use the following spot and forward bid-ask rates for the Japanese yen/U.S. dollar (/$) exchange rate from October 1, 2014, to answer the following questions: a....
-
Smith Accounting Services is considering a special order that it received from one of its corporate clients. The special order calls for Smith to prepare the individual tax returns of the...
-
Suppose you executed the following trade (strategy) on NPR Ltd using two exercise prices: Long 1 NPR call (X=R50) @ R8.40 Short 2 NPR calls (X =R60) @ R3.34 each All options have identical expiration...
-
Based on Reed Hospital Break Even Analysis, answer the following questions: 1. Although you are basically satisfied with the analysis presented in the case thus far, you are concerned about the...
-
You sell short 100 shares of a stock with a price of $50 that has a 60% margin requirement. At the end of the trade, what is the minimum amount of cash that should be in your account? You sell short...
-
This is really an odd situation, said Jim Carter, general manager of Highland Publishing Company. We get most of the jobs we bid on that require a lot of press time in the Printing Department, yet...
-
Introduction: Supply chain management (SCM) plays a critical role in the success and competitiveness of businesses across various industries. Auditing SCM processes for efficiency and transparency is...
-
The following questions involve showing that double encryption using various ciphersystems is not better than a single encryption. In every case, be specific, that is, explain how the single...
-
In what manner do emergent technological trajectories traverse the landscape of the technology cycle, navigating through phases of conception, incubation, maturation, and eventual commoditization,...
-
KC , a fast food restaurant, serves fried chicken, fried fish, and French fries. The managers have estimated the costs of a batch of fried chicken for KC ' s all - you - can - eat Friday Fried...
-
Lanni Products is a start-up computer software development firm. It currently owns computer equipment worth $30,000 and has cash on hand of $20,000 contributed by Lanni's owners. . Lanni takes out a...
-
Draw two scatterplots, one for which r = 1 and a second for which r = 21.
-
Momentum fluxes for creeping flow into a slot (Fig. 3.B-7). An incompressible Newtonian liquid is flowing very slowly into a thin slot of thickness 2B (in the y direction) and width W (in the z...
-
Stress relaxation after cessation of shear flow. A viscoelastic fluid is in steady-state flow between a pair of parallel plates, with v x = ?y If the flow is suddenly stopped (i.e., ?/becomes zero),...
-
Alternate form of the binary diffusion equation, in the absence of chemical reactions, Eq. 19.1-17 can be written in terms of v rather than v* by using a different measure of concentration namely,...
-
Action Oil and Gas Corporation operates the Flat Hill Basin. Along with oil, this field produces large quantities of saltwater. The saltwater is highly corrosive, and as a result, the downhole...
-
Fantastic Oil Corporation is considering two alternatives for the installation of production equipment on the Panther well in the Odessa West field. Alpha costs $275,000 and Beta costs $350,000. The...
-
Core Petroleum is considering drilling one well on either the Rago lease or the Bennett lease in Texas. Core does not have sufficient funds to drill both wells and must decide which of the two wells...
Study smarter with the SolutionInn App