

First it generates a triangular mesh over the region.

If you look at the Matlab code you will see that it is broken down into the following steps. Solution of the Poisson’s equation on a square mesh using femcode.m Running the code in MATLAB produced the following Figure 1. The MATLAB code in femcode.m solves Poisson’s equation on a square shape with a mesh made up of right triangles and a value of zero on the boundary.
#Matlab 2012 documentation generator#
I will use the second implementation of the Finite Element Method as a starting point and show how it can be combined with a Mesh Generator to solve Laplace and Poisson equations in 2D on an arbitrary shape. The first one of these came with a paper explaining how it worked and the second one was from section 3.6 of the book “Computational Science and Engineering” by Prof. Searching the web I came across these two implementations of the Finite Element Method written in less than 50 lines of MATLAB code: The Finite Element Method is one of the techniques used for approximating solutions to Laplace or Poisson equations. If your article is on scientific computing, plasma modeling, or basic plasma / rarefied gas research, we are interested! You may also be interested in an article on FEM PIC.

Would you like to submit an article? If so, please see the submission guidelines. This guest article was submitted by John Coady (bio below).
