1 Introduction

General Relativity is experiencing an extraordinary era where what was once considered a mathematical curiosity, such as black holes, and faint phenomena, like gravitational waves, have transformed into observable astrophysical entities [1, 2]. Significant efforts explore the properties of physically viable matter configurations that may describe general relativistic compact objects in various states: static, stationary, or undergoing collapse. Any exact solution to the Einstein Equations has certain restrictions, constraining the metric and the energy–momentum tensor to ensure that emerging space-time geometry is astrophysically reasonable.

Since the seminal result of Delgaty and Lake [3], several works have expanded the set of acceptability conditions to obtain more meaningful solutions [4,5,6,7,8]. These conditions are elaborated under the assumption that there are two distinct components for the pressure, one radial and the other tangential, which yields a richer and more realistic description of the internal structure of a compact object. The consideration of local anisotropy, where the radial and tangential stresses are unequal \((P \ne P_\perp ),\) has gained recognition as a relevant concept in describing general relativistic stars. This idea can be traced back to the pioneering works of Jeans [9] and Lemaître [10] and has continued to be explored in both Newtonian and relativistic frameworks (see [11,12,13,14,15,16,17,18,19,20,21,22,23,24] and references therein). Notably, a recent paper [25] presents intriguing insights into the instability of isotropic pressure distribution in self-gravitating matter systems.

Various heuristic strategies have been employed to describe anisotropic microphysics in astrophysical relativistic matter configurations [19,20,21, 26,27,28]). First, there is the initial method proposed by Bowers and Liang [12]; followed by other schemes such as the proportional-to-gravitation approach [13]; the quasilocal method [29]; the covariant approach using proportional pressure gradient [30]; the complexity factor method [31], and the Karmarkar embedding class I [32, 33]. Finally, there is another strategy for implementing anisotropic fluids for General Relativistic matter configurations: the gravitational decoupling approach [34].

Throughout this work, we shall consider the first five common assumptions to model non-Pascalian fluids in general relativistic matter configurations and examine, through extensive modelling, the consequences of the acceptability conditions. We identify the relevant parameters for a particular equation of state, their range and relevance. We integrate the structure equations implementing every anisotropic equation of state with the same density profile \(\rho (r)\) for all configurations. We also identify a comparable set of parameter ranges so as to compare all the physical acceptabilities of the different anisotropic modelling strategies.

Within this framework, for a particular common density distribution, we explore answers to the following two questions:

  • Which type of anisotropy strategy leads to more acceptable matter configurations?

  • Are these acceptable models consistent with the Neutron Star Interior Composition Explorer (NICER) observations [2]?

This paper answers the above questions by organizing our subject matter into several sections. The next section describes the notation and framework of General Relativity. In Sect. 3, we list the acceptability conditions that our models must meet to be considered candidates for compact stellar objects. Section 4 discusses five approaches to include anisotropy in a general relativistic matter configuration. Next, in Sect. 5, we explore the parameter space while fulfilling several acceptability conditions and answer the above queries. Finally, Sect. 6 summarizes our closing remarks and conclusions.

2 The field equations

Let us consider the interior of a dense star described by a spherically symmetric line element written as

$$\begin{aligned} {\textrm{d}}s^2 = {\textrm{e}}^{2\nu (r)}\,{\textrm{d}}t^2- {\textrm{e}}^{2\lambda (r)}\,{\textrm{d}}r^2- r^2\left( {\textrm{d}}\theta ^2+\sin ^2(\theta ){\textrm{d}}\phi ^2\right) ,\nonumber \\ \end{aligned}$$
(1)

with regularity conditions at \(r=r_c=0\), i.e. \({\textrm{e}}^{2\nu _c}=\) constant, \({\textrm{e}}^{-2\lambda _c}= 1\), and \(\nu ^{\prime }_c=\lambda ^{\prime }_c=0\).

We shall consider a distribution of matter consisting of a non-Pascalian fluid represented by an energy–momentum tensor:

$$\begin{aligned} T_\mu ^\nu = \text{ diag }\left[ \rho (r),-P(r),-P_\perp (r),-P_\perp (r) \right] , \end{aligned}$$
(2)

where \(\rho (r)\) is energy density, with P(r) and \(P_\perp (r)\) the radial and tangential pressures, respectively.

From Einstein’s field equations, we obtain the physical variables in terms of the metric functions as

$$\begin{aligned} \rho (r)= & {} \frac{ {\textrm{e}}^{-2\lambda }\left( 2 r \lambda ^{\prime }-1\right) +1 }{8\pi r^{2}}, \end{aligned}$$
(3)
$$\begin{aligned} P(r)= & {} \frac{{{\textrm{e}}^{-2\,\lambda }}\left( 2r \,\nu ^{\prime } +1\right) -1}{8 \pi \,{r}^{2}}\, \quad \text {and}\end{aligned}$$
(4)
$$\begin{aligned} P_\perp (r)= & {} -\frac{{\textrm{e}}^{-2\lambda }}{8\pi }\left[ \frac{\lambda ^{\prime }-\nu ^{\prime }}{r}-\nu ^{\prime \prime }+\nu ^{\prime }\lambda ^{\prime }-\left( \nu ^{\prime }\right) ^2\right] , \end{aligned}$$
(5)

where primes \(^{\prime }\) denote differentiation with respect to r.

