1 Introduction

In the midst of the sphere’s main sequence, hydrogen fuel combustion happens in the central zone in order to maintain the equilibrium of the star corresponding to the internal gravitational force. Burned hydrogen is the most productive wellspring of energy for any sphere assembled in principle and continues easily with no ferocious occasions, providing the star with the primary gauge of external pressure as well as the development of the helium center. However, beyond the combustion of Hydrogen, all other atomic combustion phases such as Helium combustion, Carbon combustion may happen on some cataclysmic occasions, for instance, planetary cloud, an explosion of supernovae joined by huge mass expulsion. In these occasions, the sphere center is too much packed prompting the configuration of relativistic compacts stellar spheres such as neutron star, white dwarfs, and black holes. Besides, the destiny of the packed center will be dictated by the underlying mass of its sphere of ancestor. The matter is to a great degree thick for the previously mentioned relativistic compacts stellar spheres in this way showing some extraordinary conduct and brings about unusual variation in space-time structure throughout it. The extraordinary states of energy density and pressure interior the sphere of the neutron can cause the neutron stage change into bosons, hyperons, and other strange quark matter. The more rigid states equation is necessary to clarify the conduct of the strange matter of the quark and other exotic states of matter [1,2,3,4]. The modeling of ultra-dense configurations in astrophysics of relativistic has aroused huge concern for astrophysicists in recent decades. The ongoing advances in observational procedures have uncovered numerous characteristics of the relativistic compacts stellar spheres yet at the same time; numerous lacunae are there to be settled. The hypothetical investigation of the nature and exact constitution of compact relativistic stellar spheres within the framework of the general relativity hypothesis is of fundamental importance for astrophysics. It encourages researchers to understand the interactions of particles with high density and to study their different stages of development as well as their internal characteristics. The compactification parameter of dead objects exits them from the condition of isotropic and matter demonstrates the anisotropic behavior which explains the difference in many of the characteristics of the compact objects.

In order to comprehend the inside configuration and transformative phases of relativistic compact stellar spheres, the anisotropic fluid appropriation plays a principal goal. As the relativistic compact stellar spheres have heavy centers and their densities surpass the density of nuclear, along these lines, pressure should be anisotropic interior the relativistic compact stellar spheres [5, 6]. In the anisotropic distribution of matter, it is seen that pressure is parceled into radial and tangential constituents. In this case, numerous specialists have studied the features of dense relativistic compact stellar spheres with anisotropic fluid geometry. Hossein et al. [7] examined the highlights of anisotropic relativistic spheres with constant of cosmology and discovered stable astrophysical spheres configuration. Kalam et al. [8] analyzed the relativistic modeling of anisotropic neutron spheres and verified the availability of stability, anisotropy estimation and energy conditions with quintessence dark energy. Paul and Deb [9] detailed new exact solutions of relativistic compact stellar spheres for anisotropic matter distribution, which keep up the equilibrium of hydrostatic.

In relativistic compact stellar spheres, the more dense neutron spheres can additionally be fell to frame a black hole while for less dense neutron spheres, it is possible to transform into a quark sphere. It is predicted that the inside matter appropriation of quark spheres is expected to be processed using the state equation of the MIT quark bag model [10, 11]. In recent years, the investigation of quark spheres has roused numerous physicists to examine its characteristics and in addition, their inside configuration. In this way, Bhar [12] analyzed features of PSR J1614-2230, 4U1820-30 and SAX J 1808.4-3658 spheres using the state equation of MIT quark bag model and gotten stability structure of these spheres. Rahaman et al. [13] suggested another mass insertion expression for the candidates of strange sphere with the state equation of MIT-Bag model and researched the physical conduct of spheres from 6 km to the limit surface. Different all around carried on solutions of Einstein’s field equations have been investigated by forcing the barotropic state equation on the inside of the spherical object. Sharma and Ratanpal [14] have been proposed a relativistic astrophysical model conceding a quadratic state equation. Malaver [15, 16] examined a quadratic state equation for the distribution of matter and proposed special shapes for line element potentials in order to build compact spherical object models. a few latest models of anisotropy for compact spherical objects with a distribution of strange matter incorporate the consequences of Sharma and Maharaj [17] and Lobo [18] with a barotropic state equation. Komathiraj and Maharaj [19] studied the anisotropic compact spherical object models of quark spheres obeying the state equation of the MIT bag model. However, can be noted that recent works concerning the distribution of the anisotropic matter, where a few specialists have considered the anisotropy is related to compact stellar objects [20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41].

