Solve using gauss Seidel rule in matlab the reference is in the second photo be sure done
Fantastic news! We've Found the answer you've been seeking!
Question:
Solve using gauss Seidel rule in matlab the reference is in the second photo be sure done by the rule and show the exact code in matlab
Transcribed Image Text:
(5%) Solve the below Heat conduction and convection problem using Gauss-Seidel. Cross-reference slides 19 to 23 from 006 Comp CW2.pptx. Make the program able to handle n number of divisions (diagram shows 7). n must be an odd number so there are an even number of nodes in the insulated and uninsulated sections. Order the equations from 2 to n for each row in matrix A (2 in step of 1 to 7 in the diagram below.) As = 0.01 * Ax Ac = 0.01 Function > T = 100 c T 16 17 xint = 4 As = %m^2 5 Ac = %m^2 6%% expandable A and b definition 7 %crete empty A and b matrices 8 9% fill first row 10 11 % fill second to second to last rows 12 13 % fill last row. 14 15% set solution parameters 25 % Iindices = 1:1:n; 26 27 28 29 30 31 32 33 Insulated Insulated T3 L = 25mm 1 function [A, b,x] = heatFlow (h, k, T1, Ta, Tn, L, lambda, tol, max_it, num_divisions) 2 % calc geometry 3 delx = %mm 18 19 % run solution 20 [x, check, j] = GaussSeidel (A, b, lambda, tol, xint, max_it) 21 end 34 35 36 check= 37 end 38 22 23 function [x, check,j] = Gauss Seidel (A, b, lambda, tol,xint,max_it) % calculate new guess for x % apply relaxation. % convergance criterion % reset old and new guesses Code to call your function > 1% set problem parameters h = 2500;w/m^2/K 3 k = 45; %W/m/K 4 T1 100+273; %K 5 Ta = 20+273; %k 6 Tn 40+273; %k 7 L = 50*10^-3; %mm Ax Ta = 20c T4 T5 L = 25mm T6 Save T 8% set solution parameters. 9 lambda 0.8; 10 tol = 0.001; 11 max_it = 100; 12 num_divisions = 7; 13 14 [A,b,x] = heatFlow (h, k, T1, Ta, Tn, L, lambda, tol, max_it, num_divisions) C Reset W mK W mk h = 2500- k= 45- Tg = 40C MATLAB Documentation C Reset Run Function ? (5%) Solve the below Heat conduction and convection problem using Gauss-Seidel. Cross-reference slides 19 to 23 from 006 Comp CW2.pptx. Make the program able to handle n number of divisions (diagram shows 7). n must be an odd number so there are an even number of nodes in the insulated and uninsulated sections. Order the equations from 2 to n for each row in matrix A (2 in step of 1 to 7 in the diagram below.) As = 0.01 * Ax Ac = 0.01 Function > T = 100 c T 16 17 xint = 4 As = %m^2 5 Ac = %m^2 6%% expandable A and b definition 7 %crete empty A and b matrices 8 9% fill first row 10 11 % fill second to second to last rows 12 13 % fill last row. 14 15% set solution parameters 25 % Iindices = 1:1:n; 26 27 28 29 30 31 32 33 Insulated Insulated T3 L = 25mm 1 function [A, b,x] = heatFlow (h, k, T1, Ta, Tn, L, lambda, tol, max_it, num_divisions) 2 % calc geometry 3 delx = %mm 18 19 % run solution 20 [x, check, j] = GaussSeidel (A, b, lambda, tol, xint, max_it) 21 end 34 35 36 check= 37 end 38 22 23 function [x, check,j] = Gauss Seidel (A, b, lambda, tol,xint,max_it) % calculate new guess for x % apply relaxation. % convergance criterion % reset old and new guesses Code to call your function > 1% set problem parameters h = 2500;w/m^2/K 3 k = 45; %W/m/K 4 T1 100+273; %K 5 Ta = 20+273; %k 6 Tn 40+273; %k 7 L = 50*10^-3; %mm Ax Ta = 20c T4 T5 L = 25mm T6 Save T 8% set solution parameters. 9 lambda 0.8; 10 tol = 0.001; 11 max_it = 100; 12 num_divisions = 7; 13 14 [A,b,x] = heatFlow (h, k, T1, Ta, Tn, L, lambda, tol, max_it, num_divisions) C Reset W mK W mk h = 2500- k= 45- Tg = 40C MATLAB Documentation C Reset Run Function ?
Expert Answer:
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these databases questions
-
A nurse researcher is assessing how well patients respond to two different dosing regimens of a new drug approved to treat diabetic neuropathy. Two different dosing regimens are administered, and...
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-5. Ivan's grandfather died and left a portfolio of municipal bonds. In 2012, they pay Ivan...
-
The maker of a $10,000, 8%, 90-day note receivable failed to pay the note on the due date of June 30. What accounts should be debited and credited by the payee to record the dishonored note...
-
Examine the early exercise policy for the eight paths considered in the example in Section 27.8. What is the difference between the early exercise policy given by the least squares approach and the...
-
Following are the amounts of the assets and liabilities of New World Travel Agency at December 31, 2012, the end of the current year, and its revenue and expenses for the year. The capital of Kris...
-
What are the essential elements of the Product Liability Directive of the European Union?
-
(Financial Reporting Pressures) Presented below is abbreviated testimony from Troy Normand in the WorldCom case. He was a manager in the corporate reporting department and is one of five individuals...
-
4.Indicate, by clicking on the relevant boxes, whether the following statements are true or false in relation to business valuation. The earnings yield method and the dividend growth model should...
-
Suppose the program counter (PC) is set to 0x20000000. 1. What range of addresses can be reached using the MIPS jump-and-link (jai) instruction? (In other words, what is the set of possible values...
-
Identify the problem faced by UPS. Was it a technology problem, an organizational problem, or a management problem? Explain your answer.
-
Evaluate (F(s)).
-
An object is being acted upon by three forces and moves with a constant velocity. One force is 6 0 N along the + x - axis, the second is 7 5 N along a direction making a counterclockwise angle of 1 5...
-
3. (a) Compute the following integral. The quantity a is simply a constant. Remember, do the integrals from the "inside out" (z first, then y, then x). Also, when doing an integral (say, the z...
-
Please write assembly code using the SimpleRISC instruction You can write your solution directly here or upload a pdf.
-
3. Vibration systems can be expressed by the following equation: (1)x+(2)x + (3)x = F The coefficients in the equation represent a type of matrix for each term. Which one of following answers is...
-
All fixed costs remain, whether we transfer internally or not. Even at the transfer price of $5 and the $4 extra cost in packaging and reducing potency, the firm still stands to make a profit of $11...
-
The packaging division of a company having considered several alternative package designs for the company's new product has finally brought down their choices to two designs of which only one has to...
-
Quince Corporation has taxable income of $450,000 for its 2012 calendar tax year. Calculate the corporation's income tax liability for 2012 before tax credits. $_________
-
On July 1, 2012, Ted, age 73 and single, sells his personal residence of the last 30 years for $365,000. Ted's basis in his residence is $35,000. The expenses associated with the sale of his home...
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-4. Ivan and Irene paid the following in 2012 (all by check or can otherwise be...
-
Using a financial calculator, solve for the unknowns in each of the following situations. a. On June 1, 2024, Holly Golightly purchases lakefront property from her neighbor, George Peppard, and...
-
Stan rented an office building to Clay for \($3,000\) per month. On December 29, 2022, Stan received a deposit of \($4,000\) in addition to the first and last months rent. Occupancy began on January...
-
In 2017, Harry and Mary purchased Series EE bonds, and in 2023 redeemed the bonds, receiving \($500\) of interest and \($1,500\) of principal. Their income from other sources totaled \($30,000.\)...
Study smarter with the SolutionInn App