Finite Element Simulation of First Wall Heating

May 03, 2016

A finite element model of first wall heating in fusion tokomak reactors created as a capstone for a course

Finite Element Simulation of First Wall Heating and Ion Recombination

A one-dimensional finite element simulation was created to calculate the heating of the first wall in a tokomak.

Motivation

Fusion power is touted as the future of energy generation, and in theory, it’s a beautiful and elegant concept. However, when reality is concerned, it becomes one of the most difficult engineering problems yet faced. Particularly vexing is the “first wall problem” - or the decision of wall materials and operating parameters that will allow for the plasma facing components (PFCs) in a fusion reactor to perform well and with a long life.

The problem comes directly from the physics of fusion. The types of fuels desired for fusion are usually deuterium-deuterium (“dd”), dueterium-tritium (“dt”), or sometimes deuterium-helium (“dHe3”). The reactions themselves are: $\newcommand{\ce}[1]{\mathrm{#1}}$

It is noticeable that of the four product sets possible, ions constitute a large amount of the total energy. This is an important component of fuel, as ion energy is much easier to reclaim than neutron energy. However, ion energy is so easy to reclaim that it will cause large amounts of heating in the walls of the fusion reactor.

In fact, there is even another ion heating aspect to fusion, and that is that plasma is inherently lossy. In the high temperature plasmas required to induce nuclear fusion, the deuterium (or other) ions that are used as reactants are so fast that they can escape the plasma confinement and deposit energy into the wall. This can cause material damage and heating on a large scale.

This is the situation that was considered in the following simulation: to model the effect of temperature on deuterium recycling. In otherwords, we look at diffusion of implanted deuterium ions from a plasma source on first wall components. We then model the recombination of those ions, and heating within the wall to determine how many of those ions escape, and are “recylced” back into the plasma.

Introduction and Mathematical Development

We are attempting to solve the diffusion equation, which - with constant diffusion coefficient - can be written as

with $C\left(\vec{r},\,t\right)$ the concentration as a function of space ($\vec{r}$) and time ($t$), $D$ the diffusion coefficient, and $S\left(\vec{r},\,t\right)$ the source term as a function of space and time. We require several assumptions.

One Dimensional

With the assumption that the source is constant on the entire plasma facing surface and that the surface can be approximated as infinite compared to the range of diffusion, we can consider the problem to be one dimensional (in depth). We then define our space ($\vec{r}$) as simply the depth variable ($x$). Then, the diffusion equation can be written as

We then can define our boundary and initial conditions needed to solve this.

  • By assuming that the plasma is stable, we can assume that the source term will be constant in time. That is:

  • By assuming that our domain is much larger than the scale of diffusion in the time simulated, we can define the right boundary as a sink. That is:

  • By assuming that the plasma is created instantly at time t=0, we can assume that there is no existing distribution of concentration except for the instantaneous source. That is:

  • The left boundary is defined by recombination/desorption of Deuterium. This can be calculated by:

Finite Element Imposition and Solution

The next two sections are technical, so if you’re not interested in the math or code, skip to the results.

So, we want to solve the equation

Since our source is constant, we can simply add the source term to the concentration at every step. The residual corresponding to this equation is

and thus the weighted residual is

which, when expanded by integration by parts is

with linear shape functions and at node $j$, the residual becomes

and, because we’re using lagrange, $w_{j}$ is only non-zero over two elements that include $j$, i.e.

and its derivative is so

Now, using the lagrange approximation to the real solution $C$ and taking the derivative, we get

and again noting that the only contributions for lagrange elements come for the nodes including $j$, we can reduce this sum to two terms:

so the integral becomes

and with constant $D$

We can expand that equation into a matrix by adding matrices for each node $j$. A quick example shows the pattern, for 5 nodes $j$

You can then place this in matrix form

So, checking in on our overall equation, we have

Which means we have to determine the boundary and the time derivative, still. The time derivative can be written at each node as

And, using only an euler step for the time step, we have

where $k$ is the time step. Therefore, we have

and using the five element example, we have

which can be written as a matrix such as

From our original equation, we only have the boundary terms to replace, i.e.

So, finally, our boundary terms can be defined by

which can be written in a vector quite simply. So now we’ve finished all terms in our equation, and we can write the residual as

which can be written as a matrix as

So we have the matrix equation

so we can simplify this to

which can be solved with

at each time step. Then, our approximated concentration is

Finite Element Code

It is difficult to describe the code without looking at it or the documentation, so I’ve put up a FORD generated repository for this code at drfem.

Results

Conclusions