1 Introduction

Neutron stars (NSs) [1] are considered crucial observables as they allow testing physical theories at very high central matter density. Recent observations of gravitational wave events involving mergers of NSs have opened up new frontiers in the area of NSs research [2,3,4,5,6,7,8,9,10,11]. The detailed study of NSs physics is also crucial to make a comparative study with futuristic collider experiments like the compressed baryonic matter experiment (CBM) involving matter at very high density and low temperatures.

Recent investigations have revealed new information about the potency of magnetic fields inside and on the surface of compact objects [12,13,14,15]. The macroscopic structure, evolution, and observable astrophysical properties of NSs are strongly determined by the equation of state (EoS) of the matter and other sources in the energy-momentum tensor. Several observations such as, Soft Gamma Ray repeaters and X-ray pulsars indicate that a specific group of NSs, called magnetars [16], possess a very strong magnetic fields. In the literature, it is established that the internal structure of NSs and their cooling properties get affected by the distribution of strong magnetic field in the interior [17, 18]. Magnetars are strongly magnetized NSs that exhibit a wide array of X-ray activity, with anticipated magnetic field intensities of up to \(10^{18}\) Gauss [1]. This magnetic field is much larger than the level at which the electron’s Landau level energies match its rest mass. In fact, the Virial theorem predicts the inner magnetic fields to be as high as \(10^{18}\) Gauss. The exact origin of magnetic fields in different astrophysical objects is still an open area of research [19, 20]. Magnetars have attracted the attention of scientists due to their extraordinarily strong magnetic fields dependent properties [21]. This magnetic field may significantly modify the emission of high-energy electromagnetic radiation from these objects and thereby affect their cooling properties [4, 17, 19, 22,23,24,25,26].There is also a renewed interest in studying NSs as they have been proposed to be the source of axionic DM particles.

Even after several years of searches,the exact bound for axion mass (and coupling constant) is still not well established. The axion mass bound from various experiments are as follows; MADMAX and plasma haloscopes [27, 28] provide axion mass in the range \(\sim \) 40–400 \(\upmu \) eV, ADMX and HAYSTAC give the axion mass \(m_{a}\sim -100\) \(\upmu \)eV, DM-Radio [29] and CASPEr [30,31,32] and ABRACADABRA [33,34,35], indicate the axion masses \(m_{a} \ll \) \(\upmu \)eV. The ADMX experiment has gained sensitivity to Dean–Fischler–Srednitsky–Zhitnitsky (DFSZ) QCD axion model with axion mass range \(m_{a} \sim \) 2.7–4.2 \(\upmu \)eV. [36,37,38,39,40].However, Blackhole superradiance [41, 42] indicates QCD axion masses \(> 2\times 10^{-11}\) eV. In the context of Kim–Shifman–Weinstein–Zakharov (KSVZ) axion model, Buschmann et al. [43] restrict axion mass at \(m_{a}\leqslant 16\) meV (\(95 \%\) confidence level) and finds no evidence for axions in the isolated NSs data. The ADMX [44] and HAYSTAC [45] experimental results in context to strongly coupled KSVZ model [46, 47] reveals that there is roughly for \(\sim \) ten orders of magnitude of parameter space for the axion mass still remains unprobed. Axionic DM, with mass not in meV range is challenging to explore in the laboratory [48,49,50,51,52,53]. Recent work [54, 55], gives the bound on axion mass as \(m_{a}\leqslant \) 10 meV.

In the current work, we have investigated the impact of magnetic field on the pressure and mass profile of the non-rotating NSs with mass \(M \sim 1.4M_{\odot }\). We employ three microscopic model-based EoS: APR, FPS, and SLY. The distance-dependent magnetic field is calculated using an eighth-order polynomial with a high value of the central magnetic field. Thus, the magnetic field obtained is used in a modified TOV system of equations to find the pressure and mass profiles. We have studied the impact of a strong magnetic field on the cooling properties of NSs for different EoS using the NSCool code [56]. We have also investigated the role of a strong magnetic field on the luminosities of observables (neutrinos, axions, and photons). We conclude that the magnetic field affects the luminosities through a change in the thermal profile of the star.

The paper is organized as follows. In Sect. 1, we present a brief Introduction. Section 2 describes the modified TOV equations, Equation of states, NSs cooling, and QCD Axions. We have also subsequently discussed the axion and neutrino emission rates. In Sect. 3, we present the discussions on the results of the impact of magnetic fields on various observables and macroscopic NS properties. We have discussed how including a magnetic field affects the profiles and cooling rates. Further, we also investigate the luminosities (neutrinos, axions, and photons) for an axion mass 16 meV. Finally, in Sect. 4, we summarize and conclude the work.

2 Formalism

2.1 TOV equations for non-rotating neutron star

The present investigation is based on the modified TOV system of equations in the presence of a strong magnetic field. A profile for the magnetic field’s strength is required to analyze the impact of magnetic fields for a particular EoSs of NSs. In Schwarzschild coordinates, the space-time metric inside the spherically symmetric star is given by:

$$\begin{aligned} ds^2=-\exp (2\phi )c^2dt^2+\frac{dr^2}{1-\frac{2G\,m(r)}{rc^2}}+r^2d\Omega , \end{aligned}$$
(1)

where, \(\exp (2\phi (R))=1-\frac{2GM}{Rc^2}\).

The interior solution of Einstein’s equation of General theory of relativity for this metric yields the following first-order differential equations (TOV) [57, 58]:

$$\begin{aligned} \frac{dm}{dr}= & {} 4\pi r^2 \epsilon (r) \end{aligned}$$
(2)
$$\begin{aligned} \frac{dP}{dr}= & {} -\frac{G\left( \epsilon +\frac{P}{c^2}\right) \left( m(r)\,c^2 + 4 \pi r^3 P\right) }{r\left( r\,c^2-2Gm(r)\right) }. \end{aligned}$$
(3)

The above equations are to be integrated to obtain the pressure P(r) and mass m(r) inside the interior at a distance r under hydrostatic conditions. The boundary conditions for mass are \(m(r = 0) = 0\), \(m(r = R) = M\). The core density is \(\epsilon (r=0) = \epsilon _0\) and core pressure \(P(r = 0) = P_0\). The pressure decreases towards the surface, and at the radius, R of the star, the pressure \(P(r= R)\) drops to zero [59]. Under the effect of the magnetic field, a magnetic energy density term is included in the matter density term of the TOV system of equations. Strong magnetic fields in magnetars will contribute as a source of the energy–momentum tensor and consequently affect the interior solutions. It has been shown that the TOV equations [58] may be modified by accounting for the contribution from the magnetic field to the energy density and a Lorentz force term under the condition of hydrostatic equation [14].

The modified TOV equations in the presence of a magnetic field are given by:

$$\begin{aligned} \frac{dm}{dr}= & {} 4\pi r^{2}\left( \epsilon +\frac{B^{2}}{2\mu _{0}c^2} \right) \end{aligned}$$
(4)
$$\begin{aligned} \frac{d\phi }{dr}= & {} \frac{G\left( m(r)+ 4 \pi r ^3 P/c^{2} \right) }{r\left( r\,c^2-2G\,m(r)\right) } \end{aligned}$$
(5)
$$\begin{aligned} \frac{dP}{dr}= & {} -c^{2} \left( \epsilon +\frac{B^2}{2\mu _{0}c^2}+\frac{P}{c^{2}} \right) \left( \frac{d\phi }{dr}-{\mathcal L}\left( r \right) \right) , \end{aligned}$$
(6)

where \({\mathcal {L}}(r)\) denotes a Lorentz force contribution [14]. The phenomenological modeling of the effect of the magnetic field [60] is used to write an effective Lorentz force term in the modified TOV equations as  [14];

$$\begin{aligned} \frac{{{\mathcal {L}}}\left( r \right) }{ 10^{-41}} = B_{c}^2\left[ -3.8 \left( \frac{r}{{\bar{r}}} \right) + 8.1 \left( \frac{r}{{\bar{r}}} \right) ^3 -1.6 \left( \frac{r}{{\bar{r}}} \right) ^5 -2.3 \left( \frac{r}{{\bar{r}}} \right) ^7 \right] .\nonumber \\ \end{aligned}$$
(7)

The distribution of the magnetic field in the interior of the star shall affect the mass and pressure profiles. Several such magnetic field profiles are available in the literature to study the structure of a NSs in strong magnetic fields [12,13,14, 61, 62].

Chatterjee et al. [14] reported a thorough analysis of the magnetic field configurations in non-rotating NSs using an axisymmetric numerical code, altering the mass, the strength of the magnetic field, and the equation of state.

Apart from the magnetic field distribution in a NSs [16, 63, 64], the EoS of matter under extreme conditions of very high density determines the internal structure and cooling properties of NSs [4, 17, 23, 60, 65, 66].

Several groups have attempted to compute the EoS of the matter contained inside the core of NSs with and without considering finite baryon chemical potential [3, 12,13,14]. The study of magnetic field distribution as a function of distance, baryon chemical potential, rotation frequency, etc., has been presented in the Refs. [13, 14].

The EoS of Strongly magnetized NSs substantially affect their internal structure and macroscopic properties like mass and radius [3, 67, 68]. However, for stable equilibrium, a NSs must contain both poloidal (i.e., having only components \(B_r\) and \(B_\theta \)) and toroidal (i.e., having only the azimuthal component \(B_\phi \)) components since both are unstable on their own [65, 69, 70]. It is possible that such stars become unstable unless the toroidal and poloidal fields are both present and in some ratio [71]. Further, relativistic considerations of such highly magnetized NSs show that the magnetic energy decays on a timescale which is a function of the Alfvén crossing time and the rotation speed. It is relatively short compared to any evolutionary timescale [64, 72].

Assuming azimuthal symmetry the magnitude of the magnetic field \(B = (\vec {B}.\vec {B})^{1/2}\) is generally expressible as a sum:

$$\begin{aligned} B(r, \theta ) \approx \sum _{l=0}^{l_{max}} B_{l} (r) Y_l^0 (\theta ). \end{aligned}$$
(8)

It has been seen using simulations [59] that the monopole term dominates significantly over the others. We shall ignore the anisotropies as a first approximation in our work. We emphasize that the vector magnetic field B cannot have a monopole component. The “monopole” here refers to the norm of the magnetic field. We also recognize that stability analysis of the NSs in the presence of strong magnetic fields would naturally require the presence of toroidal and poloidal fields [71]. In principle, it has been shown that the toroidal fields can be much stronger for realistic stars than the poloidal fields [70, 71]. We have adopted a simplified pure radial profile for the monopolar term of B (it must be noted that we are not looking at magnetic monopoles here) as a polynomial fit function obtained in [73, 74] given by:

Fig. 1
figure 1

The variation of magnetic field \(B_{0}\) (r) with radius for different values of \(\overline{r}\)

$$\begin{aligned} B_0(r) = B_c\left[ 1 - 1.6 \left( \frac{r}{{\bar{r}}} \right) ^2 - \left( \frac{r}{{\bar{r}}} \right) ^4 + 4.2 \left( \frac{r}{{\bar{r}}} \right) ^6 -2.4 \left( \frac{r}{{\bar{r}}} \right) ^8 \right] ,\nonumber \\ \end{aligned}$$
(9)

where \({\bar{r}}\) is the star’s mean radius and \(B_c\) is central magnetic field. Finding a suitable mean radius of a star distorted due to a magnetic field is difficult. Therefore, the \(\bar{r}\) value is usually considered to be slightly larger than the star’s actual radius. We have assumed the value of central magnetic field, \(B_c = 10^{18}\) Gauss, and adopted a value \({\bar{r}}\) = 14 km in our analysis. One can expect such magnetic fields to decay in relatively short times [64]. We emphasize that the time evolution of the magnetic field is not considered in the current work, and we have considered only a time-averaged magnetic field with spatial variation. Our work follows the time-independent analysis by [24]. Figure 1 shows the radial profile of the magnetic field for different values of the star’s mean radius. Our subsequent analysis indicates that \(\bar{r}\) has a weak impact on the luminosities.

2.2 Equation of state

In the current work, APR, FPS, and SLY EoSs are considered to study the thermodynamic behavior of the NSs interiors. In Akmal–Pandharipande–Ravenhall (APR) [75, 76], EoS interaction potential is parameterized using baryon density and isospin asymmetry [77, 78]. This EoS shows the transition between the low-density phase (LDP) to the high-density phase (HDP). It is also observed that phase transition speeds up the star’s shrink rate. The FPS EoS gives a unified description of the inner crust and the liquid core. In this model, the crust-liquid core transition takes place at higher density \(\rho _ {edge} = 1.6 \times 10^{14}\) g/cm\(^{3}\) and is preceded by a sequence of phase transitions between various nuclear shapes. All phase transitions are weakly first-order, with relative density jumps smaller than \(1\%\). In the case of a different effective nuclear Hamiltonian, FPS EoS is the most suitable [79]. The SLY EoS [80] of NSs matter is based on the SLY effective nuclear interaction model. In this model, nuclei in the ground state of NSs matter remain spherical down to the bottom edge of the inner crust. Transition to the uniform ionized matter (npe) plasma occurs at \(\rho =1.3\times 10^{14}\) g/cm\(^{3}\). The SLY EoS consistently describes the cooling near the minimum mass of the solid crust and liquid core. The crust-core phase transition is very weakly first-order, with a relative density jump of about 1%. It is mandatory to use the same effective nuclear Hamiltonian to describe nuclear structures (nuclei) and neutron gas inside the inner crust and the uniform npe matter of the liquid core. In the vicinity of the crust-core interface, the SLY EoS is stiffer than the FPS one. Moreover, in the case of the SLY EoS, the discontinuous stiffening at the crust-core transition is more pronounced than in the FPS case.

2.3 Neutron star cooling

Neutrino emission is the dominant process that causes NSs cooling [81,82,83,84] at early times and high temperatures. The NSCool is a FORTRAN-based, NSs cooling computational program [56]. This package also includes several pre-built stars, many EoSs to build stars, and a TOV integrator to build stars from an EoS. The algorithm solves the heat transport and energy balance equations. Assuming the star interior is isothermal, and by focusing only on the energy conservation equation, one can have a reasonable understanding of the fundamental characteristics of NSs cooling [4, 17, 19, 22, 23, 85,86,87]. The corresponding equation following Newtonian formulation is as follows [43]:

Fig. 2
figure 2

The variation of effective surface temperature \(T_e\) with temperature \(T_b\) for three different EoS in the presence and absence of magnetic field

$$\begin{aligned} C_{v}\frac{\mathrm {dT_b^{\infty }} }{\textrm{d} t}=-L_{\nu }^\infty -L_{a}^\infty -L_{\gamma }^\infty (T_{s})+H, \end{aligned}$$
(10)

where \(C_{v}\) total specific heat, \(L_{\nu }^\infty \) is the energy sinks are the total neutrino luminosity, \(L_{a}^\infty \) is the axion luminosity, \(L_{\gamma }^\infty \) is surface photon luminosity, H includes all possible heating mechanisms, \(T_{s}\) is the surface temperature and \(T_b^{\infty }\) internal temperature. \(L_{\gamma }^\infty \)= \(4\pi \sigma R^{2}(T_{s}^{\infty })^4\), with \(\sigma \) as Stefan-Boltzmann’s constant and R is the radius of the star. \(T_{s}^{\infty }\) = \(T_{s}\sqrt{1-2GM/c^{2}R}\), Here infinity superscript indicates that the external observer is at infinity and measures these quantities on the redshifted scale. Typically, \(T_{s}^{\infty }/T_{s}\) \(~\sim \) 0.7. The cooling profile in the inner layers of the NSs obtained from Eq. (12) gives a simplistic isothermal model of thermal evolution. Generalizations involving multidimensional heat transport equation [24] may provide more realistic results for NS ages \(t < 100 \textrm{years}\). One may obtain approximate scaling laws for the cooling process whereby the effective temperature \(T_e\) scales with time as \(T_e \sim t ^\nu \). The exponent \( \nu = - 1/12\) and \(\nu = -1/8\) for slow and fast neutrino cooling, respectively. Here we assume \(H=0\) and superfluidity in the entire NSs cooling. Assuming the thermal relaxation time scale of the envelope is shorter than the stellar evolution time scale, and there is minimal neutrino emission within the envelope. In that case, heat transport and hydrostatic equilibrium can be reduced to ordinary differential equations. These equations can be easily solved, provided they have the correct physical input. The surface temperature \(T_{s}\equiv T_{e}\) is the outcome for every given \(T_{b}\equiv T\left( \rho _{b} \right) \). Typically, it’s referred to as a \(T_{b}-T_{s}\) or \(T_{b}-T_{e}\) relationship. The fit functions for the \(T_{b}-T_{e}\) relation are given in the literature in the absence of magnetic field. We have calculated the \(T_b-T_e\) relationship using NSCool code [56]. The variation of the observed temperature \(T_e\) with the internal temperature \(T_b\) is shown in Fig. 2. The \(T_b-T_e\) curves show that at a fixed value \(T_b\), the surface temperature \(T_e\) in the presence of a strong magnetic field is higher than \(T_e\) in the absence of the magnetic field [88]. The monotonic rise of \(T_e\) with \(T_b\) is similar to the behavior reported earlier by [43]. The \(T_b-T_e\) relationship has been estimated in many previous works [89,90,91]. Considering a very intense magnetic field in hot blanketing envelopes of NSs, the structure of HBEs may be affected by enhanced neutrino emission [88, 92,93,94,95,96]. The boundary of the heat blanketing envelopes (HBEs) is \(\epsilon _b\) (\(\rho _{b} \sim 10^{10}\) g/cm\(^3\)). The magnitude of the magnetic field at HBEs is taken as \(10^{13}\) Gauss and it has a radial dependance given by Eq. (10). The HBEs contain either iron or successive layers of hydrogen, helium, carbon and iron. The radiative opacity for a fully ionized, non-relativistic, and non-degenerate plasma, composed of electrons and ions is determined by the Kramers’ formula given by: [97]:

$$\begin{aligned} K_{r}(0)= 75 \bar{g}_{eff}\left( \frac{Z^{3}}{A^{2}} \right) \rho \left( \frac{10^{6}K}{T} \right) ^{3.5}, \end{aligned}$$
(11)

where A and Z are relative atomic weight and mass number, respectively, and \(\bar{g}_{eff} \sim 1\) is the effective Gaunt factor, \(\rho \) is measured in g/cm\(^3\). The strong magnetic fields affects the thermal conduction in the outer layers of the NS, thereby affecting heat flows near the stellar surface and the effective surface temperature. The relation between radiative opacities arising from free-free transitions is given by [97]:

$$\begin{aligned} K_{r}(B)=2.2\bar{g}_{eff}Z^{3} \rho ~ A^{-2}\left( \frac{10^{6}K}{T} \right) ^{1.5}\left( \frac{10^{12} G}{B} \right) ^2, \end{aligned}$$
(12)

where \(\bar{g}_{eff} \sim 1\) is the effective Gaunt factor and \(\rho \) is measured in g/cm\(^3\). We note that though the radiative conductivity becomes anisotropic in the presence of strong magnetic fields.

Furthermore, a magnetic field inside the heat blanketting layer of NSs can strongly affects the electron thermal conductivity. Here we consider only thermal conductivity of electrons which becomes a tensor quantity (with three non-zero components) in the presence of a magnetic field. The three thermal conductivities coefficients are given by parallel (\(\kappa _{\parallel }\)) and transverse \(\kappa _{\perp }\) to the field and hall \(\kappa _{H}\) which describes component perpendicular to B and temperature gradient. The effective electron thermal conductivitiy is given by [92, 97, 98]:

$$\begin{aligned} \kappa =\kappa _{\parallel } \cos ^{2}\theta _B +\kappa _{\perp }\sin ^{2}\theta _B, \end{aligned}$$
(13)

where

$$\begin{aligned} \kappa _{\parallel }=\frac{\pi ^{2}k_{B}^{2}T\,n_{e}\tau _{e}}{3m_{e}^*}, \end{aligned}$$
(14)

In the above equation, \(\tau _e\) is the effective electron thermal-conduction relaxation time and \(n_e\) is the electron number density.

$$\begin{aligned} \kappa _{\perp }=\frac{\kappa _{\parallel }}{1+(\omega ^{*}\tau _{e})^{2}}, \end{aligned}$$
(15)

where \(\omega ^{*} = \omega _c/\gamma _r\), with \(\omega _c=e B/m_e c\), \(\gamma _r= \sqrt{(1+x_r^2)}\) and \(x_r = \frac{p_F}{m_e c}\). Finally, the product \(\omega ^{*} \tau _e=1760 (\frac{B_{12}}{\gamma _r}) (\frac{\tau _e}{10^{-16} s})\), with \(B_{12}=B/10^{12} \text{ Gauss }\). Here \(\theta _B\) is the angle between the direction of magnetic field and normal to the surface.

2.4 QCD axions

The axions are pseudo-Nambu-Goldstone boson [99,100,101,102,103,104] emerging as Dark matter (DM) particles. These are motivated by the Peccei–Quinn solution to the strong-CP problem in which a theta term in QCD Lagrangian is canceled by introducing a scalar field (the so-called QCD Axions) [105,106,107]. Due to astrophysical and cosmological constraints, axions must have rest mass \(m_{a} \sim 10^{-6}\) eV to \(10^{-2}\) eV s [108,109,110,111,112]. In order to study the production of DM Axions, we need NS cooling [113, 114]. There is continuous heat transport from the interior of NS to the surface. These light particles [115] may be emitted from the interiors or the surface of the NSs. In fact, axions in an extended NSs magnetospheres [116] can couple to virtual photons and produce the real photons due to Primakoff effect [117, 118]. As per the current status of the Axionic Dark Matter experiment (ADMX), it can be concluded that axions may remain an excellent candidate for DM searches [33, 33, 36, 115, 119]. There are two axion models; the Dean–Fischler–Srednitsky–Zhitnitsky – DFSZ model [120, 121], which includes an additional axion coupling to the charged leptons, while the Kim–Shifman–Weinstein–Zakharov (hadronic) – KSVZ model restricts the Axion’s interactions to photons and hadrons.

2.5 Neutrino-axion emission inside NS core

2.5.1 Cooper pair breaking and formation process (PBF)

Microscopic theories of dense matter play a crucial role in cooling compact stars and investigating the composition of the inner core. Both the neutrino and photon emissions are controlled by the supranuclear densities and the structure of the stellar outer layers [113, 122,123,124], respectively. The low value of Fermi momenta, particularly for nucleon pairing, is predicted to occur in the \(^1S_0\) angular momentum state. Cooper pairs are expected to form and break when the superfluid condensate is in thermal equilibrium with the broken pairs. This usually happens at a temperature far below superfluid critical temperature \(T_{c}\). Neutrino and Axion can be produced due to the formation of a Cooper pair liberating energy which can be taken away by a \(\nu \bar{\nu }\) pairs.

$$\begin{aligned} n+n\rightarrow \left[ nn \right] + \nu +{\overline{\nu }}\\ p+p\rightarrow \left[ pp \right] + \nu +{\overline{\nu }} \end{aligned}$$

In the current work, we have not included the neutrino emission processes namely, the direct and modified Urca processes.

2.5.2 Neutrino emission rate

The substantial cooling of NSs with superfluid inside the core by emitting neutrinos through Cooper pair-breaking processes (PBF) [113, 120, 122, 123, 125] is driven by axial-vector currents when the temperature [126,127,128] lies below the critical temperature \(T_{c}=10^{9}\) K. For neutron/proton \(^1S_{0}\)-wave paired superfluid, the emissivity [124, 125, 129] of neutrino is given by:

$$\begin{aligned} \epsilon _{\nu }^s = \frac{5\,G_{F}^2}{14\pi ^{3}}v_{N}\left( 0 \right) v_{F}\left( N \right) ^2T^7I_{\nu }^s. \end{aligned}$$
(16)

Here the integral \(I_{\nu }^s\) is;

$$\begin{aligned} I_{\nu }^s=z_{N}^7\left( \int _{1}^{\infty }\frac{y^5}{\sqrt{y^{2}-1}} \left[ f_{F}\left( z_{N}y \right) \right] ^2 dy\right) , \end{aligned}$$
(17)

where \(\epsilon _{\nu }^s\) is neutrino emissivity and \(G_{F}\) is Fermi’s coupling constant \(=1.166\times 10^{-5} \text{ GeV}^{-2}\). \(z=\Delta (T)/T\) with \(\Delta (T)=3.06\,T_c\,\sqrt{(1-\frac{T}{T_c})}\). Here \(T_c \) is the critical temperature for neutron/proton superfluid.

The neutrino emissivity due to the P-wave paired neutron superfluid is taken from ref. [122].

2.5.3 Axion emission rate

In this section, we briefly describe the axion emission rate inside NSs core [116, 130] from Cooper pair breaking and formation process (PBF) [120] process. In order to calculate the production rates in the NSs core, prerequisites are the temperature profiles in the core, the metric, the critical temperature profiles, neutron and proton Fermi’s momenta profile (which depends on the equation of state). The modified TOV system of equations (in the presence of magnetic field and their counterparts) profiles are used after making specific changes (to include axion emission) in the NSCool code to determine the cooling rate and luminosities. Both spin-0 S-wave and spin 1 P-wave nucleon superfluids could exist inside the NS core. The axion emission rate [113, 120] due to the neutron S-wave pairing from the Cooper pair-breaking formation (PBF) [125] is given by:

$$\begin{aligned} \epsilon _{a}^s= \frac{8}{3\pi f_{a}^{2}}\,v_{n}(0)\,v_F(n)^{2}\,T^{5}\,I_{a}^s. \end{aligned}$$
(18)

The integral \(I_{a}^s\) is expressed as:

$$\begin{aligned} I_{a}^s= z^5_{n}\left( \int _{1}^{\infty } \frac{y^3}{\sqrt{y^2-1}}\left[ f_{F}\left( z_{n}y \right) \right] ^{2} dy\right) , \end{aligned}$$
(19)

where \(\epsilon _{a}^s\) is axion emissivity, \(f_{a}\) is axion decay constant, \(v_{n}(0)\) density of state at Fermi surface and \(v_F(n)\) is fermi velocity of neutron.

$$\begin{aligned} v_{n}\left( 0 \right)= & {} \frac{m_{n}\,p_{F}\left( n \right) }{\pi ^2} \end{aligned}$$
(20)
$$\begin{aligned} z= & {} \frac{\Delta (T)}{T}, \end{aligned}$$
(21)
$$\begin{aligned} f_{F}\left( x \right)= & {} \left[ e^x+1 \right] ^{-1}, \end{aligned}$$
(22)

with \(x=\frac{\omega }{2T}\), where \(\omega \) is the axion energy.

Fig. 3
figure 3

The variation of mass with radial distance r for three different EoSs in the presence and absence of magnetic field

The ratio of axion and neutrino emissivities is given by:

$$\begin{aligned} {\epsilon _{a}^s} = \left( \frac{59.2}{f_{a}^2G_{F}^2[\Delta \left( T \right) ]^2}r(z) \right) \epsilon _{\nu }^s, \end{aligned}$$
(23)

where,

$$\begin{aligned} \Delta (T)\simeq 3.06\,T_{cn}\sqrt{1-\frac{T}{T_{cn}}}. \end{aligned}$$
(24)

The numerical values of the \(r(z)=z^2\,I_a^s/I_{\nu }^s\) associated with axion and neutrino emissivity integrals for the different values of z around one are always less than unity.

$$\begin{aligned} f_{a}> 5.92\times 10^9 GeV\left[ \frac{0.1 MeV}{\Delta \left( T\right) } \right] . \end{aligned}$$
(25)

Here \(f_{a}\) is a axion model-dependent variable [43]. Axion mass \(m_{a}\) is related to \(f_{a}\) by the equation [120, 121, 131, 132]:

$$\begin{aligned} m_{a}= 0.60\; \text {eV}\times \frac{10^{7}\text {GeV}}{f_{a}}. \end{aligned}$$
(26)

Here, we have assumed the axion emissivity due to proton S-wave pairing [120, 133, 134] will remain the same as axion due to neutron S-wave pairing provided \(C_n=C_p\) and \(T_{cn}=T_{cp}\), where \(T_{cn}\) and \(T_{cp}\) are critical temperatures for neutron superfluid and proton superfluid, respectively. Here we have taken \(T_{cp}=T_{cn}=10^9\) K.

The axion emissivity due to the P-wave paired neutron superfluid is given by [120]:

$$\begin{aligned} \epsilon _{a}^{P}=\frac{2\,C_{n}^{2}}{3\pi f_{a}^{2}}\,v_{n}(0)\,T^{5}\,I_{a}^p, \end{aligned}$$
(27)

where \(C_n\) is the axion model dependent constant.

The integral \(I_a^p\) is expressed as:

$$\begin{aligned} I_{a}^{p}=z_{n}^{5}\left( \int _{1}^{\propto }\frac{y^{3}}{\sqrt{y^{2}-1}} [f_{F}\, (z_n y)]^2 dy\right) , \end{aligned}$$
(28)

where \(z_{n}=\Delta ^P(T,\theta )/T\) with \(\theta \) is the polar angle. There exist two states of P-wave superfluid pairing denoted as A and B expressed as:

$$\begin{aligned} \Delta _{P}^{A}=\Delta _{0}^{A}\sqrt{1+3\,\cos ^{2}\theta }. \end{aligned}$$
(29)

and

$$\begin{aligned} \Delta _{P}^{B}=\Delta _{0}^{B}\,\sin \theta . \end{aligned}$$
(30)
Fig. 4
figure 4

The variation of pressure with radial distance r for three different EoSs in the presence and absence of magnetic field

Fig. 5
figure 5

The variation of temperature with radial distance r for three different NSs for APR EoS in the presence and absence of magnetic field

2.6 Neutrino-axion emission inside NS crust

2.6.1 e-e Bremsstrahlung process

2.6.2 Neutrino emission rate

The neutrino emission rate for e-e Bremsstrahlung process is given by [120, 130]:

$$\begin{aligned} \epsilon _{\nu ee,brem}=7.42 \times 10^{-2}\,G_{F}^{2} \,Z^{2}\,\alpha _e^{4} \,n_{i}T^{6}~L. \end{aligned}$$
(31)

Here \(n_{i}\) is nuclei number density, \(\alpha _e=1/137\) is the QED fine structure constant, and L incorporates many-body corrections to process rate related to nuclei correlations.

2.6.3 Axion emission rate

The NSs crust may emit axions when a degenerate relativistic electron strikes an ion with charge Z and mass number A. The axion emission rate is given by [120, 130]:

$$\begin{aligned} \epsilon _{aee,brem}=\frac{\pi ^{2}}{120}\frac{Z^{2}\alpha _e}{A}\left( \frac{g_{aee}}{\epsilon _{F}}\right) ^{2}n_{B} T^{4}\left[ 2\ln (2\gamma )-\ln \frac{\alpha _e}{\pi } \right] .\nonumber \\ \end{aligned}$$
(32)

Here \(g_{aee}\) is coupling of axions to electrons, \(g_{aee}\)=\(\frac{C_{e}\,m_{e}}{f_{a}}\), \(\gamma \) is the Lorentz factor of electrons, \(\epsilon _{F}\) is the electron’s fermi energy, \(n_{B}\) is baryon number density, and \(\alpha _e=1/137\) is the QED fine structure constant. By making electron PQ charge \(C_{e}\)=1, L=1 and \(\frac{m_{e}}{\epsilon _{F}}\)= \(10^{-2}\) the relation between Axion to neutrino emissivity is given by:

$$\begin{aligned} \epsilon _{aee,brem} = \left[ 2.8\left( \frac{10^{9}K}{T} \right) ^{2}\left( \frac{10^{10}GeV}{f_{a}} \right) ^{2} \right] \epsilon _{\nu ee,brem}.\nonumber \\ \end{aligned}$$
(33)

We want to emphasize here that we have not considered the influence of strong fields on the mentioned neutrino and axion cooling mechanisms.

3 Results and discussions

Figure 3 depicts the variation of mass with respect to the distance from the center of the NS for three different EoSs, namely APR, FPS, and SLY, in the presence of the magnetic field. It indicates that the variation of mass m(r) as a function of distance from the center of the NS change little due to the effect of the magnetic field. The difference is seen at some intermediate radial distances. The APR, FPS, and SLY models show an approximately \( 16.7\% \), \(15.4\%\) and \(17.5\%\) departure from the corresponding results without including magnetic field \( r \sim \) 4500 m, respectively.

Figure 4 shows the variation of pressure as a function of distance from the center of the NS for three different EoSs, namely APR, FPS, and SLY, before and after taking into account the magnetic field. Here a significant difference due to the magnetic field is seen. The departure from the case with the magnetic field increases with the radial distance from the center. After incorporating the magnetic field, the P(r) curve lies above the corresponding curve without the magnetic field effect and the curves coincide at \( r\sim 8100\) m for APR and SLY model EoSs,and \( r\sim 7400\) m for FPS model EoS. On comparing the slope of the two curves, it is found that the pressure decreases slower after including the magnetic field. The behavior for three different EoSs is qualitatively similar, and the APR, FPS, and SLY models show an approximately \( 20.1\% \), \(18.5\%\) and \(20.2\%\) departure with respect to the case of with magnetic field at \( r\sim 4500 \) m, respectively. The imprint of the magnetic field on the cooling properties of the NSs is studied using the NSCool code [56].

In Fig. 5, we first look at the temperature profile for axion mass \(\sim 16\) meV as a function of radial distance from the center at a particular time corresponding to a characteristic age of a particular NS for the APR EoS. The same is shown for two more NSs having two different characteristic age with axion mass \(\sim 16\) meV. The characteristic age used here are \(9.7\times 10^{2}\) years [65, 135],\(3.3\times 10^{4}\) years [136, 137] and \(7.3 \times 10^{3}\) years [138, 139] for the three figures in the panel, respectively. From the figures, it is clear that in the presence of a magnetic field, the cooling property of the star undergoes a considerable change. As the star cools, in the absence of the magnetic field, the temperature remains lesser than the case when there is magnetic field at all distances and at all times (Table 1).

Table 1 Table showing radius (R) of NSs corresponding to the mass \(M = 1.4 M_\odot \) for different EoS

For a given star, the presence of a strong magnetic field and an associated high magnetic field energy lead to a decrease of thermal energy while the gravitational energy remains unchanged. This explains the correlation between the suppression of luminosity and the strength of the magnetic field. Similar suppression of temperature in white dwarf stars with magnetic fields is reported in earlier works [60]. The strong magnetic field may affect the EoS and may also cause sizable changes to thermal conduction and observable properties. We have not incorporated the impact of magnetic field on the EoS in the current work.

Fig. 6
figure 6

The variation of temperature with radial distance r for three different NSs for FPS EoS in the presence and absence of magnetic field

Fig. 7
figure 7

The variation of temperature with radial distance r for three different NSs for SLY EoS in the presence and absence of magnetic field

Figures 6 and 7 show the temperature as a function of the radius for the characteristic age of three NSs for FPS and SLY EoS, respectively. While the FPS EoS does not show any qualitatively different behavior from the APR EoS, the departure of the temperatures from the no-magnetic field case is always higher. The SLY EoS also indicates no qualitative changes in the temperature profile, and T(r) at all radial distances remains higher than their counterpart in the no-magnetic field case at all times. At larger times for this EoS, the temperature departure is higher than in the no-magnetic field. Table 2 shown below summarises the results.

Table 2 Table showing the percentage departure of temperature from the magnetic field situation at \(r=4500m\) for different EoS
Table 3 Table showing the comparison of observed surface temperature (\(T_{e}^{\infty }\)) for three NSs with Age \(= 9.7\times 10^{2}\) years, \(3.3 \times 10^4\) years and \(7.3 \times 10^3\) years, respectively with the theoretically predicted values for different EoS in presence/absence of magnetic field

In Fig. 8a, we have shown the time evolution of the red shifted surface temperature of the NS by incorporating the effect of magnetic field for axion mass \(\sim 16\) meV, assuming that the NS matter satisfies the APR EoS. The variation of temperature in the absence of a magnetic field is also shown for comparison. In the presence of a magnetic field, the temperature versus time curve lies above the corresponding variation curve without the magnetic field for the APR EoS. Between time \(10^1\) years and \(10^2\) years, the separation increases and subsequently, both curves have shown the same qualitative behavior throughout the entire cooling time duration. However, the temperature in the presence of magnetic field always remain higher than the temperatures without magnetic field at all times. We have shown the comparative behavior of the cooling curves for two other EoSs as well, namely, FPS and SLY, for the same axion mass \(\sim 16\) meV as shown in Fig. 8b, c, respectively.

Figure 8b, shows a significant difference in the cooling curves up to \(10^2\) years. The separation decreases beyond \(10^5\) years and the difference in the temperature for the case with magnetic field and without magnetic field becomes maximal at \( \sim 4 \times 10^1\) years. The comparison of the predicted and the observed red shifted surface temperatures for the three NSs are summarized in Table 3. It is worthwhile to mention here that our predicted values of surface temperatures with magnetic field are closer to the corresponding observed values for all three NSs. However, strong sensitivity with respect to the EoS implies that the appropriate fine-tuning is needed in the presence of the magnetic field.

Fig. 8
figure 8

The variation of temperature with the time for three different EoS in the presence and absence of magnetic field

At the early times, the cooling curve shows a significant difference between the results in the presence and absence of magnetic fields. From Fig. 8c, it is seen that there is a noteworthy difference between the two curves up to time \(10^2\) years. Subsequently, the separation decreases, and beyond time \(10^2\) years, the difference between the two curves remains almost constant and decreases only at later times.

The EoS of the matter present inside the NS also affects the cooling profile’s modification in the presence of magnetic fields. While the overall qualitative features remain the same. There are significant EoS-sensitive departures which indicates that the modeling of NSs with strong magnetic fields would have an imprint of the magnetic field distribution. This behavior may affect the observable properties of NSs significantly. Finally, we have studied the luminosities of neutrinos, axions, and photons as a function of time in the absence and presence of the magnetic field for three EoSs. We expect to see the imprint of the strong magnetic field in these results.

Figure 9a depicts the luminosity versus time at an axion mass 16 meV for APR EoS. The luminositites are all expressed in units of solar luminosity \(L_{\odot } = 3.826 \times 10^{33}\, \mathrm{ergs /s}\). The photon luminosity [24] at very short times are not accurate as our time unit is coarse and extrapolated. The incomplete modeling of NS due to uncertainty in EoS may also be responsible for the lower estimate of luminosities at short times. The neutrino luminosity dominates over the photon and axion luminosity at early times. The presence of magnetic fields does not change the qualitative behavior, although there is a significant difference in the neutrino luminosity. The magnitude of the luminosity of photons, axions and neutrinos is quite sensitive to the axion mass and also shows a significant departure in the presence of the magnetic field. The time evolution of photon, neutrino and axion luminosities in the absence of magnetic field closely resembles the results in an earlier work [43].

