Matlab report help please (Finite Difference Method)

AI Thread Summary
The discussion focuses on the challenges of writing a report for a MATLAB assignment using the Explicit Finite Difference Method to model heat transfer on a plate. Key components of the report include the constitutive equation, numerical method description, initial and boundary conditions, and details of the Finite Difference Method. Participants suggest summarizing the code, defining the problem, and explaining the chosen algorithm, while also recommending consulting the instructor for clarity on expectations. Additionally, resources and tutorials on finite difference methods are mentioned as helpful for understanding the concepts better. The conversation emphasizes the importance of articulating the methodology and results clearly in the report.
t0mm02
Messages
49
Reaction score
0
Homework Statement
2D Diffusion Equation by using Explicit Finite Difference Method
Relevant Equations
none
We have to submit a Matlab (my worst module) assignment to show the heat transfer on a plate. However, I have the 2 codes almost done but I am struggling to write the report. To calculate the temperature on a 2D aluminum plate we need to use the Explicit Finite Difference Method. The problem comes now when I read the task description, which is the following one:
*Table of contents
*Introduction to the problem under consideration
*The constitutive equation of the problem
*Description of the numerical method chosen to discretize the constitutive equation
*The initial and boundary conditions implemented
*Details of your Finite Difference Method
*Analysis of the code... (I understand everything else from here)

This is what I don't understand and what I don't know if I have done properly:
**The constitutive equation of the problem (On here I explained TAYLOR SERIES and the HEAT TRANSFER)
**Description of the numerical method chosen to discretize the constitutive equation (On here I have explained the Explicit Finite Difference Method and numerical differentiation)
***Details of your Finite Difference Method (I don't even know what I have to do on here)
 
Physics news on Phys.org
Why not ask your teacher if your answers are acceptable or does he/she want more detail...

It’s impossible for us to know what is acceptable or not for your case.

From your description, it seems you need to summarize your code:

- define the problem you’re trying to solve
- say what differential equations describe the system
- say what initial conditions were imposed on the system
- say what algorithm you chose and why

and then show your code and some charts that show the numerical solution.
 
jedishrfu said:
Why not ask your teacher if your answers are acceptable or does he/she want more detail...

It’s impossible for us to know what is acceptable or not for your case.

From your description, it seems you need to summarize your code:

- define the problem you’re trying to solve
- say what differential equations describe the system
- say what initial conditions were imposed on the system
- say what algorithm you chose and why

and then show your code and some charts that show the numerical solution.
Because it is weekend and I don't think he will be available until Tuesday.
 
Well, make the best of it, write down what you think he wants to see and then go talk to him. If I were your instructor that's what I would expect from all of my students.

I took a course on numerical simulations using Java and my prof wanted to see exactly what I wrote. The funny part about my prof was his inexperience with Java as the course was originally taught using Visual Basic and then a new version of the book appeared that used Java. The course started with 4 students and within a few days was left with 2 students. We knew Java well and taught him while he taught us the methodologies and the gotchas of choosing the best integrating methods for our equations.
 
t0mm02 said:
**The constitutive equation of the problem
I would say the essential point is that, as there are no heat sources in the plate, then at steady state, the heat flowing into any bounded region exactly equals the heat flowing out of that region, or Div D = 0 (ie the divergence is zero).

Hence the temperature at any grid point is the average of the temperatures at the adjacent grid points, which is the finite difference method.

Does that help?

A quick web search with finite difference heat flow found lots. I only scanned Two-Dimensional Conduction: Finite-Difference Equations and Solutions but it looks reasonable at first glance. It shows how the 1-D steady-state heat conduction equation (with internal heat generation) is approximated by finite differences, how the 2-D steady-state heat conduction equation follows and how, if there is no internal heat generation, then a node's temperature is the average of the surrounding nodes.

Clipboard01.png

Reading this tutorial may also help: Explicit Finite Difference Method - A MATLAB Implementation. Again, I only skimmed it.

You may think finite difference models are a bit simplistic for real world applications - I did when I first came across them. Many weather forecasters, including the UK Met Office with its Unified Model, use finite difference methods.
ENDGame is the current operational dynamical core for the Unified Model and is based on a semi-implicit semi-Lagrangian discretization of the governing equations.

ENDGame is a finite-difference model discretized on a latitude-longitude grid and is based on the fully compressible, nonhydrostatic Euler equations.
Their computer has over 240,000 cores and a peak performance of 8,000 million million calculations per second. It takes hours to run a forecast.
 
Last edited:
  • Like
Likes jedishrfu
Not sure if this helps exactly, but if it's specifically a MATLAB report, there is a *publish* option that will export all codes triggered and output in command window along with a table of contents.
1610979674235.png
 
Back
Top