Numerical solutions of partial differential equations enable a broad range of scientific research. The Dedalus project is a flexible, open-source, parallelized computational framework for solving general partial differential equations using spectral methods. Dedalus translates plain-text strings describing partial differential equations into efficient solvers. This paper details the numerical method that enables this translation, describes the design and implementation of the codebase, and illustrates its capabilities with a variety of example problems. The numerical method is a first-order generalized tau formulation that discretizes equations into banded matrices. This method is implemented with an object-oriented design. Classes for spectral bases and domains manage the discretization and automatic parallel distribution of variables. Discretized fields and mathematical operators are symbolically manipulated with a basic computer algebra system. Initial value, boundary value, and eigenvalue problems are efficiently solved using high-performance linear algebra, transform, and parallel communication libraries. Custom analysis outputs can also be specified in plain text and stored in self-describing portable formats. The performance of the code is evaluated with a parallel scaling benchmark and a comparison to a finite-volume code. The features and flexibility of the codebase are illustrated by solving several examples: the nonlinear Schrödinger equation on a graph, a supersonic magnetohydrodynamic vortex, quasigeostrophic flow, Stokes flow in a cylindrical annulus, normal modes of a radiative atmosphere, and diamagnetic levitation.
15 December 2016 in Monthly Notices of the Royal Astronomical Society
Asteroseismology probes the interiors of stars by studying oscillation modes at a star's surface. Although pulsation spectra are well understood for solar-like oscillators, a substantial fraction of red giant stars observed by Kepler exhibit abnormally low-amplitude dipole oscillation modes. Fuller et al. (2015) suggest this effect is produced by strong core magnetic fields that scatter dipole internal gravity waves (IGWs) into higher multipole IGWs or magnetic waves. In this paper, we study the interaction of IGWs with a magnetic field to test this mechanism. We consider two background stellar structures: one with a uniform magnetic field, and another with a magnetic field that varies both horizontally and vertically. We derive analytic solutions to the wave propagation problem and validate them with numerical simulations. In both cases, we find perfect conversion from IGWs into magnetic waves when the IGWs propagate into a region exceeding a critical magnetic field strength. Downward propagating IGWs cannot reflect into upward propagating IGWs because their vertical wavenumber never approaches zero. Instead, they are converted into upward propagating slow (Alfvénic) waves, and we show they will likely dissipate as they propagate back into weakly magnetized regions. Therefore, strong internal magnetic fields can produce dipole mode suppression in red giants, and gravity modes will likely be totally absent from the pulsation spectra of sufficiently magnetized stars.
High-precision photometric observations have revealed ubiquitous stochastic low-frequency photometric variability in early-type stars. It has been suggested that this variability arises due to either subsurface convection or internal gravity waves launched by the convective core. Here we show that relevant properties of convection in subsurface convective layers correlate very well with the timescale and amplitude of stochastic low-frequency photometric variability, as well as with the amplitude of macroturbulence. We suggest that low-frequency, stochastic photometric variability and surface turbulence in massive stars are caused by the presence of subsurface convection. We show that an explanation for the observed surface photometric variability and macroturbulence relying on convective core driven internal gravity waves encounters a number of difficulties and seems unlikely to be able to explain the observed trends.
Most stars host convection zones in which heat is transported directly by fluid motion, but the behavior of convective boundaries is not well-understood. Here, we present 3D numerical simulations that exhibit penetration zones: regions where the entire luminosity could be carried by radiation, but where the temperature gradient is approximately adiabatic and convection is present. To parameterize this effect, we define the “penetration parameter” , which compares how far the radiative gradient deviates from the adiabatic gradient on either side of the Schwarzschild convective boundary. Following Roxburgh and Zahn, we construct an energy-based theoretical model in which controls the extent of penetration. We test this theory using 3D numerical simulations that employ a simplified Boussinesq model of stellar convection. The convection is driven by internal heating, and we use a height-dependent radiative conductivity. This allows us to separately specify and the stiffness of the radiative–convective boundary. We find significant convective penetration in all simulations. Our simple theory describes the simulations well. Penetration zones can take thousands of overturn times to develop, so long simulations or accelerated evolutionary techniques are required. In stars, we expect , and in this regime, our results suggest that convection zones may extend beyond the Schwarzschild boundary by up to ∼20%–30% of a mixing length. We present a MESA stellar model of the Sun that employs our parameterization of convective penetration as a proof of concept. Finally, we discuss prospects for extending these results to more realistic stellar contexts.
11 February 2022 in Monthly Notices of the Royal Astronomical Society: Letters
About 10 per cent of intermediate- and high-mass dwarf stars are observed to host a strong large-scale magnetic field at their surface, which is thought to be of fossil field origin. However, there are few inferences as to the magnetic field strength and geometry within the deep interiors of stars. Considering that massive stars harbour a convective core whilst on the main sequence, asteroseismology of gravity (g) modes is able to provide constraints on their core masses, yet it has so far not been used to probe the strength of their interior magnetic fields. Here, we use asteroseismology to constrain an upper limit for the magnetic field strength in the near-core region of the pulsating and magnetic B star HD 43317, based on the expected interaction of a magnetic field and its g modes. We find a magnetic field strength of order 5 × 105 G is sufficient to suppress high-radial order g modes and reproduce the observed frequency spectrum of HD 43317, which contains only high-frequency g modes. This result is the first inference of the magnetic field strength inside a main-sequence star.
The magnetic dynamo cycle of the Sun features a distinct pattern: a propagating region of sunspot emergence appears around 30° latitude and vanishes near the equator every 11 years (ref. 1). Moreover, longitudinal flows called torsional oscillations closely shadow sunspot migration, undoubtedly sharing a common cause2. Contrary to theories suggesting deep origins of these phenomena, helioseismology pinpoints low-latitude torsional oscillations to the outer 5–10% of the Sun, the near-surface shear layer3,4. Within this zone, inwardly increasing differential rotation coupled with a poloidal magnetic field strongly implicates the magneto-rotational instability5,6, prominent in accretion-disk theory and observed in laboratory experiments7. Together, these two facts prompt the general question: whether the solar dynamo is possibly a near-surface instability. Here we report strong affirmative evidence in stark contrast to traditional models8 focusing on the deeper tachocline. Simple analytic estimates show that the near-surface magneto-rotational instability better explains the spatiotemporal scales of the torsional oscillations and inferred subsurface magnetic field amplitudes9. State-of-the-art numerical simulations corroborate these estimates and reproduce hemispherical magnetic current helicity laws10. The dynamo resulting from a well-understood near-surface phenomenon improves prospects for accurate predictions of full magnetic cycles and space weather, affecting the electromagnetic infrastructure of Earth.