1 Introduction

Compact objects such as NSs serve as an excellent laboratory for the search of light pseudoscalar particles like QCD axions and axion-like particles (ALPs) [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]. At the end of a massive star’s life, a core-collapse supernova explosion occurs. The remnant core collapses into tiny and superdense NSs. The cores of the NSs are relatively hotter, with temperatures between 1–10 keV and surface temperature at \(T\sim 0.1\) keV [17]. Recent searches [18,19,20,21,22,23,24,25,26,27] have reported new information about the potency of magnetic fields inside and on the surface of these compact astronomical objects. The NSs that have an unusually high magnetic field are commonly called magnetars [21, 22, 28,29,30,31,32,33,34,35]. Such strong magnetic fields can decay at relatively shorter times [36]. For such stars, the contributions from the toroidal fields can be much more potent than the poloidal fields [37, 38]. NSs cool primarily through the neutrino cooling mechanism [17, 39,40,41,42,43]. There is continuous transport of heat from the interiors towards the surface of NSs. Neutrino cooling predominates for an initial thousand years, and then eventually, photon emission surpasses neutrinos during the later ages of NSs. Along with neutrinos, axions may also be emitted from the cores of NSs [44,45,46]. Axions are hypothetical, pseudoscalar elementary particles proposed to solve specific strong CP problem [47,48,49,50,51,52,53,54,55,56] in particle physics and also considered as a compelling candidate for the search of the mysterious DM [6, 57,58,59,60,61,62,63,64,65,66,67,68,69,70,71]. These axions may be produced inside the cores of NSs thermally by Cooper pair breaking formation and N–N Bremsstrahlung process. Furthermore, in the presence of strong magnetic fields surrounding the NSs, these produced axions (in the core) may be converted into X-rays due to their weak interaction with the matter. Such a conversion mechanism has been proposed as a possible explanation for hard X-ray excess from nearby NSs [6].

The QCD axion and axion-like particles (ALPs) are anticipated to pair derivatively to fermionic matter and electromagnetism, thus enabling their production inside the heated cores of NSs. The effective Lagrangian of axions is given by:

$$\begin{aligned} {\mathcal {L}}= -\frac{1}{2} \partial _{\mu }a\partial ^{\mu }a+{\mathcal {L}}_{int}(\partial _{\mu } a,\psi _{f}). \end{aligned}$$
(1)

The second term in the expression denotes axion coupling to a fermionic field \(\psi _{f}\) [17]. According to the recent experimental results of the axionic DM experiment (ADMX) [72,73,74] and Large-scale microwave cavity search [75], axions can solve the problem of mysterious DM. Currently, there are two possible axion models, namely the Dean–Fischler–Srednitsky–Zhitnitsky – DFSZ model, which contains an additional coupling of axions with the charged leptons, and the Kim–Shifman–Weinstein–Zakharov (hadronic) – KSVZ model which is related to interaction of axions with photons and hadrons [76, 77]. The production rate of axions depends on their emissivity, critical temperature profiles of the NSs, and proton and neutron Fermi momenta profiles. There is an extensive literature on the axion mass bounds: plasma haloscopes and MADMAX [78, 79] reveals an axion mass between \(m_{a}\sim 40{-}400~\upmu \)eV, experimental data from HAYSTAC and ADMX reports an axion mass \(m_{a}\sim 1{-}100~\upmu \)eV, and CASPEr [80,81,82], DM-Radio [83] and ABRACADABRA [60, 84, 85], confirms that mass of axion cannot be in \(\upmu \)eV range (\(m_{a} \ll \upmu \)eV). The experimental data of ADMX (in context to Dean–Fischler–Srednitsky–Zhitnitsky (DFSZ)) model presents an axion mass range \(m_{a} \sim 2.7{-}4.2~\upmu \)eV [53, 72,73,74, 77]. Nevertheless, the black hole superradiance [86, 87] reports mass of QCD axion as \(m_{a}>2\times 10^{-11}\) eV. Buschmann et al. [6] (about Kim–Shifman–Weinstein–Zakharov (KSVZ) axion model), restricts the mass of axion at \(m_{a}\leqslant 16\) meV. For the KSVZ model [50, 51] the experimental results from the HAYSTAC [67] and ADMX [75] indicate that the range of axion mass is still unconfirmed within the parameter range of about ten powers of magnitude. Exploring the mass of axionic DM (that is, not in the meV range) in a laboratory is a bit challenging [88,89,90,91,92,93]. Recent study [94,95,96], reports the axion mass bound as \(m_{a}\leqslant 10\) meV.