Our objective in this paper is to present a new interior anisotropic solution to the Einstein field equations relativistic compact stellar sphere by using a linear state equation of the form \(p_r =\alpha \rho -\beta \). We investigate the physical properties from the analytical model developed for compact spheres inside the framework of the general theory of relativity. The estimated mass and radius are in close agreement with the observational data. We show that various physical properties of the known strange spherical object, such as PSR J1614-2230, Vela X-1, 4U 1608-52, PSR J1903+327, 4U 1820-30, Cen X-3, Her X-1, and SAX J1808.4-3658, can be portrayed by our model.

The outline of this article is as follows: In Sect. 2, we present the interior metric and the corresponding Einstein field equations of anisotropic fluid distributions. The Generalized anisotropic solutions for compact spherical object are discussed in Sect. 3. The other characteristics are given in the Sects. 4 and 5, and a comparative study are given in Sect. 6. Concluding remarks close this paper.

2 Interior solution and Einstein field equations of anisotropic fluid distributions

We will consider a model which portrays a static spherically symmetric anisotropic fluid configuration governed by the linear equation of state of type \(p=\alpha \rho -\beta \). The interior of static spherically symmetric objects is described by the canonical line element

$$\begin{aligned} ds^{2}=-e^{\nu (r)}dt^{2}+\left( {1+\frac{r^{2}}{R^{2}}} \right) dr^{2}+r^{2}d\Omega ^{2}, \end{aligned}$$
(1)

where \(d\Omega ^{2}=d\vartheta ^{2}+sin^{2}\vartheta d\varphi ^{2}\) is the metric on the unit 2-sphere, \(\nu (r)\) is arbitrary functions of the radial parameter r yet to be established. Also, having a momentum-energy tensor depicted for the astrophysical fluid filling the inside of the object has the standard form

$$\begin{aligned} T_{\mu \nu } =\left( {\rho +p_t } \right) u_\mu u_\nu +p_t g_{\mu \nu } +\left( {p_r -p_t } \right) v_\mu v_\nu , \end{aligned}$$
(2)

where \(\rho (r)\) is the energy density, \(p_r \) is the radial pressure measured in the direction of \(v_\mu \), \(p_t \) is the transverse pressure measured in the orthogonal direction of \(v_\mu \), \(u_\mu \) is the vector 4-velocity, \(v_\mu \) is the space-like vector in the radial direction.

Einstein’s field equations for the line element (1), appropriately, are gotten as (we set \(G=c=1\))

$$\begin{aligned} \rho (r)= & {} \frac{1}{8\pi R^{2}}\left( {3+\frac{r^{2}}{R^{2}}} \right) \left( {1+\frac{r^{2}}{R^{2}}} \right) ^{-2}, \end{aligned}$$
(3)
$$\begin{aligned} p_r (r)= & {} \frac{1}{8\pi }\left\{ {\left( {\frac{1}{r}\frac{d\nu (r)}{dr}+\frac{1}{r^{2}}} \right) \left( {1+\frac{r^{2}}{R^{2}}} \right) ^{-1}-\frac{1}{r^{2}}} \right\} , \end{aligned}$$
(4)
$$\begin{aligned} p_t (r)= & {} \frac{1}{8\pi }\left\{ \left( \frac{1}{2}\frac{d^{2}\nu (r)}{dr^{2}}+\frac{1}{2r}\frac{d\nu (r)}{dr}\right. \right. \nonumber \\&\left. +\frac{1}{4}\left( \frac{d\nu (r))}{dr} \right) ^{2} \right) \left( {1+\frac{r^{2}}{R^{2}}} \right) ^{-1} \nonumber \\&\left. -\frac{1}{R}\left( {1+\frac{r}{2}\frac{d\nu (r))}{dr}} \right) \left( {1+\frac{r^{2}}{R^{2}}} \right) ^{-2} \right\} . \end{aligned}$$
(5)

At this stage, we have a system of equations constituted by three equations, specifically, the field Eqs. (3)–(5), and four unknowns i.e., \(\rho (r)\), \(p_r (r)\), \(p_t (r)\) and \(\nu (r)\). By reasonably picking any of these unknown parameters, the system might be determined. Our goal here is to build up a model for compact object and, in this manner; it is helpful now to present the fluid with the most straightforward type of the compact object state equation in the specific form

$$\begin{aligned} p_r =\alpha \rho -\beta , \end{aligned}$$
(6)

with \(\alpha \) is real such that \(0<\alpha \le 1 \), and \(\beta =\alpha \rho _s\) is the surface density [17]. Replacing Eq. (6) in Eq. (4) and incorporating, we choose the undetermined metric expression \(\nu (r)\) in the form

$$\begin{aligned} \nu (r)= & {} \alpha \ln \left( {r^{2}+R^{2}} \right) \nonumber \\&-\frac{2\pi \beta }{R^{2}}r^{2}\left( {r^{2}+2R^{2}-\frac{1}{3\pi \beta }} \right) +\nu _1, \end{aligned}$$
(7)

and \(\nu _1 \) is the integration constant.

From the above system Eqs. (3)–(5) and utilizing the Eq. (7), we verify that the physical parameters for this model are written as :

$$\begin{aligned}&\rho (r)=\frac{1}{8\pi R^{2}}\left( {3+\frac{r^{2}}{R^{2}}} \right) \left( {1+\frac{r^{2}}{R^{2}}} \right) ^{-2}, \end{aligned}$$
(8)
$$\begin{aligned}&p_r (r)=\frac{1}{8\pi R^{2}}\left\{ {\alpha \left( {3+\frac{r^{2}}{R^{2}}} \right) \left( {1+\frac{r^{2}}{R^{2}}} \right) ^{-2}-8\pi \beta R^{2}} \right\} ,\nonumber \\ \end{aligned}$$
(9)
$$\begin{aligned}&p_t (r)=\frac{\left( {1+\left( {\frac{r}{R}} \right) ^{2}} \right) ^{-2}}{24\pi R^{2}}\left\{ {\left( {1+\left( {\frac{r}{R}} \right) ^{2}} \right) } \right. \nonumber \\&\quad \times \left[ 64\pi ^{2}R^{4}\beta ^{2}\left( {\frac{r}{R}} \right) ^{6}+\left( 128\pi ^{2}R^{4}\beta ^{2}-16\pi R^{2}\beta \right. \right. \nonumber \\&\quad \left. -8\pi R^{2}\beta \left( {1+\left( {\frac{r}{R}} \right) ^{2}} \right) ^{-1} \right) \left( {\frac{r}{R}} \right) ^{4} \nonumber \\&\quad +\left( 64\pi ^{2}R^{4}\beta ^{2}-16\pi R^{2}\beta -8\pi R^{2}\beta \left( {1+\left( {\frac{r}{R}} \right) ^{2}} \right) ^{-1}\right. \nonumber \\&\quad \left. -3\alpha \left( {1+\left( {\frac{r}{R}} \right) ^{2}} \right) ^{-2} \right. \left. +9\left( 1+\left( {\frac{r}{R}} \right) ^{2} \right) ^{-1}+4\alpha \right) \left( {\frac{r}{R}} \right) ^{2}\nonumber \\&\quad \left. +3\alpha \left( {1+\left( {\frac{r}{R}} \right) ^{2}} \right) ^{-2}+3\alpha \left( {1+\left( {\frac{r}{R}} \right) ^{2}} \right) ^{-1}-8\pi R^{2}\beta \right] \nonumber \\&\quad +\left[ {6\alpha \left( {\left( {3+\left( {\frac{r}{R}} \right) ^{2}} \right) } \right) } \right. +\left( 3\alpha \left( {1+\left( {\frac{r}{R}} \right) ^{2}} \right) ^{-1}\right. \nonumber \\&+\, 12\pi \beta R^{2} \left. \left. \left. \left( {\left( {1+\left( {\frac{r}{R}} \right) ^{2}} \right) } \right) \right) \left( {\frac{r}{R}} \right) ^{2} \right] \right\} . \end{aligned}$$
(10)

3 Generalized anisotropic solution for compact spherical object

We notice that the physical properties of the model rely upon the constants R, \(\alpha \) and \(\beta \). We have to put proper limits on these parameters aiming that the model can depict a reasonable compact spherical object. To this end, in view of different physical prerequisites, let us currently break down the conduct of the physical parameters.

We assume that a is the radius of the compact spherical object. At that point, from Eq. (8), the surface and focal densities are respectively acquired as

$$\begin{aligned} \rho (a)= & {} \rho _s =\frac{1}{8\pi R^{2}}\left( {3+\left( {\frac{a}{R}} \right) ^{2}} \right) \left( {1+\left( {\frac{a}{R}} \right) ^{2}} \right) ^{-2}, \end{aligned}$$
(11)
$$\begin{aligned} \rho (0)= & {} \rho _c =\frac{3}{8\pi R^{2}}. \end{aligned}$$
(12)

We likewise have

$$\begin{aligned}&\rho '\left( r \right) = - \frac{r}{{4\pi {R^4}}}\left( {5 + {{\left( {\frac{r}{R}} \right) }^2}} \right) {\left( {1 + {{\left( {\frac{r}{R}} \right) }^2}} \right) ^{ - 3}} < 0 \end{aligned}$$
(13)
$$\begin{aligned}&\rho '\left( {r = 0} \right) = 0 \end{aligned}$$
(14)
$$\begin{aligned}&\rho ''\left( {r = 0} \right) = - \frac{5}{{4\pi {R^4}}} < 0 \end{aligned}$$
(15)

