Collapse of a magnetized, rotating protostellar core with ideal MHD (left), Ohmic diffusion (middle) and ambipolar diffusion (right).
Although the ideal MHD approximation, which assumes a perfectly conducting fluid, can be justified in many astrophysics applications, it breaks down, e.g., in dense, neutral gas. In this case, the non-ideal MHD effects of Ohmic and ambipolar diffusion and the Hall effect become important. I implemented all three effects for the first time on a moving mesh in AREPO. The core algorithm is a least-square-fit on the interface between computational cells to obtain accurate gradients of the magnetic field required for calculating numerical fluxes. The Hall effect can destabilize numerical schemes; therefore, most studies that include it will increase the numerical diffusion globally. I argue that locally increasing the Ohmic diffusion, if necessary, should be the preferred method. By simulating the collapse of a rotating, magnetized, protostellar core with and without non-ideal MHD, I showed that my implementation is also stable in more complicated setups. The implementation of the diffusive effects are published in one paper and of the Hall effect in another one.
The temporal evolution of different Fourier modes. Their amplitude is normalized by the amplitude of the axisymmetric mode. The black line gives the analytical linear growth rate and the green one the growth rate by mode coupling. The red line represents measurements with a simulation with higher-order flux integration while the blue uses the standard AREPO version.
The Rossby wave instability is a hydrodynamical instability in accretion disks, that can be excited if the potential vorticity as a function of the radius has a local maximum. Simplified one can say, that it exists in regions where the density or temperature strongly changes. Examples are gaps formed e.g. by protoplanets or also at the boundary of the so-called dead zone, in which the magneto-rotational instability is inefficient due to a low ionization rate. The Rossby wave instability leads to the formation of vortices that can merge at later times. The evolution depends strongly on the numerical viscosity, i.e. it can be an ideal test to analyze the diffusivity of a numerical scheme. In this study, we run global, two-dimensional simulations with the moving mesh code AREPO and use a similar setup as in Ono et al. (2018). To further analyze the evolution I implemented a Fourier filter, that is able at run time to filter out specified Fourier modes and allows me to measure the linear growth of individual modes. The results compare very well with the analytical growth rates and we concluded that AREPO on an arbitrary mesh shows similar accuracy as a static mesh code on a polar grid, that is optimized for this problem. We note that the higher-order flux integration discussed below is essential to reduce numerical noise in this setup. The results will be published in a future paper.
The surface density in a simulation with beta = 20 in a two-dimensional box of size 40H x 40H .
Cool, self-gravitating disks can become unstable to the gravitational instability. The gravitational collapse can be counteracted by thermal pressure created by adiabatic compression as well as the global shear in the disk. If the cooling is very efficient, the created heat can be radiated away and the disk can fragment. If the cooling is less efficient the collapse is slowed down and the shear can destroy fragments. In this case, a turbulent state can form. In this project, I implemented a self-gravity solver for the shearing box in two and three dimensions based on the TreePM method. We couple this with the simplified beta-cooling, which only depends on one parameter for the cooling strength. In an extensive study, we analyze the evolution of the system for different box sizes and resolutions as well as cooling strengths. As in previous studies, we find a critical beta below which cooling is efficient enough to let the disk start to form fragments. The results will be published in an upcoming paper.
The temporal evolution of different volume averaged quantities in the simulation shown above.
The characteristic butterfly pattern in the space-time diagram for a stratified shearing box simulation.
The molecular viscosity of diffuse gas is by several orders of magnitude too small to explain the required amount of angular momentum transported in accretion disks. A possible solution is an effective viscosity that can be created by turbulence in the disk, and which in turn can be generated by different fluid instabilities. One of the most promising candidates for the main culprit is the magnetorotational instability (MRI) in ionized regions since it requires only a weak initial field within the limit of ideal MHD. In this study, we employ the implementation of the shearing box approximation in AREPO to study the properties of the MRI. We perform simulations with different setups and compare the results with previous results in the literature. In general, our results compare well with those obtained with static grid codes, although the MRI turbulence seems to be a bit weaker. In unstratified simulations with a zero-net field, the strength of the MRI does not decrease with increasing resolution, which might give a hint that the numerical Prandtl number scales differently than in static grid codes. More information can be found here.
Illustration of the shearing box approximation.
Simulating a whole disk can be quite expensive and also those simulations might lack the spatial resolution to resolve local instabilities. An alternative is the so-called shearing box approximation. One cuts a small cartesian box out of the rotating disk that rotates with the local angular frequency. The equations describing the evolution of the fluid in this box can be derived by a coordinate transformation into the rotating system. In this project, we implemented the shearing box approximation for ideal MHD in the moving mesh code AREPO. This includes two new source terms: the Coriolis force and the effective gravitational force, which is the Taylor expanded difference of the gravitational force of a central object and the centrifugal force. Both terms cancel for a global background shear flow that can be identified with the radial dependence of the rotational velocity in global disks. Due to this shear flow, we additionally had to implement the so-called shearing periodic boundary conditions. In this paper, we show that we achieve second-order convergence with our implementation.
The evolution of the density of a cold keplerian disk rotating around a point mass. On the left side we use the standard first-order accurate flux integration while on the right side we use a third order accurate method. The disk should stay stable but with a first-order accurate integration rule, the mesh noise destabilizes it.
The moving mesh method tries to combine the advantages of particle-based Lagrangian methods with the high accuracy of Eulerian methods on a static mesh. But it is well-known from the literature that it can suffer from so-called grid noise, which means noise on the scale of individual cells. This noise is especially strong in shear flows, which we can find e.g. in rotating disks. During the implementation of the shearing box approximation, we found, that this noise is created by an approximation when we integrate the flux over the surface of a cell. This flux is typical a third-order polynomial but AREPO only used a first-order accurate integration rule. By using higher-order Gauss-Legendre rules this integral can be made exact and the noise disappears. While in two-dimensional simulations the overhead of the additional flux calculations is small, it becomes significant in three-dimensional simulations. To reduce this overhead I implemented an optimized version using explicit vector instruction based on the vectorclass library. This leads for pure ideal MHD simulations to an increased run time of around 30% compared to the original AREPO code. More information can be found in this paper.
AREPO allows to split and merge of cells to locally increase the resolution. I implemented a higher-order scheme that takes into account linear gradients in those processes which then can reduce noise. This is especially important in shearing box simulations that require high accuracy.
A comparison of the strong scaling of GADGET-2 and GADGET-4 for the blob test.
The SPH code GADGET-4 is the open source successor of the widely used code GADGET-2. Most parts of the code are newly written in C++ and it offers a highly optimized implementation of the standard TreePM method as well as the fast multipole method (FMM) to calculate self-gravity between particles. To obtain good parallel scaling behaviour it employs a new MPI/shared-memory parallelization and communication strategy. I implemented and tested for this code mostly the SPH implementation to simulate fluids. It supports the traditional density-based formulation as well as a pressure-based formulation and a time-dependent artificial viscosity scheme. I also implemented optimized versions of the computational kernels, that use explicit vector instructions. More information can be found in the code paper.
During my master thesis I performed simulations of Milky way like disk galaxies with the SPH code GADGET-3. The model included self-gravity, cooling, star formation, stellar feedback based on the work of Dobbs et al. (2011) and static potentials to described the gravitational effects of the dark matter halo, the stellar disk and a bulge. We used the model to analyze structure and especially turbulence in different phases of the ISM. Some results are summarized in an upcoming paper written by a student I cosupervised.
A Bonnor Ebert sphere is a self-gravitating, isothermal sphere that is in hydrostatic equilibrium. One typically assumes that it is confined by an external pressure created by a background medium. Its stability can be described by the non-dimensional radius eta, with instability for eta > 6.45. The pressure equilibrium can be changed if there is an additional, one-sided pressure force that could be caused e.g. by a stellar wind. In this project, I derived analytically a new stability criterion for this case and confirmed it in simulations with the SPH Code GADGET-3. For this project, I also implemented a HEALPix-based feedback model for stellar winds.
On the upper left side I show the stability diagram with the numerical results as black dots and the analytical results which depend on a constant C. Above the lines the BES should become unstable while it is stable below the lines.
On the lower left side, I show plots of the surface density for three different initial etas (one per row) at different times. In all simulations, a sink particle (black dot) formed.
More information can be found in the corresponding paper.
In my bachelor thesis, I analyzed the stability of an inclined layer of mercury to convection. Mercury is a typical liquid metal with a small Prandtl number (Pr = 0.025) and we used the standard setup of Rayleigh-Bénard convection (RBC), inclined by an angle gamma (see left side). The system allows for a heat conducting ground state with a linear temperature profile and a cubic flow profile, which disappear without inclination. Above a critical temperature difference, this state becomes linearly unstable and convection rolls form. For even higher temperature differences secondary instabilities form that can lead to different patterns. Using the standard Oberbeck–Boussinesq equations in combination with a Galerkin method I first analyzed the linear stability of the ground state as a function of gamma. Afterwards, I constructed static, nonlinear convection roll solutions and analyzed their stability towards secondary instabilities. In the end, I performed simulations with a pseudo-spectral code to verify the stability diagrams and analyze the nonlinear behaviour. The results were published here.