Various studies describe the potential use of resonant conversion of axions, particularly in the \(\upmu \)eV–meV mass range, relevant to QCD (Quantum Chromodynamics) axionic DM. Resonant conversion refers to axion–photon conversion under plasma densities and intense magnetic fields in the magnetosphere of strongly magnetized NSs. The axion mass is crucial in determining the frequency of the associated photon signal. These features have drawn researchers’ attention to conduct studies on axion-photons conversion in the NSs magnetosphere [17, 97, 98]. They have been actively characterizing and searching for potential X-ray and radio signals. This area of research holds promise for advancing our understanding of DM and theories related to fundamental particle physics, provided that the predicted signals can be detected and verified through observational data. It has also been revealed in the literature [18, 20, 21, 29, 36, 99,100,101] that the distribution of a strong magnetic field affects both internal structure as well as the cooling rates of NSs.

Witte et al. [102] performed a calculation to compute the radio signal from the NS magnetosphere by adopting a charge-symmetric Goldreich–Julian model. They accomplish this by employing a cutting-edge auto-differentiation ray tracing technique, which enables them to closely monitor photon absorption, energy exchanges with the surrounding plasma, axion–photon dephasing, and the properties of reflections and refraction. Hook et al. [97] reported that axions can be detected through the narrow radio lines from axionic DM conversion in the NS magnetosphere. They solved the axion–photon mixing equations by including magnetized plasma. The conversion can be possible when plasma frequency matches the mass of axions. McDonald et al. [103] derived the essential transport equations in magnetized plasmas. Due to the resonant conversion of axions to photons, these equations describe the creation and propagation of photons in any 3-D medium. Millar et al. [104] shows the axion–photon conversion in a highly magnetized anisotropic material in 3-D compared to the simplistic 1-D calculation mentioned in the literature. The results show orders of magnitude difference in conversion for the 3-D medium compared to 1-D. The findings will significantly impact the radio signal seen through a telescope. In the current work, we investigate how the modified Tolman Oppenheimer Volkoff (TOV) system of equations (in the presence of magnetic field) [105, 106] affects the axions energy spectrum and axion-converted-photon flux at an axion mass in meV range by assuming mass \(M_{NS} \sim 1.4M_{\odot }\) of the non-rotating NSs. Initially, we solved the modified TOV system of equations by employing three EoSs, namely APR, FPS, and SLY, and the distance-dependent magnetic field to build the profiles. We change the NSCool code by incorporating the N–N Bremsstrahlung process and the Cooper-pair-breaking formation process to determine the axion emission rate inside the core of NSs. In particular, our fiducial analysis includes Magnificient seven star, RXJ 1856.5-3754 (M7) with the characteristic age of \(3.7\times 10^{6}\) years [107, 108].

Furthermore, we investigate the influence of the strong magnetic field on the fundamental observables, such as the axion-converted-photon flux and energy spectrum of axions. We also compare our computed axion-converted-photon flux with archival available data from PN+MOS+Chandra [17, 109] by taking axion–photon coupling in the magnetosphere of NSs. We also obtained the axion mass bounds from the three mentioned EoSs and compared them with the existing bounds in the literature. The paper is organized as follows. In Sect. 1, we begin with a brief Introduction. In Sect. 2, we describe the modified TOV system of equations, Equation of states, Neutron star cooling, and the axion emission rates by Cooper-Breaking and formation and Bremsstrahlung process in the core of NSs, Energy Spectrum of Axions, Conversion Probability and Axion-converted-Photon Flux. In Sect. 3, we explore the impact of magnetic fields on various observables, such as the energy spectrum of axions and axion-converted-photon flux for different NSs at axion mass in the meV range for three different EoSs. Finally, Sect. 4 summarizes and concludes the work.

2 Formalism

2.1 Modified TOV equations for non-rotating neutron star

The present work relies on the modified TOV system of equations (in the presence of a strong magnetic field) [110]. As discussed in [22, 110, 111], this would require us to solve the Einstein’s field equations in the stellar interior including the full electromagnetic Energy-Momentum tensor [112]. Perturbative solutions to study the neutron star’s deformation developed in [113] shall also be valid only for low magnetic fields. In this work, we adopt a more phenomenological approach to replicate the effects of the magnetic field (at least qualitatively). This is done by including a magnetic energy density to the usual fluid energy density in the TOV equations. Further, the conservation of the Energy Momentum tensor in the general relativistic framework [112] motivates us to add a Lorentz force term in the pressure gradient equation. This Lorentz force term, which imprints the effect of the magnetic field is also motivated by the anisotropic term in the pressure gradient equation studied in [114]. To examine the effects of magnetic fields, we require the suitable EoS [22, 23, 115, 116], mass, pressure, and baryon density as a function of distance (profiles) and the magnetic field profile. The TOV system of equations for mass, gravitational potential, and hydrostatic equilibrium, respectively, 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}$$
(2)
$$\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}$$
(3)
$$\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}-{\Lambda }\left( r \right) \right) , \end{aligned}$$
(4)

where \(\Lambda (r)\) corresponds to a Lorentz force term [112]. Instead of solving the full Maxwell–Einstein system of equations, we have adopted the phenomenological fit function for \(\Lambda (r)\) from [110]. This parametrized fit function depends on the star’s mean radius and central magnetic field \(B_{c},\) given as:

$$\begin{aligned} \frac{{\Lambda }\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}$$
(5)

The detailed formalism is presented in our recent work [96]. Various magnetic field profiles are available in the literature to describe the state of super-dense matter of NSs in strong magnetic fields. Chatterjee et al. [110] explored the impact of the magnetic field using an axisymmetric numerical code by changing three parameters: mass, EoSs, and the strength of the magnetic field for non-rotating NSs.

According to the azimuthal symmetry, the magnitude of the magnetic field \(B = ({\vec {B}} . {\vec {B}})^{1/2}\) is given by the expression:

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

As per the numerical results, the magnetic monopole term dominates over all other terms. All the anisotropies (first approximation) are beyond our current work [96]. The simplified radial profile for the monopole term of B is given as:

$$\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}$$
(7)

here \(\overline{r}\) is the mean radius, and \(B_c\) corresponds to the value of a central magnetic field for the NSs. Finding a mean radius is difficult in the presence of a magnetic field. So, \(\overline{r}\) value is taken more than the actual radius of the NSs. We have assumed the mean radius to be \(\overline{r}= 13\) km and the central magnetic field \(B_c = 10^{18}\) Gauss. Further, it should be noted that in this work, the possible impact of the magnetic field on the composition of NS matter (populations of neutrons, protons, and electrons) has not been considered.

2.2 Equation of state

We have employed three EoSs, namely APR [117,118,119], FPS [120], and SLY [121] EoSs to study the thermodynamic behavior of the interiors of NSs. The Akmal–Pandharipande–Ravenhall (APR) EoSs describe the interaction potential by isospin asymmetry and baryon density. This EoS depicts the transition from the lower-density phase to the higher-density phase. In principle, it has also been observed that phase transition speeds up the shrink rate of NSs. The FPS EoS shows a unified description of the liquid core and inner crust of the NSs. In FPS EoSs, the liquid-crust core transition usually takes place at density \(\rho _ {edge} = 1.6 \times 10^{14}\) gm/cm\(^{3}.\) All the existing phase transitions are first-order, with relative density jumps less than \(1\%.\) Considering different nuclear Hamiltonian, FPS EoS is more suitable than any other EoS. The SLY EoS is based on the effective nuclear interaction model in which the nuclei in the ground state remain spherically downward towards the bottom edge of the inner crust of NSs. In this EoS, the transition towards the ionized matter plasma happens at the density \(\rho =1.3\times 10^{14}\) gm/cm\(^{3}.\) The above EoSs in detail are described in our previous work [96].

Table 1 Table showing the maximum mass (\(M_\odot \)) and radius (km) corresponding to the mass \(M = 1.4 M_\odot \) of NSs for three EoS

The maximum mass for the three EoS is obtained using [22, 36] (corresponding to the ratio of the magnetic and fluid pressure close to unity) is shown in Table 1. We have also tabulated the radius of the compact object for the three EoS for a mass of 1.4 \(M_{\odot }.\)

2.3 Neutron star cooling

To analyze the state of highly dense matter and the emission properties of the strongly magnetized NSs, we have modified the publicly available NSCool code [122]. A Fortran-based cooling computational code that solves the equations related to energy balance and heat transport. This package also contains various pre-built stars, different EoSs, and a TOV integrator to form the stars. Considering the spherically symmetric NSs with interiors as isothermal and solving its energy balance equation, one can reasonably understand the various cooling simulations of such compact objects. The equation for the conservation of energy of a star as per the Newtonian formulation is given by [123]:

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

Here \(C_{v}\) specific heat, \(L_{\nu }^\infty \) is the energy sinks are the total neutrino luminosity, \(L_{a}^\infty \) is the luminosity of axions, \(L_{\gamma }^\infty \) is luminosity of photons, \(T_{s}\) is the surface temperature and \(T_b^{\infty }\) internal temperature of the NS. \(L_{\gamma }^\infty = 4\pi \sigma R^{2}(T_{s}^{\infty })^4,\) where \(\sigma \) is Stefan–Boltzmann’s constant and R is the radius of the NS. \(T_{s}^{\infty } = T_{s}\sqrt{1-2GM/c^{2}R},\) here infinity superscript means that the external observer is located at the infinity and measures these terms on the redshifted scale. We have not included any heating mechanisms, \(H=0,\) in the above equation. Specifically, for non-rotating NSs of mass \(M \sim 1.4M_{\odot },\) \(T_{s}^{\infty }/T_{s}\sim 0.7.\) The NS cooling mechanisms [124, 125] is the crucial ingredient to study the hypothesis related to the axionic DM. The structure of heat blanketing envelopes (HBEs) may be affected by neutrino cooling mechanisms [3, 26, 27, 39, 126, 127]. The boundary of the HBEs is \(\epsilon _b\) (\(\rho _{b} \sim 10^{10}\) gm/cm\(^3\)) and magnetic field at HBEs is taken as \(10^{13}\) Gauss. The HBEs comprise iron or successive iron, carbon, hydrogen, and helium layers. The formula that determines the radiative opacity for a completely ionized, non-degenerate plasma is made up of electrons and ions and gets modified in the presence of a magnetic field [3, 128]. Also, the heat blanketing layer of NSs will strongly affect the electron thermal conductivity. In the presence of a magnetic field, the thermal conductivity of electrons considered for current calculations is given in [3, 124]. A detailed explanation is provided in our previous work [96].

