Answered step by step
Verified Expert Solution
Question
1 Approved Answer
This linear system is A T = b where T = ( T - 0 , T - 1 , dots, T - N )
This linear system is where dots, is the vector of unknown temperatures, is the tridiagonal matrix
and is the column vector of righthand side terms:
dots,
For the rest of this lab, use the parameter values:
Task :
Duplicate and rename your programme from Exercise Revise the construction of the vector b in your programme to match equation. You can now solve the linear system
Ensure that you change the comments in your program to reflect what it does. Solve the system to find the temperature profile with a suitable number of steps
Draw a graph of against
In : # create Matrix A
In : # Solve system and plot
Does the graph agree with what you would expect the temperature profile for an insulated rod to look like? Is there any need for
In :config InlineBackend.figureformat'retina'
Figure below shows a thin rod, of length whose ends are kept at fixed temperatures and where and whose sides are insulated so there is no heat loss through the
sides. The arrows represent heat flow.
In the steadystate situation the temperature is a function of the distance along the rod, but not a function of time. is determined by Laplace's equation in D:
As in the lectures, we divide the rod into intervals. In lectures the grid used was separated by ; hereweuse $ We replace the derivative term by a central difference
approximation, and evaluate the resulting equation at each grid point. This gives a set of linear equations
dotsN
From the boundary conditions, we also have
and
Taking the above two equations gives a total of equations in the unknowns dots,
This linear system is where dots, is the vector of unknown temperatures, is the tridiagonal matrix
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started