Details about the examples can be found on the homepage of Prof. Sormann at http://itp.tugraz.at/LV/sormann/AKNumPhysik/
The first problem is solving the stationary heat equation with FEM.
Now how do we plot this? At first I tried using matplotlib which was not satisfactory because it cannot do color gradients across triangles in a mesh grid. Then I discovered the wonderful MayaVi package where you can do it as simple as
from enthought.mayavi import mlab
mlab.triangular_mesh(x, y, z, triangle_indices, temperature)
mlab.show()
That's all! To add fancy stuff like a wireframe mesh, a colorbar and axes I did something like that before the final mlab.show()
mlab.triangular_mesh(x, y, z, triangle_indices, color=(0,0,0),
line_width=1.,representation='wireframe')
mlab.view(0., 0.)
mlab.move(0.,-.5,0.)
mlab.xlabel("x")
mlab.ylabel("y")
mlab.axes(extent=[0., 4., 0., 4., 0., 0.], nb_labels=5)
mlab.colorbar(title="Temperatur", orientation='vertical')
Nice, huh?
If I have time, I'll keep you updated about the algorithm, the progress for the time-dependent heat conduction and more!