2.4 Cooper pair breaking and formation process and N–N Bremsstrahlung process

The composition of the inner core of NSs is somewhat uncertain, and it depends on the considered EoSs, which is still an open area of research [129]. The concept of pairing has opened up new areas for the dominant neutrino emissions. The photon and neutrino emissions are controlled by the stellar outer layers’ structure and the state of superdense nuclear matter, respectively. There is a continuous formation and breaking of \(n-n\) and \(p-p\) cooper pairs, leading to the formation of the superfluid material. This happens lower than the superfluid critical temperature \(T_{c}.\) During the breaking and formation process, axions may be emitted. The energy liberated in this process is carried out by a \(\nu \bar{\nu }\) pairs [130]:

$$\begin{aligned} X+X\rightarrow \left[ XX \right] + \nu +\overline{\nu }. \end{aligned}$$
(9)

Here, X can be protons or neutrons.

2.4.1 Axion emission rate by Cooper pair breaking and formation process (PBF)

This section briefly describes the axion emission rate from the Cooper pair breaking and formation (PBF) process [130, 131] inside the NS core. To calculate the axion production rates in the cores, the prerequisites are the temperature profiles (from modified TOV equations), metric, critical temperature profiles, and neutron and proton Fermi’s momenta profile (which depends on the EoSs). The axion emission rate due to the neutron S-wave pairing is given by [130]:

$$\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}$$
(10)

The integral \(I_{a}^s\) is given by:

$$\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}$$
(11)

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

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

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

The ratio between axion and neutrino emissivity 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}$$
(15)

where,

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

The numerical values of the \(r(z)=z^2\, I_a^s/I_{\nu }^s\) are related to integrals corresponding to axion and neutrino emissivity for the different values of z.

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

Here \(f_{a}\) is an axion model-dependent variable. The axion mass \(m_{a}\) is related to \(f_{a}\) given by the equation:

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

Here, the axion emissivity due to proton S-wave pairing is the same as 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. We have assumed \(T_{cp}=T_{cn}=10^9\) K. The axion emissivity due to the P-wave paired neutron superfluid is given by [130, 132]:

$$\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}$$
(19)

where \(C_n\) is a constant that depends on the axion model. 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}$$
(20)

where \(z_{n}=\Delta ^P(T,\theta )/T\) where \(\theta \) is the angle between the quantization axis and momentum of the neutron. There exist two states (A and B) of P-wave superfluid pairing corresponding to \(m_{J} = 0\) and 2 (representing the projection of the angular momentum of the Cooper-pair on the z-axis). The superfluid gaps are given by [17, 130] \( \Delta ^{A}=\Delta _{0}^{A}\sqrt{1+3\,\cos ^{2}\theta }\) and \( \Delta ^{B}=\Delta _{0}^{B}\,\sin \theta .\)

2.4.2 Axion emission rate by N–N Bremsstrahlung process

The axions, along with neutrinos, are expected to emit during the nucleon collisions by the bremsstrahlung process [130, 133,134,135,136]. To calculate the production rates in the core, the prerequisites are the processes involving protons, neutrons, and electrons, the purely nucleonic EOS at all possible densities. In the current analysis, the axion production occurs in the fully degenerate nucleon–nucleon bremsstrahlung process, \(N + N \rightarrow N+N+a,\) where N can be either a neutron or a proton, and a is the emitted axion. The current process involves the emission of radiation (in this case, axions) during the interaction of charged particles (neutrons and protons in this context) [133, 136]. The expression for axion emission rate is given by:

$$\begin{aligned} \epsilon _{a}^{brem}=\frac{\alpha _{a}n_{B}\Gamma _{\sigma }T^{3} }{4 \pi m_{N}^{2}}I_{a}^{brem}. \end{aligned}$$
(21)

The axion integral is expressed as:

