Examples solving ODE’s using Finite
elements method. Mathematica and Matlab implementation and animation
By Nasser Abbasi
Last updated sept 28,2006
This report is a basic review of weighted residual methods and FEM. Some basic differential equations are used to illustrate the method. Mathematica and Matlab code written to solve numerically a first and second order ODE using FEM.
Animations
First order ODE (generated by Mathematica) one two three four
Mathematica notebook which solves first order by FEM. [notebook] Code listing [HTML]
Second order ODE animation (generated by Matlab). animation
Matlab driver file. This file sets up the call to do FEM and the animation
Matlab function to solve by FEM. This file does FEM solution on general second order ODE