the prime signifies the differentiation on r. Clearly, the density is greatest at the core of the compact spherical object and it diminishes radially outward.

Fig. 1
figure 1

Profile of the matter density \(\rho \) with the radial coordinate r of our model for spherical object Cen X-3

Similarly, the radial pressure can be written as

$$\begin{aligned}&p_r^{\prime } (r)=-\frac{\alpha r}{4\pi R^{4}}\left( {5+\left( {\frac{r}{R}} \right) ^{2}} \right) \left( {1+\left( {\frac{r}{R}} \right) ^{2}} \right) ^{-3}<0, \end{aligned}$$
(16)
$$\begin{aligned}&p_r^{\prime } \left( {r=0} \right) =0, \end{aligned}$$
(17)
$$\begin{aligned}&p_r^{{\prime }{\prime }} \left( {r=0} \right) =-\frac{5\alpha }{4\pi R^{4}}<0, \end{aligned}$$
(18)

which indicates that the radial pressure additionally diminishes from the core of the compact spherical object towards the limit. In this manner, the radial pressure and the energy density are all around carried on in the inside of the astrophysical configuration. Behaviors of the energy density \(\rho (r)\), the radial pressure \(p_r (r)\) and the tangential pressure \(p_t (r)\) have been presented in Figs. 1, 2 and 3, respectively. It is to be noted here that, like the slope in Maurya et al. [32, 39] which arguably described the SMC X-1, Herx X-1, 4U 1538-52 and RXJ 1856-37, and include anisotropy which vanishes at the boundary, the equation of state becomes much gentler, i.e. \(dp_r /d\rho \) equals the constant parameter \(\upalpha \).

Using Eqs. (9) and (10) we get

$$\begin{aligned}&\Delta (r)=\frac{\left( {1+\left( {\frac{r}{R}} \right) ^{2}} \right) ^{-2}}{24\pi R^{2}} \nonumber \\&\quad \times \left\{ \left( 1+\left( {\frac{r}{R}} \right) ^{2} \right) \left[ \phantom {\left. +3\alpha \left( {1+\left( {\frac{r}{R}} \right) ^{2}} \right) ^{-2}+3\alpha \left( {1+\left( {\frac{r}{R}} \right) ^{2}} \right) ^{-1}-8\pi R^{2}\beta \right] } 64\pi ^{2}R^{4}\beta ^{2}\left( {\frac{r}{R}} \right) ^{6}\right. \right. \nonumber \\&\quad +\left( \phantom {\left. -8\pi R^{2}\beta \left( {1+\left( {\frac{r}{R}} \right) ^{2}} \right) ^{-1} \right) } 128\pi ^{2}R^{4}\beta ^{2}-16\pi R^{2}\beta \right. \nonumber \\&\quad \left. -8\pi R^{2}\beta \left( {1+\left( {\frac{r}{R}} \right) ^{2}} \right) ^{-1} \right) \left( \frac{r}{R} \right) ^{4}\nonumber \\&\quad +\left( 64\pi ^{2}R^{4}\beta ^{2}-16\pi R^{2}\beta -8\pi R^{2}\beta \left( {1+\left( {\frac{r}{R}} \right) ^{2}} \right) ^{-1}\right. \nonumber \\&\quad \left. -3\alpha \left( {1+\left( {\frac{r}{R}} \right) ^{2}} \right) ^{-2} \right. \left. {+9\left( {1+\left( {\frac{r}{R}} \right) ^{2}} \right) ^{-1}+4\alpha } \right) \left( {\frac{r}{R}} \right) ^{2}\nonumber \\&\quad \left. +3\alpha \left( {1+\left( {\frac{r}{R}} \right) ^{2}} \right) ^{-2}+3\alpha \left( {1+\left( {\frac{r}{R}} \right) ^{2}} \right) ^{-1}-8\pi R^{2}\beta \right] \nonumber \\&\quad +\left[ {6\alpha \left( {\left( {3+\left( {\frac{r}{R}} \right) ^{2}} \right) } \right) } \right. +\left( 3\alpha \left( {1+\left( {\frac{r}{R}} \right) ^{2}} \right) ^{-1} \right. \nonumber \\&\quad \left. \left. \left. +12\pi \beta R^{2}\times \left( {\left( {1+\left( {\frac{r}{R}} \right) ^{2}} \right) } \right) \right) \left( {\frac{r}{R}} \right) ^{2} \right] \right\} \nonumber \\&\quad -\frac{1}{8\pi R^{2}}\left\{ {\alpha \left( {3+\frac{r^{2}}{R^{2}}} \right) \left( {1+\frac{r^{2}}{R^{2}}} \right) ^{-2}-8\pi \beta R^{2}} \right\} . \end{aligned}$$
(19)