$$\begin{aligned} I_{a}^{brem}=\int _{0}^{\infty } s(x) x^{2} e^{-x}~dx, \end{aligned}$$
(22)

where, \(\Gamma _{\sigma }\) means the spin rate (nucleon) changes under collisions with the other nucleon. For the degenerate limit:

$$\begin{aligned}{} & {} \Gamma _{\sigma }= \frac{4\alpha _{\pi }^{2}p_{F}T^{3}}{3\pi n_{B}} \end{aligned}$$
(23)
$$\begin{aligned}{} & {} s(x)=\frac{\left( x^{2}+4 \pi ^2 \right) \left| x \right| }{4\pi ^{2}\left( 1-e^{-\left| x \right| } \right) }. \end{aligned}$$
(24)

Here \(p_{F}\) is the fermi’s momentum of the nucleon. We note that we have not included the effect of the magnetic field on the mentioned cooling mechanisms.

2.5 Energy spectrum of axions

2.5.1 Cooper breaking and formation process (PBF)

As mentioned in the previous work [17], the local energy spectrum of axions emitted from the core by the Cooper Breaking and Formation process follows the modified thermal distribution given as:

$$\begin{aligned} \frac{dF}{dE} \propto \frac{(E/T)^3~(E/T)^2+4\pi ^2 }{e^{E/T}-1}, \end{aligned}$$
(25)

where, E is local axion energy and F is the axion-converted-photon flux. Both spin-0 S-wave and spin-1 P-wave nucleon superfluids could be possible inside the core of NSs. The energy spectrum of axions due to the spin-0 S-wave process is given as:

$$\begin{aligned}{} & {} {J_{a}^{s,PBF}}= \frac{d\epsilon _{a}^{s,PBF}}{d\omega _{a}},\end{aligned}$$
(26)
$$\begin{aligned}{} & {} {J_{a}^{s,PBF}}= \frac{N_{a}^{s,PBF}}{2\Delta T}\frac{\left( \frac{\omega _{a} }{2\Delta T} \right) ^3}{\sqrt{\left( \frac{\omega _{a} }{2\Delta T} \right) ^2-1}}\left[ f_{F}(\frac{\omega _{a}}{2T})\right] ^2, \end{aligned}$$
(27)

where,

$$\begin{aligned} {N_{a}^{s,PBF}} = \epsilon _{a}^{s}~z_{n}^{5}/I_{a}^{s} \end{aligned}$$

is the normalization constant derived from the expression \(\int _{2\Delta T}^{\infty }J_{a}^{s,PBF}d\omega _{a} =\epsilon _{a}^{s,PBF}\) and \(2y\Delta T\) is an axion energy. T corresponds to a locally measurable quantity at some radius within the interiors of NSs. The energy spectrum of axions due to the P-wave pairing is given by [17]:

$$\begin{aligned} {J_{a}^{p,PBF}}= \frac{d\epsilon _{a}^{p,PBF}}{d\omega _{a}}, \end{aligned}$$
(28)
$$\begin{aligned}{} & {} {J_{a}^{p,PBF}} = \int _{-1}^{1}dcos\theta \frac{1}{4}\Delta ^{P}(T,\theta )^4 {N_{a}^{p,PBF}}\\{} & {} \quad \times \frac{\left( \frac{\omega _{a} }{2\Delta ^{P} (T,\theta )} \right) ^3}{\sqrt{\left( \frac{\omega _{a} }{2\Delta ^{P} (T,\theta )} \right) ^2-1}}\left[ f_{F}(\frac{\omega _{a}}{2T})\right] ^2,\\{} & {} {N_{a}^{p,PBF}} = \epsilon _{a}^{p}/T^{5}~I_{a}^{p} \end{aligned}$$

is the normalisation constant which is defined as \(\int _{2\Delta ^{P}(T,\theta )}^{\infty }J_{a}^{p,PBF}d\omega _{a} =\epsilon _{a}^{p,PBF}\) and 2y\(\Delta ^{P}(T,\theta )\) is the axion energy \(\omega _{a}.\)

2.5.2 N–N Bremsstrahlung process

The energy spectrum of axions due to the N–N bremsstrahlung process is given by:

$$\begin{aligned} {J_{a}^{brem}}=\frac{d \epsilon _{a}^{brem}}{d\omega _{a}} = \frac{N_{a}^{brem}\omega _{a}^{5}}{e^{x} T^6}, \end{aligned}$$
(29)

where, \(N_{a}^{brem}= \frac{\epsilon _{a}^{brem}}{4 \pi ^{2} I_{a}^{brem}}\) is the normalization constant derived from the expression \(\int _{0}^{\infty }J_{a}^{brem}d\omega _{a} =\epsilon _{a}^{brem}\) and \(x \times T\) is an axion energy. Here, \(x=\frac{\omega _{a}}{T}\) is the dimensionless quantity and \(\omega _{a}\) (equivalently \(x\times T\)) is the axion energy.