Now, assuming the metric function \(\lambda (r)\) is expressed in terms of the Misner “mass” [35] as

$$\begin{aligned} m(r)= & {} \frac{r^2}{2}R^{3}_{232} \; \Leftrightarrow \; m(r)=4\pi \int ^r_0 T^0_0r^2{\textrm{d}}r \; \Rightarrow e^{-2\lambda }\nonumber \\= & {} 1-\frac{2 m(r)}{r}. \end{aligned}$$
(6)

Additionally, the interior metric should continuously match the Schwarzschild exterior solution at the sphere’s surface, \(r=r_b=R\). This implies that \({\textrm{e}}^{2\nu _b}={\textrm{e}}^{-2\lambda _b}=1-2{\mathcal {C}}_{\star } = 1 -2M/R\), where \(M = m_b\) is the total mass and \({\mathcal {C}}_{\star }=M/R\) the compactness of the configuration. From now on, the subscripts b and c indicate the variable’s evaluation at the boundary and the centre of the matter distribution.

The Tolman–Oppenheimer–Volkoff equation (i.e. \(T^{\mu }_{r \; ; \mu }=0\), the hydrostatic equilibrium equation) for this anisotropic fluid can be written as

$$\begin{aligned} \frac{{\textrm{d}} P}{{\textrm{d}} r} = -\underbrace{(\rho +P)\frac{m + 4 \pi r^{3}P}{r(r-2m)}}_{F_{g}}+\underbrace{\frac{2}{r}\left( P_\perp -P \right) }_{F_{a}}. \end{aligned}$$
(7)

Thus, we can identify two forces competing in compensating the pressure gradient: the “gravitational force”, \(F_{g}\) and the “anisotropic force”, \(F_{a}\). Equation (7) together with

$$\begin{aligned} \frac{{\textrm{d}} m}{{\textrm{d}} r}=4\pi r^2 \rho , \end{aligned}$$
(8)

constitute the relativistic stellar structure equations.

From Eq. (7), notice that the pressure gradient becomes less steep when the anisotropy is positive \(\Delta _{+}=P_{\perp }-P > 0\), and conversely, it changes more rapidly when the anisotropy is negative \(\Delta _{-}=P_{\perp }-P < 0\). The only possibility for negative anisotropy is that the tangential and radial pressures vanish at \(r = r_b\).

Thus, for a fixed central stiffness, \(\sigma = P_c/\rho _c\), the compactness, \({\mathcal {C}}_{\star }\), of the sphere increases when there is positive anisotropy \(\Delta _{+}\), and decreases when there is negative anisotropy \(\Delta _{-}\). Concerning positive anisotropy, we can adjust more massive configurations compared to isotropic \(\Delta _{0} = 0\) scenarios. If both forces balance, i.e., \(F_{g}=F_{a}\), we obtain a specific matter configuration characterised by vanishing radial pressures and solely sustained by tangential stresses [36]. This is because the tangential stresses support the mass shells, reducing the required radial pressure in such circumstances [37].

3 The physical acceptability conditions

The emerging physical variables have to comply with the various acceptability conditions [3,4,5, 7, 8], which are crucial when considering self-gravitating stellar models. Only acceptable self-gravitating objects are of astrophysical interest and, in this work, those models have to comply with nine requirements expressed as [8]:

C1::

\(2m/r < 1\), which implies [38, 39]:

  1. 1.

    That the metric potentials \({\text {e}}^{\lambda }\) and \({\text {e}}^{\nu }\) are positive, finite and free from singularities within the matter distribution, satisfying \({\text {e}}^{\lambda _{c}} = 1\) and \({\text {e}}^{\nu _{c}}= \text{ const }\) at the centre of the configuration.

  2. 2.

    The inner metric functions match the exterior Schwarzschild solution at the boundary surface.

  3. 3.

    The interior redshift should decrease with increasing of r.

C2::

Positive density and pressures, finite at the centre of the configuration with \(P_c=P_{\perp c}\) [39].

C3::

\(\rho ^{\prime } < 0\), \(P^{\prime } < 0\), \(P_{\perp }^{\prime } < 0\) with density and pressures having maximums at the centre, thus \(\rho ^{\prime }_{c}=P^{\prime }_{c} = P^{\prime }_{\perp c}=0\) with \(P_{\perp } \ge P\).

C4::

The causality conditions on the radial, \(0 < v_{s}^2 \le 1\) and tangential \(0 < v_{s \perp }^2 \le 1\), sound speeds, respectively [40].

C5::

The trace energy condition \(\rho - P - 2P_{\perp } \ge 0\), which is more restrictive than the strong energy condition, \(\rho + P + 2P_{\perp } \ge 0\), for imperfect fluids [5, 41, 42]. This condition has several interesting consequences for isotropic EoS [43].

C6::

The dynamic perturbation analysis restricts the adiabatic index [15, 44,45,46]

$$\begin{aligned} \Gamma = \frac{\rho + P}{P} v_s^{2} \ge \frac{4}{3} . \end{aligned}$$
C7::

The Harrison–Zeldovich–Novikov stability condition: \({\textrm{d}}M(\rho _c)/{\textrm{d}}\rho _c > 0\) [47, 48].

C8::

The cracking instability against local density perturbations, \(\delta \rho = \delta \rho (r)\) (for more details, the reader is referred to [6, 49, 50]).

