:Author: Ammar Hakim JE4: Two-fluid electromagnetic Riemann problems =============================================== .. contents:: In this entry I present solutions of Riemann problems for two-fluid plasma equations. These problems are not physical but illustrate the basic mathematical structure of two-fluid solution. There are no exact solutions to these problems and reference numerical solutions are published in [Hakim2006]_ and [Loverich2011]_ using two different methods (wave-propagation and discontinuous Galerkin schemes). In this note I test the ability of the wave-propagation scheme to solve the two-fluid equations. Initial conditions ------------------ The initial conditions are two constant states separated at :math:`x=0.5`. The states left and right initial states are given by .. math:: \left[ \begin{matrix} \rho_e \\ u_e \\ v_e \\ w_e \\ p_e \\ \rho_i \\ u_i \\ v_i \\ w_i \\ E_x \\ E_y \\ E_z \\ B_x \\ B_y \\ B_z \end{matrix} \right]_l = \left[ \begin{matrix} 1.0 m_e/m_i \\ 0 \\ 0 \\ 0 \\ 5\times 10^{-5} \\ 1.0 \\ 0 \\ 0 \\ 0 \\ 5\times 10^{-5} \\ 0 \\ 0 \\ 0 \\ 0.75\times 10^{-2} \\ 0.0 \\ 1.0\times 10^{-2} \end{matrix} \right] \qquad \left[ \begin{matrix} \rho_e \\ u_e \\ v_e \\ w_e \\ p_e \\ \rho_i \\ u_i \\ v_i \\ w_i \\ E_x \\ E_y \\ E_z \\ B_x \\ B_y \\ B_z \end{matrix} \right]_r = \left[ \begin{matrix} 0.125 m_e/m_i \\ 0 \\ 0 \\ 0 \\ 5\times 10^{-6} \\ 0.125 \\ 0 \\ 0 \\ 0 \\ 5\times 10^{-6} \\ 0 \\ 0 \\ 0 \\ 0.75\times 10^{-2} \\ 0.0 \\ -1.0\times 10^{-2} \end{matrix} \right] The domain is :math:`0`] with :math:`q_i/m_i = 1`. Significant charge separation is seen. .. figure:: s36-twofluid-shock_up.png :width: 100% :align: center Electron (red) and ion (black) x-velocity (top row) and pressure (bottom row). Case 2: :math:`q_i/m_i = 10` ---------------------------- In this simulation 5000 grid points were used to solve the equations. The results are shown below. .. figure:: s37-twofluid-shock_neni.png :width: 100% :align: center Electron number density (red) compared with ion number density (black) for simulation [:doc:`s37 <../../sims/s37/s37-twofluid-shock>`] with :math:`q_i/m_i = 10`. The charge separation is seen to reduce. .. figure:: s37-twofluid-shock_up.png :width: 100% :align: center Electron (red) and ion (black) x-velocity (top row) and pressure (bottom row). Case 3: :math:`q_i/m_i = 100` ----------------------------- In this simulation 5000 grid points were used to solve the equations. The results are shown below. .. figure:: s38-twofluid-shock_neni.png :width: 100% :align: center Electron number density (red) compared with ion number density (black) for simulation [:doc:`s38 <../../sims/s38/s38-twofluid-shock>`] with :math:`q_i/m_i = 100`. .. figure:: s38-twofluid-shock_up.png :width: 100% :align: center Electron (red) and ion (black) x-velocity (top row) and pressure (bottom row). Case 4: :math:`q_i/m_i = 1000` ------------------------------ .. note:: The claim below that "the limiting time-step for stability is due to the plasma frequency" is no longer true in the latest version of Gkeyll, which implements a locally implicit scheme. A CFL of 1.0 can be used, leading to a 10X speedup in the simulation. In this simulation 5000 grid points were used to solve the equations. With this charge to mass ratio the limiting time-step for stability is due to the plasma frequency. The CFL number needs to be reduced to 0.1 due to which the simulation takes a long time to run (more than 4 hours on a new Mac laptop). The results are shown below. .. figure:: s39-twofluid-shock_neni.png :width: 100% :align: center Electron number density (red) compared with ion number density (black) for simulation [:doc:`s39 <../../sims/s39/s39-twofluid-shock>`] with :math:`q_i/m_i = 1000`. .. figure:: s39-twofluid-shock_up.png :width: 100% :align: center Electron (red) and ion (black) x-velocity (top row) and pressure (bottom row). References ---------- .. [Hakim2006] A. Hakim, J. Loverich, U. Shumlak, "A high resolution wave propagation scheme for ideal Two-Fluid plasma equations", *Journal of Computational Physics*, **219**, 2006. .. [Loverich2011] John Loverich, Ammar Hakim and Uri Shumlak. "A Discontinuous Galerkin Method for Ideal Two-Fluid Plasma Equations", *Communications in Computational Physics*, **9** (2), Pg. 240-268, 2011.