CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Main CFD Forum (https://www.cfd-online.com/Forums/main/)
-   -   FEM heat transfer problem (https://www.cfd-online.com/Forums/main/99890-fem-heat-transfer-problem.html)

FEM heat transfer problem

Hello everyone!

I'm trying to make a program that uses finite element method (FEM) to transient heat transfer. I'm using Matlab and already have a meshing algorithm. I'm trying to understand how to go further. The best for me would be to understand a simple example. So I've made one – a simple cube.

I've put everything in a *.pdf file to make everything clear by proper text format. I marked all my (5) questions in red. They are also numbered so you can write answers to "question no #". Everything else is written in pdf. Link to download:
http://wyslijto.pl/plik/g66y5hcqtt - click in FEM [v0.1].pdf

In shortcut: I don't understand solving a FEM heat transient problem. I try to make it in Matlab. I made a simple cube example, it's made from 6 tetrahedra. I'm looking for someone to help me with my problems by solving this example or showing me a text algorithm how to do this - step by step. I will be really grateful for any help. :)

 Rami April 16, 2012 05:45

It's simple, and I'll just sketch the FEM procedure for the case in hand (conduction, transient solution).

Let us write the equation (using tensor notation) as:

with

Assume T distribution within an element is

with and being the nodal shape functions and temperatures, and the sum is on the element nodes.
Now, apply Galerkin's method, i.e., integrate both hands multiplied by over the element volume.

The LHS will be

The RHS, after using intergation by parts and the Gauss theorem, yields

The first term on the RHS is the boundary normal flux, integrated over the element surface.

Now sum over all the elements and assemble to get the global matrix equation

You have to specify appropriate initial conditions, the shape functions (apparently you used linear functions) and a time scheme (simple differencing will do). You also have to specify the boundary conditions. You may wish to choose G distribution (e.g., use the same shape function as for T), and - voila! That's the FEM in a nutshell.

I hope I have clarified your doubts,
Rami

 All times are GMT -4. The time now is 21:39.