C9::

The adiabatic convective stability condition \(\rho ^{\prime \prime } \le 0\), which is more restrictive than the outward decreasing density and pressure profiles [6].

Acceptability conditions for general relativistic spheres refer to the criteria that must be satisfied by the metric and physical variables in a relativistic matter distribution to be considered astrophysically viable and consistent within the framework of General Relativity. They are motivated by

  • Regularity conditions on the physical and metric variables, i.e. C1 and C2: A physically acceptable solution should exhibit regular behaviour, particularly at the centre of the sphere, avoiding singularities or divergences in physical quantities such as energy density, pressure, and metric components.

  • Energy conditions and equation of state, i.e. C2, C3, C4 and C5: Relativistic matter distributions are typically required to satisfy certain energy conditions, which impose constraints on the stress-energy tensor components. These conditions ensure the energy density and pressures associated with the matter distribution are within physically reasonable bounds.

  • Stability, i.e. C6, C7, C8 and C9: This involves assessing the stability of the matter distribution against perturbations or dynamic changes, ensuring that it remains in a state of equilibrium and does not collapse, cracks or other undesirable behaviours.

4 Anisotropy heuristic strategies

This section will introduce several assumptions and heuristic strategies to model anisotropy in relativistic matter configurations. Local anisotropy in compact objects is a hypothesis that has gained relevance over time. Nowadays, it is well understood that unequal radial and tangential stresses may increase the stability of neutron star models. However, a complete description of the complex interactions in the fluid that cause such phenomena is still unknown.

The most common approaches in introducing anisotropy for modelling relativistic matter configuration are:

  • Anisotropy proportional to gravitational force. M. Cosenza et al. [13] inspired by the work of Bowers and Liang [12] proposed suitable models for anisotropic matter by considering the anisotropic force proportional to the gravitational one. This relationship leads to the following expression for the difference between the tangential and radial pressures:

    $$\begin{aligned} P_{\perp } - P = \frac{C_{GF}\left( \rho + P\right) \left( m + 4\pi r^{3}P\right) }{r - 2m} = \Delta _{GF} , \end{aligned}$$
    (9)
  • Quasi-local anisotropy Local anisotropy can also be considered as the influence of quasi-local variables, which are quantities that are not solely dependent on the state of the fluid at a specific point in space-time [51]. These variables, such as the curvature radius r or the compactness \(\mu \) (\(=2m/r\)), are employed as a quasi-local equation of state to describe anisotropy [29]. Within this approach, a particular type of anisotropy is:

    $$\begin{aligned} P_{\perp } - P = C_{QL} P \mu = 2 C_{QL} P \frac{ m }{r} = \Delta _{QL} . \end{aligned}$$
    (10)
  • Anisotropy proportional to a pressure gradient. Another potential form for the anisotropic force, considering Eq. (7), is for it to be proportional to the pressure gradient. Raposo and collaborators [30] proposed an anisotropy proportional to the covariant derivative of pressure as:

    $$\begin{aligned} P_{\perp } - P= & {} -C_{PG} f(\rho )k^{\mu }\nabla _{\mu }P \nonumber \\= & {} -C_{PG}f(\rho )\sqrt{1 - \frac{2m}{r}}\frac{{\textrm{d}}P}{{\textrm{d}}r} = \Delta _{PG} , \end{aligned}$$
    (11)

    where \(f(\rho )\) (see Appendix B for details) is a generic function of the energy density and \(k^{\mu } = \left( 0,k^{1},0,0\right) \) is a unitary space-like vector orthogonal to the fluid four-velocity.

  • Complexity factor anisotropy. This factor is a quantity defined by decomposing the Riemann tensor, which measures the level of complexity in self-gravitating systems [31, 52, 53]. It reflexes the impact of local anisotropy and density inhomogeneity on the active gravitational mass. Consequently, systems with minimal complexity are represented by homogeneous and isotropic fluids. In the case of anisotropic fluids, satisfying the condition of a vanishing complexity factor with minimal complexity, the local anisotropy can be expressed as follows:

    $$\begin{aligned} P_{\perp } - P= - \frac{C_{CF}}{2 r^{3}} \int _{0}^{r} {\tilde{r}}^{3} \rho ^{\prime } {\textrm{d}}{\tilde{r}} = \Delta _{CF}. \end{aligned}$$
    (12)
  • Karmarkar anisotropy. The Karmarkar condition [32] is a relationship among components of the Riemann tensor, given by

    $$\begin{aligned} R_{0303}\, R_{1212} -R_{0101}\,R_{2323} -R_{0313}\,R_{0212} = 0. \end{aligned}$$
    (13)

    This condition provides a geometric mechanism for incorporating anisotropy into matter configurations. To express Eq. (13) in a scalar form, we introduce a set of scalar functions known as structure scalars, obtained from the orthogonal splitting of the Riemann tensor (refer to [33, 54] for more a detailed discussion). Hence, the scalar Karmarkar condition for spherically symmetric static configurations is

    $$\begin{aligned} Y_0 X_1+(X_0+X_1)Y_1=0 , \end{aligned}$$
    (14)

    with

    $$\begin{aligned} Y_{0}= & {} 4\pi \left( \rho + 3{\textbf{P}}\right) ,\quad Y_{1} = {\mathcal {E}}_{1} - 4\pi \Delta ,\nonumber \\ X_{0}= & {} 8\pi \rho \quad \text {and} \quad X_{1} = -\left( {\mathcal {E}}_{1} + 4\pi \Delta \right) , \end{aligned}$$
    (15)

    where

    $$\begin{aligned} {\textbf{P}} = \frac{P + 2P_{\perp }}{3}\quad \text {and}\quad {\mathcal {E}}_{1}= -\frac{4\pi }{r^{3}}\left( \int _{0}^{r} {\tilde{r}}^{3}\rho ^{\prime }{\textrm{d}}{\tilde{r}} + r^{3}\Delta \right) .\nonumber \\ \end{aligned}$$
    (16)

    Thus, the induced anisotropy by the Karmarkar condition, written in terms of the physical variables, is given by

    $$\begin{aligned} P_{\perp } - P= & {} \frac{ C_{KC}}{r^{3}} \int _{0}^{r} {\tilde{r}}^{3}\rho ^{\prime }{\textrm{d}}{\tilde{r}} \, \left( \frac{(3P -\rho ) - \frac{1}{r^{3}} \int _{0}^{r} {\tilde{r}}^{3}\rho ^{\prime }{\textrm{d}}{\tilde{r}} }{4 \rho }\right) \nonumber \\= & {} \Delta _{KC}. \end{aligned}$$
    (17)

In the above Eqs. (9), (10), (11), (12), and (17), we denoted the corresponding anisotropic parameter by \(C_{GF}\), \(C_{QL}\), \(C_{PG}\), \(C_{CF}\) and \(C_{KC}\), respectively.

The relationship between the complexity and Karmarkar anisotropies is evident when we re-write Eq. (17) in terms of \(\Delta _{CF}\), i.e.

$$\begin{aligned} \Delta _{KC} = -\Delta _{CF}\left( \frac{C\left( 3P-\rho \right) + 2\Delta _{CF}}{2 \rho C} \right) . \end{aligned}$$
(18)

Where we have set \(C = C_{CF} = C_{KC}\). It is worth mentioning that when \(\Delta _{CF} = 0 \quad \Leftrightarrow \quad \Delta _{KC} =0\) and the only matter configuration for both anisotropic strategies corresponds to the Schwarzschild homogeneous isotropic solution.

Another strategy for implementing anisotropic fluids in General Relativistic matter configurations is the gravitational decoupling approach [34]. This procedure assumes that the energy–momentum tensor splits into two parts as

$$\begin{aligned} T_{\mu }^{\nu } = {\hat{T}}_{\mu }^{\nu } + \theta _{\mu }^{\nu }, \end{aligned}$$
(19)

where \({\hat{T}}_{\mu }^{\nu }\) corresponds to the perfect fluid contribution and \(\theta _{\mu }^{\nu }\) describes any other coupled form of gravitational source. Implementing the anisotropic parameter C for modelling this method is unattainable. Thus, comparing the models emerging from this strategy with those executed with all previous techniques is impossible. It deserves a more detailed consideration which will be developed elsewhere.

5 Anisotropy and physical acceptability

In this section, we discuss the physical acceptability of relativistic anisotropic models. We numerically integrate the structure equations (7) and (8) implementing every equation of state for anisotropy from the previous section, (i.e. \(\Delta _{GF}\), \(\Delta _{QL}\), \(\Delta _{PG}\), \(\Delta _{CF}\), and \(\Delta _{KC}\)) and selecting a common density profile

$$\begin{aligned} \rho \left( r\right) = \rho _{c}\left( 1 - \alpha r^{2}\right) , \end{aligned}$$
(20)

where the central density \(\rho _{c}\) and the constant \(\alpha \) are free parameters.

This simple Tolman VII density profile [55] is not deprived of physical interest [56] and has a long tradition of modelling compact objects. It corresponds to the Gokhroo–Mehra [57] solution used in several anisotropic static spheres in General Relativity [37, 51, 58]. Additionally, under some circumstances [59], it leads to densities and pressures that give rise to an equation of state similar to the Bethe–Börner–Sato Newtonian equation for nuclear matter [60]. It also describes radiating anisotropic fluid spheres [59, 61] representing the Kelvin–Helmholtz phase in the birth of a neutron star [62, 63].

Now, from Eq. (20), we obtain the boundary radius of the configuration as a function of the physical parameters of the problem, i.e. \(\rho _{c}\) and \(\varkappa = \rho _b/\rho _c\) as

$$\begin{aligned}{} & {} {\tilde{\rho }} = {\tilde{\rho }}_{c}\left( 1-{\tilde{\alpha }} x^{2}\right) \quad \Rightarrow {\tilde{m}} = 4\pi {\tilde{\rho }}_{c}\left( \frac{x^{3}}{3} - {\tilde{\alpha }}\frac{x^{5}}{5}\right) \nonumber \\{} & {} \quad \Rightarrow R = \left\{ \frac{ M }{4\pi \rho _{c}\left[ \frac{1}{3}-\left( 1-\varkappa \right) \frac{1}{5}\right] }\right\} ^{1/3} . \end{aligned}$$
(21)

Where we have defined the following quantities

$$\begin{aligned}&{\tilde{\alpha }} =\alpha R^{2}, \quad \varkappa = 1 - {\tilde{\alpha }} =\frac{\rho _{b}}{\rho _{c}}, \quad m = R{\tilde{m}},\nonumber \\&\quad \rho = \frac{1}{R^{2}}{\tilde{\rho }}, \quad \text {and} \quad r = R x, \end{aligned}$$
(22)

where R and M are the structure boundary radius and total mass, respectively. In Appendix B, we present the dimensionless expressions for the structure equations and each anisotropic EoS, including some information about the simple numerical integration techniques.

5.1 The range of the parameters

The solution of Eq. (7) for the density profile (20) is sensitive to \(\rho _{c}\), \(\varkappa = \rho _b/\rho _c\) and the anisotropy factor, C [56]. A variation of these three factors generates a parameter space, exhibiting several acceptability conditions satisfied by each model. We shall identify which anisotropy delivers more physically acceptable configurations, i.e. satisfy more acceptability conditions. Thus, we shall identify a common set of parameter variations so as to compare the physical acceptability of the different anisotropic modelling strategies.

We start determining the possible variation of a common anisotropic parameter, C. Regarding the case of \(\Delta _{GF}\), observe that Eq. (7) leads to

$$\begin{aligned} \frac{{\textrm{d}}P}{{\textrm{d}}r} = - h \frac{(\rho + P)(m + 4 \pi r^3 P)}{r(r-2m)}, \end{aligned}$$
(23)

with \(h = 1 - 2 C\), and when \(h = 1\) the isotropic case is recovered. Notice that condition C3 and Eq. (23) implies \(h > 0\), therefore if \(\rho _{b} \ne 0\) we have,

$$\begin{aligned}{} & {} h = 1 - 2 C > 0 \ \Rightarrow \ C< \frac{1}{2} , \quad \text {and since}\quad \nonumber \\{} & {} \quad P_{\perp } \ge 0 \ \Rightarrow \ 0 \le C < \frac{1}{2}. \end{aligned}$$
(24)

The tangential pressure should be positive at the boundary \(P_{\perp \, b} \ge 0\) within the matter distribution and from Eq. (9), it restricts the anisotropic parameter to \(0 \le C < \frac{1}{2}\) for any EoS having \(\rho _{b} \ne 0\). We selected six values for the anisotropy parameter, i.e. \(C = 0.000, \, 0.050, \, 0.150, \, 0.250, \, 0.350,\) and 0.450.

In addition to the anisotropic parameter, C, there are two other significant elements: the central density, \(\rho _{c}\), and \(\varkappa \). According to typical values in compact objects/neutron stars, \(\rho _{c}\) could go from \(0.1 \times 10^{15}\) to \(2.5 \times 10^{15}~\text {g}/\text {cm}^{3}\). The scale variation for \(\varkappa \) runs from 0.0 (vanishing density at the surface) to 0.9 (almost homogeneous density). Finally, we have to provide the total mass, M, of the configuration (\(\approx 2.08\,M_{\odot }\), the highest reliable gravitational mass of any neutron star [64, 65]) to determine the central density of each model.

5.2 The best method to introduce anisotropy

To answer the first question, we shall follow two lines of reasoning in identifying which of the above anisotropy strategies is best suited in providing more acceptable models. The next section identifies regions in the parameter space (C, \(\varkappa \) and \(\rho _c\)), that comply with the acceptability criteria. Figure 1 displays, in a colour scale, those patches for five different values of the anisotropy factor C. For example, in the isotropic case, i.e. \(C = 0\), we obtain 33 of these physically fully acceptable models. More acceptable matter configurations are placed below the red line in all cases shown, i.e. when

$$\begin{aligned} \rho _b \le \frac{9}{10} \rho _c \left( 1 - \frac{2 \rho _{c}}{5}\right) . \end{aligned}$$
(25)

As displayed in Fig. 2, the second approach is to sum up the total number of models satisfying all nine-acceptability criteria. This method, discussed in Sect. 5.2.2, complements the previous criterion because we explore the number of possible acceptable models for the whole range of variation of the anisotropic parameter.

5.2.1 Acceptable model distribution in a parameter space

In this section, we shall discuss the acceptable model distribution in the common parameter space defined by \(0.000 \le C \le 0.450;\) \(0.1 \times 10^{15}\le \rho _c \le 2.5 \times 10^{15}\,\text {g}/\text {cm}^{3}\) and \(0.0 \le \varkappa \le 0.9\). Figure 1 displays, in a colour scale, this model distribution for six different values of the anisotropy factor C. As will be clear in the following discussion, this range of variation in the parameter plane \((\rho _c, \varkappa )\) is due to the NICER-acceptable models [64] when we considered the total mass of the configuration \(M \approx 2.08 M_{\odot }\). See Fig. 3 to grasp the rationale of the parameter variation.

Fig. 1
figure 1

Number of conditions fulfilled by the different anisotropy heuristic strategies. The strategies \(\Delta _{GF}\) and \(\Delta _{QL}\) lead to better modelling (more yellow squares representing models complying with nine criteria) than the isotropic case for \(C = 0.050, 0.150\) and 0.250, This is not the case for the other anisotropic approaches: \(\Delta _{CF}\), \(\Delta _{KC}\), which have the maximum number of acceptable models in the isotropic condition. When the anisotropic parameter increases to \(C = 0.150\), the number of acceptable models boost for \(\Delta _{GF}\) and very little for \(\Delta _{QL}\) and \(\Delta _{KC}\). For the other approaches, the number of models decreases. Increasing the anisotropy to \(C = 0.250\) generates a maximum of acceptable models with the \(\Delta _{GF}\) method. When \(C=0.350\), no \(\Delta _{GF}\)-model satisfies the nine acceptability criteria. The \(\Delta _{QL}\)-strategy gives a few new models, and other anisotropic methods decrease the number of acceptable configurations. Nearly all matter distributions meet the nine criteria for the considered values of \(\varkappa \) and \(\rho _c\). Finally, when \(C=0.450\), only the \(\Delta _{QL}\)-strategy provides more acceptable models than the isotropic condition. Clearly, for all the anisotropic methods, we found more acceptable models when \(\rho _b \le \frac{9}{10} \rho _c \left( 1 - \frac{2 \rho _{c}}{5}\right) \)

For a low anisotropic presence (\(C = 0.050\) displayed in Fig. 1), \(\Delta _{GF}\) and \(\Delta _{QL}\) strategies deliver more acceptable models (yellow patches represent models satisfying the nine criteria) than in the isotropic case. Several models with anisotropy proportional to the pressure gradient, \(\Delta _{PG}\), become unacceptable because they do not meet the adiabatic index’s stability criterium C6. On the other hand, configurations with anisotropy defined by the complexity factor have nonphysical negative pressure and positive tangential pressure gradient. Moreover, configurations with vanishing density at the boundary \((\rho _b = 0 \rightleftharpoons \varkappa = 0.0)\) do not comply with C5, C6 or C8. The Karmarkar anisotropy scheme, \(\Delta _{KC}\), produces unsuitable configurations having negative tangential pressures. When \(\varkappa = 0.0\) the corresponding matter distributions do not comply with C4, C6 or C8. In general, as \(\varkappa \) increases, the speed of sound exceeds the light speed, failing C4. The increase in the central density oversteps the condition on the trace of the energy–momentum tensor, and the darker region in the upper right corner is due to the models’ cracking (C8).

Fig. 2
figure 2

In the left panel, we present the number of acceptable models N(C) fulfilling the nine acceptability conditions as a function of the anisotropic factor C for each anisotropic strategy. The embedded plot displays a zoom of the region near the isotropy, i.e. \(C \approx 0\). The black point represents the number of nine-condition-acceptable-isotropic models. There are more anisotropic-acceptable models than isotropic ones. \(\Delta _{GF}\) has a limited range of anisotropy variation, \(0.000 \le C_{GF} \le 0.250\), with a pronounced peak for 76 models for \(C_{GF} = 0.225\). The number of acceptable quasi-local models, \(\Delta _{QL}\), increases with anisotropy, reaching 53 for \(C_{QL} = 0.910\). The areas under the curves are proportional to the total number of anisotropic configurations described by the three parameters: C, \(\rho _c\) and \(\varkappa \). The quasi-local anisotropic modelling, \(\Delta _{QL}\), is the most effective anisotropic strategy, followed by the Karmarkar scheme, \(\Delta _{KC}\), and then by the complexity factor approach, \(\Delta _{CF}\). The right panel illustrates the number of acceptable models representing the NICER observational estimation of the radius R for PSR J0740+6620. The area under the curve for the anisotropic strategies follows the same pattern in the NICER-acceptable models. More possible models exist for the \(\Delta _{QL}\) approach

Raising C to 0.150 enhances the acceptability when anisotropy is proportional to the gravitational force, and 65 out of 90 models satisfy all the conditions. On the other hand, quasi-local anisotropy does not show variation in the acceptable configurations, while the number of acceptable models with \(\Delta _{PG}\) decreases drastically by failing with condition C6. The increased anisotropy in \(\Delta _{CF}\) makes acceptable models, now to have positive tangential pressure gradient and negative radial pressure. One model becomes acceptable for \(\Delta _{KC}\) by fulfilling condition C5.

Increasing the anisotropic factor C to 0.250 further causes a maximum in \(\Delta _{GF}\). As seen from Fig. 1, almost all models, \(\Delta _{GF}\), meet the nine criteria for the considered values of \(\varkappa \) and \(\rho _c\). This is also evident from Fig. 2. It attains 76 fully acceptable models when \(C=0.225\). The remaining 12 configurations mainly do not satisfy the causality condition of radial sound speed C4. Quasi-local anisotropy also increases, to a lesser extent, the number of acceptable models. Only one model for \(\Delta _{PG}\) becomes unacceptable due to condition C6. Regarding \(\Delta _{CF}\), a few models are no longer acceptable, breaking the tangential pressure condition C3. Acceptable models with \(\Delta _{KC}\) remain unchanged.

As it is clear from Fig. 1, when \(C=0.350\), there is no \(\Delta _{GF}\)-model satisfying the nine acceptability criteria; the \(\Delta _{QL}\)-strategy allows a few new models, while \(\Delta _{PG}\) and \(\Delta _{CF}\) decrease in acceptable models. In contrast, \(\Delta _{KC}\) remains unchanged. Finally, as displayed in Fig. 1, i.e. for \(C=0.450\), only the \(\Delta _{QL}\)-strategy provides more acceptable models than the isotropic condition. Several models under the red line, for \(\Delta _{CF}\), become acceptable by fulfilling condition C4.

