Write the numerical values of temperature

Assignment Help MATLAB Programming
Reference no: EM13860572

Write a Matlab M-code program which solves the Finite Difference equations for the unknown temperatures Ti where the value of N, the number of internal nodes in the vertical direction, is specified as a parameter at the beginning of the program. Your program should also do the following.

- Write the numerical values of temperature and the corresponding value of the analytical solution to this problem, T=xy, at each of your grid points, to a text file.

- Calculate the maximum percentage difference between your numerical solution and the analytical solution in the form 100[(numerical - analytical) / analytical] over all the grid points and write this value to the same text file to which you have written the numerical and analytical results.

You are asked to hand in the following:

(i) A copy of your Matlab M-code program, which is documented similarly to the programs you have been given during the lectures, together with your results file for the case with N=4, which show the numerical and analytical values at each grid point and which contains the maximum percentage difference between the analytical and numerical solution over the entire grid of 40 points.

(ii) A sheet on which you have derived (i.e. do not simply write them down) the Finite Difference equations for the above grid with N=4 (and a total of 40 unknowns) at nodes 1 and 40.

(iii) Generate a 3-D plot of the temperature against x and y including the boundary values, e.g. using the Matlab function surf.

When writing your program you may find it useful to populate your temperature matrix by considering the equations at the following nodes separately:

i. All nodes not influenced by the boundary conditions, i.e. those not adjacent to the boundaries.

ii. Each of the four corner nodes separately

iii. Nodes adjacent to the bottom (y=0) boundary but not at the corners

iv. Nodes adjacent to the left boundary (x=0) but not at the corners

v. Nodes adjacent to the upper boundary (y=1) but not at the corners.

vi. Nodes on the right hand boundary (x=2) but not at the corners.

Note that for the grid given above these different sections would be

i. Nodes 12-19, 22-29.

ii. Nodes 1, 10, 31, 40

iii. Nodes 2-9

iv. Nodes 11, 21

v. Nodes 32-39.

vi. Nodes 20, 30.


Attachment:- MATLAB.pdf

Reference no: EM13860572

Questions Cloud

Describe the weaknesses of the articles of confederation : Describe the weaknesses of the Articles of Confederation and discuss the reasons why Americans created a weak national government.
What roles did free blacks play in the civil war? : What roles did free Blacks play in the Civil War? How did the war affect each group?
Cyber bullying law in canada or united states of america : Cyber Bullying Law in Canada or United States of America
The homestead strike of 1892 : In the late 19th century, Chinese immigrants
Write the numerical values of temperature : Write the numerical values of temperature and the corresponding value of the analytical solution to this problem, T=xy, at each of your grid points, to a text file.
Use technology and information resources to research issues : Use technology and information resources to research issues in American History to 1865
Drawing the logic diagram : sing two 2-bit comparator modules and some extra gates, design a 5-bit comparator comparing X = (X4X3X2X1X0) and Y = (y4y3y2y1y0). Show your design by drawing the logic diagram containing all three outputs, f(X>Y), f(X = Y), and f(X
Design the digital filter using the bilinear transformation : Design the digital filter using the bilinear transformation and show that the transfer function of the resulting filter may be approximately expressed as:
Where was the massive slaughterhouse known as union stock : Where was the massive slaughterhouse known as Union Stock Yards located?

Reviews

Write a Review

MATLAB Programming Questions & Answers

  Finite difference method

Use the finite difference method to calculate the temperature at the point specified since it is easier.

  Determine the necessary shell temperature

In a shell-and-tube heat exchanger, one fluid passes through a central tube while another fluid flows through an outer shell in the opposite direction. The purpose is to heat the fluid passing through the central tube.

  Find the integral of a function at an arbitrary location

Write a Matlab function to perform numerical integration of a set of evenly spaced data points using the trapezoidal rule

  Compute the speed of single-stage planetary gear train

Write a MATLAB function [speed] = planetary (N, emesh, first, last, arm) that computes the speed of a given link in a single-stage planetary gear train.

  Calculate and plot the error in the numerical derivative

Write a program to calculate and plot the error in the numerical estimate of the derivative.

  Create the graph using matlab functions

Create the graph, which contains a piecewise function where a line exists in the first interval, a parabola in the second interval, and the sine function in the third interval.

  Develop a simulation program

Develop a simulation program

  Create a vector in matlab

Create a three dimensional diagram of function.

  Open a named pipe and to read data from the pipe

Open a named pipe and to read data from the pipe in matlab

  Write the commands that will create the matrix

Write the commands that will create the matrix.

  Lagrange interpolating polynomial of degree

Lagrange interpolating polynomial of degree

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd