# Magnetic, thermal and rotational evolution of isolated neutron stars

## Abstract

The strong magnetic field of neutron stars is intimately coupled to the observed temperature and spectral properties, as well as to the observed timing properties (distribution of spin periods and period derivatives). Thus, a proper theoretical and numerical study of the magnetic field evolution equations, supplemented with detailed calculations of microphysical properties (heat and electrical conductivity, neutrino emission rates) is crucial to understand how the strength and topology of the magnetic field vary as a function of age, which in turn is the key to decipher the physical processes behind the varied neutron star phenomenology. In this review, we go through the basic theory describing the magneto-thermal evolution models of neutron stars, focusing on numerical techniques, and providing a battery of benchmark tests to be used as a reference for present and future code developments. We summarize well-known results from axisymmetric cases, give a new look at the latest 3D advances, and present an overview of the expectations for the field in the coming years.

## Keywords

Neutron stars Pulsars Late stages of stellar evolution Magnetic fields Numerical simulations## 1 Introduction

Neutron stars (NSs), the endpoints of the evolution of massive stars, are fascinating astrophysical sources that display a bewildering variety of manifestations. They are arguably the only stable environment in the present Universe where extreme physical conditions of density, temperature, gravity, and magnetic fields, are realized simultaneously. Thus, they are ideal laboratories to study the properties of matter and the surrounding plasma under such extreme limits. NSs were first discovered as rotation-powered radio *pulsars* (standing for pulsating stars, due to their periodic signal), sometimes called *standard pulsars*, the most numerous class with about three thousand identified members.^{1} The number is continuously increasing thanks to new extended surveys and the use of high-sensitivity instruments like LOFAR (van Haarlem 2013), and a few more thousand sources are expected to be observed by the soon-available Square Kilometre Array. To a lesser extent, NSs have also been observed in X-rays (about one hundred NSs so far), as persistent or transient sources, and/or as \(\gamma \)-ray pulsars (over two hundred and fifty so far). In most cases, this high-energy radiation is non-thermal, originated by particle acceleration (synchro-curvature emission, Zhang and Cheng 1997; Viganò et al. 2015) or Compton up-scattering of lower-energy photons by the particles composing the magnetospheric plasma (Lyutikov and Gavriil 2006).

A particularly intriguing class of isolated NSs are the *magnetars* (Mereghetti et al. 2015; Turolla et al. 2015; Kaspi and Beloborodov 2017), relatively slow rotators with typical spin periods of several seconds and ultra-strong magnetic fields (\(10^{13}\)–\(10^{15}\) G). In most cases, they show a relatively high persistent (i.e., constant over many years) X-ray luminosity (\(L_x \approx 10^{33}\)–\(10^{35} \) erg/s), well exceeding their rotational energy losses, in contrast with radio (standard) and \(\gamma \)-ray pulsars. This leads to the conclusion that the main source of energy is provided by the strong magnetic field, instead of rotational energy, in agreement with the high values of the surface dipolar magnetic field inferred from the timing properties. Magnetars are also identified for their complex transient phenomenology in high energy X-rays and \(\gamma \)-rays, including short (tenths of a second) bursts, occasional energetic outbursts with months-long afterglows (Rea and Esposito 2011; Coti Zelati et al. 2018) and, much more rarely (only three observed so far), giant flares (Hurley et al. 1999; Palmer et al. 2005). During giant flares, the energy release is as large as \(10^{46}\) erg in less than a second. The source of energy of such transient, violent behavior is also generally agreed to be of magnetic origin, as proposed in Thompson and Duncan (1995, 1996). Alternative or complementary power sources, such as accretion, nuclear reactions, or residual cooling from the interior, are less effective to account for the transient activity.

Although isolated NSs have been historically differentiated in sub-classes, mostly based on observational grounds (detectability in X and/or radio, transient vs. persistent properties, and presence/absence of pulsations), there is no sharp boundary between classes, and the distributions of their physical properties, such as the inferred magnetic field, partially overlap. Indeed, the evidence accumulated in the last decade has shown that the presence of a strong dipolar field is not a sufficient condition to trigger observable magnetar-like events and, conversely, there has been an increasing number of *low-magnetic-field magnetars* discovered in the recent past (Rea et al. 2010, 2012, 2014, 2013). They are NSs with relatively low values of the inferred surface dipolar magnetic fields, showing nevertheless magnetar-like activity. Similar activity has been displayed by a couple of *high-magnetic-field radio pulsars* with inferred \(B\sim 10^{13}\) G (Gavriil et al. 2008; Göğüs et al. 2016), and by a puzzling young, extremely slowly spinning NS (Rea et al. 2016), belonging to the so-called sub-class of *central compact objects*, a handful of young NSs surrounded by a supernova remnant, detectable due to a persistent, mostly non-pulsating X-ray emission (De Luca 2017).

It seems now clear that the non-linear, dynamical interplay between the internal and external magnetic field evolution plays a key role to understand the observed phenomenology, and their study requires numerical simulations. Particularly important issues are the transfer of energy between toroidal and poloidal components and between different scales, the location and distribution of long-lived electrical currents within the star, how magnetic helicity can be generated and transferred to the exterior to sustain magnetospheric currents (i.e., how to twist the magnetic field lines), and how instabilities leading to outbursts and flares are triggered. In order to answer all these questions, 2D and 3D numerical simulations are required. The problem is similar to other scenarios in plasma physics or solar physics, but with extreme conditions and additional ingredients (strong gravity and possibly superconductivity). The goal of this paper is to provide an overview of the subject of modeling NS evolution accessible not only to specialists on the subject, but to a wider community including astrophysicists in general, and particularly students. For this purpose, we will review the basic equations and the numerical techniques applied to each part of the problem, with a special focus on the distinctive features of NSs, compared to other stellar sources.

This work is organized as follows. In Sect. 2, the theory of the cooling of NSs is reviewed; the magnetic field evolution is described in detail in Sect. 3, where we discuss the physical processes in different parts of the star. In Sect. 4, we review the specific numerical methods and techniques used to model the magnetic evolution. They can be implemented and tested with the benchmark cases presented in Sect. 5. In Sect. 6 we discuss the challenging coupling between the slowly evolving interior and the force-free magnetosphere, and how it determines the evolution of the spin period. Some examples of realistic evolution models from the recent literature are presented in Sect. 7. Finally, in Sect. 8 we comment on future developments and open issues.

## 2 Neutron star cooling

For a few tens of isolated NSs, the detected X-ray spectra show a clear thermal contribution directly originated from a relatively large fraction of the star surface. For the cases in which an independent estimate of the star age is also available, one can study how temperatures correlate with age, which turns out to be an indirect method to test the physics of the NS interior. The evolution of the temperature in a NS was theoretically explored even before the first detections, in the 1960s (Tsuruta 1964). Today, *NS cooling* is the most widely accepted terminology for the research area studying how temperature evolves as NSs age and their observable effects. We refer the interested reader to the introduction in a recent review (Potekhin et al. 2015b) for a thorough historical overview of the foundations of the NS cooling theory.

According to the standard theory, a proto-NS is born as extremely hot and liquid, with \(T\gtrsim 10^{10}\) K, and a relatively large radius, \(\sim 100\) km. Within a minute, it becomes transparent to neutrinos and shrinks to its final size, \(R\sim 12\) km (Burrows and Lattimer 1986; Keil and Janka 1995; Pons et al. 1999). Neutrino transparency marks the starting point of the *long-term cooling*. At the initially high temperatures, there is a copious production of thermal neutrinos that abandon the NS core draining energy from the interior. In a few minutes, the temperature drops by another order of magnitude to \(T \sim 10^{9}\) K, below the melting point of a layer where matter begins to crystallize, forming the crust. Since the melting temperature depends on the local value of density, the gradual growth of the crust takes place from hours to months after birth. The outermost layer (the envelope, sometimes called the ocean) with a typical thickness \({{{\mathscr {O}}}}(10^2~ \mathrm{m})\), remains liquid and possibly wrapped by a very thin \({{{\mathscr {O}}}(\mathrm{cm})}\) gaseous atmosphere. In the inner core, a mix of neutrons, electrons, protons and plausibly more exotic particles (muons, hyperons, or even deconfined quark matter), the thermal conductivity is so large that the dense core quickly becomes isothermal.

The central idea of NS cooling studies is to produce realistic evolution models that, when confronted with observations of the thermal emission of NSs with different ages (Page et al. 2004; Yakovlev and Pethick 2004; Yakovlev et al. 2008; Page 2009; Tsuruta 2009; Potekhin et al. 2015a), provide useful information about the chemical composition, the magnetic field strength and topology of the regions where this radiation is produced, or even the properties of matter at higher densities deeper inside the star. Two interesting examples are the low temperature (and thermal luminosity) shown by the Vela pulsar, arguably a piece of evidence for fast neutrino emission associated to higher central densities or exotic matter, or the controversial observational evidence for fast cooling of the supernova remnant in Cassiopeia A (Heinke and Ho 2010; Posselt and Pavlov 2018), proposed to be a signature of the core undergoing a superfluid transition (Page et al. 2011; Shternin et al. 2011; Ho et al. 2015; Wijngaarden et al. 2019). We now review the theory of NS cooling, beginning with a brief revision of the stellar structure equations and by introducing notation.

### 2.1 Neutron star structure

*r*, \(\rho \) is the mass-energy density,

*G*is the gravitational constant, and

*c*is the speed of light. The

*lapse*function \(e^{2\nu (r)}\) is determined by the equation

*P*(

*r*), is determined by the Tolman–Oppenheimer–Volkoff equation

In Fig. 1 we show a typical profile of a NS, obtained with the EoS SLy4 (Douchin and Haensel 2001), which is among the realistic EoS supporting a maximum mass compatible with the observations, \(M_{\max }\sim 2.0\)–\(2.2\,M_\odot \) (Demorest et al. 2010; Antoniadis et al. 2013; Margalit and Metzger 2017; Ruiz et al. 2018; Radice et al. 2018; Cromartie et al. 2019). We show the enclosed radius and mass, and the fractions of the different components, as a function of density, from the outer crust to the core. For densities \(\rho \gtrsim 4\times 10^{11}~\text{ g } \text{ cm }^{-3}\), neutrons drip out the nuclei and, for low enough temperatures, they would become superfluid. Note that the core contains about 99% of the mass and comprises 70–90% of the star volume (depending on the total mass and EoS). Envelope and atmosphere are not represented here. For a more detailed discussion we refer to, e.g., Haensel et al. (2007) and Potekhin et al. (2015b).

### 2.2 Heat transfer equation

Spherical symmetry was also assumed in most NS cooling studies during the 1980s and 1990s. However, in the 21st century, the unprecedented amount of data collected by soft X-ray observatories such as Chandra and XMM-Newton, provided evidence that most nearby NSs whose thermal emission is visible in the X-ray band of the electromagnetic spectrum show some anisotropic temperature distribution (Haberl 2007; Posselt et al. 2007; Kaplan et al. 2011) . This observational evidence made clear the need to build multi-dimensional models and gave a new impulse to the development of the cooling theory including 2D effects (Geppert et al. 2004, 2006; Page et al. 2007; Aguilera et al. 2008a, b; Viganò et al. 2013). The cooling theory builds upon the heat transfer equation, which includes both flux transport and source/sink terms.

*Q*(accounting for energy losses by neutrino emission), and the heating power per unit volume

*H*, both functions of temperature, in general. The latter can include contributions from accretion and, more relevant for this paper, Joule heating by magnetic field dissipation. All these quantities (including the temperature) vary in space and are measured in the local frame, with the metric (redshift) corrections accounting for the change to the observer’s frame at infinity.

^{2}

*deep neutron triplet*model.

The bulk of the total heat capacity of a NS is given by the core, where most of the mass is contained. The regions with superfluid nucleons are visible as deep drops of the specific heat. The proton contribution is always negligible. Neutrons in the outer core are not superfluid, thus their contribution is dominant. The crustal specific heat is given by the dripped neutrons, the degenerate electron gas and the nuclear lattice (van Riper 1991). The specific heat of the lattice is generally the main contribution, except in parts of the inner crust where neutrons are not superfluid, or for temperatures \(\lesssim 10^8\) K, when the electron contribution becomes dominant. In any case, the small volume of the crust implies that its heat capacity is small in comparison to the core contribution. For a detailed computation of the specific heat and other transport properties, we recommend the codes publicly available at http://www.ioffe.ru/astro/EIP/, describing the EoS for a strongly magnetized, fully ionized electron-ion plasma (Potekhin and Chabrier 2010).

The second ingredient needed to solve the heat transfer equation is the thermal conductivity (dominated by electrons, due to their larger mobility). For weak magnetic fields, the conductivity is isotropic: the tensor becomes a scalar quantity times the identity matrix. Since the background is spherically symmetric, at first approximation, the temperature gradients are essentially radial throughout most of the star. In this limit, 1D models are accurately representing reality, at least in the core and inner crust. However, for strong magnetic fields (needed to model magnetars), the electron thermal conductivity tensor becomes anisotropic also in the crust: in the direction perpendicular to the magnetic field the conductivity is strongly suppressed, which reduces the heat flow orthogonal to the magnetic field lines.

*magnetization parameter*(Urpin and Yakovlev 1980), \(\omega _B \tau _e\), where \(\tau _e\) is the electron relaxation time and \(\omega _B = eB/m^*_ec\) is the gyro-frequency of electrons with charge \(-e\) and effective mass \(m^*_e\) moving in a magnetic field with intensity

*B*. Equation (6) is only strictly valid in the classical approximation (see Potekhin and Chabrier 2018 for a recent discussion of quantizing effects), but this dimensionless quantity is always a good indicator of the suppression of the thermal conductivity in the transverse direction. We will see later that this is also the relevant parameter to discriminate between different regimes for the magnetic field evolution.

In the low-density region (envelope and atmosphere), radiative equilibrium will be established much faster than the interior evolves. The difference by many orders of magnitude of the thermal relaxation timescales between the envelope and the interior (crust and core) makes computationally unpractical to perform cooling simulations in a numerical grid including all layers up to the star surface. Therefore, the outer layer is effectively treated as a boundary condition. It relies on a separate calculation of stationary envelope models to obtain a functional fit giving a relation between the surface temperature \(T_s\), which determines the radiation flux, and the temperature \(T_b\) at the crust/envelope boundary. This \(T_s - T_b\) relation provides the outer boundary condition to the heat transfer equation. The radiation from the surface is usually assumed to be blackbody radiation, although the alternative possibility of more elaborated atmosphere models, or anisotropic radiation from a condensed surface, have also been studied (Turolla et al. 2004; van Adelsberg et al. 2005; Pérez-Azorín et al. 2005; Potekhin et al. 2012). A historical review and modern examples of such envelope models are discussed in Sect. 5 of Potekhin et al. (2015b). Models include different values for the curst/envelope boundary density, magnetic field intensity and geometry, and chemical composition (which is uncertain).

The first 2D models of the stationary thermal structure in a realistic context (including the comparison to observational data) were obtained by Geppert et al. (2004, 2006) and Pérez-Azorín et al. (2006), paving the road for subsequent 2D simulations of the time evolution of temperature in strongly magnetized NS (Aguilera et al. 2008b, a; Kaminker et al. 2014). In all these works, the magnetic field was held fixed, as a background, exploring different possibilities, including superstrong (\(B\sim 10^{15}\)–\(10^{16}\) G) toroidal magnetic fields in the crust to explain the strongly non-uniform distribution of the surface temperature. Only recently (Viganò et al. 2013), the fully coupled evolution of temperature and magnetic field has been studied with detailed numerical simulations. In the remaining of this section, we focus on the main aspects of the numerical methods employed to solve Eq. (4) alone, and we will return to the specific problems originated by the coupling with the magnetic evolution in the following sections.