2.6 Conversion probability and axion-converted-photon flux

Axions produced in the cores escape the stars because of their weak interaction with the ordinary matter and further get converted to the photons in an extended magnetosphere of strongly magnetized NSs [98, 137]. The axions mixing with photons is based on the axion–photon coupling term given by the Lagrangian:

$$\begin{aligned} {{\mathcal {L}}}_{conv} = -\frac{1}{4}g_{a\gamma \gamma }aF\widetilde{F}. \end{aligned}$$
(30)

Here, F and \(\widetilde{F}\) corresponds to an electromagnetic field strength tensor and corresponding dual tensor, respectively, \(g_{a\gamma \gamma }\) is axion–photon coupling parameter given as [17]:

$$\begin{aligned} g_{a\gamma \gamma }=\frac{C_{\gamma }\alpha }{2\pi f_{a}}, \end{aligned}$$
(31)

where, \(C_{\gamma }\) is a axion model dependent factor and \(\alpha =1/137\) is QED fine structure constant. In the magnetosphere of strongly magnetized NSs, the axion–photon mixing term may rotate the initial state of an axion to an electromagnetic wave that is polarised exactly in the same direction as the external magnetic fields. The following expression provides an approximate relationship for conversion probability [17, 98, 137, 138]:

$$\begin{aligned}{} & {} P_{a\rightarrow \gamma }\approx 1.5\times 10^{-4}\left( \frac{g_{a\gamma \gamma }}{10^{-11}\,\text {GeV}^{-1}}\right) ^2 \left( \frac{1\,\text {keV}}{\omega }\right) ^{0.8}\nonumber \\{} & {} \quad \times \left( \frac{B_{0}}{10^{13}\,\text {G}}\right) ^{0.4}\left( \frac{R_{NS}}{10\, \text {km}}\right) ^{1.2}\sin ^{0.4}\theta , \end{aligned}$$
(32)

where, \(\omega \) is the axion energy and \(R_{NS}\) is radius of NS (in km). \(B_{0}\) is the strength of the surface magnetic field at the pole, and \(\theta \) is the magnetic axis polar angle. Finally, we have multiplied the axion–photon conversion probability with the axion energy spectrum to obtain the final axion-converted-photon flux at the different values of axion energy.

3 Results and discussions

Fig. 1
figure 1

The variation of the energy spectrum of axions (left) with axion energies by Bremsstrahlung plus PBF and only Bremsstrahlung process for RXJ 1856.5-3754 (M7) NS at an axion mass 16 meV for APR EoS in the presence of magnetic field

Fig. 2
figure 2

The variation of the energy spectrum of axions (left) and axion-converted-photon flux (right) with axion energies by Bremsstrahlung plus PBF and only Bremsstrahlung process for RXJ 1856.5-3754 (M7) NS at an axion mass 10 meV for FPS EoS in the presence and absence of magnetic field

Fig. 3
figure 3

The variation of the energy spectrum of axions (left) and axion-converted-photon flux (right) with axion energies by Bremsstrahlung plus PBF and only Bremsstrahlung process for RXJ 1856.5-3754 (M7) NS at an axion mass 7 meV for SLY EoS in the presence and absence of magnetic field