\(\Delta (r)=p_t (r)-p_r (r)\) is signified as the anisotropic parameter. It is a measure of the anisotropic pressure of the fluid including the compact spherical objet. \(\Delta (r)=0\) matching to the special situation of a isotropic pressure spherical object. Notice that \(2\Delta (r)/r\) symbolizes a force appropriate to the anisotropic nature of the astrophysical form, which is repulsive, i.e., being outward directed if \(\Delta (r)>0\), and attractive if \(\Delta (r)<0\). We notice that our model is necessarily anisotropic for \(\Delta (r)\ne 0\) in general, even in the simplest case of the distribution of matter. Some treatments of the physical properties of anisotropic objects in general relativity include investigations of Maharaj and Chaisi [42], Dev and Gleiser [43, 44], Mak and Harko [45, 46], and Chaisi and Maharaj [47, 48]. Figure 4 illustrates the nature of the anisotropic pressure at the spherical object inside for a specific case.

Fig. 2
figure 2

Profile of the radial pressure \(p_r \) with the radial coordinate r of our model for spherical object Cen X-3

Fig. 3
figure 3

Profile of the tangential pressure \(p_t \) with the radial coordinate r of our model for spherical object Cen X-3

The condition that the anisotropic parameter \(\Delta (r)\) ought to vanish at the core (\(r=0)\) yields

$$\begin{aligned} 3\alpha -8\pi R^{2}\beta =0 \end{aligned}$$
(20)

which can be utilized to compute the constant \(\beta \) for a specific choice of the constant \(\alpha \).

Fig. 4
figure 4

Profile of the anisotropy parameter, \(2{\Delta }/r\), with the radial coordinate r of our model for spherical object Cen X-3

4 Matching conditions

In this part, we compare the interior space-time \(\left( {{{\mathcal {M}}}_- } \right) \) with the exterior space-time \(\left( {{{\mathcal {M}}}_+ } \right) \) depicted by the external Schwarzschild solution in the approaching isotropic coordinates at the limit of the spherical object \(r=a\), the inside metric ought to be matched to the Schwarzschild outside metric. The development of the metric functions over the limit surface yields

$$\begin{aligned}&\left( {1+\left( {\frac{a}{R}} \right) ^{2}} \right) ^{-1}=1-\frac{2M\left( R \right) }{a}, \end{aligned}$$
(21)
$$\begin{aligned}&\nu \left( {r=a} \right) =\ln \left( {1-\frac{2M\left( R \right) }{a}} \right) =\alpha \ln \left( {a^{2}+R^{2}} \right) \nonumber \\&\quad -2\pi \beta \left( {\frac{a}{R}} \right) ^{2}\left( {a^{2}+2R^{2}-\frac{1}{3\pi \beta }} \right) , \end{aligned}$$
(22)

where \(M\left( \hbox {R} \right) \) denotes the total mass of the spherical object of radius \(\hbox {R}\).

From Eq. (21), we get the expression for the compactness of the spherical object as

$$\begin{aligned} \frac{M\left( R \right) }{a}=\frac{1}{2}\left( {\frac{a}{R}} \right) ^{2}\left( {1+\left( {\frac{a}{R}} \right) ^{2}} \right) ^{-1}. \end{aligned}$$
(23)

We consider standard matter with a spherically symmetric anisotropic fluid where the radial pressure must be finite and positive interior the spherical object, and vanishes at the limit \(r=a\) of the spherical object. This later condition that the radial pressure must vanish at the limit (\(p_r \left( {r=a} \right) =0)\) gives

$$\begin{aligned} \beta =\frac{\alpha }{8\pi R^{2}}\left( {3+\left( {\frac{a}{R}} \right) ^{2}} \right) \left( {1+\left( {\frac{a}{R}} \right) ^{2}} \right) ^{-2}, \end{aligned}$$
(24)

which imposes a limitation of the parameters \(\alpha \) which can be solved in case we indicate the radius of the spherical object.

5 Physical properties of the spherical objects

In this section, we will discuss various physical characteristics of strange spherical objects using the previously proposed model.

5.1 Stability of the system

5.1.1 The Tolman–Oppenheimer–Volkoff equation

To examine the stability of the framework, we verified the stability equation given by Tolman [49], Oppenheimer and Volkoff [50]. The Tolman–Oppenheimer-Volkoff (TOV) equation represents the equilibrium condition of a spherical object subject to the gravitational force, anisotropy force and hydrostatic force. The generalized TOV equation can be composed as follows [20, 51]:

$$\begin{aligned} \frac{dp_r }{dr}+\frac{1}{2}\left( {\rho +p_r } \right) \frac{d\nu }{dr}+\frac{2}{r}\left( {p_r -p_t } \right) =0. \end{aligned}$$
(25)

We rewrite this Eq. (25) in the form

$$\begin{aligned}&-\frac{M_G }{r^{2}}\left( {\rho +p_r } \right) exp\left( {\frac{\lambda -\nu }{2}} \right) \nonumber \\&\quad -\frac{dp_r }{dr}+\frac{2}{r}\left( {p_t -p_r } \right) =0, \end{aligned}$$
(26)

where \(M_G \) is the effective gravitational mass inside a spherical object of radius r and is given by the Tolman–Whittaker procedure as follows

$$\begin{aligned} M_G =\frac{1}{2}r^{2}exp\left( {\frac{\nu -\lambda }{2}} \right) \frac{d\nu }{dr}. \end{aligned}$$
(27)

Finally the modified TOV equation in a simply form given by above Eq. (26), describes the equilibrium condition for anisotropic fluid spheres, the three forces are reactivated, namely, the gravitational (\(F_g )\), the hydrostatics (\(F_h )\) and the anisotropic (\(F_a )\) forces are given by :

$$\begin{aligned} F_g +F_h +F_a =0, \end{aligned}$$
(28)

where

$$\begin{aligned} F_g= & {} -\frac{1}{2}\left( {\rho +p_r } \right) \frac{d\nu }{dr}, \end{aligned}$$
(29)
$$\begin{aligned} F_h= & {} -\frac{dp_r }{dr}, \end{aligned}$$
(30)
$$\begin{aligned} F_a= & {} \frac{2}{r}\left( {p_t -p_r } \right) . \end{aligned}$$
(31)

To make simpler these Eqs. (29)–(31) alluded above, we have plotted the variations of \(F_g \), \(F_h \), and \(F_a \) are the exhibit in Fig. 5. This figure shows that our proposed model is in static equilibrium is practicable for the reason that to pressure gravitational, hydrostatic and anisotropy forces.

Fig. 5
figure 5

Profile of the three different forces, \(F_a \), \(F_h \) and \(F_g \) against the radial coordinate r of our model for spherical object Cen X-3, with \(M/a=0.33\)

5.1.2 The status of the speed of sound within the system

To check the potential stability or instability of our system we have used the concept of Herrera’s cracking [52]. The causality condition determines the physical acceptability admitted for the fluid distribution which requires \(0<v_{sr}^2 \le 1\) and \(0<v_{st}^2 \le 1\). According to the condition of Herrera [52] and Andréasson [53] for the stability of the distribution of matter, the region for which \(\left| {v_{st}^2 -v_{sr}^2 } \right| \le 1\) i.e. no cracking is a potentially stable region. In Fig. 6, we observe that \(\left| {v_{st}^2 -v_{sr}^2 } \right| \le 1\) in the region for which \(r\le 9.819\). This implies that our system meets all these conditions and that it is potentially stable in this region. The tangential and radial speeds of sound are defined respectively as \(v_{st} =\sqrt{dp_t /d\rho }\) and \(v_{sr} =\sqrt{dp_r /d\rho }\).

5.1.3 Adiabatic index

According to Heintzmann and Hillebrandt [54], an anisotropic compact spherical object model will be stable if \(\varGamma >4/3\) everywhere in the interior of the spherical object where the adiabatic index \(\varGamma \) is defined as

$$\begin{aligned} \varGamma =\left( {\frac{\rho +p_r }{p_r }} \right) \frac{dp_r }{d\rho }. \end{aligned}$$
(32)

We rewrite the above equation in the form

$$\begin{aligned} \varGamma =2\alpha \frac{\left( {3+\left( {\frac{r}{R}} \right) ^{2}} \right) -4\pi \beta R^{2}\left( {1+\left( {\frac{r}{R}} \right) ^{2}} \right) ^{2}}{\left( {3+\left( {\frac{r}{R}} \right) ^{2}} \right) -8\pi \beta R^{2}\left( {1+\left( {\frac{r}{R}} \right) ^{2}} \right) ^{2}} \end{aligned}$$
(33)

The adiabatic index, \(\Gamma \), with the radial coordinate r of our model for spherical object Cen X-3 is motivated by the fact that it gives a monotonically increasing function in the stellar inside. Similar forms for the adiabatic index have earlier been considered by Maurya et al. [32] for anisotropic fluid stars. Figure 7 clearly shows that the adiabatic index of our specific configuration is greater than 4 / 3 in all interior points of the specific configuration. This characteristic obviously indicates that the system in this work is stable.

Fig. 6
figure 6

Profil of the square of radial \(v_{sr}^2 \) and tangential \(v_{st}^2 \) speed of sound and modulus of difference of the square of speed of sound \(\left| {v_{st}^2 -v_{sr}^2 } \right| \) with the radial coordinate r of our model for spherical object Cen X-3, for \(\beta =110.66\)  Mev/fm\(^{-3}\) and \(\alpha =0.333\)

Fig. 7
figure 7

Profile of the adiabatic index, \(\varGamma \), with the radial coordinate r of our model for spherical object Cen X-3

Table 1 Physical parameters for different anisotropic astrophysical models for \(\upalpha =0.333\)

5.2 Energy conditions

An acceptable compact spherical object must satisfy the energy conditions, in specific, the strong (SEC), weak (WEC), null (NEC) and dominant (DEC) energy conditions defined below:

$$\begin{aligned}&\hbox {SEC: } \rho (r)+p_r (r)+2p_t (r)\ge 0, \end{aligned}$$
(34)
$$\begin{aligned}&\hbox {WEC: }\rho (r)+p_r (r)\ge 0,\end{aligned}$$
(35)
$$\begin{aligned}&\hbox {NEC: }\rho (r)+p_t (r)\ge 0,\end{aligned}$$
(36)
$$\begin{aligned}&\hbox {DEC: }\rho (r)\ge \left| {p_r (r)} \right| , \left| {p_t (r)} \right| . \end{aligned}$$
(37)

For the specific astrophysical configuration generated here, the availability of inequalities (34)–(37) has been highlighted some limitations on the model parameters. In our model, applying these energy conditions to the center (\(r=0)\) we obtain the following limits:

$$\begin{aligned}&\hbox {SEC: } \rho (0)+p_r (0)+2p_t (0)\ge 0, \Rightarrow \beta \le \frac{9+57\alpha }{40\pi R^{2}},\nonumber \\&\quad \hbox {i.e. }\beta \le \left( {\frac{3+19\alpha }{5}} \right) \rho _c , \end{aligned}$$
(38)
$$\begin{aligned}&\hbox {WEC: }\rho (0)+p_r (0)\ge 0, \Rightarrow \quad \beta \le \frac{3\left( {\alpha +1} \right) }{8\pi R^{2}},\nonumber \\&\quad \hbox {i.e. } \beta \le \left( {\alpha +1} \right) \rho _c, \end{aligned}$$
(39)
$$\begin{aligned}&\hbox {NEC: } \rho (0)+p_t (0)\ge 0, \Rightarrow \quad \beta \le \frac{3\left( {8\alpha +3} \right) }{8\pi R^{2}},\nonumber \\&\quad \hbox {i.e. }\beta \le \left( {8\alpha +3} \right) \rho _c, \end{aligned}$$
(40)
$$\begin{aligned}&\hbox {DEC: } \rho (0)\ge \left| {p_r (0)} \right| , \left| {p_t (0)} \right| ,\hbox { i.e. }\beta \le \left( {\alpha +1} \right) \rho _c ,\nonumber \\&\quad \hbox {or } \beta \le \left( {8\alpha +3} \right) \rho _c , \end{aligned}$$
(41)

where \(\rho (0)=\rho _c \) is the central density. We have demonstrated the profiles of all the previously mentioned energy inequalities and remarkably our system is predictable with all the energy conditions. The values of the model parameters for various astrophysical configurations agree with these limits, as on view in Table 1.

5.3 Mass function

In our model, the mass function within the radius a is obtained as

$$\begin{aligned} m(a)={\int }_0^a \rho (r)dr=\frac{a}{2}\left( {\frac{a}{R}} \right) ^{2}\left( {1+\left( {\frac{a}{R}} \right) ^{2}} \right) ^{-1}. \end{aligned}$$
(42)

Since at \(\lim _{a\rightarrow 0} m(a)=0\), recommend that the mass function is regular at the focal point of the star. The variation of the mass function is illustrated in Fig. 8, which demonstrates that the mass function is a positive and monotonically expanding physical quantity with respect to the radial coordinates a.

Fig. 8
figure 8

Behaviour of the mass relation with the radial coordinate a of our model for spherical object Cen X-3

5.4 Mass-radius ratio

The compactification parameter of a spherically symmetric body is defined as the mass-radius function of the system, i.e. \(u(a)=m(a)/a\). According to the condition of Buchdahl [55] for a \((3+1)\)-dimensional perfect fluid spherically symmetric body, the maximum allowed mass-radius function is \(M/R<4/9\) where \(R>2M\). To see the best extent of the mass-radius ratio for our model we best extent the compactification parameter of the system given by

$$\begin{aligned} u(a)=\frac{1}{2}\left( {\frac{a}{R}} \right) ^{2}\left( {1+\left( {\frac{a}{R}} \right) ^{2}} \right) ^{-1}, \end{aligned}$$
(43)

The variation of the compactness function has been shown in Fig. 9. This figure shows that the compactness function is a monotonic increasing function with respect to the radial coordinates a. We remark that the requirement on the greatest permitted mass-to-radius ratio in our situation is determined as \(M/R=0.323\), which is like the isotropic fluid spherical object, i.e., \(M/R\le 4/9 \left( {\approx 0.444} \right) \).

5.5 Surface redshift function

We have likewise specified the surface redshift function \(\hbox {z}_{\mathrm{s}} \) of a spherically symmetric body can be defined as

$$\begin{aligned} z_s =\frac{1}{\sqrt{1-2u(a)}}-1, \end{aligned}$$
(44)

which for the above studied model is given by

$$\begin{aligned} z_s =\left( {1+\left( {\frac{a}{R}} \right) ^{2}} \right) ^{\frac{1}{2}}-1. \end{aligned}$$
(45)

Variation of the surface redshift function \(z_s \) against to the radial coordinates a, as shown in Fig. 10. The greatest value permitted surface redshift \(z_s \) in our case is 0.317. The figure in like manner shows that the surface redshift function is limited within the stellar configuration.

Fig. 9
figure 9

Behaviour of the compactness relation with the radial coordinate a of our model for spherical object Cen X-3

Fig. 10
figure 10

Behaviour of the surface redshift expression with the radial coordinate a of our model for spherical object Cen X-3

6 A comparative study

To examine the physical characteristics based on the analytical model developed so far, we choose the spherical object Cen X-3 as a delegate of the strange spherical objects possessing the following parameters: mass \(m(a)=1.49\, M_\odot \) and radius \(a=9.819\, \mathrm{km}\) for \(\beta =118.26\, \mathrm{MeV\, fm}^{-3}\) and \(\alpha =0.333\).

Using the chosen mass and radius values shown in Table 1, we have shown various physical characteristics of the proposed configuration of strange compact objects. The observed masses shown in Table 1 are available in the following references [56,57,58,59,60]. We have highlighted the values of the constant \(\beta \), especially for astrophysical configurations of strange spherical object candidates such as PSR J1614-2230, Vela X-1, 4U 1608-52, PSR J1903+327, 4U 1820-30, Her X-1, and SAX J1808.4-3658. We find that when the values of \(\beta \) increase with \(\alpha \) fixed at 0.333, the astrophysical system becomes more compact and the density in the spherical object increases progressively with the increasing values of \(\beta \). The observed value of the mass of Cen X-3 [56] is obtained for the astrophysical system to contract, that is to say the progressively decreasing radius values. However, from the point of view of a mathematically steady model, it gives the idea that an extensive variety of estimation of the constant \(\beta \) is conceivable, which is coherent with the data of Relativistic Heavy Ion Collider (RHIC) and Super Proton Synchrotron (SPS). The obtained solutions are free of any singularity and exhibit a well-behaved nature within the generalized anisotropic solution for compact spherical object. This agrees with the results reported by Maurya et al. [32, 39, 61]. We have demonstrated that the anisotropy effects lead a wide range of results in the geometry and composition of an object. For instance, this may either yield a gentler equation of state or an object with various mass and radius. Our examination depends basically on the choice of a specific metric function such one given by the Eq. (7) yielding a linear equation of state.

7 Concluding remarks

We have proposed a spherically symmetric model of anisotropic fluid for strange quark spheres which satisfies all conditions of physical reality and is devoid of focal singularity with the outer space-time being the Schwarzschild metric. We introduced this formalism to determine exact estimations of the radius of the different candidates of the strange sphere by using their observational mass and constant \(\beta \) gave in Table 1. We also discussed the stability analysis which verified that our model was completely satisfied with the conditions of causality and the concept of Herrera cracking. In a similar idea, in order to analyze the meaning of our model in the search for compact objects, we have considered various compact objects, including PSR J1614-2230, Vela X-1, 4U 1608-52, PSR J1903+327, 4U 1820-30, Her X-1, and SAX J1808.4-3658 and showed that, for the estimated radius, the masses of the object dictated by our model are close to the observed observation (see Refs. [56,57,58,59,60]). This generally suggests that the solution proposed in this work can be used as a feasible model for describing ultra-dense compact strange spheres.