SearcharxivSearch

arXiv subjects

Simon Candelaresi

Publications and source records attributed to Simon Candelaresi.

At least 19 recordsLinked to original sources

Massively parallel numerical simulations with Julia

The Julia programming language aims to provide a modern approach to develop high-performance computing (HPC) applications. It tries to achieve this by combining a high-level, dynamic interface with just-in-time compilation to native machine code, thereby facilitating high developer productivity and native code performance at the same time. While this approach has already been shown to work well for serial applications, it is not clear if it readily translates to traditional, massively parallel HPC work loads. In this paper, we fill this gap by analyzing the parallel performance of the numerical computational fluid dynamics simulation code Trixi$.$jl, written in Julia, and compare it to the Fortran code FLUXO. We show some of the challenges of using Julia at scale and discuss possible solutions, specifically with respect to code loading and compilation at startup. Finally, we demonstrate the parallel scaling of our Julia code on up to 61440 CPU cores.

math.NA

Adaptive Multiphysics Coupling for Hyperbolic Systems

For the discontinuous Galerkin code Trixi$.$jl we implement capabilities for adaptively coupling arbitrarily many domains with different physics. The coupling of the systems is realized through the exchange of boundary information and user-definable coupling functions. This gives us the ability to couple systems that do not share a single variable or have a very different number of variables. This is particularly useful when we have a hierarchy of systems. Our implementation is such that we can adaptively select the model of the coupled systems in the course of the simulation. This allows for highly dynamical scenarios as can be found e.g. in astrophysics. The criteria for adaptivity can be user defined and tailored to the physical problem. Compared to computing the most complex model in the entire simulation domain, our method of coupled systems of high and low complexity leads to a significant reduction in computational time with very little overhead.

math.NA

Twisted Magnetic Knots and Links

For magnetic knots and links in plasmas we introduce an internal twist and study their dynamical behavior in numerical simulations. We use a set of helical and non-helical configurations and add an internal twist that cancels the helicity of the helical configurations or makes a non-helical system helical. These fields are then left to relax in a magnetohydrodynamic environment. In line with previous works we confirm the importance of magnetic helicity in field relaxation. However, an internal twist, as could be observed in coronal magnetic loops, does not just add or subtract helicity, but also introduces an alignment of the magnetic field with the electric current, which is the source term for helicity. This source term is strong enough to lead to a significant change of magnetic helicity, which for some cases leads to a loss of the stabilizing properties expressed in the realizability condition. Even a relatively weak internal twist in these magnetic fields leads to a strong enough source term for magnetic helicity that for various cases even in a low diffusion environment we observe an inversion in sign of magnetic helicity within time scales much shorter than the diffusion time. We conclude that in solar and stellar fields an internal twist does not automatically result in a structurally stable configuration and that the alignment of the magnetic field with the electric current must be taken into account.

astro-ph.SR

Stability of plasmas through magnetic helicity

Magnetic helicity, and more broadly magnetic field line topology, impose constraints on the plasma dynamics. Helically interlocked magnetic rings are in a non-trivial topological state. It is harder to bring them into a topologically trivial state than two rings that are not linked. This particular restriction has the consequence that helical plasmas exhibit increased stability in laboratory devices, in the Sun and in the intergalactic medium. Here we discuss how a magnetic field is stabilizing the plasma and preventing it from disruption by the presence of magnetic helicity. We present observational results, numerical experiments and analytical results that illustrate how helical magnetic fields strongly contribute to the long-term stability of some plasmas. We discuss several cases, such as that of solar corona, toroidal fusion devices, the galactic and extragalactic medium, with a special emphasis on extragalactic bubbles.

physics.plasm-ph

On self and mutual winding helicity

The topological underpinning of magnetic fields connected to a planar boundary is naturally described by field line winding. This observation leads to the definition of winding helicity, which is closely related to the more commonly calculated relative helicity. Winding helicity, however, has several advantages, and we explore some of these in this work. In particular, we show, by splitting the domain into distinct subregions, that winding helicity can be decomposed naturally into "self" and "mutual" components and that these quantities can be calculated, in practice, for magnetic fields with complex geometries and topologies. Further, winding provides a unified topological description from which known expressions for self and mutual helicity can be readily derived and generalized. We illustrate the application of calculating self and mutual winding helicities in a simulation of an evolving magnetic field with non-trivial field line topology.