Figure 1a shows the energy spectrum of axions as a function of axion energy for APR EoS. The local energy spectrum of axions emitted by the Bremsstrahlung plus PBF process remains dominant over those emitted only by the Bremsstrahlung process for the entire range of the axion energies. As the axion energies increase, for a no-magnetic field case, the energy spectrum of axions remains higher than when there is a magnetic field at all values of axion energies. In the Bremsstrahlung plus PBF process, the separation in the energy spectrum of axions is almost constant up to 10 keV axion energy, but after that, separation decreases, and both the curves overlap around \(10^{2}\) keV energy. However, if we consider only the Bremsstrahlung process, a significant difference can be observed in the energy spectrum of axions in both the presence and absence of a magnetic field. The magnitude of the axion energy spectrum and axion-converted-photon flux is quite sensitive to the axion mass, and a significant departure is observed in the presence of the magnetic field. In Fig. 1b, we have presented the axion-converted-photon flux as a function of axion energies for APR EoS. The axion-converted-photon flux from the Bremsstrahlung plus PBF process dominates from the only Bremsstrahlung process for all ranges of axion energies. Including a magnetic field does not change the qualitative behavior, although a significant difference is observed. As we focus on the Bremsstrahlung plus PBF process, a significant difference in the axion energies spectrum can be observed up to axion energy of \(\sim 10\) keV. After that, the separation decreases and the curves overlap beyond \(\sim 70\) keV. We also show the data points from X-ray spectra at an axion mass 16 meV for RXJ 1856.5-3754 (M7) star by combining all the available archival data sets from PN+MOS+Chandra [17, 109]. The axion mass bound is around 16 meV and is obtained by fitting the various axion mass spectral models corresponding to available data sets. On comparing with the observational data, our predicted results show a better agreement with the magnetic field case. The Fig. 2a shows the variation of the energy spectrum of axions versus axion energies for FPS EoS. Here, the local energy spectrum of axions emitted by the Bremsstrahlung plus PBF processes dominates over the only Bremsstrahlung process for the entire range of axions energies. The separation between (with/without) magnetic fields in the energy spectrum of axions is constant up to \(\sim 10\) keV axion energies for the Bremsstrahlung plus PBF processes. If we include both processes, we find that in the presence of a magnetic field, the energy spectrum of axions in the low axion energies region is lesser than without a magnetic field. The gap becomes negligible at higher values of axion energies, \(\omega _{a}>95\) keV. However, for only the Bremsstrahlung process, a constant difference can be seen in the energy spectrum of axions in the presence/absence of magnetic field for axion energy \(\sim 4\) keV. Beyond this energy, this difference decreases until both curves overlap between 10–20 keV axion energies. The Fig. 2b depicts the variation of axion-converted-photon flux as a function of axion energies for FPS EoS. After including the magnetic field, the axion-converted-photon flux when both the Bremsstrahlung and PBF processes are included is more significant than the Bremsstrahlung process. This is true for all values of the axion energies. The separation (in the presence/absence of a magnetic field) for the axion-converted-photon flux emitted by the Bremsstrahlung plus PBF process is almost similar as compared to other mentioned EoSs. The separation decreases from \(\sim 30\) keV axion energy, and finally, both the curves (with/without magnetic field) overlap beyond \(\sim 90\) keV axion energies. If we consider axion-converted-photon flux from the Bremsstrahlung process only. In this case, the separation remains constant up to \(\sim 3\) keV, and after that, curves (with/without magnetic field) overlap beyond the axion energy of \(\sim 10\) keV. We also show the data points from X-ray spectra for RXJ 1856.5-3754 (M7) star from all available archival data sets from PN+MOS+Chandra [17, 109]. Again, by fitting the several axion mass spectral models corresponding to the available data sets, we obtain the axion mass bound of 10 meV in the case of FPS EoS. Compared to the available experimental data, our calculated results demonstrate better agreement with the magnetic field. For FPS EoS, the magnitude of the axion’s energy spectrum and axion-converted-photon flux is quite sensitive to the mass of an axion. One can also observe a significant departure in the presence of the magnetic field. In the Fig. 3a, we have shown a variation of the energy spectrum of axions versus axion energies for SLY EoS. In the presence of a magnetic field, at all values of the axion energies, the local energy spectrum of axions emitted by the Bremsstrahlung plus PBF process dominates over the case when only the Bremsstrahlung process is included. This behavior is similar to other mentioned EOSs. Considering the Bremsstrahlung plus PBF processes, the separation (with/without magnetic field) is almost similar to the other EoSs but for lesser values of the axion’s energy only. One can observe a significant difference in the energy spectrum for the entire range of axion energy. The imprint of the strong magnetic field on the energy spectrum of axions from the Bremsstrahlung plus PBF processes can be seen in this EoS but overall qualitative features remain the same. For the Bremsstrahlung process, a significant departure in the energy spectrum of axions is observed at lower energies before the spectrum declines quickly at the higher values of axion energies. In the Fig. 3b, we have presented the variation of axion-converted-photon flux as a function of axion energies for SLY EoS. For the Bremsstrahlung plus PBF process, in the presence of a magnetic field, the axion-converted-photon flux consistently deviates as compared to the case of a no-magnetic field. Still, it does not behave qualitatively differently from the other mentioned EoS. Additionally, the axion-converted-photon flux is always higher in the no-magnetic field scenario than in the case of the magnetic field, regardless of all axion energies. After considering both processes, a significant difference can be seen for the entire range of axion energies (\(\sim 1{-}100\) keV). Specifically, the axion-converted-photon flux is steeply peaked at low axion energies for the Bremsstrahlung process. This rapidly decreases at higher values of axion energies because of energy conservation. Here again, we have presented the X-ray spectra of the RXJ 1856.5-3754 (M7) star using the data sets from PN+MOS+Chandra by employing the SLY EoS [17, 109]. After fitting the various axion mass spectral models with the available data sets, we report an axion mass bound around 7 meV for the SLY EoS. Our anticipated results, on comparison with the observational data, show better agreements with the magnetic field case than the no-magnetic field situation.