### 2.3 Numerical methods for 2D cooling

There are two general strategies to solve the heat equation: spectral methods and finite-difference schemes. Spectral methods are well known to be elegant, accurate and efficient for solving partial differential equations with parabolic and elliptic terms, where Laplacian (or similar) operators are present. However, they are much more tedious to implement and to be modified, and usually require some strong previous mathematical understanding. On the contrary, finite-difference schemes are very easy to implement and do not require any complex theoretical background before they can be applied. On the negative side, finite-difference schemes are less efficient and accurate, when compared to spectral methods using the same amount of computational resources. The choice of one over the other is mostly a matter of taste. However, in realistic problems with “dirty” microphysics (irregular or discontinuous coefficients, stiff source-terms, quantities varying many orders of magnitude, etc), simpler finite-difference schemes are usually more robust and more flexible than the heavy mathematical machinery normally carried along with spectral methods, which are often derived for constant microphysical parameters. For this last reason, here we will discuss the use of finite-difference methods to solve our particular problem.

Let us consider the energy balance equation (4), with the flux given by Eq. (7). We first note that, in axial symmetry, the \(\varphi -\)component of the flux is generally non-zero but need not to be evaluated since it is independent of \(\varphi \), so that its contribution to the flux divergence vanishes. For example, in the case of a purely poloidal field (only \(r,\theta \) components), we can ignore the last term in Eq. (7) because it does not result in the time variation of the temperature. However, in the presence of a significant toroidal component \(B_\varphi \), the last term gives a non-negligible contribution to the heat flux in the direction perpendicular to \({\varvec{\nabla }} (e^\nu T)\) (it acts as a Hall-like term).

In Aguilera et al. (2008a, b) and Viganò et al. (2013) and related works, they assume axial symmetry and adopt a finite-differences numerical scheme. Values of temperature are defined at the center of each cell, where also the heating rate and the neutrino losses are evaluated, while fluxes are calculated at each cell-edge, as illustrated in Fig. 4. The boundary conditions at the center (\(r=0\)) are simply \(\mathbf {F}=0\), while on the axis the non-radial components of the flux must vanish. As an outer boundary, they consider the crust/envelope interface, \(r=R_b\), where the outgoing radial flux, \(F_{\mathrm{out}}\), is given by a formula depending on the values of \(T_b\) and \(\mathbf {B}\) in the last numerical cell. For example, assuming blackbody emission from the surface, for each outermost numerical cell, characterized by an outer surface \(\varSigma _r\) and a given value of \(T_b\) and \(\mathbf {B}\), one has \(F_\mathrm{out}=\sigma _B \varSigma _r T_s^4\) where \(\sigma _B\) is the Stefan–Boltzmann constant, and \(T_s\) is given by the \(T_s - T_b\) relation (dependent on \(\mathbf {B}\)), as discussed in the previous subsection.

A word of caution is in order regarding the treatment of the source term. The thermal evolution during the first Myr is strongly dominated by neutrino emission processes, which enter the evolution equation through a very stiff source term, typically a power-law of the temperature with a high index (\(T^8\) for modified URCA processes, \(T^6\) for direct URCA processes). These source terms cannot be handled explicitly without reducing the time step to unacceptable small values but, since they are local rates, linearization followed by a fully implicit discretization is straightforward and results in the redefinition of the source vector and the diagonal terms of the matrix. A very basic description to deal with stiff source terms can be found in Sect. 17.5 of Press et al. (2007). This procedure is stable, at the cost of losing some precision, but it can be improved by using more elaborated implicit-explicit Runge–Kutta algorithms (Koto 2008).

### 2.4 Temperature anisotropy in a magnetized neutron star

*z*-axis, which causes the anisotropic diffusion of heat. Assuming constant conductivities, and neglecting relativistic effects, the following analytical solution for the temperature profile can be obtained for \(t>t_0\):

To conclude this section, the induced anisotropy in a realistic NS reported by Pérez-Azorín et al. (2006) is shown in Fig. 6. The figure shows equilibrium thermal solutions, in the absence of heat sources and sinks. The core temperature is kept at \(5\times 10^7\) K, and the surface boundary condition is given by the \(T_s-T_b\) relation, assuming blackbody radiation. The poloidal component is the same in all models (\(B_p = 10^{13}\) G). The effect of the magnetic field on the temperature distribution can be easily understood by examining the expression of the heat flux (7). When \(\omega _B \tau _e \gg 1\), the dominant contribution to the flux is parallel to the magnetic field and proportional to \(\mathbf {b}\cdot \nabla (e^\nu T)\). Thus, in the stationary regime (i.e., \(\nabla \cdot (e^{2\nu }\mathbf {F})=0\) if no sources are present), the temperature distribution must be such that \(\mathbf {b} \perp \nabla (e^\nu T)\): magnetic field lines are tangent to surfaces of constant temperature. This is explicitly visible in the left panel, which corresponds to the stationary solution for a purely poloidal configuration with a core temperature of \(5 \times 10^7\) K. Only near the surface, the large temperature gradient can result in a significant heat flux across the magnetic field lines. When we add a strong toroidal component, the Hall term (proportional to \(\omega _B \tau _e\)) in Eq. (7), activates meridional heat fluxes which lead to a nearly isothermal crust. The central panel shows the temperature distribution for a force-free magnetic field with a global toroidal component, present in both the crust and the envelope. The right panel shows a third model with a strong toroidal component confined to a thin crustal region (dashed lines). It acts as an insulator maintaining a temperature gradient between both sides of the toroidal field.

## 3 Magnetic field evolution in the interior of neutron stars: theory review

The interior of a NS is a complex multifluid system, where different species coexist and may have different average hydrodynamical velocities. In most of the crust, for instance, nuclei have very restricted mobility and form a solid lattice. Only the “electron fluid” can flow, providing the currents that sustain the magnetic field. In the inner crust superfluid neutrons are partially decoupled from the heavy nuclei, providing a third neutral component. In the core, the coexistence of superfluid neutrons and superconducting protons makes the situation even less clear. Since a full multifluid, reactive MHD-like description of the system is far from being affordable, one must rely on different levels of approximation that gradually incorporate the relevant physics. In this section we give an overview of the theory, trying to capture the most relevant processes governing the magnetic field evolution in a relatively simple mathematical form. For consistency with the previous section, we assume the same spherically symmetric background metric and we keep track of the most important relativistic corrections.

### 3.1 Ohmic dissipation

*vector diffusion equation*:

*T*and

*B*shown for the thermal conductivity in Fig. 3. Since, neglecting inelastic scattering, both thermal and electrical conductivities are proportional to the collision time \(\tau _e\), they share some trends: the suppression of the conduction in the direction orthogonal to a strong magnetic field, and the quantizing effects visible as oscillations around the classical value (Potekhin et al. 2015b; Potekhin and Chabrier 2018). We note that, if inelastic scattering contributes significantly, \(\tau _e\) can be different for thermal and electrical conductivities.

### 3.2 The Hall drift

The vast majority of the existing studies of magnetic field evolution in NS crust (Hollerbach and Rüdiger 2002, 2004; Pons and Geppert 2007; Reisenegger et al. 2007; Pons et al. 2009; Kondić et al. 2011; Viganò et al. 2012, 2013; Gourgouliatos et al. 2013; Marchant et al. 2014; Gourgouliatos and Cumming 2014b, 2015; Gourgouliatos et al. 2015; Wood and Hollerbach 2015) are restricted to 2D simulations, but the few recent 3D simulations suggest that the main aspects of 2D results partially hold: although the Hall term itself conserves energy, the creation of small-scale structures results in an enhanced Ohmic dissipation. Some distinctive 3D features are the Hall-induced, small scale, azimuthal magnetic structures that seem to persist on long timescales (see Sect. 7).

### 3.3 Plasticity and crustal failures

The main idea for the Hall-MHD description of the crust is that ions are locked in the crustal lattice and only electrons are mobile. However, molecular dynamics simulations (Horowitz and Kadau 2009) show that the matter has an elastic behavior until certain maximum stress. Above it, the magnetic stresses, quantified by the Maxwell tensor \({{{\mathscr {M}}}} \equiv B_iB_j/4\pi \), cannot be compensated by the elastic response (a more rigorous global condition is the von Mises criterion applied in Lander et al. 2015). Crustal failures are treated in the most simplified manner as *star-quakes*. By evaluating the accumulated stress, Pons and Perna (2011) and Perna and Pons (2011) simulated the frequency and energetics of the internal magnetic rearrangements, which was proposed to be at the origin of magnetar outbursts. This model mimics earthquakes since, under terrestrial conditions, the low densities of the material allow for propagation of sudden fractures: the Earth mantle in this sense can be thought as brittle. However, materials subject to very slow shearing forces could behave differently and enter a plastic regime where, instead of sudden crustal failures, a slow plastic flow takes place. Despite the different dynamics, the energetic arguments relating the release of energy due to the accumulation of magnetic stresses are similar. Recent simulations (Lander and Gourgouliatos 2019) show the features of such plastic flow under the assumption of Stokes flow, where a viscous term balances magnetic and elastic stresses. They compare the crustal response under Ohmic and Hall evolution and find that there can be significant plastic-like motions in the external layers of the star. Similar arguments have also been proposed to account for the deposition of heat by the visco-plastic flow and the propagation of thermo-plastic waves (Beloborodov and Levin 2014). Depending on which hypotheses we make, the interpretation of the *velocities* in the advective term (\(\mathbf {v} \times \mathbf {B}\)) of the induction equation requires a proper physical and mathematical approach.

### 3.4 Ambipolar diffusion in neutron star cores

The number of works concerning mechanisms operating in NS cores is sensibly smaller, and most contain far less detail than the studies of the crust. Owing to its cubic dependence on *B*, ambipolar diffusion could be the dominant process driving the evolution of magnetars during the first \(10^3\)–\(10^5\) yr, although there is some controversy. In particular, we refer the reader interested in the role of chemical potential gradients, which is out of the scope of this review, to the literature. For example, Goldreich and Reisenegger (1992) or Passamonti et al. (2017b) derived an elliptic equation from the continuity and momentum equations to determine the small deviations from beta equilibrium. However, Gusakov et al. (2017) question the validity of that approach in stratified matter, and obtain a different equation from the momentum equation (implicitly assuming magnetostatic equilibrium), in which the small deviations of the chemical potentials from their equilibrium values do not depend on temperature and are determined by the Lorentz force. With the same methodology, Ofengeim and Gusakov (2018) calculate the instantaneous particle velocities and other parameters of interest, determined by specifying the magnetic field configuration, and found that the evolution timescales could be shorter than expected.

Most previous works studying ambipolar diffusion rely on timescale estimates, with few exceptions. Simulations are only available in a simplified 1D approach (Hoyos et al. 2008, 2010) and very recently in 2D (Castillo et al. 2017; Passamonti et al. 2017b; Bransgrove et al. 2018), usually for constant coefficients. However, in a realistic scenario, there is a further complication. The NS core cools down below the neutron-superfluid and proton-superconducting critical temperatures very fast, which has important implications, sometimes controversial. Goldreich and Reisenegger (1992) argued that ambipolar diffusion would still be a significant process, but Glampedakis et al. (2011) studied in detail the ambipolar diffusion in superfluid and superconducting stars and concluded that its role on the magnetic field evolution would be negligible. Other recent works (Graber et al. 2015; Elfritz et al. 2016) have also shown that, without considering ambipolar diffusion, the magnetic flux expulsion from the NS core with superconducting protons is very slow. In Passamonti et al. (2017a) the various approximations employed to study the long-term evolution of the magnetic field in NS cores were revisited, solving a recent controversy (Graber et al. 2015; Dommes and Gusakov 2017) on the correct form of the induction equation and the relevant evolution timescale in superconducting NS cores.

### 3.5 Mathematical structure of the generalized induction equation

In order to understand the dynamical evolution of the system and to design a successful numerical algorithm, it is important to identify the mathematical character of the equations and the wave modes. The magnitude of \(\omega _B \tau _e\) defines the transition from a purely parabolic equation (\(\omega _B \tau _e \ll 1\)) to a hyperbolic regime (\(\omega _B \tau _e \gg 1\)). The Hall term introduces two wave modes into the system. Huba (2003) has shown that, in a constant density medium, the only modes of the Hall-MHD equation are the *whistler or helicon waves*. They are transverse field perturbations propagating along the field lines. In presence of a charge density gradient, additional *Hall drift waves* appear. These are transverse modes that propagate in the \(\mathbf {B} \times {\varvec{\nabla }} n_e\) direction. We also note that the presence of charge density gradients results in a Burgers-like term (Vainshtein et al. 2000). Furthermore, even in the constant density case but without planar symmetry, the evolution of the toroidal component also contains a quadratic term that resembles the Burgers equation (Pons and Geppert 2007) with a coefficient dependent on the distance to the axis. This term leads to the formation of discontinuous solutions (current sheets) that require proper treatment. It is fundamental for a numerical Hall-MHD code to reproduce these modes and features, which are easily testable, as illustrated in Sect. 5.

## 4 Magnetic field evolution in the interior of neutron stars: numerical methods

In this section, we go through the most relevant aspects of numerical methods. The first important choice is the formalism to be adopted. There are two options: (i) to work directly with the magnetic field components, which does not require any further mathematical manipulation but implies to care about how to preserve the divergence-free condition, and (ii) exploiting the solenoidal constraint to work with only two functions representing the two true degrees of freedom instead of three components: the so-called poloidal–toroidal decomposition (see Appendix A). Finite-difference schemes have been developed for both formalisms, while spectral methods more often built on the poloidal–toroidal decomposition. We begin with an overview of spectral methods, before turning into some key aspects of finite-difference schemes.

### 4.1 Spectral methods with the toroidal–poloidal decomposition

The first multi-dimensional (2D) simulations of the evolution of the crustal magnetic field assumed a constant density shell (Hollerbach and Rüdiger 2002) and were later extended to include density gradients (Hollerbach and Rüdiger 2004). They used an adapted version of the spherical harmonic code described in Hollerbach (2000), including modes up to \(l =100\), and 25 Chebychev polynomials in the radial direction, but they were restricted to \(\omega _B \tau _e<200\) by numerical issues. In Pons and Geppert (2007) and Pons et al. (2009), they used a hybrid code (spectral in angles but finite-differences in the radial direction) to perform 2D simulations in realistic profiles of NSs over relevant timescales (typically, Myr). This approach allowed us to reach higher values of the magnetization parameter (\(\omega _B \tau _e \approx 10^3\)), and to study the Hall instability (Pons and Geppert 2010). The same approach is used in the 3D simulations of Wood and Hollerbach (2015) and Gourgouliatos et al. (2016), which were limited to magnetization parameters of the order of \(\simeq 100\). The main problem arises from the presence of non-linear Burgers-like terms, which naturally lead to discontinuities (see Sect. 3.5), which are notoriously poorly handled by spectral codes. For this reason, subsequent works aiming at extending the simulations to more general cases have been gradually shifting towards the use of finite-difference schemes.

### 4.2 Finite-difference and finite-volume schemes