The expression to calculate the relative percentage change is given by relative \(\%\) change \(= (\frac{L_{WB}-L_{B}}{L_{WB}})\times 100 \), where, \(L_{WB}\) and \(L_{B}\) correspond to the luminosities in the absence and presence of a magnetic field, respectively. Figure 9b shows the relative percentage changes in axions and neutrino luminosity as a function of time due to the impact of the magnetic field for the APR EoS. The relative percentage change in axions luminosity dominates over the neutrino luminosity at all times. We find that the relative percentage change in axion luminosity remains roughly constant in time as opposed to the relative percentage change in neutrino luminosity.

Fig. 9
figure 9

The variation of luminosity with the time of axion mass 16 meV, for APR EoS (a) in the presence and absence of magnetic field. The relative \(\%\) changes in axions and neutrino luminosity with time of axion mass 16 meV, for APR EoS (b) (best fit curve)

Figure 10a shows the luminosity versus time at an axion mass 16 meV for the FPS EoS. The qualitative behavior does not seem to change much with the magnetic field, and a significant departure is seen in the neutrino luminosity and axion luminosity, respectively, in the presence of the magnetic field. Figure 10b depicts the relative percentage changes in axions and neutrino luminosity versus time due to the magnetic field at an axion mass 16 meV for FPS EoS. Here also we find that the relative percentage change in axion luminosity remains more or less constant in time as opposed to the relative \(\%\) change in neutrino luminosity.

Fig. 10
figure 10

The variation of luminosity with the time for axion mass 16 meV, for FPS EoS (a) in the presence and absence of magnetic field. The relative \(\%\) changes in axions and neutrino luminosity with time for axion mass 16 meV, for FPS EoS (b) (best fit curve)

In Fig. 11a, we have presented the luminosity versus time at an axion mass 16 meV for SLY EoS. Here, also a large departure is seen in the neutrino and axion luminosity, respectively, in the presence of the magnetic field. Figure 11b depicts the variation of relative percentage changes in axions and neutrino luminosity with time due to magnetic field effect at an axion mass 16 meV, for SLY EoS. We see a qualitative behavior similar to the APR case. In our current work, the axion mass bound is obtained for APR EOS by considering the surface temperature of three NSs [65, 135,136,137,138,139]. We find the average best fit bound on the axion mass from these measurements in the model without a magnetic field is around \(\sim 5\)–6 meV. Including the magnetic field effect, we obtain the bounds as \(\sim 9\) meV, which is much closer to the recently reported axion mass bound of 10 meV and 16 meV than when no magnetic field is applied. Axion mass bounds for the other two EOSs, namely FPS and SLY, almost lie within the above-mentioned limits. The role of the magnetic field is thus crucial in explaining the observed neutron star thermal properties. The mass bounds are expected to have degeneracies with the EoS. While this requires closer study, a cursory analysis indicates that the EoS affects the mass and pressure profiles, which implicitly affects the thermal history of the star. Further, the EoS also affects the value of \({\bar{r}}\) and changes the magnetic field profile slightly and thus has an effect on the axion mass bounds.

Fig. 11
figure 11

The variation of luminosity with the time for axion mass 16 meV, for SLY EoS (a) in the presence and absence of magnetic field. The relative \(\%\) changes in axions and neutrino luminosity with the time for axion mass 16 meV, for SLY EoS (b) (best fit curve)

Fig. 12
figure 12

The variation of luminosity with the time of two different axion masses 1 meV and 30 meV, respectively, for APR EoS in the presence and absence of magnetic field

4 Conclusion and future outlook

In the present work, we investigate the variations in luminosities of observables (neutrinos, axions, and photons) in the presence of strong magnetic fields for highly magnetized NSs. We have also explored the associated cooling rate characterized by the temperature versus time and radius, respectively. Our investigations are based on the assumption that axions, neutrinos, and photons constitute the emissions from the core and crust of NSs [113]. We have also shown the relative percentage change in axion and neutrino luminosity due to the effect of the magnetic field. Further, we have summarized our findings below:

  • The emission characteristics of NSs are subject to intricate influences stemming from factors such as magnetic fields, radiation from nearby objects, and significant gravitational effects from astrophysical entities. Remarkably, the magnetic fields within NSs considerably impact internal structures, affecting parameters like mass and pressure profiles. These magnetic fields may extend their influence to the equation of state (EoS), although their effectiveness under the extreme baryon density conditions within NSs remains uncertain. Nevertheless, the magnetic field distinctly alters thermal and other macroscopic properties.

  • While current study did not incorporate the magnetic field’s influence on EoSs of core matter. We employed a modified set of Tolman–Oppenheimer–Volkoff (TOV) equations [14] along with three distinct EoSs namely: APR, FPS, and SLY to obtain mass and pressure profiles for NSs. The obtained profiles are used to compute cooling rates and luminosities using the NSCool code. This code, incorporating axion emission from the NS core and crust, assumed spherically symmetric NSs with a perfectly isothermal core and excluded heating mechanisms.

  • Our analysis encompassed the calculation and plotting of luminosities for neutrinos, axions, and photons, both with and without magnetic fields, considering axion mass of 16 meV for each EoS. Notably, the cooling and luminosity data have been plotted with a fixed mean radius, accounting for deformation due to the magnetic field. Due to the magnetic field, the relative percentage change in axion luminosity remains higher than the neutrino luminosity at all times for all three EOSs.

  • Our findings unequivocally reveal a substantial influence of magnetic fields on luminosities and cooling rates. However, it is imperative to acknowledge that this influence is EoS-dependent, and its uncertainties are particularly pronounced under extremely high-density and low-temperature conditions. The investigation into axion-to-photon conversion in these highly magnetized NSs remains a subject for future research, as we deferred its exploration in this current study. It is worth mentioning here that due to the magnetic field, the axion mass bound increases slightly compared to without a magnetic field.