10. Partial differential equations (PDEs)#
Partial differential equations occur when we are dealing with functions of more than one variable, for instance fields.
Examples:
Electrostatic potential \(\phi (x,y,z)\) (Poisson’s equation)
Density or temperature profiles (diffusion/heat equation)
Displacement (amplitude) profile (wave equation)
Fluid dynamical fields (flow velocity) – e.g. Navier-Stokes equations
General methods for solving PDE’s#
Finite difference method
Approximate the derivatives by finite differences
Easier to implement than other methods
Works best for regular (rectangular) shapes
Finite element method
Subdivide the system into smaller parts – finite elements
Boundary value problems in 2/3 dimensions
Works well for irregular shapes
Finite volume method
Convert surface integrals around each mesh point into volume integrals
Conserves mass by design, good for fluid dynamical equations
Here we will focus on the finite difference method.