Matlab report help please (Finite Difference Method)

Click For Summary
SUMMARY

The discussion focuses on creating a MATLAB report for a heat transfer assignment using the Explicit Finite Difference Method to analyze temperature distribution on a 2D aluminum plate. Key components of the report include defining the problem, describing the constitutive equation, detailing the numerical method, and outlining initial and boundary conditions. Participants emphasize the importance of summarizing the code, explaining the chosen algorithm, and providing visual representations of the numerical solution. Resources such as tutorials on the Explicit Finite Difference Method and related literature are recommended for further understanding.

PREREQUISITES
  • Understanding of the Explicit Finite Difference Method
  • Familiarity with MATLAB programming
  • Knowledge of heat transfer principles and constitutive equations
  • Basic concepts of numerical differentiation
NEXT STEPS
  • Research "Explicit Finite Difference Method - A MATLAB Implementation"
  • Study "Two-Dimensional Conduction: Finite-Difference Equations and Solutions"
  • Explore MATLAB's *publish* option for report generation
  • Investigate the application of finite difference methods in meteorological models like the UK Met Office's Unified Model
USEFUL FOR

Students and researchers in engineering and applied mathematics, particularly those working on numerical simulations and heat transfer analysis using MATLAB.

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   Reactions: 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
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 7 ·
Replies
7
Views
3K
Replies
1
Views
2K
  • · Replies 8 ·
Replies
8
Views
4K
  • · Replies 3 ·
Replies
3
Views
2K