To study the interesting magnetar scenario in detail, the numerical codes must be able to go a bit further. In Viganò et al. (2012), a novel approach making use of the well-know High-Resolution Shock-Capturing (HRSC) techniques (Toro 1997), designed to handle shocks in hydrodynamics and MHD, was proposed. These techniques have been successfully applied to a range of problems, from a simple 1D Burgers equation to complex ideal MHD problems (Antón et al. 2006; Giacomazzo and Rezzolla 2007; Cerdá-Durán et al. 2008), avoiding the appearance of spurious oscillations near discontinuities. We refer to Martí and Müller (2015) for a general review on grid-based methods and to Balsara (2017) for a review on finite-volume methods, applied to other astrophysical scenarios. Let us review some of the main characteristics of these methods, of particular interest in our problem.

#### 4.2.1 Conservation form and staggered grids

*k*identifies each of the four edges of the face. For clarity, in this section, we omit relativistic metric factors that must be consistently incorporated in the definitions of lengths, areas, and volumes.

#### 4.2.2 Evaluation of the current and the electric field

By considering the allocation of the components in the staggered grid (Fig. 8), the components of the current density can be naturally defined along the edges of the cells, in the same positions as the electric field components, exploiting the discretized version of the Stokes’ theorem applied to \(\mathbf {j}\propto {\varvec{\nabla }}\times (\mathrm {e}^\nu \mathbf {B})\). Therefore, the ohmic term in the electric field can be directly evaluated, but the other terms involving vector products require special care since they involve products of field components that are not defined at the same place as the desired electric field component. The simplest option is a direct interpolation of both \(\mathbf {v}\) and \(\mathbf {B}\) using the first neighbors, but this often results in numerical instabilities.

*upwind*components \({\overline{B}}_\alpha ^w\) of the magnetic field at each interface. For example, in the axisymmetric case and considering the evolution of the poloidal components (\(B_r, B_\theta \)), the contributions of \(E_r\) and \(E_\theta \) to the circulation cancel out and we only need to evaluate the contribution of \(E_\varphi \), which is given by

#### 4.2.3 Divergence cleaning methods in finite-difference schemes

*divergence-cleaning*schemes built on standard grids (all components of the fields are defined and evolved at every grid node). A popular divergence-cleaning method (Dedner et al. 2002), extensively used in MHD, consists in the extension of the system of equations as follows:

#### 4.2.4 Cell reconstruction and high-order accuracy

The original upwind (Godunov’s) method is well known for its ability to capture discontinuous solutions, but it is only first-order accurate: the variables are assumed to be constant on each cell. This method can be easily extended to give second-order spatial accuracy on smooth solutions, but still avoiding non-physical oscillations near discontinuities, by using a reconstruction procedure that improves the piecewise constant approximation.

*monotonized central-difference limiter*, proposed by van Leer (1977). Given three consecutive points \(x_{i-1},x_i,x_{i+1}\) on a numerical grid, and the numerical values of the function \(f_{i-1},f_i,f_{i+1}\), the reconstructed function within the cell

*i*is given by \(f(x)=f(x_i)+ \alpha (x-x_i)\), where the slope is

### 4.3 Courant condition and time advance

*L*is a typical distance in which the magnetic field varies (e.g., the curvature radius of the lines), \(\varDelta l\) is the minimum length of the cell edges in any direction. In the case of a spectral code, \(\varDelta l \simeq L_{dom}/n_{max}\), i.e., the ratio between the length of the dominion and the maximum number of multipoles calculated.

Recent work (González-Morales et al. 2018) includes other stabilizing techniques introduced in O’Sullivan and Downes (2006) for the time advance of the non-linear terms. These techniques, namely the Super Time-Stepping and the Hall Diffusion Schemes, allow us to maintain stability and efficiently speed up the time evolution when the ambipolar or the Hall term dominates. Another common technique is the use of high-order dissipation (also called hyper-resistivity; Huba 2003), or a predictor-corrector step advancing alternatively different field components.

starting from \(\mathbf {B}^n\), all currents and electric field components are calculated

\(\mathbf {B}^n\rightarrow \mathbf {J}^n\rightarrow \mathbf {E}^n\);

the toroidal field \(\mathbf {B}_t^{n}\) is updated: \(\mathbf {E}^n \rightarrow \mathbf {B}_t^{n+1}\);

the new values \(\mathbf {B}_t^{n+1}\) are used to calculate the modified current components and the toroidal part of the electric field \(\mathbf {E}_t\): \(\mathbf {B}_t^{n+1} \rightarrow \mathbf {J}_p^\star \rightarrow \mathbf {E}_t^\star \);

finally, we use the values of \(\mathbf {E}_t^\star \) to update the poloidal components \(\mathbf {E}_t^\star \rightarrow \mathbf {B}_p^{n+1}\).

In the finite-difference schemes of Viganò et al. (2019), the authors used a fourth-order Runge–Kutta scheme and found that the instabilities are especially significant when using fifth-order-accurate methods for the flux reconstruction (i.e., WENO5), which needed to be combined with the application of artificial Kreiss–Oliger dissipation along each coordinate direction (Calabrese et al. 2004). A sixth-order derivative dissipation operator has a similar stabilizing effect, filtering the high-frequency modes which can not be accurately resolved by the numerical grid, at the cost of a potential loss of accuracy (Viganò et al. 2019). For this reason, they recommend using third-order schemes, that do not require any additional artificial Kreiss–Oliger dissipation. The typical Courant factors used were again quite low, \(k_c \approx 10^{-2}\)–\(10^{-1}\).

The most advanced 3D code currently available (Wood and Hollerbach 2015; Gourgouliatos and Cumming 2015; Gourgouliatos et al. 2015, 2016; Gourgouliatos and Hollerbach 2018) uses spherical harmonic expansions of the magnetic potential functions for the angular directions (see Appendix A), and a discretized grid in the radial one. The linear Ohmic terms are evaluated using a Crank–Nicolson scheme, while for the non-linear Hall terms an Adams–Bashforth scheme is used. The code is parallelized by considering spherical shells and uses the infrastructure of the PARODY code (Dormy et al. 1998; Aubert et al. 2008). Further details are available in Gourgouliatos et al. (2016).

## 5 Numerical tests

In order to calibrate the performance of numerical methods or algorithms, it is crucial to provide analytical solutions against which the numerical results can be confronted. Unfortunately, there are not many such solutions in the 3D case with arbitrary coefficients in the generalized Ohm’s law. For reference, we collect in this section a number of testbed cases with analytical solutions (most of them used in previous works Viganò et al. 2012, 2019), which probe different terms the induction equation. The successful completion of this battery of tests should be a good indicator of the performance of the codes. For the smooth tests below, Sects. 5.1, 5.2, 5.4, 5.5, one can also check the convergence order of the numerical scheme, by computing the dependence of the relative errors (assessed for instance by a L2-norm) on the resolution used. The remaining two tests, where discontinuities form, are instead useful to test the robustness of the code, because near discontinuous solutions the convergence reduces to first order, regardless of the scheme. In all the following tests, we work in the Newtonian limit, \(e^\nu =e^\lambda =1\).

### 5.1 Whistler waves

*whistler*or

*helicon waves*(see Sect. 3.5), which consist in transverse field perturbations propagating along the magnetic field lines (notably known also in the terrestrial ionosphere Helliwell 1965; Nunn 1974). The first test we discuss is to follow the correct propagation of whistler waves. Consider a two-dimensional slab, extending from \(z=-L\) to \(z=+L\) in the vertical direction, with periodic boundary conditions in the

*x*-direction, and assume that all variables are independent of the

*y*-coordinate. For the following initial magnetic field:

*x*-direction, that is, the same Eq. (34) replacing

*x*by \((x - v_w t)\), where the speed

### 5.2 Hall drift waves

*Hall drift waves*, which propagate in the \(\mathbf {B} \times {\varvec{\nabla }} n_e\) direction. Let us consider the same domain as in the previous test, but with a stratified background in the

*y*-direction with \(n_e\) given by

*x*-direction, while in the

*y*-direction, an infinite domain can be simulated by copying the values of the magnetic field in the uppermost and lowermost cells (\(y=\pm L\)) into their first neighbor ghost cells.

*x*-direction with speed

*x*by \((x - v_{hd} t)\) in Eq. (38). For the particular model shown in Fig. 11, with \(B_0=10^3~B_1, k_x=\pi /2, L=1\) and \(\beta _L=0.2\), we have a horizontal drift velocity of \(v_{hd}=0.2 L/\tau _0\), corresponding to a crossing time of 20 \(\tau _0\). The figure shows the initial configuration of \(B_z\) (top left) and the evolution of the perturbation after 0.5, 1.25 and 2 crossing times, respectively (top right, bottom left and bottom right). The shadow increases with the value of 1 /

*n*(

*y*). For the Hall drift modes, the propagation velocity scales linearly with both \(B_0\) and the gradient of \(n_e^{-1}\), but it is independent of the wavenumber of the perturbation. All these properties are correctly reproduced. After many cycles (the number depending on the \(B_1/B_0\) ratio), deviations from the purely advected, smooth solution begin to be visible. This is an expected non-linear effect that we discuss next.

### 5.3 The nonlinear regime and Burgers flows

*z*-direction. Assuming that \(B_x=B_z=0\), the governing equation reduces to:

*x*-direction with a coefficient that depends on the

*z*coordinate:

^{3}. A key issue is to consider the Burgers-like term in conservation form:

### 5.4 Ohmic dissipation: self-similar axisymmetric force-free solutions

### 5.5 Ambipolar diffusion: the Barenblatt–Pattle solution

To test the ambipolar term, we now consider the case of a constant \(f_a\) and set to zero the Hall and Ohmic coefficients. In axial symmetry and cylindrical coordinates, there exists an analytical solution corresponding to the diffusion of an infinitely long magnetic flux. Let us consider the evolution of the only component of the magnetic field \(\mathbf {B}= B_z {\hat{z}}\), in the direction of the fluxtube, which only depends on the cylindrical radial coordinate (\(\varpi \)).

*m*is a power index. The analytical 2D solutions proposed by Barenblatt (1952) and Pattle (1959) consist of a delta function of integral \(\varGamma \) at the origin, which diffuses outwards with finite velocity. We note that the diffusion front is clearly defined, contrarily to the infinite front speed of a linear diffusion problem. This analytic solution can be explicitly written as follows:

*d*is the dimension of the problem, and \(\alpha =(m-1+2/d)^{-1}\). The initial pulse spreads with a front located at a distance \(\varpi _f\) from the origin, given by

### 5.6 Evolution of a purely toroidal magnetic field

Finally, to conclude our proposed series of tests and examples, we consider the evolution of a pure toroidal magnetic field confined into a spherical shell, \(R_{\mathrm{core}}<r<R\), under the combined action of both Ohmic dissipation and the Hall term. This case does not have an analytical solution, but we believe it is an important (yet relatively simple) test that can highlight some relevant issues. For simplicity, we impose as boundary conditions that all components of the magnetic field vanish at both boundaries.

According to the Hall induction equation, any initial toroidal configuration must remain purely toroidal during the evolution, but its shape and location (and the associated currents) vary with time. As discussed in the literature (Hollerbach and Rüdiger 2002; Pons and Geppert 2007; Viganò et al. 2012), the evolution has two characteristics: (i) a vertical drift, northward or southward depending on the sign of \(B_\varphi \); (ii) a drift towards the interior of the star due to the existence of a charge density gradient. In the top panels of Fig. 15 we show three snapshots of the evolution of an ultra-strong toroidal field (\(B_t^0=3\times 10^{15}\) G), such that the first effect (drift towards the equator of both rings) occurs faster. In this model the maximum value of \(\omega _B\tau _e\) is \(\approx 300\), although it varies throughout the crust. After 1000 yr, a radial current sheet (i.e., a sharp discontinuity of the toroidal magnetic field in the meridional direction) is created in the equator and Ohmic dissipation is locally enhanced. We also notice a global drift towards the interior: compare the distance to the surface of the models at \(t=1000\) and \(t=3000\) yr. The bottom panels show the evolution of the initial model with the reverse sign. We observe how the drift proceeds in the opposite direction, creating a strong toroidal ring around the axes, near the poles. This simple model is useful to understand the evolution when the initial toroidal field is dominant, even in the presence of a weaker poloidal field. As Geppert and Viganò (2014) have shown, starting with a very large fraction (\(\gtrsim 99\%\)) of magnetic energy stored in the toroidal component is a potential way to create local magnetic spots near the poles, where the lines are more concentrated and the magnetic field intensity can be one or two orders of magnitude higher than the average value.

This was one of the simplest possible initial configurations, yet capturing interesting physics. When we introduce an initial poloidal component, higher multipoles, stratified microphysical (Ohmic/ambipolar) coefficients, etc., it becomes non-trivial to design benchmark tests. In Sect. 7, we give a summary of previous attempts to gradually approach realistic scenarios.

## 6 Magnetosphere-interior coupling and rotational evolution

An open issue in realistic simulations of the magnetic field evolution of NSs concerns the correct implementation of boundary conditions at the star surface. In the external region of a NS, the mass density is over twenty orders of magnitude smaller than in the outer crust, where numerical grids usually end. One needs to match two regions, with radically different physical conditions and timescales, through the thin (\(\approx 100\) m) layer between them. The usual procedure is to assume that, on the slow secular evolution timescales, the exterior is immediately readjusted (light crossing timescale) to the stationary solution imposed by the surface values of magnetic fields and currents. In other words, for long timescales, the magnetosphere can be seen as a perfect conductor where currents quickly respond to cancel electromagnetic forces out. Thus, the interior evolution provides the surface values of the field that determine the external configuration. However, in a numerical code the interior also needs, at each time step, a recipe for the outer boundary condition to proceed with the evolution, so both problems are interlinked and must be consistently treated.

Under the assumption that the dynamics of the magnetosphere is dominated by the electro-magnetic field, and the plasma pressure as well as its inertia are negligible, a reasonable approximation is to consider that the large-scale structure of the magnetosphere is given by force-free configurations, in which the electric and magnetic forces on the plasma balance each other. For magnetar conditions, one can safely neglect the effects of rotation in the magnetospheric region near the star. Under this approximation, which we follow hereafter, the electric force is neglected (\(\mathbf {E} = - \mathbf {v} \times \mathbf {B}\), with \(v \ll c\)). Thus, the force-free condition reduces to \(\mathbf {j}\times \mathbf {B}=0\): the electric currents flow parallel to the magnetic field lines that they sustain (since \(\mathbf {j} \propto \nabla \times \mathbf {B}\), a force-free magnetic field is a Beltrami vector field). Within the family of possible solutions, the most trivial (and popular) one is the current-free, or potential solution, \(\mathbf {j}= 0\), which also holds in vacuum. Matching the interior magnetic field to a magnetospheric potential field is equivalent to physically avoid that the current escapes (enters) from (into) the star, although the non-vanishing Poynting flux across the boundary allows the two regions to interchange magnetic energy (but not magnetic helicity).

While the potential solution is acceptable as a first approximation, to advance toward more realistic models, we need more general solutions. As a matter of fact, electrical currents can stably flow in the closed magnetic field line region, similar to the Solar coronal loops. The current system lasts on relatively long timescales, from months to decades (Beloborodov 2009), presumably sustained by the interior dynamics. There is indirect observational evidence of such currents in some magnetars, where the presence of a plasma much denser than the Goldreich-Julian value has been inferred. Soft X-ray photons emitted from the star surface are up-scattered to higher energy (Lyutikov and Gavriil 2006; Rea et al. 2008; Beloborodov 2013) through resonant Compton processes, resulting in the observed spectra. Equilibrium solutions of force-free twisted magnetospheres in the magnetar context were considered by several recent works (Fujisawa and Kisaka 2014; Glampedakis et al. 2014; Pili et al. 2015; Akgün et al. 2016; Kojima 2017). However, the evolution of the interior sometimes leads to solutions that cannot be smoothly connected to a force-free solution. This implies discontinuities in the tangential components at the surface, corresponding to current sheets, that may cause numerical instabilities.