math-ph

Topological Constraints in the Reconnection of Vortex Braids

We study the relaxation of a topologically non-trivial vortex braid with zero net helicity in a barotropic fluid. The aim is to investigate the extent to which the topology of the vorticity field -- characterized by braided vorticity field lines -- determines the dynamics, particularly the asymptotic behaviour under vortex reconnection in an evolution at high Reynolds numbers 25,000. Analogous to the evolution of braided magnetic fields in plasma, we find that the relaxation of our vortex braid leads to a simplification of the topology into large-scale regions of opposite swirl, consistent with an inverse cascade of the helicity. The change of topology is facilitated by a cascade of vortex reconnection events. During this process the existence of regions of positive and negative kinetic helicity imposes a lower bound for the kinetic energy. For the enstrophy we derive analytically a lower bound given by the presence of unsigned kinetic helicity, which we confirm in our numerical experiments.

physics.flu-dyn

Stabilizing effect of magnetic helicity on magnetic cavities in the intergalactic medium

We investigate the effect of magnetic helicity on the stability of buoyant magnetic cavities as found in the intergalactic medium. In these cavities, we insert helical magnetic fields and test whether or not helicity can increase their stability to shredding through the Kelvin-Helmholtz instability and, with that, their lifetime. This is compared to the case of an external vertical magnetic field which is known to reduce the growth rate of the Kelvin-Helmholtz instability. By comparing a low-helicity configuration with a high helicity one with the same magnetic energy we find that an internal helical magnetic field stabilizes the cavity. This effect increases as we increase the helicity content. Stabilizing the cavity with an external magnetic field requires instead a significantly stronger field at higher magnetic energy. We conclude that the presence of helical magnetic fields is a viable mechanism to explain the stability of intergalactic cavities on time scales longer than 100 Myr.

astro-ph.GA

Is there a left-handed magnetic field in the solar neighborhood? Exploring helical magnetic fields in the interstellar medium through dust polarization power spectra

The full-sky Planck polarization data at 850um revealed unexpected properties of the E and B mode power spectra of dust emission in the interstellar medium (ISM). The positive cross-correlation between the total dust intensity, T, with the B modes has raised new questions about the physical mechanisms that affect dust polarization, such as the Galactic magnetic-field structure. This is key both to better understanding ISM dynamics and to accurately describing Galactic foregrounds to the polarization of the Cosmic Microwave Background (CMB). In this theoretical paper we investigate the possibility that the observed cross-correlations in the dust polarization power spectra, and specifically between T and B, can be related to a parity-odd quantity in the ISM such as the magnetic helicity. We produce synthetic dust polarization data, derived from 3D analytical toy models of density structures and helical magnetic fields, to compare with the E and B modes of observations. Focusing on the observed T-B correlation, we propose a new line of interpretation of the Planck observations based on a large-scale helical component of the Galactic magnetic field in the solar neighborhood. Our analysis shows that: I) the sign of magnetic helicity does not affect E and B modes for isotropic magnetic-field configurations; II) helical magnetic fields threading interstellar filaments cannot reproduce the Planck results; III) a weak helical left-handed magnetic field structure in the solar neighborhood may explain the T-B correlation seen in the Planck data. This work suggests a new perspective for the interpretation of the dust polarization power spectra, which strongly supports the imprint of a large-scale structure of the Galactic magnetic field in the solar neighborhood.

astro-ph.GA

Minimum Quadratic Helicity States

Building on previous results on the quadratic helicity in magnetohydrodynamics (MHD) we investigate particular minimum helicity states. Those are eigenfunctions of the curl operator and are shown to constitute solutions of the quasi-stationary incompressible ideal MHD equations. We then show that these states have indeed minimum quadratic helicity.

physics.flu-dyn

Estimating the rate of field line braiding in the solar corona by photospheric flows

