Solving the Poisson equation — FEniCSx tutorial
The goal of this tutorial is to solve one of the most basic PDEs, the Poisson equation, with a few lines of code in FEniCSx. We start by introducing some fundamental FEniCSx objects, such as Function, functionspace, TrialFunction and TestFunction, and learn how to write a basic PDE solver. This will include: How to formulate a mathematical variational problem How to apply boundary conditions How to solve the discrete linear system How to visualize the solution The Poisson equation is the following boundary-value problem Here, 𝑢 = 𝑢 ( 𝑥 ) is the unknown function, 𝑓 = 𝑓 ( 𝑥 ) a prescribed function, ∇ 2 the Laplace operator (often written as Δ ), Ω the spatial domain, and 𝜕 Ω the boundary of Ω . The Poisson problem, including both the PDE, − ∇ 2 𝑢 = 𝑓 , and the boundary condition, 𝑢 = 𝑢 𝐷 on 𝜕 Ω , is an example of a boundary-value problem, which must be precisely stated before we can start solving it numerically with FEniCSx. In the two-dimensional space with
Solving the Poisson equation # Authors: Hans Petter Langtangen, Anders Logg Adapted to FEniCSx by Jørgen S. Dokken The goal of this tutorial is to solve one of the most basic PDEs, the Poisson equation, with a few lines of code in FEniCSx. We start by introducing some fundamental FEniCSx objects, such as Function , functionspace , TrialFunction and TestFunction , and learn how to write a basic PDE solver. This will include: How to formulate a mathematical variational problem How to apply boundary conditions How to solve the discrete linear system How to visualize the solution The Poisson equat
Explore this link on the map →saved by
related reading
- Poisson distribution - Wikipediaen.wikipedia.org
- A Lecture on Partial Differential Equationspeople.math.harvard.edu
- Weak solution - Wikipediaen.wikipedia.org
- MATHEMATICA TUTORIAL for the Fourth Course in Applied Differential Equationscfm.brown.edu
- Stochastic Differential Equations, Deep Learning, and High-Dimensional PDEsmitmath.github.io
- A Primer on Stochastic Partial Differential Equationsmath.utah.edu
- ODEs: What are Differential Equations?web.uvic.ca
- Poisson kernel - Wikipediaen.wikipedia.org
- Variation of parameters - Wikipediaen.wikipedia.org
- 0907.4178arxiv.org
- Zongyi Li | Fourier Neural Operatorzongyi-li.github.io
- 1806.07366arxiv.org