Table 1 Values of the anisotropic parameter C and the number of acceptable models N(C) in the range of the considered \(\varkappa \) and \(\rho _c\). \(C_0\) represents the anisotropic parameter where no other fully acceptable model is found. \(C_{max}\) represents the central value among the C values that yield the highest number of acceptable models for a particular anisotropy strategy. \(N(C_{max})\), is greater than the number of acceptable isotropic models for \(\Delta _{GF}\), \(\Delta _{QL}\) and \(\Delta _{PG}\) strategies. The area under the curve, \(N_{Total} \propto \int _{0}^{C_0}{\textrm{d}}C \; N(C) \), for each anisotropic strategy. Clearly, for the range in \(\varkappa \) and \(\rho _c\) considered, there are more anisotropic acceptable models than their isotropic counterparts. Concerning the NICER-acceptable models, we found \(N_{NICER}(C_{NICER-max}) = 10, 9, 8, 8\) and 8, for \(\Delta _{GF}\), \(\Delta _{QL}\), \(\Delta _{PG}\), \(\Delta _{CF}\) and \(\Delta _{KC}\), respectively and the area under the curve for the anisotropic strategies follow the same pattern. Figure 2 illustrates these results

5.2.2 Total number of acceptable models and the best anisotropy strategy

This section extends our analysis by determining the total number of entirely acceptable models. To achieve this, we redefine the range for the anisotropic parameter, starting from isotropy \((C=0.000)\) and continuing until the last value \((C=C_0)\) where no other fully acceptable model exists, i.e. satisfying all nine criteria for acceptability.

Fig. 3
figure 3

NICER acceptable models for PSR J0740+6620. There could be several descriptions (isotropic and anisotropic) for this pulsar. We consider three anisotropic methods, \(\Delta _{GF}\), \(\Delta _{QL}\), \(\Delta _{PG}\) and the isotropic case. We present the isotropic scenario because the number of acceptable models is the same for the \(\Delta _{CF}\) and \(\Delta _{KC}\). We show that the value of all possible radii ranges within \(11.6~\text {km}\le R\le 13.1~\text {km}\), corresponding to several NICER-acceptable models with the selected parameter space, fulfilling all the physically acceptable conditions. The NICER acceptable region overlaps with more yellow models in \(\Delta _{GF}\) and \(\Delta _{QL}\) plots than in the other anisotropic strategies. The red arrows indicate the possible values for the central density, \(0.7\times 10^{15}~\text {g}/\text {cm}^3\le \rho _c\le 1.3\times 10^{15}~ \text {g}/\text {cm}^3\) and the corresponding values of \(\varkappa \) consistent with the assumed density profile (20), which are displayed in Table 2

In Fig. 2 and Table 1, we show the most effective methods for introducing anisotropy. The most useful approach is the quasi-local \(\Delta _{QL}\) method [29], followed by the Karmarkar scheme [32, 33], and finally the complexity factor approach [31, 52, 53]. These strategies include varying degrees of effectiveness due to the significant range of the anisotropic parameter C: \(0.000 \le C_{QL} \le 3.345\), \(0.000 \le C_{KC} \le 4.760\), and \(0.000 \le C_{CF} \le 3.570\), respectively.

Anisotropy leads to more acceptable models than isotropic ones. The most distinct scheme is the anisotropy proportional to gravitational force, \(\Delta _{GF}\). It has a narrow range of variation for the anisotropic parameter, with \(0.000 \le C_{GF} \le 0.250\), and a pronounced peak with 76 models for \(C_{GF} = 0.225\). Around half of the models fall within \(0.050 \le C_{GF} \le 0.250\). Models with \(C_{GF} > 0.250\) are considered unacceptable due to their positive tangential pressure gradient, which violates condition C3. Regarding the quasi-local approach, \(\Delta _{QL}\), the number of models satisfying all requirements increases with the level of anisotropy, reaching a peak of 53 for \(C_{QL} = 0.910\). This method has a significant range in anisotropy \(0.000 \le C_{QL} \le 3.345\). The simplest but least effective method is anisotropy proportional to pressure, \(\Delta _{PG}\). It has a limited anisotropic range of \(0.000 \le C_{PG} \le 0.578\), with a maximum of 34 models at very low anisotropy, \(C_{PG} = 0.025\). The following method is complexity anisotropy, \(\Delta _{CF}\), which has a considerable range, \(0.000 \le C_{CF} \le 3.570\), but no anisotropic parameter generates more acceptable models than the isotropic case. Finally, the geometric Karmarkar strategy is \(\Delta _{KC}\) related to the complexity anisotropy and has the broadest range, i.e., \(0.000 \le C_{CF} \le 4.760\).

5.3 NICER acceptable models

The Neutron Star Interior Composition Explorer is an X-ray telescope on the International Space Station which studies the X-ray emissions from neutron stars, helping to determine their size, mass, and the properties of their dense interiors. By measuring the mass and radius of multiple neutron stars, NICER refines our understanding of the equation of state, providing valuable constraints on the properties of ultra-dense matter. NICER also detects the pulsation of neutron stars, permitting scientists to explore the dynamics of their atmospheres, unravelling the physical processes occurring in and around them. NICER has been employed to obtain the first precise (and dependable) measurements of a pulsar’s size and mass and the first-ever map of hot spots on its surface (see [2] and references therein).