In this paper we seek to understand the timescale on which the photospheric motions on the Sun braid coronal magnetic field lines. This is a crucial ingredient for determining the viability of the braiding mechanism for explaining the high temperatures observed in the corona. We study the topological complexity induced in the coronal magnetic field, primarily using plasma motions extracted from magneto-convection simulations. This topological complexity is quantified using the field line winding, finite time topological entropy and passive scalar mixing. With these measures we contrast mixing efficiencies of the magneto-convection simulation, a benchmark flow known as a ``blinking vortex', and finally photospheric flows inferred from sequences of observed magnetograms using local correlation tracking. While the highly resolved magneto-convection simulations induce a strong degree of field line winding and finite time topological entropy, the values obtained from the observations from the plage region are around an order of magnitude smaller. This behavior is carried over to the finite time topological entropy. Nevertheless, the results suggest that the photospheric motions induce complex tangling of the coronal field on a timescale of hours.

astro-ph.SR

Ideal Relaxation of the Hopf Fibration

Ideal MHD relaxation is the topology-conserving reconfiguration of a magnetic field into a lower energy state where the net force is zero. This is achieved by modeling the plasma as perfectly conducting viscous fluid. It is an important tool for investigating plasma equilibria and is often used to study the magnetic configurations in fusion devices and astrophysical plasmas. We study the equilibrium reached by a localized magnetic field through the topology conserving relaxation of a magnetic field based on the Hopf fibration in which magnetic field lines are closed circles that are all linked with one another. Magnetic fields with this topology have recently been shown to occur in non-ideal numerical simulations. Our results show that any localized field can only attain equilibrium if there is a finite external pressure, and that for such a field a Taylor state is unattainable. We find an equilibrium plasma configuration that is characterized by a lowered pressure in a toroidal region, with field lines lying on surfaces of constant pressure. Therefore, the field is in a Grad-Shafranov equilibrium. Localized helical magnetic fields are found when plasma is ejected from astrophysical bodies and subsequently relaxes against the background plasma, as well as on earth in plasmoids generated by e.g.\ a Marshall gun. This work shows under which conditions an equilibrium can be reached and identifies a toroidal depression as the characteristic feature of such a configuration.

physics.plasm-ph

Calculations for the Practical Applications of Quadratic Helicity in MHD

For the quadratic helicity $χ^{(2)}$ we present a generalization of the Arnol'd inequality which relates the magnetic energy to the quadratic helicity, which poses a lower bound. We then introduce the quadratic helicity density using the classical magnetic helicity density and its derivatives along magnetic field lines. For practical purposes we also compute the flow of the quadratic helicity and show that for an $α^2$-dynamo setting it coincides with the flow of the square of the classical helicity. We then show how the quadratic helicity can be extended to obtain an invariant even under compressible deformations. Finally, we conclude with the numerical computation of $χ^{(2)}$ which show cases the practical usage of this higher order topological invariant.

physics.plasm-ph

Quantifying the Tangling of Trajectories Using the Topological Entropy

We present a simple method to efficiently compute a lower limit of the topological entropy and its spatial distribution for two-dimensional mappings. These mappings could represent either two-dimensional time-periodic fluid flows or three-dimensional magnetic fields, which are periodic in one direction. This method is based on measuring the length of a material line in the flow. Depending on the nature of the flow, the fluid can be mixed very efficiently which causes the line to stretch. Here we study a method that adaptively increases the resolution at locations along the line where folds lead to high curvature. This reduces the computational cost greatly which allows us to study unprecedented parameter regimes. We demonstrate how this efficient implementation allows the computation of the variation of the finite-time topological entropy in the mapping. This measure quantifies spatial variations of the braiding efficiency, important in many practical applications.

physics.plasm-ph

Magnetic field relaxation and current sheets in an ideal plasma

We investigate the existence of magnetohydrostatic equilibria for topologically complex magnetic fields. The approach employed is to perform ideal numerical relaxation experiments. We use a newly-developed Lagrangian relaxation scheme that exactly preserves the magnetic field topology during the relaxation. Our configurations include both twisted and sheared fields, of which some fall into the category for which Parker (1972) predicted no force-free equilibrium. The first class of field considered contains no magnetic null points, and field lines connect between two perfectly conducting plates. In these cases we observe only resolved current layers of finite thickness. In further numerical experiments we confirm that magnetic null points are loci of singular currents.

