For equations to display correctly online, you may have to click the Raw
button.
However, you need to exit Raw
mode to display the Jupyter Notebook correctly.
In [the Step-0 Jupyter Notebook], I provide a basic introduction.
We solve the following diffusion + reaction equation, with a source term:
We will assume all material properties
We use the following boundary conditions:
- at
$x=0$ , we impose a value $ u(0)=u_{\text{left}}$ - at
$x=L$ , we impose a value $ u(L)=u_{\text{right}}$
These conditions are known as Dirichlet boundary conditions.
The interval
We will approximate the solution to the above problem as a piece-wise linear function. Between two consecutive vertices, the function is linear, as shown in the plot below.
Many FEM concepts such as the assembly of the global matrix per element, the reference element, ... are not discussed at first.
At the end of the Step-0 Jupyter Notebook, I do the global assembly by looping over elements.