A toolbox for solving 2d & 3d generic pde using Finite Element Method
Example 1:
Solving Poisson Equation on a Unit Disk
Follow along this Matlab Tutorial and try to answer these questions
- What was the domain?
- What was the equation?
- What were the boundary conditions?
- What is it that you just plotted?
Example 2:
Solve the Poisson equation in the unit square
with boundary conditions: , and for all .
Example 3: Poisson’s Equation with Complex 2-D Geometry
Follow along this Matlab Tutorial and try to answer these questions
- What was the domain?
- What was the equation?
- What were the boundary conditions?
- What is it that you just plotted?
Exercise 1: A shell with hot inside ring

Exercise 2: A shell with hot inside ring and Neumann boundary outside

Project 1: Solve a given PDE with slightly non trivial domain in matlab.
Ajit: coming shortly
Relevant pages from Matlab documentation
Recommended steps:
- Create problems geometry with some GUI based application. Matlab pde app will work fine for 2d problems; I recommend using Gmsh for 3d problems. You can also try some equally good and also free alternatives like Paraview or Salome.
Exercise 1
Solve the problem shown in the figure below using the pdetool app

Then
- Save the app data as exercise1.m
- Modify the script exercise1.m so that innercircle is cold and outer circle hot.
- Study every line in the exercise1.m and find (either guess or look into matlab documentation) what that line does.