NumMeth-22: Noch mehr MHD

This commit is contained in:
Felix Spanier
2022-12-15 00:13:39 +01:00
parent d3a8a0e7f1
commit c629571eee
+40 -1
View File
@@ -4439,8 +4439,47 @@ To ensure the solenoidality of the magnetic field also for the numerical simulat
The method of Lagrangian multipliers was first implemented by Assous et al. (1993) for the numerical solution of the Maxwell equations. They introduced a Lagrangian multiplier to couple the divergence constraint to the other evolution equations. This idea was extended to the MHD equations by Dedner et al. (2002). They introduced an additional function $\Psi$, which is integrated together with the MHD equations. Generally this variable is introduced to couple the solenoidality constraint to the other equations. This means that the system is extended to the form: The method of Lagrangian multipliers was first implemented by Assous et al. (1993) for the numerical solution of the Maxwell equations. They introduced a Lagrangian multiplier to couple the divergence constraint to the other evolution equations. This idea was extended to the MHD equations by Dedner et al. (2002). They introduced an additional function $\Psi$, which is integrated together with the MHD equations. Generally this variable is introduced to couple the solenoidality constraint to the other equations. This means that the system is extended to the form:
\begin{align} \begin{align}
\diffp{\vec B}{t} = -\nabla\times(\vec u \vec B - \vec u \vec B) - \nabla \Psi \diffp{\vec B}{t} &= -\nabla\times(\vec u \vec B - \vec u \vec B) - \nabla \Psi\\
\mathcal{D}(\Psi) &= - \nabla \cdot \vec{B}
\end{align} \end{align}
with $\mathcal{D}$ some linear differential operator. Of the different possibilities for this operator:
\begin{align}
\mathcal{D}(\Psi) &= \frac{1}{c_h^2}\diffp{\Psi}{t} + \frac{1}{c_p^2}\Psi
\end{align}
could be shown to be the best choice. This results in an evolution equation of the form:
\begin{align}
\partial_t \Psi = -c_h^2 \nabla\cdot\vec B - \frac{c_h^2}{c_p^2}\Psi
\end{align}
This is generally denoted as the mixed generalised Lagrange multiplier (GLM) formulation. The interesting thing about this choice for the operator $\mathcal{D}$ is that it allows for hyperbolic ($c_h$) and parabolic ($c_p$) corrections at the same time. Especially the hyperbolic part is very interesting since it allows the transport of the divergence out of the numerical domain with the velocity $c_h$. Although this method proved to be very efficient for many numerical problems, it is unfortunately not very interesting for our problem. Due to the periodic boundary conditions it is not possible to transport the non-zero divergence out of the
numerical domain. Moreover, the fact that the turbulence is homogeneous means that there is no place in the numerical domain where we can shift the divergence to.
\subsection{Projection Schemes}
An alternative way to get rid of unphysical magnetic monopoles is based on the works by Chorin. In a series of papers he introduced the so-called projection scheme to guarantee the incompressibility of the numerical solution of the Navier-Stokes equation (see Chorin 1967, 1968, 1969). This scheme was first applied to the MHD equations by Brackbill and Barnes (1980). The idea of these schemes is to evolve the MHD equations by some arbitrary numerical scheme and after each time step to project the resulting magnetic induction to a divergence free field. For doing so the magnetic induction is decomposed into the sum of a solenoidal and a divergence containing field:
\begin{align}
\vec B = \nabla \times \vec A + \nabla \Phi
\end{align}
where the scalar field $\Phi$ is responsible for the divergence of the field. Therefore, the field $\vec A$ can be said to be the physically meaningful part of the magnetic induction. Thus, all that has to be done is to subtract this part from the magnetic induction in order to obtain a solenoidal magnetic field. By taking the divergence of the above equation one easily finds an equation determining the scalar field:
\begin{align}
\nabla^2 \Phi = \nabla\cdot\vec B
\end{align}
The essential step, therefore, is to solve this Poisson equation. After this the divergence free magnetic field is easily obtained by:
\begin{align}
\vec B \rightarrow \vec B - \nabla \Phi
\end{align}
The actual solution of the Poisson equation can be obtained by many different methods quite easily. For this work we used a multi-grid solver or a Fourier solver (the latter was used whenever use of the fftw (see Frigo 2004) library was necessary anyhow ) for the solution of this equation. For both solvers we showed the solenoidality of the magnetic field to be assured up to the round off error. For a numerical solver, however, this can only be achieved for one kind of discretisation i.e. we have to decide for one discretisation of the divergence of the magnetic induction – only for this discretisation we will be able to assure the solenoidality. This is also true for any other method to assure the solenoidality of the magnetic field.
Despite the fact that this method yields divergence-free fields to the round off error it proved to be not acceptable for turbulence simulations. This is due to the fact that the method introduces additional small-scale fluctuations, which produce unphysical fluctuation spectra for the highest wavenumbers. There is an unphysical pile up of fluctuation energy at large
wavenumbers for the former solution. This was also observed by Balsara and Kim (2004). They found
that the excessive fluctuation energy at small scales is connected to the decoupling of even and odd grid points which occurs when using a centred finite difference for the representation of the divergence of the magnetic induction. The main problem, however, seems to be connected to spurious magnetic field structures produced by the projection schemes in general, which Balsara and Kim attribute to the non-locality of the projection schemes. This means that the correction does not take local shock structures into account, thus, yielding solutions not being conform to the shock solution anymore. Balsara and Kim identify the constrained transport schemes to be those best suited for turbulence simulations. Therefore, we also rely on such a scheme for our investigations.
\subsection{Constrained Transport Schemes}
The idea with constrained transport schemes is to formulate the equations in a way that the divergence of the magnetic induction vanishes in the desired discretisation. Originally this method was introduced by Evans and Hawley (1988) where the authors introduce a staggered grid for the magnetic induction to maintain the solenoidality of the scheme for finite difference schemes. For this they write the induction equation explicitly via the curl of the electric field:
%- Finite Differenzen %- Finite Differenzen
%- Finite Volumina %- Finite Volumina