Loading

 

Lesson 4: A time-dependent problem

We introduce, in this lesson, new aspects of programmation:

The Finite Element Code

The main program

Here is a description of the source code. The source file can be found in Example 4 in the examples directory.

A user defined class

We have now to implement class User that defines boundary conditions, initial conditions. The class is defined in file User.h in the Example 4 in the tutorial directory.

A test

We use here exactly the same mesh file as in the previous lesson. Of course, we obtain the same solution. The convergence is obtained after 3 iterations.

 
Copyright © 1998-2016 Rachid Touzani