While rotation has negligible effects on the magnetic evolution, the opposite is not true: the spin period evolves due to electromagnetic torques determined by the magnetospheric configuration. Compared to the magnetic and thermal evolution, the equations describing the rotational evolution are simpler, but they predict the observable timing properties of isolated NSs. In the remaining of this section we review the methodology to prescribe boundary conditions to the magnetic field when one solves the induction equation with different types of code, commenting on some problems that arise at the practical level, and we provide the recipe for the rotational evolution.

### 6.1 Potential boundary conditions

*Spectral methods.*Using the same notation as in Sect. 4.1 for the poloidal/toroidal decomposition, the requirement that all components of the magnetic field be continuous (no current sheets at the surface) implies that the scalar potentials \(\varPhi _{nm}\) and \(\varPsi _{nm}\), and their derivatives \(\frac{\partial \varPhi _{nm}}{\partial r}\), are continuous through the outer boundary. Therefore, the \(\nabla \times \mathbf {B}= 0\) condition translates into

*n*and we will omit the

*m*subindex hereafter.

*n*can be expressed in terms of generalized hypergeometric functions (

*F*([], [],

*z*)), also known as Barnes’ extended hypergeometric functions, as follows:

*n*. Note that regularity at \(r=\infty \) requires \(D_n=0\) for each

*n*. For any given value of

*n*, one can also express the solution in closed analytical form. The explicit expressions for \(n=1\) and \(n=2\) are

*z*at the star surface, \(z(r=R)\) (in the Newtonian limit all \(f_n=1\)), and can be evaluated numerically only once with the help of any algebraic manipulator and stored.

^{4}

*Finite-difference schemes.* If we do not use a spectral method, we must apply boundary conditions to magnetic field components instead of the individual multipoles. In general, we need to provide the field components, in one or more ghost cells outside the physical grid, in terms of the components at the last grid point. However, we still can make use of the previous form of the boundary conditions, as a relation between the poloidal radial function and its derivative for each multipole,. Let us explain an accurate and elegant procedure to impose the current-free constraint in the axisymmetric case.

First, at each time step, obtain the \(b_l\) coefficients from the Legendre decomposition of the radial component of the magnetic field over the surface \(B_r(r=R,\theta )\). In a discretised scheme, values of \(b_l\) can be calculated up to a maximum multipole \(l_{\max }=n_\theta /2\), where \(n_\theta \) is the number of angular points of the grid.

Second, from the \(b_l\)’s, reconstruct the values of \(B_r\) and \(B_\theta \) in the external ghost cells, as required by the method, by using Eq. (66).

Finally, simply set \(B_\varphi =0\) for any cell \(r \ge R\).

Note that, in 3D, applying the potential boundary conditions is a challenge for parallelization. The easiest solution is to parallelize the dominion by spherical shells, so that the integration over the star’s surface, needed by either the spherical harmonic expansion or the Green’s method, is in charge of a single processor (as in Wood and Hollerbach 2015 and following works). If, on the other hand, the parallelization is done by geometrically optimized patches (cubic in the simplest case, Viganò et al. 2019), then the star’s surface would be covered by different processors. In this case, the calculation at each point depends on calculations done by other processors, thus enlarging the needed stencil. This results in an excessive intercommunication load and prevents optimal scaling.

### 6.2 Force-free boundary conditions

*P*and

*T*are functions defining the poloidal and toroidal components, respectively (see more details in Appendix A).

The force-free condition (\(\mathbf {j} \times \mathbf {B} = 0\)) implies that the electrical currents flow along magnetic surfaces, which are defined by constant *P*. Thus, the mathematical requirement of a vanishing azimuthal component of the local Lorentz force implies that the poloidal and toroidal functions must be functions of one another, say \(T = T(P)\), that is, the poloidal and toroidal functions *P* and *T* are constant on the same magnetic surfaces.^{5}

In principle, there is an infinite family of external force-free solutions for a given radial magnetic field at the surface, because of the freedom to choose the functional form of *T*(*P*). The main problem of this approach is how to continuously match the arbitrary field configuration, resulting from the evolution in the crust, while enforcing the force-free solution outside. In the crust, any line bundle marked by a given magnetic flux *P* has in general different values of *T* because, internally, the force-free condition does not hold. As discussed in Akgün et al. (2018), there is an intrinsic inconsistency in the possibly multi-valued function *T*(*P*), if we strictly take it from the values at the surface (\(r=R\)). They address this problem by symmetrizing the numerical function *T*(*P*), which is physically equivalent to allow to propagate through the surface only the modes compatible with solutions of the Grad–Shafranov equation. This is motivated by the results from MHD simulations of the propagation of internal torsional oscillations (Gabler et al. 2014), who found that antisymmetric modes cannot propagate into the magnetosphere and are reflected back into the interior.

### 6.3 Extended domains

An alternative to imposing a precise mathematical boundary condition at the surface is to consider an extended domain, where we evolve at the same time all components of the field, but with physical coefficients that enforce the solution to meet the required conditions. Instead of imposing a boundary condition at the last numerical cell, this approach considers a generalized induction equation, where, at the surface, there is a sharp transition in the values of the pre-coefficients describing the physics (\(\eta , 1/n_e, f_a\)). In the numerical GRMHD context, this approach has been successfully used to describe at the same time the resistive and ideal MHD inside and outside a NS (Palenzuela 2013).

The idea is that, since the magnetospheric timescales are many orders of magnitude shorter than the interior, the long-term evolution of the magnetosphere can be seen as a series of equilibrium states, attained immediately after every time step of the interior. Therefore, one can activate an artificial term that dynamically leads to the force-free solution. This approach is similar to the *magneto-frictional method* (Yang et al. 1986; Roumeliotis et al. 1994), as known in solar physics. The modified induction equation employed in the exterior of the star has a mathematical structure equivalent to an ambipolar term, which forces currents to gradually align to magnetic field lines, without having to solve the elliptical Grad–Shafranov equation at every time step (which is numerically expensive). This also allows us to account for the transfer of helicity and provides a mechanism to continuously feed currents that twist the magnetosphere. The caveat is that the ambipolar coefficient must be fine-tuned to prevent the exterior dynamics from being neither too fast (it would excessively limit the time step), nor too slow (it would not manage to relax to a force-free configuration and would cause non-negligible, unphysical feedback on the interior).

In our context, such a strategy has only been explored preliminarily in the 3D Cartesian parallelized code used in Viganò et al. (2019). This code was built by using *Simflowny* (Arbona et al. 2013, 2018), a versatile platform able to automatically generate parallelized codes for partial differential equations. It employs the *adaptive mesh refinement* libraries of SAMRAI (Hornung and Kohn 2002), and a graphical user interface that easily allows us to implement equations and to choose among different time and space discretization schemes. The code has not been applied yet to realistic simulations and is very different from previous codes. The Cartesian grid, with parallelization by regular cubic patches, imposes numerical challenges. One problem associated to Cartesian grids is that the geometry is not adapted to the physically preferred radial direction, along which gradients are usually much larger. Thus, one cannot improve the resolution in the radial direction alone, causing a rapid increase in the computational cost, compared to spherical coordinates-based codes (\(\propto N^3\) instead of \(N_r\)). Furthermore, the Cartesian discretization implies the appearance of numerical noise at the (physically spherical) surface and crust/core interfaces (where the pre-coefficients in the induction equation show a sharp transition as mentioned above). Finally, one has also to take care that the outer domain (placed far enough from the surface by using different mesh refinements) does not introduce noise and allow a regular solution at infinity. These challenges need to be tackled soon to make this alternative method, still at its infancy, numerically feasible.

### 6.4 Evolution of spin period and obliquity

*P*and the angle between the magnetic dipolar moment and the rotation axis, \(\chi \), are (Philippov et al. 2014):

*I*is the moment of inertia of the part of the star co-rotating with the magnetosphere, and \(B_p\) is the value of the

*dipolar component of the magnetic field at the magnetic pole*. The latter is a function of time and can be provided by the simulations of the internal magnetic field.

The coefficients \(\kappa _0\), \(\kappa _1\), \(\kappa _2\) depend on the magnetosphere geometry and its physical conditions and determine the magnetospheric torque. For the classical vacuum dipole formula \(\kappa _0=0\), \(\kappa _1=\kappa _2=2/3\), while for a realistic plasma-filled magnetosphere, \(\kappa _0 \approx \kappa _1 \approx 1\), with the last coefficient varying between 0 and 1, depending on the assumptions. This coefficient can be fitted from results from 3D simulations for force-free and resistive magnetospheres (Philippov et al. 2014), who found that the alignment of the rotation and magnetic axis in pulsars with vacuum magnetospheres proceeds much faster (exponential, with characteristic time \(\tau _0 = \frac{P_0}{2 \beta B_0}\)) than for realistic plasma-filled magnetospheres (a power-law).

A very important remark is that using the classical dipole formula, with \(\kappa _0=0\), may mislead to the wrong conclusion that an aligned rotator does not exert any torque, thus stopping the spin-down of the star (Johnston and Karastergiou 2017). This is not physically correct, and realistic models predict \(\kappa _0\approx 1\), which at most results in about a factor two correction (Spitkovsky 2006; Philippov et al. 2014). Therefore, alignment cannot completely stop the period evolution, which can only happen if the magnetic field becomes negligible.

Besides the magnetic field strength and the inclination angle, *I* could also change with time. If there is a superfluid component (e.g., neutrons in the core or the inner crust), it is generally rotationally decoupled from the rest of the star. Therefore, it does not contribute to *I*, which only accounts for the matter rigidly co-rotating with the magnetosphere. Then, there are two possible effects. First, the volume of the superfluid component can change with time, since the phase transition depends on density and temperature (as the star cools down superfluid components occupy a larger volume, thus \(\beta \) slowly increases). Second, normal and superfluid components can suddenly and temporarily couple during glitches, modifyingf *I*. This can be formally considered with a two-fluid description or neglected, by assuming a constant *I* corresponding to the rigid co-rotation of the whole star. For realistic stars, the moment of inertia is \(I \sim 1.5 \times 10^{45}\) g \(\hbox {cm}^2\), with a \(50\%\) uncertainty. This gives \(\beta \sim 6 \times 10^{-40}\) s \(\hbox {G}^{-2}\). We note that either angle variations (alignment) or moment of inertia variations, result in corrections to the torque by a factor \(\lesssim 2\), while magnetic field decay can result in torque variations of several orders of magnitude, and consequently in large and relatively fast variations of *P* and \({\dot{P}}\).

Finally, we would like to address why the effects of rotation have negligible feedback on the magneto-thermal evolution. Magnetospheres of spinning isolated NSs have been studied in the last 50 yr, analytically (starting from the seminal work of Goldreich and Julian 1969) and numerically for some geometries (mostly inclined rotating dipoles). Examples of 2D and 3D numerical simulations can be found in Spitkovsky (2006) and Contopoulos et al. (1999). First of all, the rotationally-induced electric field, \(\mathbf {E}=-(\varOmega r\sin \theta /c){\hat{\phi }}\times \mathbf {B}\), is negligible in the interior regions of the magnetosphere (\(r\sin \theta \ll c/\varOmega \)), thus justifying the non-rotating force-free approximation above, as a boundary condition at the star surface. Secondly, rotation opens up a bundle of lines close to the magnetic poles, which are stretched and twisted and are supposedly responsible for the radiated emission. The surface polar cap containing the footprints of the open lines has an opening angle of only \(\theta \sim \arcsin [(R\varOmega /c)^{1/2}] \sim 0.8^\circ P\mathrm{[s]}^{-1/2}\): a negligible fraction of the NS surface, especially for magnetars (\(P\sim 1\)–10 s). A recent work (Karageorgopoulos et al. 2019), based on the minimization of the Joule dissipation rate, has proposed how the rotationally-induced polar currents close within the crust. The dissipated power by the Joule effect was estimated to be more than 10 orders of magnitude smaller than the rotational energy losses, which does not affect the cooling history.

## 7 Magneto-thermal evolution of neutron stars

The first question to answer when one plans to simulate the evolution of magnetic fields in NSs is the choice of the initial model. Since we are mostly interested in understanding the evolution of highly magnetized NSs, we should use a physically motivated initial model. A first approach is to consider that the hot, liquid initial phase lasts long enough to establish an MHD equilibrium, and reduce the pool of possible initial models to perfect MHD equilibria solutions, which have been calculated for different geometries (Colaiuda et al. 2008; Ciolfi and Rezzolla 2013). Unfortunately, the formation of a NS during a supernova explosion is a very complex process, and the origin of strong magnetic fields in NSs and their presumed topology remains unclear. One of the most promising mechanisms at work is the magnetorotational instability, which, in the presence of differential rotation, can amplify exponentially fast a weak initial magnetic field in a proto-NS to a dynamically relevant strength (Guilet et al. 2017). A recent simulation showed an effective dynamo (Mösta et al. 2015), able to create an amplified large-scale toroidal magnetic field. A different mechanism is based on the interplay between compression and convection in the hot-bubble region between the proto-NS and the stalled shock (Obergaulinger et al. 2015). Another relatively recent idea gaining popularity is the formation during a NS–NS merger (Ciolfi et al. 2019). In any case, all the viable mechanisms involve some degree of turbulence, so that the outcome is plausibly different from a perfectly ordered dipole. With all these caveats in mind, one must choose to start the simulations, preferably with a few free parameters, to establish some qualitative trends in the long term evolution. For this reason, most of the existing works simply take a dipolar configuration, or at most some combination of dipolar and quadrupolar poloidal and toroidal components.

In the literature, there is a clear distinction between crustal-confined and core-threading fields. The former has been studied in-depth, with special focus on the Hall term. It assumes a type I superconducting core (not realistic) or, equivalently, that some other mechanism acts on very short timescales to expel most of the magnetic flux from the core. Core-threading magnetic fields are less studied, due to uncertain core physics. A popular configuration is the twisted-torus (e.g., Ciolfi and Rezzolla 2013): an MHD equilibrium solution with a large magnetic helicity where a dipole threads the core and the closed field lines within the star contain a toroidal field. We note the two fundamental differences between crustal-confined and core-threading configurations: first, the field curvature changes by one order of magnitude (roughly the size of the star versus the size of the crust); second, the location of most of the currents (core or crust) determines where Ohmic dissipation occurs, and the two regions have very different conductivities (see Fig. 7).

Regarding the temperature evolution, the initial conditions are much easier: it is well known that a few hours or days after birth, most of the star is nearly isothermal, so it is a good approximation to assume a constant temperature, between \(10^9\) to \(10^{10}\) K. Moreover, the particular choice of the initial temperature only affects the evolution in the first few days, which is completely irrelevant for following the NS evolution for thousands or millions of years. In any case, since the majority of existing works do not couple the magnetic field evolution to the temperature (most of them assume a constant temperature, or in some cases an independently prescribed function of time), we will begin by reviewing the main results of models with only magnetic evolution (2D and 3D), to conclude the section revising the only fully consistent magneto-thermal simulations available (in 2D).

### 7.1 Magnetic field evolution in the neutron star crust