The strong magnetic fields and the corresponding high value of magnetic field energy lead to a drop in the star’s thermal energy while the contributions from the overall gravitational energy stay unchanged. This explains the correlation between the luminosity suppression and the magnetic field strength [42]. This work has not considered the effect of magnetic fields on the mentioned EoS. It is anticipated that the axion mass bounds would exhibit degeneracies with the mentioned EoS. However, the current analysis suggests that the EoS influences the macroscopic properties (mass and pressure profiles) by modified TOV equations, thereby influencing the bounds on axion mass.

Fig. 4
figure 4

The variation of the energy spectrum of axions with different values of central magnetic field \(B_{c}\) at axion energies \(\omega _{a}= 5\) keV and \(\omega _{a} = 40\) keV from PBF plus Bremsstrahlung process for RXJ 1856.5-3754 (M7) NS and for three EoS. The results for energy spectrum of axions corresponding to axion energy \(\omega _{a} = 40\) keV are multiplied by a factor of 100 to compare with the results of \(\omega _{a} = 5\) keV

In the Bremsstrahlung plus PBF process, the energy spectrum of axions for the APR, FPS, and SLY EoSs show an \(\sim 18.9\)%, 18.1%, 16.5% departure from without the magnetic field at an axion energy \(\sim 5\) keV. Similarly, for the Bremsstrahlung process, the energy spectrum of axions for the APR, FPS, and SLY EoSs show an \(\sim 6.8\)%, 4.7%, 5.9% departure from without the magnetic field at an axion energy \(\sim 5\) keV.

In addition to this, Table 2 summarises the percentage changes of axion-converted-photon flux for APR, FPS, and SLY EoS at an axion energy of 5 keV in the presence and absence of a magnetic field for RXJ 1856.5-3754 (M7) NSs.

Table 2 Table shows the percentage changes of axion-converted-photon flux by Bremsstrahlung plus PBF and only Bremsstrahlung process of RXJ 1856.5-3754 (M7) NSs for three EoS at an axion energy of 5 keV

The effect of the magnetic field can be visualized by studying the variation of energy spectrum at a fixed energy with the central magnetic field. Figure 4a–c shows the variations of the energy spectrum of axions at axion energies \(\omega _{a}= 5\) keV and \(\omega _{a} = 40\) keV with varying central magnetic field for three EoSs. The rate of decrease in the energy spectrum is slightly lesser at a higher axion energy of 40 keV compared to the axion energy of 5 keV from \(B=0\) G to \(B=10^{18}\) G. However, the qualitative behavior remains the same for all three EoSs.

Fig. 5
figure 5

The variation of the energy spectrum of axions (left) and the axion-converted-photon flux (right) with the axion energies by Bremsstrahlung plus PBF and only Bremsstrahlung process at an axion mass 16 meV of star PSR B0531+21 for APR EoS with and without including magnetic field

4 Summary and conclusions

In the present work, we study how the presence of a strong magnetic field affects the energy spectrum of axions and axion-converted-photon flux. Our current work is based on the hypothesis that the axions are produced in the core of NSs by the Cooper pair breaking and formation process and the Bremsstrahlung process, then converted into X-rays due to a strong magnetic field in NS magnetospheres. We have calculated the axion mass bound for the APR, FPS, and SLY EoS. We have also explored the effect of the magnetic field by comparing our numerically computed results with the available archival data of PN+MOS+Chandra [17, 109] for Magnificient seven (M7) star RXJ 1856.5-3754 (M7). Additionally, the summary of our findings is as follows:

  • We have not included the influence of magnetic field on the employed EoSs and mechanism related to the production of axions. Initially, the modified Tolman–Oppenheimer–Volkoff (TOV) system of equations was solved for a given EoSs to study the macroscopic properties (mass/pressure) profiles, which are then used to compute luminosities of axions and surface temperature as a function of time using the NSCool code.

  • Our work encompassed the energy spectrum of axions and axion-converted-photon flux versus axion energies in the presence and absence of magnetic fields. We find the average best-fit axion mass bound for the mentioned three EOSs; namely APR, FPS, and SLY, as 16 meV, 10 meV, and 7 meV, respectively. These mass bounds lie within the limits of the recently reported axion mass bound of 10 meV and 16 meV in the case of a no-magnetic field. The results have been calculated with a fixed value of the star’s mean radius \(\overline{r}= 13\) km and a high value of the central magnetic field \(10^{18}\) Gauss.

  • We emphasize that the axion mass bound slightly varies for APR, FPS, and SLY EoSs. On comparing our results with all available archival data sets of PN+MOS+Chandra, we find that the results for axion-converted-photon flux closely matches with the magnetic field, especially for APR and FPS EOSs.

  • Our investigation reports that the influence of a strong magnetic field on the observables depends on the employed EoS. The uncertainties are more pronounced, especially with low temperatures and high-density conditions. Thus, the study of axion–photon conversion remains a subject of active research for these highly magnetized NSs.