1 Introduction

Compact objects such as neutron stars and pulsars are natural laboratories for testing our understanding of fundamental interactions arising in particle physics. There has been huge strides in explaining the physical attributes such as compactness, radii, redshifts and luminosities of these objects based on microphysics. This interplay between the microphysics and the macrophysics (quite literally on an astronomical scale) has come to the fore quite frequently in the recent past. Delgaty and Lake constructed a catalogue containing all analytic solutions that describe isolated static spherically symmetric perfect fluid solutions [1]. It is interesting to note that out of the 127 solutions scrutinised, a mere 16 are physically viable in their description of a bounded stellar configuration. Furthermore, a paltry 9 solutions obey the causality condition. Despite the consistency of this small number of relevant solutions describing stellar objects there is very little or no connection to the microphysics governing the fluid composition.

A fruitful and physically plausible approach to stellar modeling within the framework of classical general relativity (CGR) is to adopt an equation of state (EoS) a priori. The EoS intimately connects the matter variables, for example, the energy density and the pressure of the stellar fluid [2,3,4]. In the past the natural and simplest EoS related the fluid density and pressure via an ad-hoc linear relation. The MIT Bag model motivated by work in QCD centred on quark confinement and asymptotic freedom [6] is essentially a linear EoS of the form \(p=(\rho - 4B)/3\), where B is the Bag constant [7, 8]. The MIT Bag model has been employed in several recent works to generate models of anisotropic spheres [9, 10]. As pointed out by [11], this EoS cannot adequately account for the deconfinement of quarks at high density. Furthermore, the magnitude of the Bag constant is not absolute but rather depends on the compact objects being modeled [12]. An interesting study of compact objects in CGR using the Vaidya-Tikekar ansatz revealed a linear relationship between the energy density and the isotropic pressure. In this work, the gravitational behaviour and pressure isotropy were specified at the outset. The resulting solution when tested for physical viability revealed the presence of a linear EoS.

Polytropes and their stability have been studied by Chandrasekhar who worked out the requirement for the stability of a self-gravitating sphere. Solutions to the Einstein field equations admitting a polytropic equation of state are not common with physical viable solutions being a rarity [13]. This highlights the nonlinearity of the Einstein field equations and the difficulty associated with solving them. Recently, researchers have been successful in modeling compact objects obeying a quadratic EoS of the form \(p_r = \alpha \rho ^2 + \gamma \rho - \beta \) with \(\alpha \), \(\gamma \) and \(\beta \) being constants [14,15,16]. Sharma and Ratanpal modeled anisotropic spheres by employing the Finch and Skea ansatz for one of the gravitational potentials. In order to close the system of equations they chose a physically plausible form for the radial pressure which facilitated the integration of the governing equation to admit the remaining gravitational potential. It is quite remarkable that such an approach leads to a class of physically viable solutions obeying a quadratic EoS [16]. A novel approach to constructing compact objects was used by Pant et al. in which they studied core-envelope models with the core obeying a linear EoS and the outer matter regions of the star described by a quadratic EoS. They show that such a composite configuration is stable and meets all the physical requirements for a physical realizable stellar structure [17]. They observed that an increase in mass leads to higher core density and more compact objects signifying the role played by gravity in the presence of larger masses.

By appealing to the microphysics associated with strange matter, Rocha et al. [5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23] adopt a CFL EoS of the form \(p_r =\alpha \rho + \beta \rho ^{\frac{1}{2}}- \gamma \) which generalises the MIT Bag model. Rocha et al. invoked the Durgapal and Banerjee transformation and a simple ansatz for one of the gravitational potentials to obtain an exact solution describing a compact object obeying a CFL EoS. In this study we model spherically symmetric compact objects by adopting an isotropic line element which is simultaneously comoving. The interior matter configuration is described by an anisotropic fluid with unequal stresses in the radial and tangential directions. The CFL EoS allows us to integrate the field equations thus reducing the problem to a single generating function of one of the gravitational potentials. By appealing to regularity, stability and physical viability of the gravitational and thermodyamical variables required for a realistic description of compact objects we present a tractable stellar model. We examine the behaviour of the CFL model in the linear approximation and show that the more robust linear EoS mimics the CFL EoS to a very good approximation.