*2D simulations.* Many works (Pons and Geppert 2007; Viganò et al. 2012, 2013; Gourgouliatos et al. 2013; Gourgouliatos and Cumming 2014b, a) have agreed on the general picture of the Hall-driven dynamics of a crustal-confined field in axial symmetry. For typical field strengths of \(10^{14}\) G, and starting from a predominantly poloidal dipolar field, we observe a stage dominated by the Hall drift (readjusting from initial conditions), which creates higher-order multipoles, followed by a quasi-stationary Ohmic stage. This structure, which has been called the Hall attractor (Gourgouliatos and Cumming 2014a), is characterized by a nearly constant angular velocity of the electron fluid (\(\varOmega \approx j/e n_e r\)) along each poloidal field line, and proportional to the magnetic flux. This result holds even if the initial state is a high multipole, say *l*, with the system relaxing to a mixture of modes dominated by the *l* and \(l + 2\), but again with the electron angular velocity linearly related to the flux (Gourgouliatos and Cumming 2014b). It is also relevant to remark that the Hall drift may noticeably accelerate the dissipation of magnetic fields, by continuously redistributing magnetic field energy towards smaller scales, where Ohmic dissipation is more effective. In the supplementary material, we provide the animations of two models with an initial dipolar poloidal magnetic field with surface polar intensity \(B_p=10^{14}\) G plus a toroidal field with a maximum intensity \(B_{\mathrm{tor}}=10^{15}\) G. The models differ in the initial multipole of the toroidal field (\(l=1\) or \(l=2\)).

*3D simulations.*Using a mixed spectral/finite-difference code, Wood and Hollerbach (2015) and Gourgouliatos et al. (2016) presented the first 3D simulations of crustal-confined fields, with an exterior boundary condition consisting of a general potential solution. The temperature was not included in the simulations, and the resistivity and density profiles were some radial dependent analytical functions, fitted to mimic a realistic model at \(T=10^8\) K (Cumming et al. 2004). These 3D studies show new dynamics and the creation of km-size magnetic structures persistent over long timescales. Even using initial axisymmetric conditions, the Hall instability breaks the symmetry and new 3D modes quickly grow. These have lengthscales of the order of the crust thickness. A typical model is shown in Fig. 17. The surface field is highly irregular, with small regions in which the magnetic energy density exceeds by at least an order of magnitude the average surface value. By exploring many different initial models, Gourgouliatos et al. (2016) found that magnetic instabilities can efficiently transfer energy to small scales, which in turn enhances Ohmic heating and powers the star persistent emission, confirming the 2D results.

More recently, Gourgouliatos and Hollerbach (2018) explored magnetic field configurations that lead to the formation of magnetic spots on the surface of NSs, extending previous 2D works (Geppert and Viganò 2014), as described in the final part of Sect. 5.6. They show how an ultra-strong toroidal component is essential for the generation of a single spot, possibly displaced from the dipole axis, which can survive on very long timescales. We must note that boundary conditions arguably play a very important role to determine the scale of the, initially unstable, dominant modes since the thickness of the crust sets a preferred scale in crustal-confined models.

### 7.2 Coupled magneto-thermal simulations

The first effect of the Hall term in the induction equation is to couple the poloidal and toroidal components so that, even if the latter is zero at the beginning, it is quickly created. After \(\sim 10^3\) yr, a quadrupolar toroidal magnetic field with a maximum strength of the same order of the poloidal magnetic field has been created, with \(B_\varphi \) being negative in the northern hemisphere and positive in the southern hemisphere.

Thereafter, under the effect of the Hall drift, the toroidal magnetic field rules the evolution, dragging the currents into the inner crust (see middle panels), and compressing the magnetic field lines. The Hall term is thus responsible for the energy redistribution from the large scale dipole to small scales (higher-order multipoles are locally very strong), possibly creating current sheets in some situations (here, in the equator).

Where sufficiently small-scale components are present, the locally enhanced ohmic dissipation balances the effect of the Hall drift and a quasi-stationary state (resembling the Hall attractor) is reached. After \(\sim 10^5\) yr, the toroidal magnetic field is mostly contained in the inner crust.

We note that, at this point, most of the current circulates close to the crust/core interface. Therefore, the dissipation of magnetic energy is regulated by the resistivity in this precise region. In the model, there was a highly resistive layer in the

*nuclear pasta region*leading to a rapid decay of the magnetic field, which has a direct imprint on the observable rotational properties of X-ray pulsars (Pons et al. 2013).Joule heating modifies the map of the internal temperature. We can observe in the bottom panels of Fig. 18 how, at \(t=10^3\) yr, the equator is hotter than the poles by a factor of 3. This is caused by the insulating effect of the strong magnetic field discussed in Sect. 2.4. The presence of strong tangential components (\(B_\theta \) and \(B_\varphi \)) insulates the surface against the interior. In a dipolar geometry, the magnetic field is nearly radial at the poles, which remain thermally connected with the interior, while the equatorial region is insulated by tangential magnetic field lines. This has a two-fold effect: if the core is warmer than the crust, the polar regions will be warmer than the equator; however, if ohmic dissipation heats the equatorial regions, the situation is reverted. The temperature reflects the geometry of the poloidal magnetic field lines, which channel the heat flow.

Finally, we turn our attention to the rotational evolution of NSs. In Fig. 20 we show evolutionary tracks in the \(P-{\dot{P}}\) diagram for a typical NS of \(1.4\,M_\odot \) with different initial values of the initial magnetic field strength. The magnetic field configuration employed is the type A geometry (crustal confined) in Viganò et al. (2013). Dashed lines show the results for models assuming a constant magnetic field, which are straight lines in the diagram. The solid lines, which account for realistic field evolution, show significant differences from the constant field models. Initially, the tracks overlap (\(B_p\) is almost constant during an initial epoch, \(t\lesssim 10^3{-}10^5\) yr, which depends on the initial \(B_p^0\)), but eventually, the field dissipates faster than the spin period evolution timescale and the lines bend down, at nearly constant *P*. This effect has been proposed to be the main reason for the observed clustering of periods of isolated X-ray pulsars (Pons et al. 2013). The particular value of the limit period mainly depends on the initial magnetic field and the resistivity at the crust-core interface. The large differences between the spin period evolution for models assuming a constant magnetic field and more realistic models make evident that the coupling between temperature, magnetic, and rotational evolution has to be considered.

## 8 Future prospects

Although the numerical solution of the 3D heat equation is a well-studied problem in the literature of numerical methods, in our particular context of NSs, the first paper implementing a full 3D temperature evolution with realistic microphysics is yet to come. The main reason for this lack of models is that the study of the 3D temperature evolution alone does not add much to the problem, and only its coupling with the magnetic field evolution is of great interest. From the observational point of view, the possible existence of small-scale hotspots associated with the properties of the X-ray spectra is plausibly connected to the creation of small magnetic structures, and localized heat deposition. Thus, a necessary future step is to implement consistent 3D temperature evolution in the few existing 3D magnetic field evolution codes.

As discussed in Sect. 6, another open issue is the correct implementation of realistic, more general, boundary conditions at the star surface. Going beyond the popular and simple potential/vacuum solution seems a necessity, that has only begun to be considered. The magnetar observational data favor the presence of twisted magnetospheres, that can influence the interior dynamics in a significant manner. Among the different possible solutions, some mentioned in the text (solving elliptic equations, extended domains), it is unclear which has a better balance between physical motivation and computational cost. This point is of particular relevance when connected to the first one: the creation of localized hot spots may be strongly dependent on the applied boundary condition, because currents passing through the envelope may have the key to understand the very high temperatures of magnetars.

Finally, the core evolution is arguably the less explored part of the problem. Concerning the temperature, the core is almost isothermal to a very good approximation. But the complexities of the interaction between superfluid neutrons and superconducting protons result in uncertainties of many orders of magnitude in the transport coefficients that determine the magnetic field evolution. A full 3D study of the evolution of the field penetrating the core and including all relevant physics does not exist, and it should be a high priority task for the incoming years.

## Footnotes

- 1.
See the online Australia Telescope National Facility catalog, http://www.atnf.csiro.au/research/pulsar/psrcat/.

- 2.
Throughout the text, we will use the \(\nabla \) operator for conciseness, but we note that it must include the metric factors, e.g., using the metric (1), the gradient would be \(\nabla \equiv \left( \mathrm {e}^{-\lambda } \frac{\partial }{\partial r},\, \frac{1}{r} \frac{\partial }{\partial \theta },\, \frac{1}{r \sin \theta } \frac{\partial }{\partial \varphi } \right) .\)

- 3.
In axial symmetry, we find an analogous equation for the \(\varphi \)-component

- 4.
See Rädler et al. (2001) for an alternative form to evaluate \(f_n\) based on the expansion in a series of powers of 1 /

*r*. - 5.
The magnetic flux through the area enclosed by the corresponding magnetic surface is \(2\pi P\), and the current through the same area is

*cT*/ 2.

## Notes

### Acknowledgements

This work is partially supported by the PHAROS COST Action CA16214. DV acknowledges the support from the Spanish Ministry of Economy, Industry and Competitiveness grants AYA2016-80289-P and AYA2017-82089-ERC (AEI/FEDER, UE). Supported by Conselleria d’Educació, Investigació, Cultura i Esport (Grant No. PROMETEO/2019/071). We thank K. Gourgouliatos for fruitful discussions.

## Supplementary material

## References

