Question: Part B - Finite difference method Figure 2 : Finite difference discretization of noninsulated uniform rod between two bodies of constant temperature. - T i
Part B Finite difference method
Figure : Finite difference discretization of noninsulated uniform rod between two bodies of constant temperature.
dots,
To solve using the finite difference method, we discretize the bar into segments of length, as shown in Figure and approximate the second derivative of temperature using finite divided differences. Then, after rearranging, the BVP in can be expressed as a set of simultaneous algebraic equations,
Goals
Write a Matlab script, ScriptNonInsulatedRodFiniteDifference.m that solves the BVP in using the finite difference method and considering and To do so please:
a Develop the system of equations associated with in a general form such that the same equations can be used for any specified segment length, ie DO NOT hardcode the specific finite difference equations for a given No te: Matlab's backslash operator will come in handy to solve the system of equations in
b Plot the analytical solution in alongside the two finite difference solutions. Please consider axis limits and ylim so that the difference in the two numerical solutions is visible see example in Figure
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