2 Spherical symmetry

The interior spacetime of the stellar model takes the form

$$\begin{aligned} ds^2 = -A^2(r)dt^2 + B^2(r)\left[ dr^2 + r^2d\varOmega ^2\right] \, \end{aligned}$$
(1)

where \(d\varOmega ^2 = d\theta ^2 + \sin ^2{\theta }d\phi ^2\) and the metric functions, A(r) and B(r) are yet to be determined. In this paper we consider a model which represents a spherically symmetric, anisotropic fluid configuration. For our model the energy-momentum tensor for the stellar fluid is

$$\begin{aligned} T_{ab} = {\text{ d }iag}\left( -\rho , p_r, p_t, p_t\right) \, \end{aligned}$$
(2)

where \(\rho \), \(p_r\) and \(p_t\) are the proper energy density, radial pressure and tangential pressure respectively. The fluid four–velocity \(\mathbf{u}\) is comoving and is given by

$$\begin{aligned} u^a = \displaystyle \frac{1}{A} \delta ^{a}_0 \, \end{aligned}$$
(3)

The Einstein field equations for the line element (1) are

$$\begin{aligned} \rho= & {} - \frac{1}{B^2} \left( 2\frac{B''}{B} - \frac{{B'}^2}{B^2} + \frac{4}{r}\frac{B'}{B} \right) \, \end{aligned}$$
(4)
$$\begin{aligned} p_r= & {} \frac{1}{B^2} \left[ \frac{{B'}^2}{B^2} + 2\frac{A'}{A}\frac{B'}{B} + \frac{2}{r} \left( \frac{A'}{A} + \frac{B'}{B}\right) \right] \, \end{aligned}$$
(5)
$$\begin{aligned} p_t= & {} \frac{1}{B^2} \left[ \frac{A''}{A} + \frac{B''}{B}- \frac{{B'}^2}{B^2}+\frac{1}{r} \left( \frac{A'}{A}+\frac{B'}{B}\right) \right] \end{aligned}$$
(6)

where primes represent differentiation with respect to the radial coordinate r. In generating the above field equations we have utilized geometrized units where the coupling constant and the speed of light are taken to be unity. The system (4)–(6) comprises three independent equations with five variables (A(r), B(r), \(\rho \), \(p_r\) and \(p_t\)). The mass contained within a radius r of the sphere is defined as

$$\begin{aligned} m(r)= \frac{1}{2}\int _0^r\omega ^2 \rho (\omega )d\omega \end{aligned}$$
(7)

For a physically realistic relativistic star we expect that the matter distribution should satisfy a barotropic equation of state \(p_r = p_r(\rho )\). In this paper our object is to model an anisotropic compact sphere with CFL matter distribution. The EoS for CFL matter was well motivated by Rocha et al. [22] in which they assumed that the stellar interior was composed entirely of CFL matter. In order to make the problem mathematically tractable but without losing the essential physics at play, they were able to write the CFL EoS entirely as a function of the fluid density

$$\begin{aligned} p_r = \frac{1}{3}\rho + \frac{2\eta }{\pi }\rho ^{1/2} - \left( \frac{3\eta ^2}{\pi ^2}+ \frac{4}{3}B\right) \end{aligned}$$
(8)

where

$$\begin{aligned} \eta = -\frac{m_s^2}{6} + \frac{2\varDelta ^2}{3} \end{aligned}$$
(9)

with \(m_s\) being the quark mass, B is the MIT Bag constant and \(\varDelta \) represents the quark interactions. In this regard we assume the EoS obeyed by our model takes the form

$$\begin{aligned} p_r =\alpha \rho + \beta \rho ^{\frac{1}{2}}- \gamma \end{aligned}$$
(10)

where \(\alpha , \beta \) and \(\gamma \) are real constants. The EoS of the form (10) has been used to model compact stars with CFL quark matter [22, 23]. Substituting (4) and (5) into (10) we obtain the master equation

$$\begin{aligned} \frac{A'}{A}= & {} - \left[ 2\alpha \frac{B''}{B}+(1 - \alpha )\frac{{B'}^2}{B^2} + 2(1 + 2\alpha )\frac{1}{r}\frac{B'}{B} \right. \nonumber \\&\left. + \gamma B^2 +\beta B\left( -\frac{2B''}{B}+\left( \frac{B'}{B} \right) ^2 -\frac{4}{r}\frac{B'}{B} \right) ^{\frac{1}{2}}\right] \nonumber \\&\times \left[ \frac{1}{2 \left( \frac{1}{r}+\frac{B'}{B}\right) }\right] \end{aligned}$$
(11)

The solution of which yields the gravitational behaviour of our model. On integrating (11) we obtain

$$\begin{aligned} A= d \exp \left[ -\frac{1}{2}\int F(r) dr\right] \end{aligned}$$
(12)

where

$$\begin{aligned} F(r)= & {} \left[ 2\alpha \frac{B''}{B}+(1 - \alpha )\frac{{B'}^2}{B^2} + 2(1 + 2\alpha )\frac{1}{r}\frac{B'}{B} + \beta B^2 \right. \nonumber \\&+\left. \beta B\left( -\frac{2B''}{B}+\left( \frac{B'}{B} \right) ^2 -\frac{4}{r}\frac{B'}{B} \right) ^{\frac{1}{2}}\right] \left( \frac{1}{\frac{1}{r}+\frac{B'}{B}}\right) \nonumber \\ \end{aligned}$$
(13)

and d is a constant of integration. Hence the line element (1) can be written as

$$\begin{aligned} ds^2 = -d^2 \exp \left[ -\int F(r) dr\right] dt^2 + B^2 \left[ dr^2 + r^2d\varOmega ^2\right] \, \end{aligned}$$
(14)

where F(r) is given in (13). Hence, any solution describing static spherically symmetric anisotropic matter distribution with CFL equation of state in isotropic coordinate can be easily determined by a single generating function B(r).

3 Uniform density sphere

If we assume that the density of the interior matter distribution is constant, \(\rho = \mu = {\text{ c }onstant}\), (4) becomes

$$\begin{aligned} \mu = - \frac{1}{B^2} \left( 2\frac{B''}{B} - \frac{{B'}^2}{B^2} + \frac{4}{r}\frac{B'}{B} \right) \end{aligned}$$
(15)

This equation admits the solution

$$\begin{aligned} B=\frac{2\sqrt{3}~c}{\sqrt{\mu }(1+c^2r^2)} \end{aligned}$$
(16)

where c is an arbitrary constant. This solution was first derived by Wyman in 1946 [24]. Substituting (16) in (11) we obtain

$$\begin{aligned} A=d \left[ \frac{1+c^{2}r^2}{1-c^{2}r^2}\right] ^{\frac{\mu (1+3\alpha )-3(\gamma +\beta \sqrt{\mu })}{2 \mu }} \end{aligned}$$
(17)

In this case the metric (1) take a particular form

$$\begin{aligned} ds^2= & {} -d^2 \left[ \frac{1+c^{2}r^2}{1-c^{2}r^2}\right] ^{\frac{\mu (1+3\alpha )-3(\gamma +\beta \sqrt{\mu })}{\mu }}dt^2 \nonumber \\&+ \chi ^2\left[ dr^2 + r^2d\varOmega ^2\right] \, \end{aligned}$$
(18)

where \(\chi ^2 = \frac{12c^2}{\mu (1+c^2r^2)^2}\)

4 Compact stellar model

If we set \(B=\frac{a}{\sqrt{1+ br^2}}\), from (11) we obtain

$$\begin{aligned} A= & {} d (1+br^2)^{\frac{(1+5 \alpha )}{4}} \left( \sqrt{1 + b r^2} + \sqrt{6 + b r^2}\right) ^{- \frac{5 a \beta }{4 \sqrt{b}}} \nonumber \\&\times \exp \left[ (b(1+\alpha )- a^2 \gamma )(1+ br^2) \right. \nonumber \\&- \left. a \beta \sqrt{b} \sqrt{1 + b r^2} \sqrt{6 + b r^2}\left( \frac{1}{4b}\right) \right] \end{aligned}$$
(19)

In this case the matter variables can be explicitly written as

$$\begin{aligned} \rho= & {} \frac{b(6+br^2)}{a^2(1+br^2)} \end{aligned}$$
(20)
$$\begin{aligned} p_r= & {} \alpha \frac{b(6+br^2)}{a^2(1+br^2)} +\frac{\beta }{a}\sqrt{\frac{b(6+br^2)}{(1+br^2)}} - \gamma \end{aligned}$$
(21)
$$\begin{aligned} p_t= & {} \frac{(1+br^2)}{a^2} \left[ \frac{A''}{A}+\frac{A'}{rA} -\frac{2b}{(1+br^2)^2}\right] \end{aligned}$$
(22)
$$\begin{aligned} \varDelta= & {} p_t-p_r \end{aligned}$$
(23)

where \(\varDelta =p_t-p_r\) is the measure of anisotropy. It is noted that the matter variables are given in terms of elementary functions that facilitate for a detailed physical analysis of the model. In this case the (7) takes form

$$\begin{aligned} m(r)=\frac{br^3+15\left( r-\frac{\arctan [\sqrt{b}r]}{\sqrt{b}}\right) }{6a^2} \end{aligned}$$
(24)

5 Physical analysis

We are now in a position to discuss the physical features of our model. It is noted that the model generated should satisfy the following physical requirements to describe a realistic star:

  1. (i)

    regularity of the gravitational potentials at the origin;

  2. (ii)

    positive definiteness of the energy density and the radial pressure at the origin;

  3. (iii)

    vanishing of the pressure at some finite radius;

  4. (iv)

    monotonic decrease of the energy density, the radial pressure and tangential pressure with increasing radius;

  5. (v)

    interior metric match smoothly with the exterior metric:

    $$\begin{aligned} ds^2 = - \frac{\left( 1 - \frac{M}{2r} \right) ^2}{\left( 1 + \frac{M}{2r} \right) ^2} dt^2 +\left( 1 + \frac{M}{2r} \right) ^{4} [dr^2 + r^2d\varOmega ^2] \end{aligned}$$
    (25)

    across the boundary \(r=R\), where M is the total mass of the sphere;

  6. (vi)

    casuality condition: both the radial and tangential speed of sound is less than the speed of light throughout the interior of star i.e., \(0\le V_{r}^2 =\frac{dp_r}{d\rho }\le 1 \) and \(0\le V_{t}^2=\frac{dp_t}{d\rho }\le 1\);

  7. (vii)

    satisfy the stability condition: \(-1 \le V_{t}^2 - V_{r}^2\le 0\);

  8. (viii)

    a physically reasonable energy-momentum tensor has to obey the conditions \(\rho -p_r-2p_t \ge 0\) and \(\rho +p_r +2p_t \ge 0\);

  9. (ix)

    ratio of trace of stress tensor to density,\(\frac{p_r+ 2p_t}{\rho }\), should decrease from centre to the surface of star.

Now we show that the models generated in Sect. 4 satisfy the above listed physical properties.

  1. (i)

    Since \(A^2(0)=d^2 (1+\sqrt{6})^{\frac{-5\alpha \beta }{2\sqrt{b}}} \exp \left[ \frac{b(1+\alpha ) -a^2\gamma -\alpha \beta \sqrt{6b}}{2b} \right] \), \(B^2(0)=a^2\) which are constants and \((A^2(r))'=(B^2(r))'=0 \) at the origin \(r=0\), the gravitational potentials are regular at the origin.

  2. (ii)

    Since \(\rho (0)= \frac{6b}{a^2}\) and \(p_r(0)=\frac{6\alpha b}{a^2}+ \frac{\beta \sqrt{6b}}{a}-\gamma \), the energy density and radial pressure are positive at the origin.

  3. (iii)

    At the boundary of the star \(r=R\) the condition \(p_r(r=R)=0\) impose the restriction \(\alpha \frac{b(6+br^2)}{a^2(1+br^2)} +\frac{\beta }{a}\sqrt{\frac{b(6+br^2)}{(1+br^2)}} - \gamma =0\) on the parameters \(a, b, \alpha ,\beta \) and \(\gamma \).

  4. (iv)

    Since \(\displaystyle \frac{d\rho }{dr}=-\frac{10b^2r}{a^2(1+br^2)^2} <0\), the energy density is a decreasing function of r. The radial pressure \(p_r\) is also a decreasing function as \(p_r\) and \(\rho \) are related on a linear EoS.

  5. (v)

    Matching of interior metric (1) and exterior metric (25) at the boundary \(r=R\) leads to the constrains

    $$\begin{aligned} A(R)= & {} \frac{\left( 1 -\frac{M}{2R}\right) }{\left( 1 +\frac{M}{2R}\right) } \end{aligned}$$
    (26)
    $$\begin{aligned} B(R)= & {} \left( 1 +\frac{M}{2R}\right) ^2 \end{aligned}$$
    (27)

    where

    $$\begin{aligned} M=m(R)=\frac{bR^3+15\left( R- \frac{\arctan [\sqrt{b}R]}{\sqrt{b}}\right) }{6a^2} \end{aligned}$$
    (28)

    The condition (26) imposes the following restriction on the constant of integration

    $$\begin{aligned} d= & {} \frac{12a^2R -\left[ bR^3 +15\left( R- \frac{\arctan [\sqrt{b}R]}{\sqrt{b}}\right) \right] }{12a^2R +\left[ bR^3 +15\left( R- \frac{\arctan [\sqrt{b}R]}{\sqrt{b}}\right) \right] } \\&\times \left[ 1+bR^2 \right] ^{-\frac{(1+5 \alpha )}{4}} \\&\times \exp \left[ -\frac{[b(1+\alpha )- a^2 \beta ](1+ bR^2)}{4b}\right] \end{aligned}$$

    The condition (27) implies

    $$\begin{aligned} \frac{a}{\sqrt{1+b r^2}}= \left[ 1+\frac{bR^3+15\left( R- \frac{\arctan [\sqrt{b}R]}{\sqrt{b}}\right) }{12a^2R}\right] ^2 \end{aligned}$$
    (29)

    These impose a restriction on the parameters ab and can be solved for one of the parameter if the values for the radius of the sphere and the remaining parameter are specified.

  6. (vi)

    The surface redshift \(Zs = (1 - \frac{2M}{R})^{-1/2} - 1\) [28] decreases with increasing radius of the sphere.

Fig. 1
figure 1

Variation of density with radial coordinate

Fig. 2
figure 2

Variation of radial pressure with radial coordinate

Due to the complexity of the solution, we show graphically that the matter variables are well behaved throughout the interior of the star. The figures were plotted in a way to compare the effect of CFL matter EoS with linear EoS. To plot the figures for both CFL matter and linear EoSs we fixed the values for the parameters \(a= 1.49399, b =0.0024,\alpha =0.5\) and \(\beta = 0.001,\gamma = 0.00235\) for CFL matter EoS and \(\beta =0,\gamma = 0.00228\) for linear EoS. From Fig. 1 we observe that the energy density is a monotonically decreasing function of the radial coordinate. In our construction of our stellar model the energy density is the same in both the CFL and linear regimes. The radial pressure is displayed in Fig. 2. As expected the pressure drops off monotonically from the center of the star and vanishes for some finite value of the radial coordinate. The radial pressures for both the CFL and linear models are indistinguishable at each interior point of the fluid configuration. The tangential pressure is plotted in Fig. 3. We observe that the tangential pressure decreases monotonically outwards towards the boundary of the star with the linear EoS pressure dominating its CFL counterpart throughout the stellar interior. We observe an interesting behaviour of the anisotropy parameter in Fig. 4. While \(\varDelta \ge 0\) throughout the interior for the linear EoS, we note that the anisotropy parameter changes sign within the CFL configuration. This implies that force associated with anisotropy can be repulsive (\(p_t > p_r\)) or attractive (\(p_t < p_r\)). Figure 4 shows that the central regions experience an attractive force due to pressure anisotropy making these regions more unstable. As one moves outwards towards the surface layers of the star, the anisotropy changes sign, becoming positive. The surface layers of the object are subjected to a repulsive force due to pressure anisotropy thus making this region more stable against the inwardly acting gravitational attraction. Figures 5 and 6 show the variation of the square of the radial and tangential speeds respectively. These quantities play an important role in determining stable and unstable regions within the object as proposed by Herrera [25]. According to Abreu et al. the condition for stable regions to exist within the core, we must have \(-1 < V_{t}^2 - V_{r}^2 \le 0\) [26]. Figure 7 shows that the star is composed of stable regions as one moves from the centre outwards towards the boundary. In addition, the linear EoS predicts more stable regions than the CFL EoS. It is well known that the ratio of the specific heats for an anisotropic fluid is given by

$$\begin{aligned} \varGamma < \frac{4}{3} - \left[ \frac{4}{3}\frac{p_r - p_t}{|{p_r}^\prime |r}\right] _{max} \end{aligned}$$
(30)

We note that the anisotropy increases the instability of the collapsing system when \(p_r < p_t\). We obtain the classical Newtonian result, \(\varGamma < \frac{4}{3}\) in the case of isotropic pressure, \(p_r = p_t\) as a measure of the instability of the stellar configuration. Figure 8 shows that \(\varGamma _r > \frac{4}{3}\) throughout the fluid configuration indicative of a stable object. As pointed out in Fig. 4, the anisotropy changes sign in different regions of the configuration. The change in sign of the anisotropic factor is not sufficiently large to render the configuration unstable as supported by the trend in Fig. 8. We also observe that the adiabatic stability index is indistinguishable for both the linear and CFL EoS’s. For the anisotropic fluid configurations, the strong energy condition \( \rho - p_r - 2p_t \ge 0 \) has to be satisfied within the stellar interior. Figures 9 and 10 show that the weak and strong energy conditions are satisfied throughout the matter distribution. It has been shown that the generated model satisfy all the physical requirements listed above to represent a realistic star in both CFL and linear EoS’s. The mass profile is displayed in Fig. 11. We observe that the mass vanishes at the centre of the configuration and increases as the radial coordinate increases. In Fig. 12 we have plotted the surface redshift as a function of the proper radius. The surface redshift decreases as the radius increases. This trend is in agreement with findings reported by Zhao and Jia [27] who studied surface redshifts of neutron stars.

Fig. 3
figure 3

Variation of tangential pressure with radial coordinate

Fig. 4
figure 4

Variation of anisotropy with radial coordinate

Fig. 5
figure 5

Variation of radial speed with radial coordinate

Fig. 6
figure 6

Variation of tangential speed with radial coordinate

Fig. 7
figure 7

Variation of stability with radial coordinate

Fig. 8
figure 8

Variation of \(\varGamma _r\) with radial coordinate

Fig. 9
figure 9

Variation of weak energy condition as a function of the radial coordinate

Fig. 10
figure 10

Variation of the strong energy condition as a function of the radial coordinate

6 Fixing parameters

In this section we turn our attention to fixing the free parameters in our model. In order to obtain the radius of the star, we require the vanishing of the radial pressure for some finite \(r = R\). This requirement yields

$$\begin{aligned} R_{cfl}= & {} \sqrt{\frac{-12b^3 - 18a^4b\gamma ^2 + 21b^2\psi + 15\sqrt{3} \sqrt{\zeta }}{b^2(b^2 - 3b\psi + 9a^4\gamma ^2)}} \end{aligned}$$
(31)

where we have defined \(\psi = 3\beta ^2 + 2a^2\gamma \) and \(\zeta = b^4\beta ^2(\psi + 2a^2\gamma )\). For the linear EoS the radius is given by

$$\begin{aligned} R_{l} = \sqrt{3}\sqrt{\frac{2b - a^2\gamma }{-b^2 + 3a^2b\gamma }} \end{aligned}$$
(32)

From (32) we arrive at the following restrictions

$$\begin{aligned} \frac{a^2\gamma }{2} \le b < 3a^2\gamma \end{aligned}$$
(33)

We further note from (20) that the constant b can be written in terms of the central density, \(\rho _c\) as

$$\begin{aligned} b = \frac{a^2\rho _c}{6} \end{aligned}$$
(34)

and in the light of (33) we have

$$\begin{aligned} 3\gamma< \rho _c < 18\gamma \end{aligned}$$
(35)
Fig. 11
figure 11

Variation of mass with radial coordinate

Fig. 12
figure 12

Variation of surface redshift with radial coordinate

In order to plot M vs R, we use (28) which depends on (abR). There are various ways to fit our model to observational data. If we choose the central density to be some multiple of the nuclear saturation density, then we can write b in terms of a, with \(\gamma \) being fixed in the process. The difficulty in this approach is that the effect of the vacuum term in the variation of the mass is lost. A second approach due to Rocha et al. [22] is to choose various values for the quark mass, \(m_s\) and the gap term, \(\varDelta \), representing the quark interactions while keeping the MIT Bag constant fixed. This generates different values of \(\gamma \). From (34) we are able to obtain different values for b in terms of a which encodes the contribution from the microphysics. This facilitates comparison between different models which are distinguished by the quark interactions in the stellar fluid. At this point we should point that the constant, a is still free. This implies that there is sufficient freedom in our model to reconcile with observational data. We can conclude that it is always possible to fit characteristics of our model with observations because of the numerous degrees of freedom. On the flip side, physical characteristics of compact objects such as masses and radii depend on the observational techniques employed [29]. At best we can claim that these are toy models which allow us to get insights into the behaviour of the thermodynamical and gravitational behaviour of compact objects as evidenced in Figs. 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 and 12. As to the fixing of the model parameters to observational data we must err on the side of caution and must distinguish between measured and inferred values.

7 Conclusion

This study focused on the comparison between the CFL and linear EoS exact solutions for compact stars consisting of the strange matter phase and allowing anisotropy in the pressure. The CFL phase is modeled as a charge free and colourless gas of quark Cooper pairs that allows this matter to be the true ground state. There is a large number of works, as those referenced in [1], that propose different classes of solutions for the Einstein field equations using toy models. The feature of our work is to provide a realistic linear EoS for the compact object, thus connecting micro and macrophysics and finding exact descriptions. In summary, we have provided two anisotropic pressure models made of CFL strange matter. This was achieved by obtaining a master equation from the CFL EoS by substituting for density and radial pressure. The following ansatz for one of the gravitational potentials, \(B=\frac{a}{\sqrt{1+ br^2}}\) was used to obtain the other potential which then completes the gravitational behaviour of the model. The field equations satisfy all the physical requirements for a realistic star. By making \(\beta = 0\) the CFL EoS becomes a linear EoS thus allowing us to obtain a new set of field equations. By plotting the various thermodynamical quantities, stability criteria and energy conditions we show that the linear EoS gives a reasonable approximation to the CFL EoS.