[FLASH-USERS] Switching Magnetic Diffusion Solvers in Zpinch Simulations

Hansen, Eddie ehansen at pas.rochester.edu
Mon Mar 25 10:29:32 EDT 2024


Hi Bowen,

We don’t always include descriptions of unit tests in the guide, because these are intended to test specific parts of the code rather than provide users with example setups. The MagDiff test you mentioned is a simple Gaussian diffusion of B-field, which has an analytic solution when the diffusivity is constant.

When you switch to the ‘explicit’ solver, you have to keep a couple of things in mind. The explicit solver is in the Hydro unit, so you need useHydro and updateHydroFluxes to be true. You will also need to be limiting your timestep dt by the magnetic diffusion time, so you need useDiffuseComputeDtMagnetic = .true. and dt_diff_factor should be set to a value <= 1.

--
Eddie Hansen
Applications Group Leader
Flash Center for Computational Science


From: flash-users <flash-users-bounces at flash.rochester.edu> on behalf of Bowen Zhu (Student at CentraleSupelec) <bowen.zhu at student-cs.fr>
Date: Saturday, March 23, 2024 at 3:18 PM
To: flash-users at flash.rochester.edu <flash-users at flash.rochester.edu>
Subject: [FLASH-USERS] Switching Magnetic Diffusion Solvers in Zpinch Simulations
Dear Community,

I'm currently exploring Z-pinch simulations in FLASH, focusing on comparing the explicit and implicit magnetic diffusion solvers. While I aim to validate computation results and address concerns about potential bugs in the implicit solver, I've encountered challenges in switching from the implicit to the explicit solver. Changing resistivitySolver from "implicit" to "explicit" doesn't seem to activate the explicit solver effectively; the simulation results mimic those without applying magnetic resistivity (useMagneticResistivity = .false.), where the plasma remains static.

As someone new to FLASH, I wonder if there are additional steps required to successfully switch to the explicit solver.

Furthermore, in my efforts to validate the solvers' differences, I discovered an example under /magnetoHD/unitTest/MagDiff that seems to implement both solvers. However, I found no description of this example in the user manual or user archives. Could anyone provide insights into the problem this example addresses and any available analytical solutions for reference?

Your guidance on these matters would be immensely appreciated.

Bon weekend,

Best regards,
Bowen ZHU
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20240325/a8672188/attachment.htm>


More information about the flash-users mailing list