- Aguilera DN, Pons JA, Miralles JA (2008a) 2D cooling of magnetized neutron stars. A&A 486:255–271. https://doi.org/10.1051/0004-6361:20078786. arXiv:0710.0854 ADSCrossRefGoogle Scholar
- Aguilera DN, Pons JA, Miralles JA (2008b) The impact of magnetic field on the thermal evolution of neutron stars. ApJL 673:L167–L170. https://doi.org/10.1086/527547. arXiv:0712.1353 ADSCrossRefGoogle Scholar
- Akgün T, Miralles JA, Pons JA, Cerdá-Durán P (2016) The force-free twisted magnetosphere of a neutron star. MNRAS 462:1894–1909. https://doi.org/10.1093/mnras/stw1762. arXiv:1605.02253 ADSCrossRefGoogle Scholar
- Akgün T, Cerdá-Durán P, Miralles JA, Pons JA (2017) Long-term evolution of the force-free twisted magnetosphere of a magnetar. MNRAS 472:3914–3923. https://doi.org/10.1093/mnras/stx2235. arXiv:1706.07990 ADSCrossRefGoogle Scholar
- Akgün T, Cerdá-Durán P, Miralles JA, Pons JA (2018) Crust-magnetosphere coupling during magnetar evolution and implications for the surface temperature. MNRAS 481:5331–5338. https://doi.org/10.1093/mnras/sty2669. arXiv:1807.09021 ADSCrossRefGoogle Scholar
- Antón L, Zanotti O, Miralles JA, Martí JM, Ibáñez JM, Font JA, Pons JA (2006) Numerical 3+1 general relativistic magnetohydrodynamics: a local characteristic approach. Astrophys J 637:296–312. https://doi.org/10.1086/498238. arXiv:astro-ph/0506063 ADSCrossRefGoogle Scholar
- Antoniadis J, Freire PCC, Wex N, Tauris TM, Lynch RS, van Kerkwijk MH, Kramer M, Bassa C, Dhillon VS (2013) A massive pulsar in a compact relativistic binary. Science 340:448. https://doi.org/10.1126/science.1233232. arXiv:1304.6875 ADSCrossRefGoogle Scholar
- Arbona A, Artigues A, Bona-Casas C, Massó J, Miñano B, Rigo A, Trias M, Bona C (2013) Simflowny: a general-purpose platform for the management of physical models and simulation problems. Comput Phys Commun 184:2321–2331. https://doi.org/10.1016/j.cpc.2013.04.012 ADSCrossRefGoogle Scholar
- Arbona A, Minano B, Rigo A, Bona C, Palenzuela C, Artigues A, Bona-Casas C, Massó J (2018) Simflowny 2: an upgraded platform for scientific modelling and simulation. CoPhC 231: https://doi.org/10.1016/j.cpc.2018.03.015 ADSCrossRefGoogle Scholar
- Aubert J, Aurnou J, Wicht J (2008) The magnetic structure of convection-driven numerical dynamos. Geophys J Int 172(3):945–956. https://doi.org/10.1111/j.1365-246X.2007.03693.x ADSCrossRefGoogle Scholar
- Balsara DS (2017) Higher-order accurate space-time schemes for computational astrophysics—Part I: finite volume methods. Living Rev Comput Astrophys 3:2. https://doi.org/10.1007/s41115-017-0002-8. arXiv:1703.01241 ADSCrossRefGoogle Scholar
- Balsara DS, Dumbser M (2015) Divergence-free MHD on unstructured meshes using high order finite volume schemes based on multidimensional Riemann solvers. J Comput Phys 299:687–715. https://doi.org/10.1016/j.jcp.2015.07.012 ADSMathSciNetCrossRefzbMATHGoogle Scholar
- Barenblatt GI (1952) On some unsteady fluid and gas motions in a porous medium. Prikl Mat Mekh 16:67–78Google Scholar
- Beloborodov AM (2009) Untwisting magnetospheres of neutron stars. Astrophys J 703:1044–1060. https://doi.org/10.1088/0004-637X/703/1/1044. arXiv:0812.4873 ADSCrossRefGoogle Scholar
- Beloborodov AM (2013) On the mechanism of hard X-ray emission from magnetars. Astrophys J 762:13. https://doi.org/10.1088/0004-637X/762/1/13. arXiv:1201.0664 ADSCrossRefGoogle Scholar
- Beloborodov AM, Levin Y (2014) Thermoplastic waves in magnetars. ApJL 794:L24. https://doi.org/10.1088/2041-8205/794/2/L24. arXiv:1406.4850 ADSCrossRefGoogle Scholar
- Belov PA, Nugumanov ER, Yakovlev SL (2017) The arrowhead decomposition method for a block-tridiagonal system of linear equations. J Phys Conf Ser 929:012035. https://doi.org/10.1088/1742-6596/929/1/012035 CrossRefGoogle Scholar
- Beskin VS, Istomin YN, Philippov AA (2013) Radio pulsars: the search for truth. Phys Usp 56:164. https://doi.org/10.3367/UFNe.0183.201302e.0179. arXiv:1305.1740 ADSCrossRefGoogle Scholar
- Bona C, Bona-Casas C, Terradas J (2009) Linear high-resolution schemes for hyperbolic conservation laws: TVB numerical evidence. J Comput Phys 228:2266–2281. https://doi.org/10.1016/j.jcp.2008.12.010. arXiv:0810.2185 ADSMathSciNetCrossRefzbMATHGoogle Scholar
- Bransgrove A, Levin Y, Beloborodov A (2018) Magnetic field evolution of neutron stars—I. Basic formalism, numerical techniques and first results. MNRAS 473:2771–2790. https://doi.org/10.1093/mnras/stx2508. arXiv:1709.09167 ADSCrossRefGoogle Scholar
- Burrows A, Lattimer JM (1986) The birth of neutron stars. Astrophys J 307:178–196. https://doi.org/10.1086/164405 ADSCrossRefGoogle Scholar
- Calabrese G, Lehner L, Reula O, Sarbach O, Tiglio M (2004) Summation by parts and dissipation for domains with excised regions. Class Quantum Grav 21:5735–5757. https://doi.org/10.1088/0264-9381/21/24/004. arXiv:gr-qc/0308007 ADSMathSciNetCrossRefzbMATHGoogle Scholar
- Carrasco F, Viganò D, Palenzuela C, Pons JA (2019) Triggering magnetar outbursts in 3D force-free simulations. MNRAS 484:L124–L129. https://doi.org/10.1093/mnrasl/slz016. arXiv:1901.08889 ADSCrossRefGoogle Scholar
- Castillo F, Reisenegger A, Valdivia JA (2017) Magnetic field evolution and equilibrium configurations in neutron star cores: the effect of ambipolar diffusion. MNRAS 471:507–522. https://doi.org/10.1093/mnras/stx1604. arXiv:1705.10020 ADSCrossRefGoogle Scholar
- Cerdá-Durán P, Font JA, Antón L, Müller E (2008) A new general relativistic magnetohydrodynamics code for dynamical spacetimes. A&A 492:937–953. https://doi.org/10.1051/0004-6361:200810086. arXiv:0804.4572 ADSCrossRefzbMATHGoogle Scholar
- Chamel N (2008) Two-fluid models of superfluid neutron star cores. MNRAS 388:737–752. https://doi.org/10.1111/j.1365-2966.2008.13426.x. arXiv:0805.1007 ADSCrossRefGoogle Scholar
- Ciolfi R, Rezzolla L (2013) Twisted-torus configurations with large toroidal magnetic fields in relativistic stars. MNRAS 435:L43–L47. https://doi.org/10.1093/mnrasl/slt092. arXiv:1306.2803 ADSCrossRefGoogle Scholar
- Ciolfi R, Kastaun W, Vijay Kalinani J, Giacomazzo B (2019) The first 100 ms of a long-lived magnetized neutron star formed in a binary neutron star merger. Phys Rev D 100:023005. https://doi.org/10.1103/PhysRevD.100.023005. arXiv:1904.10222 ADSCrossRefGoogle Scholar
- Colaiuda A, Ferrari V, Gualtieri L, Pons JA (2008) Relativistic models of magnetars: structure and deformations. MNRAS 385:2080–2096. https://doi.org/10.1111/j.1365-2966.2008.12966.x. arXiv:0712.2162 ADSCrossRefGoogle Scholar
- Colella P, Woodward PR (1984) The piecewise parabolic method (PPM) for gas-dynamical simulations. J Comput Phys 54:174–201. https://doi.org/10.1016/0021-9991(84)90143-8 ADSCrossRefzbMATHGoogle Scholar
- Contopoulos I, Kazanas D, Fendt C (1999) The axisymmetric pulsar magnetosphere. Astrophys J 511:351–358. https://doi.org/10.1086/306652. arXiv:astro-ph/9903049 ADSCrossRefGoogle Scholar
- Coti Zelati F, Rea N, Pons JA, Campana S, Esposito P (2018) Systematic study of magnetar outbursts. MNRAS 474:961–1017. https://doi.org/10.1093/mnras/stx2679. arXiv:1710.04671 ADSCrossRefGoogle Scholar
- Cromartie HT, Fonseca E, Ransom SM et al (2019) Relativistic Shapiro delay measurements of an extremely massive millisecond pulsar. Nat Astron. https://doi.org/10.1038/s41550-019-0880-2. arXiv:1904.06759 CrossRefGoogle Scholar
- Cumming A, Arras P, Zweibel E (2004) Magnetic field evolution in neutron star crusts due to the Hall effect and ohmic decay. Astrophys J 609:999–1017. https://doi.org/10.1086/421324. arXiv:astro-ph/0402392 ADSCrossRefGoogle Scholar
- De Luca A (2017) Central compact objects in supernova remnants. J Phys Conf Ser 932:012006. https://doi.org/10.1088/1742-6596/932/1/012006. arXiv:1711.07210 CrossRefGoogle Scholar
- Dedner A, Kemm F, Kröner D, Munz CD, Schnitzer T, Wesenberg M (2002) Hyperbolic divergence cleaning for the MHD equations. J Comput Phys 175:645–673. https://doi.org/10.1006/jcph.2001.6961 ADSMathSciNetCrossRefzbMATHGoogle Scholar
- Demorest PB, Pennucci T, Ransom SM, Roberts MSE, Hessels JWT (2010) A two-solar-mass neutron star measured using Shapiro delay. Nature 467:1081–1083. https://doi.org/10.1038/nature09466. arXiv:1010.5788 ADSCrossRefGoogle Scholar
- Dommes VA, Gusakov ME (2017) Vortex buoyancy in superfluid and superconducting neutron stars. MNRAS 467:L115–L119. https://doi.org/10.1093/mnrasl/slx011. arXiv:1701.06870 ADSCrossRefGoogle Scholar
- Donat R, Marquina A (1996) Capturing shock reflections: an improved flux formula. J Comput Phys 125:42–58. https://doi.org/10.1006/jcph.1996.0078 ADSMathSciNetCrossRefzbMATHGoogle Scholar
- Dormy E, Cardin P, Jault D (1998) MHD flow in a slightly differentially rotating spherical shell, with conducting inner core, in a dipolar magnetic field. Earth Planet Sci Lett 160(1–2):15–30. https://doi.org/10.1016/S0012-821X(98)00078-8 ADSCrossRefGoogle Scholar
- Douchin F, Haensel P (2001) A unified equation of state of dense matter and neutron star structure. A&A 380:151–167. https://doi.org/10.1051/0004-6361:20011402. arXiv:astro-ph/0111092 ADSCrossRefGoogle Scholar
- Elfritz JG, Pons JA, Rea N, Glampedakis K, Viganò D (2016) Simulated magnetic field expulsion in neutron star cores. MNRAS 456:4461–4474. https://doi.org/10.1093/mnras/stv2963. arXiv:1512.07151 ADSCrossRefGoogle Scholar
- Fujisawa K, Kisaka S (2014) Magnetic field configurations of a magnetar throughout its interior and exterior—core, crust and magnetosphere. MNRAS 445:2777–2793. https://doi.org/10.1093/mnras/stu1911. arXiv:1409.4547 ADSCrossRefGoogle Scholar
- Gabler M, Cerdá-Durán P, Stergioulas N, Font JA, Müller E (2014) Modulating the magnetosphere of magnetars by internal magneto-elastic oscillations. MNRAS 443:1416–1424. https://doi.org/10.1093/mnras/stu1263. arXiv:1407.7672 ADSCrossRefGoogle Scholar
- Gavriil FP, Gonzalez ME, Gotthelf EV, Kaspi VM, Livingstone MA, Woods PM (2008) Magnetar-like emission from the young pulsar in Kes 75. Science 319:1802. https://doi.org/10.1126/science.1153465. arXiv:0802.1704 ADSCrossRefGoogle Scholar
- Geppert U, Viganò D (2014) Creation of magnetic spots at the neutron star surface. MNRAS 444:3198–3208. https://doi.org/10.1093/mnras/stu1675. arXiv:1408.3833 ADSCrossRefGoogle Scholar
- Geppert U, Wiebicke HJ (1991) Amplification of neutron star magnetic fields by thermoelectric effects. I. General formalism. Astron Astrophys Suppl 87:217–228ADSGoogle Scholar
- Geppert U, Wiebicke HJ (1995) Amplification of neutron star magnetic fields by thermoelectric effects. V. Induction of large-scale toroidal fields. A&A 300:429ADSGoogle Scholar
- Geppert U, Küker M, Page D (2004) Temperature distribution in magnetized neutron star crusts. A&A 426:267–277. https://doi.org/10.1051/0004-6361:20040455. arXiv:astro-ph/0403441 ADSCrossRefzbMATHGoogle Scholar
- Geppert U, Küker M, Page D (2006) Temperature distribution in magnetized neutron star crusts. II. The effect of a strong toroidal component. A&A 457:937–947. https://doi.org/10.1051/0004-6361:20054696. arXiv:astro-ph/0512530 ADSCrossRefGoogle Scholar
- Giacomazzo B, Rezzolla L (2007) WhiskyMHD: a new numerical code for general relativistic magnetohydrodynamics. Class Quantum Grav 24:S235–S258. https://doi.org/10.1088/0264-9381/24/12/S16. arXiv:gr-qc/0701109 ADSMathSciNetCrossRefzbMATHGoogle Scholar
- Glampedakis K, Jones DI, Samuelsson L (2011) Ambipolar diffusion in superfluid neutron stars. MNRAS 413:2021–2030. https://doi.org/10.1111/j.1365-2966.2011.18278.x. arXiv:1010.1153 ADSCrossRefGoogle Scholar
- Glampedakis K, Lander SK, Andersson N (2014) The inside-out view on neutron-star magnetospheres. MNRAS 437:2–8. https://doi.org/10.1093/mnras/stt1814. arXiv:1306.6881 ADSCrossRefGoogle Scholar
- Goldreich P, Julian WH (1969) Pulsar electrodynamics. Astrophys J 157:869. https://doi.org/10.1086/150119 ADSCrossRefGoogle Scholar
- Goldreich P, Reisenegger A (1992) Magnetic field decay in isolated neutron stars. Astrophys J 395:250–258. https://doi.org/10.1086/171646 ADSCrossRefGoogle Scholar
- González-Morales PA, Khomenko E, Downes TP, de Vicente A (2018) MHDSTS: a new explicit numerical scheme for simulations of partially ionised solar plasma. A&A 615:A67. https://doi.org/10.1051/0004-6361/201731916. arXiv:1803.04891 ADSCrossRefGoogle Scholar
- Göğüs E, Lin L, Kaneko Y, Kouveliotou C, Watts AL, Chakraborty M, Alpar MA, Huppenkothen D, Roberts OJ, Younes G (2016) Magnetar-like X-ray bursts from a rotation-powered pulsar, PSR J1119–6127. Astrophys J 829(2):L25. https://doi.org/10.3847/2041-8205/829/2/L25. arXiv:1608.07133 ADSCrossRefGoogle Scholar
- Gourgouliatos KN, Cumming A (2014a) Hall attractor in axially symmetric magnetic fields in neutron star crusts. Phys Rev Lett 112:171101. https://doi.org/10.1103/PhysRevLett.112.171101. arXiv:1311.7345 ADSCrossRefGoogle Scholar
- Gourgouliatos KN, Cumming A (2014b) Hall effect in neutron star crusts: evolution, endpoint and dependence on initial conditions. MNRAS 438:1618–1629. https://doi.org/10.1093/mnras/stt2300. arXiv:1311.7004 ADSCrossRefGoogle Scholar
- Gourgouliatos KN, Cumming A (2015) Hall drift and the braking indices of young pulsars. MNRAS 446:1121–1128. https://doi.org/10.1093/mnras/stu2140. arXiv:1406.3640 ADSCrossRefGoogle Scholar
- Gourgouliatos KN, Hollerbach R (2018) Magnetic axis drift and magnetic spot formation in neutron stars with toroidal fields. Astrophys J 852:21. https://doi.org/10.3847/1538-4357/aa9d93. arXiv:1710.01338 ADSCrossRefGoogle Scholar
- Gourgouliatos KN, Cumming A, Reisenegger A, Armaza C, Lyutikov M, Valdivia JA (2013) Hall equilibria with toroidal and poloidal fields: application to neutron stars. MNRAS 434:2480–2490. https://doi.org/10.1093/mnras/stt1195. arXiv:1305.6269 ADSCrossRefGoogle Scholar
- Gourgouliatos KN, Kondić T, Lyutikov M, Hollerbach R (2015) Magnetar activity via the density–shear instability in Hall-MHD. MNRAS 453:L93–L97. https://doi.org/10.1093/mnrasl/slv106. arXiv:1507.07454 ADSCrossRefGoogle Scholar
- Gourgouliatos KN, Wood TS, Hollerbach R (2016) Magnetic field evolution in magnetar crusts through three-dimensional simulations. Proc Natl Acad Sci USA 113:3944–3949. https://doi.org/10.1073/pnas.1522363113. arXiv:1604.01399 ADSCrossRefGoogle Scholar
- Graber V, Andersson N, Glampedakis K, Lander SK (2015) Magnetic field evolution in superconducting neutron stars. MNRAS 453:671–681. https://doi.org/10.1093/mnras/stv1648. arXiv:1505.00124 ADSCrossRefGoogle Scholar
- Guilet J, Müller E, Janka HT, Rembiasz T, Obergaulinger M, Cerdá-Durán P, Aloy MA (2017) How to form a millisecond magnetar? Magnetic field amplification in protoneutron stars. In: Marcowith A, Renaud M, Dubner G, Ray A, Bykov A (eds) Supernova 1987A: 30 years later—cosmic rays and nuclei from supernovae and their aftermaths, IAU symposium, vol 331. Cambridge University Press, pp 119–124. https://doi.org/10.1017/S1743921317004732. arXiv:1706.08733 ADSCrossRefGoogle Scholar
- Gusakov ME, Kantor EM, Ofengeim DD (2017) Evolution of the magnetic field in neutron stars. Phys Rev D 96:103012. https://doi.org/10.1103/PhysRevD.96.103012. arXiv:1705.00508 ADSCrossRefGoogle Scholar
- Haberl F (2007) The magnificent seven: magnetic fields and surface temperature distributions. AP&SS 308:181–190. https://doi.org/10.1007/s10509-007-9342-x. arXiv:astro-ph/0609066 ADSCrossRefGoogle Scholar
- Haensel P, Potekhin AY, Yakovlev DG (2007) Neutron stars 1: equation of state and structure, Astrophysics and Space Science Library, vol 326. Springer, New York. https://doi.org/10.1007/978-0-387-47301-7 Google Scholar
- Heinke CO, Ho WCG (2010) Direct observation of the cooling of the cassiopeia a neutron star. ApJL 719:L167–L171. https://doi.org/10.1088/2041-8205/719/2/L167. arXiv:1007.4719 ADSCrossRefGoogle Scholar
- Helliwell RA (1965) Whistlers and related ionospheric phenomena. Stanford University Press, StanfordGoogle Scholar
- Ho WCG, Glampedakis K, Andersson N (2012) Magnetars: super(ficially) hot and super(fluid) cool. MNRAS 422:2632–2641. https://doi.org/10.1111/j.1365-2966.2012.20826.x. arXiv:1112.1415 ADSCrossRefGoogle Scholar
- Ho WCG, Elshamouty KG, Heinke CO, Potekhin AY (2015) Tests of the nuclear equation of state and superfluid and superconducting gaps using the Cassiopeia A neutron star. Phys Rev C 91:015806. https://doi.org/10.1103/PhysRevC.91.015806. arXiv:1412.7759 ADSCrossRefGoogle Scholar
- Hollerbach R (2000) A spectral solution of the magneto-convection equations in spherical geometry. Int J Numer Meth Fluids 32:773–797. https://doi.org/10.1002/(SICI)1097-0363(20000415)32:7<773::AID-FLD988>3.0.CO;2-P ADSMathSciNetCrossRefGoogle Scholar
- Hollerbach R, Rüdiger G (2002) The influence of Hall drift on the magnetic fields of neutron stars. MNRAS 337:216–224. https://doi.org/10.1046/j.1365-8711.2002.05905.x. arXiv:astro-ph/0208312 ADSCrossRefGoogle Scholar
- Hollerbach R, Rüdiger G (2004) Hall drift in the stratified crusts of neutron stars. MNRAS 347:1273–1278. https://doi.org/10.1111/j.1365-2966.2004.07307.x ADSCrossRefGoogle Scholar
- Hornung RD, Kohn SR (2002) Managing application complexity in the SAMRAI object-oriented framework. Concurr Comput Pract Exp 14:347–368. https://doi.org/10.1002/cpe.652 CrossRefzbMATHGoogle Scholar
- Horowitz CJ, Kadau K (2009) Breaking strain of neutron star crust and gravitational waves. Phys Rev Lett 102:191102. https://doi.org/10.1103/PhysRevLett.102.191102. arXiv:0904.1986 ADSCrossRefGoogle Scholar
- Hoyos J, Reisenegger A, Valdivia JA (2008) Magnetic field evolution in neutron stars: one-dimensional multi-fluid model. A&A 487:789–803. https://doi.org/10.1051/0004-6361:200809466. arXiv:0801.4372 ADSCrossRefzbMATHGoogle Scholar
- Hoyos JH, Reisenegger A, Valdivia JA (2010) Asymptotic, non-linear solutions for ambipolar diffusion in one dimension. MNRAS 408:1730–1741. https://doi.org/10.1111/j.1365-2966.2010.17237.x. arXiv:1003.5262 ADSCrossRefGoogle Scholar
- Huba JD (2003) Hall magnetohydrodynamics—a tutorial. In: Büchner J, Dum C, Scholer M (eds) Space plasma simulation. Lecture notes in physics, vol 615. Springer, Berlin, pp 166–192CrossRefGoogle Scholar
- Hurley K, Cline T, Mazets E, Barthelmy S, Butterworth P, Marshall F, Palmer D, Aptekar R, Golenetskii S, Il’Inskii V, Frederiks D, McTiernan J, Gold R, Trombka J (1999) A giant periodic flare from the soft \(\gamma \)-ray repeater SGR1900+14. Nature 397:41–43. https://doi.org/10.1038/16199. arXiv:astro-ph/9811443 ADSCrossRefGoogle Scholar
- Jackson JD (1999) Classical electrodynamics. Wiley, New YorkzbMATHGoogle Scholar
- Jiang GS, Shu CW (1996) Efficient implementation of weighted ENO schemes. J Comput Phys 126:202–228. https://doi.org/10.1006/jcph.1996.0130 ADSMathSciNetCrossRefzbMATHGoogle Scholar
- Johnston S, Karastergiou A (2017) Pulsar braking and the \(P\)-\({\dot{P}}\) diagram. MNRAS 467:3493–3499. https://doi.org/10.1093/mnras/stx377. arXiv:1702.03616 ADSCrossRefGoogle Scholar
- Jones PB (1988) Neutron star magnetic field decay—Hall drift and Ohmic diffusion. MNRAS 233:875–885. https://doi.org/10.1093/mnras/233.4.875 ADSCrossRefGoogle Scholar
- Kaminker AD, Kaurov AA, Potekhin AY, Yakovlev DG (2014) Thermal emission of neutron stars with internal heaters. MNRAS 442:3484–3494. https://doi.org/10.1093/mnras/stu1102. arXiv:1406.0723 ADSCrossRefGoogle Scholar
- Kaplan DL, Kamble A, van Kerkwijk MH, Ho WCG (2011) New optical/ultraviolet counterparts and the spectral energy distributions of nearby, thermally emitting, isolated neutron stars. Astrophys J 736:117. https://doi.org/10.1088/0004-637X/736/2/117. arXiv:1105.4178 ADSCrossRefGoogle Scholar
- Karageorgopoulos V, Gourgouliatos KN, Contopoulos I (2019) Current closure through the neutron star crust. MNRAS 487:3333–3341. https://doi.org/10.1093/mnras/stz1507. arXiv:1903.05093 ADSCrossRefGoogle Scholar
- Kaspi VM, Beloborodov AM (2017) Magnetars. Annu Rev Astron Astrophys 55:261–301. https://doi.org/10.1146/annurev-astro-081915-023329. arXiv:1703.00068 ADSCrossRefGoogle Scholar
- Keil W, Janka HT (1995) Hadronic phase transitions at supranuclear densities and the delayed collapse of newly formed neutron stars. A&A 296:145ADSGoogle Scholar
- Kojima Y (2017) Axisymmetric force-free magnetosphere in the exterior of a neutron star. MNRAS 468:2011–2016. https://doi.org/10.1093/mnras/stx584. arXiv:1703.02273 ADSCrossRefGoogle Scholar
- Kondić T, Rüdiger G, Hollerbach R (2011) The shear-Hall instability in newborn neutron stars. A&A 535:L2. https://doi.org/10.1051/0004-6361/201116776. arXiv:1110.3937 ADSCrossRefGoogle Scholar
- Konenkov D, Geppert U (2000) The effect of the neutron-star crust on the evolution of a core magnetic field. MNRAS 313:66–72. https://doi.org/10.1046/j.1365-8711.2000.03188.x. arXiv:astro-ph/9910492 ADSCrossRefGoogle Scholar
- Koto T (2008) IMEX Runge–Kutta schemes for reaction–diffusion equations. J Comput Appl Math 215:182–195ADSMathSciNetCrossRefGoogle Scholar
- Lander SK (2016) Magnetar field evolution and crustal plasticity. ApJL 824:L21. https://doi.org/10.3847/2041-8205/824/2/L21. arXiv:1604.02972 ADSCrossRefGoogle Scholar
- Lander SK, Gourgouliatos KN (2019) Magnetic-field evolution in a plastically-failing neutron-star crust. MNRAS https://doi.org/10.1093/mnras/stz1042. arXiv:1902.02121 ADSCrossRefGoogle Scholar
- Lander SK, Andersson N, Antonopoulou D, Watts AL (2015) Magnetically driven crustquakes in neutron stars. MNRAS 449:2047–2058. https://doi.org/10.1093/mnras/stv432. arXiv:1412.5852 ADSCrossRefGoogle Scholar
- Lyutikov M, Gavriil FP (2006) Resonant cyclotron scattering and comptonization in neutron star magnetospheres. MNRAS 368:690–706. https://doi.org/10.1111/j.1365-2966.2006.10140.x. arXiv:astro-ph/0507557 ADSCrossRefGoogle Scholar
- Marchant P, Reisenegger A, Alejandro Valdivia J, Hoyos JH (2014) Stability of Hall equilibria in neutron star crusts. Astrophys J 796:94. https://doi.org/10.1088/0004-637X/796/2/94. arXiv:1410.5833 ADSCrossRefGoogle Scholar
- Margalit B, Metzger BD (2017) Constraining the maximum mass of neutron stars from multi-messenger observations of GW170817. ApJL 850:L19. https://doi.org/10.3847/2041-8213/aa991c. arXiv:1710.05938 ADSCrossRefGoogle Scholar
- Martí JM, Müller E (2015) Grid-based methods in relativistic hydrodynamics and magnetohydrodynamics. Living Rev Comput Astrophys 1:3. https://doi.org/10.1007/lrca-2015-3 ADSCrossRefGoogle Scholar
- Mereghetti S, Pons JA, Melatos A (2015) Magnetars: properties, origin and evolution. Space Sci Rev 191:315–338. https://doi.org/10.1007/s11214-015-0146-y. arXiv:1503.06313 ADSCrossRefGoogle Scholar
- Mösta P, Ott CD, Radice D, Roberts LF, Schnetter E, Haas R (2015) A large-scale dynamo and magnetoturbulence in rapidly rotating core-collapse supernovae. Nature 528:376–379. https://doi.org/10.1038/nature15755. arXiv:1512.00838 ADSCrossRefGoogle Scholar
- Muslimov AG, Tsygan AI (1985) Vortex lines in neutron star superfluids and decay of pulsar magnetic fields. AP&SS 115:43. https://doi.org/10.1007/BF00653825 ADSCrossRefGoogle Scholar
- Nunn D (1974) A self-consistent theory of triggered VLF emissions. Planet Space Sci 22:349–378. https://doi.org/10.1016/0032-0633(74)90070-1 ADSCrossRefGoogle Scholar
- Obergaulinger M, Janka HT, Aloy MA (2015) Magnetic field amplification in non-rotating stellar core collapse. In: Pogorelov NV, Audit E, Zank GP (eds) Numerical modeling of space plasma flows ASTRONUM-2014. ASP Conference Series, vol 498. Astronomical Society of the Pacific, San Francisco, p 115Google Scholar
- Ofengeim DD, Gusakov ME (2018) Fast magnetic field evolution in neutron stars: the key role of magnetically induced fluid motions in the core. Phys Rev D 98:043007. https://doi.org/10.1103/PhysRevD.98.043007. arXiv:1805.03956 ADSCrossRefGoogle Scholar
- O’Sullivan S, Downes TP (2006) An explicit scheme for multifluid magnetohydrodynamics. MNRAS 366:1329–1336. https://doi.org/10.1111/j.1365-2966.2005.09898.x. arXiv:astro-ph/0511478 ADSCrossRefGoogle Scholar
- Page D (2009) Neutron star cooling: I. In: Becker W (ed) Neutron stars and pulsars. Astrophysics and Space Science Library, vol 357. Springer, Berlin, p 247. https://doi.org/10.1007/978-3-540-76965-1 Google Scholar
- Page D, Lattimer JM, Prakash M, Steiner AW (2004) Minimal cooling of neutron stars: a new paradigm. ApJS 155:623–650. https://doi.org/10.1086/424844. arXiv:astro-ph/0403657 ADSCrossRefGoogle Scholar
- Page D, Geppert U, Küker M (2007) Cooling of neutron stars with strong toroidal magnetic fields. Ap&SS 308:403–412. https://doi.org/10.1007/s10509-007-9316-z. arXiv:astro-ph/0701442 ADSCrossRefGoogle Scholar
- Page D, Prakash M, Lattimer JM, Steiner AW (2011) Rapid cooling of the neutron star in cassiopeia a triggered by neutron superfluidity in dense matter. Phys Rev Lett 106:081101. https://doi.org/10.1103/PhysRevLett.106.081101. arXiv:1011.6142 ADSCrossRefGoogle Scholar
- Palenzuela C (2013) Modelling magnetized neutron stars using resistive magnetohydrodynamics. MNRAS 431(2):1853–1865. https://doi.org/10.1093/mnras/stt311. arXiv:1212.0130 ADSCrossRefGoogle Scholar
- Palmer DM, Barthelmy S, Gehrels N, Kippen RM, Cayton T, Kouveliotou C, Eichler D, Wijers RAMJ, Woods PM, Granot J, Lyubarsky YE, Ramirez-Ruiz E, Barbier L, Chester M, Cummings J, Fenimore EE, Finger MH, Gaensler BM, Hullinger D, Krimm H, Markwardt CB, Nousek JA, Parsons A, Patel S, Sakamoto T, Sato G, Suzuki M, Tueller J (2005) A giant \(\gamma \)-ray flare from the magnetar SGR 1806–20. Nature 434:1107–1109. https://doi.org/10.1038/nature03525. arXiv:astro-ph/0503030 ADSCrossRefGoogle Scholar
- Parfrey K, Beloborodov AM, Hui L (2013) Dynamics of strongly twisted relativistic magnetospheres. Astrophys J 774:92. https://doi.org/10.1088/0004-637X/774/2/92. arXiv:1306.4335 ADSCrossRefGoogle Scholar
- Passamonti A, Akgün T, Pons JA, Miralles JA (2017a) On the magnetic field evolution time-scale in superconducting neutron star cores. MNRAS 469:4979–4984. https://doi.org/10.1093/mnras/stx1192. arXiv:1704.02016 ADSCrossRefGoogle Scholar
- Passamonti A, Akgün T, Pons JA, Miralles JA (2017b) The relevance of ambipolar diffusion for neutron star evolution. MNRAS 465:3416–3428. https://doi.org/10.1093/mnras/stw2936. arXiv:1608.00001 ADSCrossRefGoogle Scholar
- Pattle RE (1959) Diffusion from an instantaneous point source with a concentration-dependent coefficient. Quart J Mech Appl Math 12:407–409MathSciNetCrossRefGoogle Scholar
- Pérez-Azorín JF, Miralles JA, Pons JA (2005) Thermal radiation from magnetic neutron star surfaces. A&A 433:275–283. https://doi.org/10.1051/0004-6361:20041612. arXiv:astro-ph/0410664 ADSCrossRefGoogle Scholar
- Pérez-Azorín JF, Miralles JA, Pons JA (2006) Anisotropic thermal emission from magnetized neutron stars. A&A 451:1009–1024. https://doi.org/10.1051/0004-6361:20054403. arXiv:astro-ph/0510684 ADSCrossRefzbMATHGoogle Scholar
- Perna R, Pons JA (2011) A unified model of the magnetar and radio pulsar bursting phenomenology. ApJL 727:L51. https://doi.org/10.1088/2041-8205/727/2/L51. arXiv:1101.1098 ADSCrossRefGoogle Scholar
- Philippov A, Tchekhovskoy A, Li JG (2014) Time evolution of pulsar obliquity angle from 3D simulations of magnetospheres. MNRAS 441:1879–1887. https://doi.org/10.1093/mnras/stu591. arXiv:1311.1513 ADSCrossRefGoogle Scholar
- Pili AG, Bucciantini N, Del Zanna L (2015) General relativistic neutron stars with twisted magnetosphere. MNRAS 447:2821–2835. https://doi.org/10.1093/mnras/stu2628. arXiv:1412.4036 ADSCrossRefGoogle Scholar
- Pons JA, Geppert U (2007) Magnetic field dissipation in neutron star crusts: from magnetars to isolated neutron stars. A&A 470:303–315. https://doi.org/10.1051/0004-6361:20077456. arXiv:astro-ph/0703267 ADSCrossRefzbMATHGoogle Scholar
- Pons JA, Geppert U (2010) Confirmation of the occurrence of the Hall instability in the non-linear regime. A&A 513:L12. https://doi.org/10.1051/0004-6361/201014197. arXiv:1004.1054 ADSCrossRefGoogle Scholar
- Pons JA, Perna R (2011) Magnetars versus high magnetic field pulsars: a theoretical interpretation of the apparent dichotomy. Astrophys J 741:123. https://doi.org/10.1088/0004-637X/741/2/123. arXiv:1109.5184 ADSCrossRefGoogle Scholar
- Pons JA, Reddy S, Prakash M, Lattimer JM, Miralles JA (1999) Evolution of proto-neutron stars. Astrophys J 513:780–804. https://doi.org/10.1086/306889. arXiv:astro-ph/9807040 ADSCrossRefGoogle Scholar
- Pons JA, Miralles JA, Geppert U (2009) Magneto-thermal evolution of neutron stars. A&A 496:207–216. https://doi.org/10.1051/0004-6361:200811229. arXiv:0812.3018 ADSCrossRefzbMATHGoogle Scholar
- Pons JA, Viganò D, Rea N (2013) A highly resistive layer within the crust of X-ray pulsars limits their spin periods. Nature Phys 9:431–434. https://doi.org/10.1038/nphys2640. arXiv:1304.6546 ADSCrossRefGoogle Scholar
- Posselt B, Pavlov GG (2018) Upper limits on the rapid cooling of the central compact object in Cas A. Astrophys J 864:135. https://doi.org/10.3847/1538-4357/aad7fc. arXiv:1808.00531 ADSCrossRefGoogle Scholar
- Posselt B, Popov SB, Haberl F, Trümper J, Turolla R, Neuhäuser R (2007) The magnificent seven in the dusty prairie. AP&SS 308:171–179. https://doi.org/10.1007/s10509-007-9344-8. arXiv:astro-ph/0609275 ADSCrossRefGoogle Scholar
- Potekhin AY, Chabrier G (2010) Thermodynamic functions of dense plasmas: analytic approximations for astrophysical applications. Contrib Plasma Phys 50:82–87. https://doi.org/10.1002/ctpp.201010017. arXiv:1001.0690 ADSCrossRefGoogle Scholar
- Potekhin AY, Chabrier G (2018) Magnetic neutron star cooling and microphysics. A&A 609:A74. https://doi.org/10.1051/0004-6361/201731866. arXiv:1711.07662 ADSCrossRefGoogle Scholar
- Potekhin AY, Suleimanov VF, van Adelsberg M, Werner K (2012) Radiative properties of magnetic neutron stars with metallic surfaces and thin atmospheres. A&A 546:A121. https://doi.org/10.1051/0004-6361/201219747. arXiv:1208.6582 ADSCrossRefGoogle Scholar
- Potekhin AY, De Luca A, Pons JA (2015a) Neutron stars—thermal emitters. Space Sci Rev 191:171–206. https://doi.org/10.1007/s11214-014-0102-2. arXiv:1409.7666 ADSCrossRefGoogle Scholar
- Potekhin AY, Pons JA, Page D (2015b) Neutron stars—cooling and transport. Space Sci Rev 191:239–291. https://doi.org/10.1007/s11214-015-0180-9. arXiv:1507.06186 ADSCrossRefGoogle Scholar
- Press WH, Teukolsky SA, Vetterling WT, Flannery BP (2007) Numerical recipes: the art of scientific computing, 3rd edn. Cambridge University Press, CambridgezbMATHGoogle Scholar
- Radice D, Perego A, Zappa F, Bernuzzi S (2018) GW170817: joint constraint on the neutron star equation of state from multimessenger observations. ApJL 852:L29. https://doi.org/10.3847/2041-8213/aaa402. arXiv:1711.03647 ADSCrossRefGoogle Scholar
- Rädler KH, Fuchs H, Geppert U, Rheinhardt M, Zannias T (2001) General-relativistic free decay of magnetic fields in a spherically symmetric body. Phys Rev D 64:083008. https://doi.org/10.1103/PhysRevD.64.083008 ADSCrossRefGoogle Scholar
- Rea N, Esposito P (2011) Magnetar outbursts: an observational review. In: Torres D, Rea N (eds) High-energy emission from pulsars and their systems. astrophysics and space science proceedings. Springer, Berlin, Heidelberg, pp 247–273. https://doi.org/10.1007/978-3-642-17251-9_21. arXiv:1101.4472 Google Scholar
- Rea N, Zane S, Turolla R, Lyutikov M, Götz D (2008) Resonant cyclotron scattering in magnetars’ emission. Astrophys J 686:1245–1260. https://doi.org/10.1086/591264. arXiv:0802.1923 ADSCrossRefGoogle Scholar
- Rea N, Esposito P, Turolla R, Israel GL, Zane S, Stella L, Mereghetti S, Tiengo A, Götz D, Göğüş E, Kouveliotou C (2010) A low-magnetic-field soft gamma repeater. Science 330:944. https://doi.org/10.1126/science.1196088. arXiv:1010.2781 ADSCrossRefGoogle Scholar
- Rea N, Israel GL, Esposito P, Pons JA, Camero-Arranz A, Mignani RP, Turolla R, Zane S, Burgay M, Possenti A, Campana S, Enoto T, Gehrels N, Göǧüş E, Götz D, Kouveliotou C, Makishima K, Mereghetti S, Oates SR, Palmer DM, Perna R, Stella L, Tiengo A (2012) A new low magnetic field magnetar: the 2011 outburst of Swift J1822.3-1606. Astrophys J 754:27. https://doi.org/10.1088/0004-637X/754/1/27. arXiv:1203.6449 ADSCrossRefGoogle Scholar
- Rea N, Israel GL, Pons JA, Turolla R, Viganò D, Zane S, Esposito P, Perna R, Papitto A, Terreran G, Tiengo A, Salvetti D, Girart JM, Palau A, Possenti A, Burgay M, Göğüş E, Caliandro GA, Kouveliotou C, Götz D, Mignani RP, Ratti E, Stella L (2013) The outburst decay of the low magnetic field magnetar SGR 0418+5729. Astrophys J 770:65. https://doi.org/10.1088/0004-637X/770/1/65. arXiv:1303.5579 ADSCrossRefGoogle Scholar
- Rea N, Viganò D, Israel GL, Pons JA, Torres DF (2014) 3XMM J185246.6+003317: another low magnetic field magnetar. ApJL 781:L17. https://doi.org/10.1088/2041-8205/781/1/L17. arXiv:1311.3091 ADSCrossRefGoogle Scholar
- Rea N, Borghese A, Esposito P, Coti Zelati F, Bachetti M, Israel GL, De Luca A (2016) Magnetar-like activity from the central compact object in the SNR RCW103. Astrophys J 828(1):L13. https://doi.org/10.3847/2041-8205/828/1/L13. arXiv:1607.04107 ADSCrossRefGoogle Scholar
- Reisenegger A, Benguria R, Prieto JP, Araya PA, Lai D (2007) Hall drift of axisymmetric magnetic fields in solid neutron-star matter. A&A 472:233–240. https://doi.org/10.1051/0004-6361:20077874. arXiv:0705.1901 ADSCrossRefGoogle Scholar
- Richtmyer RD, Morton KW (1967) Difference methods for initial-value problems. Interscience Publishers, GenevazbMATHGoogle Scholar
- Roumeliotis G, Sturrock PA, Antiochos SK (1994) A numerical study of the sudden eruption of sheared magnetic fields. Astrophys J 423:847. https://doi.org/10.1086/173862 ADSCrossRefGoogle Scholar
- Ruiz M, Shapiro SL, Tsokaros A (2018) GW170817, general relativistic magnetohydrodynamic simulations, and the neutron star maximum mass. Phys Rev D 97(2):021501. https://doi.org/10.1103/PhysRevD.97.021501. arXiv:1711.00473 ADSCrossRefGoogle Scholar
- Shalybkov DA, Urpin VA (1995) Ambipolar diffusion and anisotropy of resistivity in neutron star cores. MNRAS 273:643–648. https://doi.org/10.1093/mnras/273.3.643 ADSCrossRefGoogle Scholar
- Shternin PS, Yakovlev DG, Heinke CO, Ho WCG, Patnaude DJ (2011) Cooling neutron star in the Cassiopeia A supernova remnant: evidence for superfluidity in the core. MNRAS 412:L108–L112. https://doi.org/10.1111/j.1745-3933.2011.01015.x. arXiv:1012.0045 ADSCrossRefGoogle Scholar
- Shu CW (1998) Essentially non-oscillatory and weighted essentially non-oscillatory schemes for hyperbolic conservation laws. In: Quarteroni A (ed) Advanced numerical approximation of nonlinear hyperbolic equations. Lecture Notes in Mathematics, vol 1697. Springer, Berlin, pp 325–432. https://doi.org/10.1007/BFb0096355 Google Scholar
- Spitkovsky A (2006) Time-dependent force-free pulsar magnetospheres: axisymmetric and oblique rotators. ApJL 648:L51–L54. https://doi.org/10.1086/507518. arXiv:astro-ph/0603147 ADSCrossRefGoogle Scholar
- Suresh A, Huynh H (1997) Accurate monotonicity-preserving schemes with Runge–Kutta time stepping. J Comput Phys 136:83–99. https://doi.org/10.1006/jcph.1997.5745 ADSMathSciNetCrossRefzbMATHGoogle Scholar
- Thomas LH (1949) Elliptic problems in linear difference equations over a network. Watson Science Computer Laboratory Report. Columbia University, New YorkGoogle Scholar
- Thompson C, Duncan RC (1995) The soft gamma repeaters as very strongly magnetized neutron stars—I. Radiative mechanism for outbursts. MNRAS 275:255–300. https://doi.org/10.1093/mnras/275.2.255 ADSCrossRefGoogle Scholar
- Thompson C, Duncan RC (1996) The soft gamma repeaters as very strongly magnetized neutron stars. II. Quiescent neutrino, X-ray, and Alfvén wave emission. Astrophys J 473:322. https://doi.org/10.1086/178147 ADSCrossRefGoogle Scholar
- Toro E (1997) Riemann solvers and numerical methods for fluid dynamics: a practical introduction. Springer, Berlin. https://doi.org/10.1007/978-3-662-03490-3 CrossRefGoogle Scholar
- Toro EF (2009) Riemann solvers and numerical methods for fluid dynamics: a practical introduction, 3rd edn. Springer, Berlin. https://doi.org/10.1007/b79761 CrossRefGoogle Scholar
- Tóth G (2000) The \(\nabla \cdot B=0\) constraint in shock-capturing magnetohydrodynamics codes. J Comput Phys 161:605–652. https://doi.org/10.1006/jcph.2000.6519 ADSMathSciNetCrossRefzbMATHGoogle Scholar
- Tóth G, Ma Y, Gombosi TI (2008) Hall magnetohydrodynamics on block-adaptive grids. J Comput Phys 227:6967–6984. https://doi.org/10.1016/j.jcp.2008.04.010 ADSMathSciNetCrossRefzbMATHGoogle Scholar
- Tsuruta S (1964) Neutron star models. PhD thesis, Columbia UniversityGoogle Scholar
- Tsuruta S (2009) Neutron star cooling: II. In: Becker W (ed) Neutron stars and pulsars. Astrophysics and Space Science Library, vol 357. Springer, Berlin, p 289. https://doi.org/10.1007/978-3-540-76965-1 Google Scholar
- Turolla R, Zane S, Drake JJ (2004) Bare quark stars or naked neutron stars? The case of RX J1856.5-3754. Astrophys J 603:265–282. https://doi.org/10.1086/379113. arXiv:astro-ph/0308326 ADSCrossRefGoogle Scholar
- Turolla R, Zane S, Watts AL (2015) Magnetars: the physics behind observations. A review. Rep Prog Phys 78:116901. https://doi.org/10.1088/0034-4885/78/11/116901. arXiv:1507.02924 ADSCrossRefGoogle Scholar
- Urpin VA, Yakovlev DG (1980) Thermogalvanomagnetic effects in white dwarfs and neutron stars. Sov Astron 24:425ADSGoogle Scholar
- Vainshtein SI, Chitre SM, Olinto AV (2000) Rapid dissipation of magnetic fields due to the Hall current. Phys Rev E 61:4422–4430. https://doi.org/10.1103/PhysRevE.61.4422. arXiv:astro-ph/9911386 ADSCrossRefGoogle Scholar
- van Adelsberg M, Lai D, Potekhin AY, Arras P (2005) Radiation from condensed surface of magnetic neutron stars. Astrophys J 628:902–913. https://doi.org/10.1086/430871. arXiv:astro-ph/0406001 ADSCrossRefGoogle Scholar
- van Haarlem MP et al (2013) LOFAR: The LOw-Frequency ARray. A&A 556:A2. https://doi.org/10.1051/0004-6361/201220873. arXiv:1305.3550 CrossRefGoogle Scholar
- van Leer B (1977) Towards the ultimate conservative difference scheme. IV. A new approach to numerical convection. J Comput Phys 23:276. https://doi.org/10.1016/0021-9991(77)90095-X ADSCrossRefzbMATHGoogle Scholar
- van Riper KA (1991) Neutron star thermal evolution. ApJS 75:449–462. https://doi.org/10.1086/191538 ADSCrossRefGoogle Scholar
- Viganò D, Pons JA, Miralles JA (2011) Force-free twisted magnetospheres of neutron stars. A&A 533:A125. https://doi.org/10.1051/0004-6361/201117105. arXiv:1106.5934 ADSCrossRefzbMATHGoogle Scholar
- Viganò D, Pons JA, Miralles JA (2012) A new code for the Hall-driven magnetic evolution of neutron stars. Comput Phys Commun 183:2042–2053. https://doi.org/10.1016/j.cpc.2012.04.029. arXiv:1204.4707 ADSCrossRefGoogle Scholar
- Viganò D, Rea N, Pons JA, Perna R, Aguilera DN, Miralles JA (2013) Unifying the observational diversity of isolated neutron stars via magneto-thermal evolution models. MNRAS 434:123–141. https://doi.org/10.1093/mnras/stt1008. arXiv:1306.2156 ADSCrossRefGoogle Scholar
- Viganò D, Torres DF, Martín J (2015) A systematic synchro-curvature modelling of pulsar \(\gamma \)-ray spectra unveils hidden trends. MNRAS 453:2599–2621. https://doi.org/10.1093/mnras/stv1582. arXiv:1507.04021 ADSCrossRefGoogle Scholar
- Viganò D, Martínez-Gómez D, Pons JA, Palenzuela C, Carrasco F, Miñano B, Arbona A, Bona C, Massó J (2019) A Simflowny-based high-performance 3D code for the generalized induction equation. Comput Phys Commun 237:168–183. https://doi.org/10.1016/j.cpc.2018.11.022. arXiv:1811.08198 ADSMathSciNetCrossRefGoogle Scholar
- Wiebicke HJ, Geppert U (1991) Amplification of neutron star magnetic fields by thermoelectric effects. II—Linear approximation. A&A 245:331–340ADSGoogle Scholar
- Wiebicke HJ, Geppert U (1992) Amplification of neutron star magnetic fields by thermoelectric effects. III—Growth limits in nonlinear calculations. A&A 262:125–130ADSGoogle Scholar
- Wiebicke HJ, Geppert U (1995) Amplification of neutron star magnetic fields by thermoelectric effects. IV. Averaged small-scale modes and selection rules for large-scale modes. A&A 294:303–312ADSGoogle Scholar
- Wiebicke HJ, Geppert U (1996) Amplification of neutron star magnetic fields by thermoelectric effects. VI. Analytical approach. A&A 309:203–212ADSGoogle Scholar
- Wijngaarden MJP, Ho WCG, Chang P, Heinke CO, Page D, Beznogov M, Patnaude DJ (2019) Diffusive nuclear burning in cooling simulations and application to new temperature data of the Cassiopeia A neutron star. MNRAS 484:974–988. https://doi.org/10.1093/mnras/stz042. arXiv:1901.01012 ADSCrossRefGoogle Scholar
- Wood TS, Hollerbach R (2015) Three dimensional simulation of the magnetic stress in a neutron star crust. Phys Rev Lett 114(19):191101. https://doi.org/10.1103/PhysRevLett.114.191101. arXiv:1501.05149 ADSCrossRefGoogle Scholar
- Yakovlev DG, Pethick CJ (2004) Neutron star cooling. Annu Rev Astron Astrophys 42:169–210. https://doi.org/10.1146/annurev.astro.42.053102.134013. arXiv:astro-ph/0402143 ADSCrossRefGoogle Scholar
- Yakovlev DG, Shalybkov DA (1990) Electrical conductivity and resistivity in magnetized cores of neutron stars. Sov Astron Lett 16:86ADSGoogle Scholar
- Yakovlev DG, Gnedin OY, Kaminker AD, Potekhin AY (2008) Theory of cooling neutron stars versus observations. In: Bassa C, Wang Z, Cumming A, Kaspi VM (eds) 40 years of pulsars: millisecond pulsars, magnetars and more. AIP conference series, vol 983. American Institute of Physics, Melville, NY, pp 379–387. https://doi.org/10.1063/1.2900259. arXiv:0710.2047
- Yamaleev NK, Carpenter MH (2009) Third-order energy stable WENO scheme. J Comput Phys 228:3025–3047. https://doi.org/10.1016/j.jcp.2009.01.011 ADSMathSciNetCrossRefzbMATHGoogle Scholar
- Yang WH, Sturrock PA, Antiochos SK (1986) Force-free magnetic fields: the magneto-frictional method. Astrophys J 309:383. https://doi.org/10.1086/164610 ADSCrossRefGoogle Scholar
- Zhang L, Cheng KS (1997) High-energy radiation from rapidly spinning pulsars with thick outer gaps. Astrophys J 487:370. https://doi.org/10.1086/304589 ADSCrossRefGoogle Scholar

## Copyright information

**Open Access**This article is distributed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made.