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

  Create a function file that computes the distance

Write a function that accepts temperature in degree Fahrenheit and computes the corresponding value in degrees Celsius. The weight force must balance the spring forces at this new position.

  Create a vector in matlab

Create a three dimensional diagram of function.

  Analysis of the changes to the external environment

Analysis of the changes to the external environment that may, or have, influenced the value chain for Australian wine producers over the last six (6) years.

  The train will be unsafe if the normal acceleration is

a train track is designed with a radius of 20 meters. the train will be unsafe if the normal acceleration is greater

  Write a program to implement this process

A computer cannot store an entire function in its memory. Typically it stores the values of the function at a finite number of points. Pick values of a, b, v, N, and Δt, and write a program to implement this process. Be sure to leave a, b, v, N, an..

  Approximate the solution to the above initial value problem

1. dydt te3t - 2y 0 le t le 1 y0 0approximate the solution to the above initial value problem usinga modified-euler

  Approximate the solution to the above initial value problem

dydt te3t - 2y 0 le t le 1 y0 0approximate the solution to the above initial value problem usinga modified-euler

  Hi i attached the instructions would you guys do it by 50

i attached the instructions. ltbrgt ltbrgtwould you guys do it by 50 dollars ? ltbrgt ltbrgtit is due this friday

  Use regression algorithms

The proposal which are two pages and here is the demands - Use Regression Algorithms or any type to achieve the target In Data Mining matter dealing with E-Learning Students' Data.

  Find the roots using matlab built-in functions roots & fzero

the following equation, what is the modified equation for a fixed-point iteration method. The roots of the function are x = -2.2020235, -0.4088152, and 1.11083871, how would you determine whether or not the method will converge on a root? If the tech..

  Write a user-defined matlab function

Write a user-defined MATLAB function that calculate the condition number of an (nxn) matrix by using the 1-norm. for the function name and arguments use c = condNum_one(A).

  Matlab code to create the global stiffness matrix

Write a MATLAB code to create the global stiffness matrix for a problem with 6 unconstrained degrees of freedom for any linear elastic two dimensional trusses.

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