astro-ph.SR

Effects of Fieldline Topology on Energy Propagation in the Corona

We study the effect of photospheric footpoint motions on magnetic field structures containing magnetic nulls. The footpoint motions are prescribed on the photospheric boundary as a velocity field which entangles the magnetic field. We investigate the propagation of the injected energy, the conversion of energy, emergence of current layers and other consequences of the non-trivial magnetic field topology in this situation. These boundary motions lead initially to an increase in magnetic and kinetic energy. Following this, the energy input from the photosphere is partially dissipated and partially transported out of the domain through the Poynting flux. The presence of separatrix layers and magnetic null-points fundamentally alters the propagation behavior of disturbances from the photosphere into the corona. Depending on the field line topology close to the photosphere, the energy is either trapped or free to propagate into the corona.

astro-ph.SR

Superflare occurrence and energies on G-, K- and M-type dwarfs

Kepler data from G-, K- and M-type stars are used to study conditions that lead to superflares with energies above $10^{34} {\rm erg}$. From the 117,661 stars included, 380 show superflares with a total of 1690 such events. We study whether parameters, like effective temperature or the rotation rate, have any effect on the superflare occurrence rate or energy. With increasing effective temperature we observe a decrease in the superflare rate, which is analogous to the previous findings of a decrease in dynamo activity with increasing effective temperature. For slowly rotating stars, we find a quadratic increase of the mean occurrence rate with the rotation rate up to a critical point, after which the rate decreases linearly. Motivated by standard dynamo theory, we study the behavior of the relative starspot coverage, approximated as the relative brightness variation. For faster rotating stars, an increased fraction of stars shows higher spot coverage, which leads to higher superflare rates. A turbulent dynamo is used to study the dependence of the Ohmic dissipation as a proxy of the flare energy on the differential rotation or shear rate. The resulting statistics of the dissipation energy as a function of dynamo number is similar to the observed flare statistics as a function of the inverse Rossby number and shows similarly strong fluctuations. This supports the idea that superflares might well be possible for solar-type G stars.

astro-ph.SR

Mimetic Methods for Lagrangian Relaxation of Magnetic Fields

We present a new code that performs a relaxation of a magnetic field towards a force-free state (Beltrami field) using a Lagrangian numerical scheme. Beltrami fields are of interest for the dynamics of many technical and astrophysical plasmas as they are the lowest energy states that the magnetic field can reach. The numerical method strictly preserves the magnetic flux and the topology of magnetic field lines. In contrast to other implementations we use mimetic operators for the spatial derivatives in order to improve accuracy for high distortions of the grid. Compared with schemes using direct derivatives we find that the final state of the simulation approximates a force-free state with a significantly higher accuracy. We implement the scheme in a code which runs on graphical processing units (GPU), which leads to an enhanced computing speed compared to previous relaxation codes.

physics.plasm-ph

The kinetic helicity needed to drive large-scale dynamos

Magnetic field generation on scales large compared with the scale of the turbulent eddies is known to be possible via the so-called $α$ effect when the turbulence is helical and if the domain is large enough for the $α$ effect to dominate over turbulent diffusion. Using three-dimensional turbulence simulations, we show that the energy of the resulting mean magnetic field of the saturated state increases linearly with the product of normalized helicity and the ratio of domain scale to eddy scale, provided this product exceeds a critical value of around unity. This implies that large-scale dynamo action commences when the normalized helicity is larger than the inverse scale ratio. Our results show that the emergence of small-scale dynamo action does not have any noticeable effect on the large-scale dynamo. Recent findings by Pietarila Graham et al. (2012, Phys. Rev. E85, 066406) of a smaller minimal helicity may be an artifact due to the onset of small-scale dynamo action at large magnetic Reynolds numbers. However, the onset of large-scale dynamo action is difficult to establish when the kinetic helicity is small. Instead of random forcing, they used an ABC-flow with time-dependent phases. We show that such dynamos saturate prematurely in a way that is reminiscent of inhomogeneous dynamos with internal magnetic helicity fluxes. Furthermore, even for very low fractional helicities, such dynamos display large-scale fields that change direction, which is uncharacteristic of turbulent dynamos.

astro-ph.SR