Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Recall the heat equation which we solved numerically T= = DTxx There we implemented an explicit numerical scheme (FTCS) which led to a conditionally

      

Recall the heat equation which we solved numerically T= = DTxx There we implemented an explicit numerical scheme (FTCS) which led to a conditionally stable solution - meaning that for certain time step values our solution would be unstable. The recent lecture introduced an implicit numerical scheme known as the Backwards in Time Central in Space (BTCS) method, which is expressed below: (1+20) T+oT+1-oT!+1 DAt where o = This scheme is unconditionally stable, meaning we can choose any arbitrarily large step size and the solution is always stable. (.x)2 In the tutorial you began by using the brute force solution method, which involves solving a matrix equation each timestep. The Thomas algorithm (pseudocode provided more efficient approach at solving the same system of equations. = Th is a much The Thomas algorithm splits the lower, major and upper diagonal into 3 one dimensional arrays a, b and c, respectively. It uses these vectors in a forward elimination phase and backward substitution phase to determine Tnp1, which is the temperature at the next timestep. Your MATLAB function should take as input dx, dt, nt (space discretization step, timestep size in seconds, and number of timepoints), and output Tn, a, b, c, m (the final temperature distribution, and the intermediate variables used in the Thomas algorithm). You MUST use the Thomas algorithm and ensure you include the variables a, b, c, and m in your code, which match the pseudocode described in the lecture slide.

Step by Step Solution

3.40 Rating (150 Votes )

There are 3 Steps involved in it

Step: 1

Point 1 Inlet air conditions t1 34C 70 RH Point 3 Exit air condition t... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Vector Mechanics for Engineers Statics and Dynamics

Authors: Ferdinand Beer, E. Russell Johnston, Jr., Elliot Eisenberg, William Clausen, David Mazurek, Phillip Cornwell

8th Edition

73212229, 978-0073212227

More Books

Students also viewed these Mechanical Engineering questions

Question

How do you ensure data quality?

Answered: 1 week ago