Thoughts on time stepping and MHD

Thoughts on Energy Tracking in AstroBEAR

AstroBEAR does not track the thermal, magnetic, and kinetic energy separately (because it is trying to conserve total energy via conservative fluxing). It does however separately track density, momentum, and magnetic fields - which can be used to derive magnetic and kinetic energy - using thermal energy as a reservoir for discretization errors.

When you have flows that are dominated by non-thermal forms of energy ( or ), discretization errors in total energy (while dynamically unimportant) can still lead to significant relative errors in thermal energy - which can be problematic if there are significant temperature-dependent microphysical processes. In those cases it might be better to solve the thermal energy equation independently and not worry about conserving total energy.

Thoughts on time-stepping

Simulations typically run for a few dynamical times - and for flows that are kinetic energy dominated ( and ) the computational time is independent of the flow speed (only a function of resolution ). However, for flows that are magnetic or thermally energy dominated - the time stepping is limited by the Alfven or sound speeds respectively - and the computational time goes as (ignoring the extra factor of due to changes in the number of zones with resolution)

This can be combined as

This makes simulating the RT instability relatively computational expensive. Alfven waves can also restrict the time stepping when

.

So simulations with modest but very small will also be relatively computational expensive.

High Alfven speeds are also somewhat easier to generate - since the magnetic fields/energy and density are not as tightly coupled as the thermal energy and density - due to material being free to leave along field lines - and the lack of flux freezing when magnetic resistivity is used.

Explicit Magnetic Resistivity

Astrobear currently implements magnetic resistivity explicitly - without subcycling - so time steps are limited by the smaller of the cell diffusion time and the cell crossing time . The cell diffusion time will be smaller than the cell crossing time when

So the computational time to simulate a crossing time will go as

So - you pay a penalty with explicit time stepping when that could be avoided with implicit time stepping.

Simulations involving advection around and diffusion through an obstacle

Simulations involving advection around and diffusion through an obstacle will need to run for the longer of the crossing time around - and the diffusion time within (which is longer than the crossing time by a factor of ) - so in the explicit case we have

Making the resistive solve implicit would reduce this to

Comments

No comments.