Table 2 Range of \(\varkappa \) and \(\rho _c\) for the PSR J0740+6620 with \(2.08~\pm ~0.07~M_{\odot }\), considering distinct anisotropy approaches. In this table, we present the range of \(\varkappa \) for the possible values of \(\rho _c\) consistent with the observational NICER data. We found various possible configurations for different \(\rho _c\), ranging from almost homogeneous density profiles, i.e. \(\varkappa \approx 0.8\), to others with vanishing density at the boundary of the configuration where \(\varkappa \approx 0.0\). Assuming a simple density profile, the observed radius for PSR J0740+6620, can be described by acceptable isotropic matter configurations and several anisotropic approaches. Models with the highest \(\varkappa \) correspond to anisotropic configurations with \(\Delta _{GF}\) strategy

In Fig. 3, we include a region covering observational estimates for the radius of the PSR J0740+6620, with mass \(2.08\pm 0.07~M_{\odot }\), which is the highest reliable gravitational mass of any neutron star [64, 65]. In Table 1, we indicate the number of NICER-compatible models for different anisotropic strategies.

From Eq. (21), we calculate the configuration radius as a function of \(\rho _c\) and \(\varkappa \). We find that the central density, \(0.7\times 10^{15}~ \text {g}/\text {cm}^3\le \rho _c\le 1.3\times 10^{15}~\text {g}/\text {cm}^3\), is consistent with observational data. The range for \(\varkappa \) associated with various central densities for different anisotropy strategies are displayed in Table 2.

We also find various acceptable configurations with different \(\rho _c\), ranging from almost homogeneous density profiles, i.e. \(\varkappa \approx 0.8\), to others with vanishing density at the configuration boundary where \(\varkappa \approx 0.0\). Assuming a simple density (20), the observed radius for PSR J0740+6620 can be described by acceptable isotropic matter configurations and several anisotropic approaches. Models with the highest \(\varkappa \) correspond only to anisotropic configurations within \(\Delta _{GF}\) strategy.

Figure 3 provides a visual representation of the results detailed in Table 1. All possible radii \(11.6~\text {km}\le R\le 13.1~\text {km}\) harmonise with various NICER-acceptable models. The red arrows denote workable values for the central density, ranging from \(0.7\times 10^{15}~\text {g}/\text {cm}^3\) to \(1.3\times 10^{15}~\text {g}/\text {cm}^3\), coupled with their corresponding \(\varkappa \) values that align with the assumed density profile (20).

In both the \(\Delta _{GF}\) and \(\Delta _{QL}\) anisotropy strategies, the NICER acceptable region encompasses more yellow models compared to other anisotropic approaches. Specifically, there are ten NICER models for \(\Delta _{GF}\) with \(C_{GF}=0.225\) and nine for \(\Delta _{QL}\) with \(C_{QL}=0.910\). However, if we consider the whole range of possible values for the anisotropy parameter C, the total number of NICER models reaches approximately \(N_{NICER-Total-QL} \approx 11.775\) for the \(\Delta _{QL}\) strategy (see Table 1).

6 Final remarks

This work introduces the most common assumptions in modelling non-Pascalian fluids in general relativistic matter configurations. Local anisotropy in compact objects is a hypothesis that has gained relevance over time. So far, however, it is still not well known how unequal radial and tangential stresses may increase the stability of neutron star models. The complete description of the complex interactions in the fluid that cause such phenomena is unknown [15, 23].

We explore five different heuristic methods to include anisotropy in general relativistic matter configurations. We found that the most effective approach in introducing anisotropy, with a physically meaningful density profile (20) is the quasi-local \(\Delta _{QL}\) method [29]; followed by the Karmarkar scheme [32, 33]; and last by the complexity factor approach [31, 52, 53]. Incorporating any of the five types of anisotropy schemes considered in this study results in a significantly greater number of acceptable configurations than their isotropic counterparts within the specified range of critical parameters (C, \(\varkappa \) and \(\rho _c\)).

Furthermore, as shown in Fig. 1 and from Eq. (25), we have established a “rule of thumb” that provides a simple relationship between the density at the boundary, \(\rho _b\), and the centre, \(\rho _c\), for relativistic matter distributions. This rule can serve as a helpful tool for identifying potentially realistic and acceptable models of compact objects. By leveraging this relationship, researchers can make informed judgments about the physical viability of different matter configurations.

From Eq. (21), we calculate the configuration radius as a function of \(\rho _c\) and \(\varkappa \). We found that the central density, \(0.7\times 10^{15}~\text {g}/\text {cm}^3\le \rho _c\le 1.3\times 10^{15}~ \text {g}/\text {cm}^3\), is consistent with NICER-observational data. In Table 2, we introduce the corresponding ranges for \(\varkappa \). All the possible radii values, \(11.6~\text {km}\le R\le 13.1~\text {km}\), correspond to several NICER-acceptable models within the selected parameter space, fulfilling all physically acceptable conditions.

Assuming a simple density profile (20), the observed radius for PSR J0740+6620 can be described by acceptable isotropic matter configurations and several anisotropic approaches. Models with the highest \(\varkappa \) correspond only to anisotropic configurations with \(\Delta _{GF}\) strategy.