You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Classical Fokker-Planck Equation using a DG Method with AMR in Dealii
This is a modified and combined version of the deal.ii tutorial step 12 and step 26. After cloning the repo it can be executed like any other deal.ii tutorial. For example with the provided CMakeLists.txt by
cmake -s source -b build
cd build/
make run
Colormap.py is used for generating the aniamtion shown below.
Strong and Weak Formulation
The classical Fokker-Planck equation describes the evolution of a distribution $w(t, x, p)$ in phase space with position $x$ and momentum $p$ due to a Hamiltonian flow and diffusion caused by coupling to an environment. Its strong formulation is (see [1])
where $X_H=(p/m, -\partial V /\partial x)$ is the Hamiltonian vector field, $D$ is the diffusion constant and $w$ is the phase space probability density.
[2] shows how to construct a weak formulation for diffusion-advection-reaction problems with all mathematical details. Using the same function spaces and notation I modified the weak form therein to treat the time dependent problem above. In short the weak form now reads: Find $w \in V_{*h}$ such that
where $[[\cdot]]$ and $\lbrace\lbrace\cdot\rbrace\rbrace$ refer to the usual jump and average operations respecively and $\mathcal{F}_h^i$ is the set of interior faces. $\eta$ is a user desfined parameter, that enforces coercivity. Note that the momentum components of the normal vectors $(n_F)_p$ were taken in order to let the diffusion act in the momentum direction exclusively.
Upwinding has already been implemented for the transport equation by the deal.ii tutorial. The respective weak form is given by
where $\Gamma^+$ refers to the inflow part of the boundary.
Time discretization is simply done by a implicit Euler time stepping scheme. I may come back to this in the future to implent Crank-Nicolson, etc.
Results
For the particular case of a driven double well potential $V(x, t) = B x^4 - A x^2 + \Lambda x \cos(\omega t)$ with $m=1$, $B=0.5$, $A=10$, $\Lambda=10$ and $\omega=6.07$, as found in [1], and initial condition