1 Introduction

The study of dark matter and dark energy has become a topic of considerable interest in present decades. This study is not only important from a theoretical point of view but also from a physical point of view. The reason is that much observational evidence suggests that the expansion of our universe is accelerating. Dark energy is the most acceptable hypothesis to explain this. Work done based on the cosmic microwave background (CMB) estimated that our universe is made up of 68.3 % dark energy, 26.8 % dark matter and 4.9 % ordinary matter. Dark matter cannot be seen by telescopes but one can infer its evidence from gravitational effects on visible matter and gravitational lensing of background radiation. On the other hand, the evidence of dark energy may be inferred from measures of large scale wave patterns of the mass density. One notable feature of dark energy is that it has a strong negative pressure, i.e., the ratio of pressure to density, which is termed the equation of state parameter \((\omega )\), is negative. The dark energy equation of state is given by \(p=\omega \rho \) with \(\omega <-\frac{1}{3}\). The dark energy star model has been studied by several authors [17]. If we choose \(\omega =-1\) we will get the model of a gravastar [813], which is also a dark energy star. \(\omega <-1\) is for the phantom energy and it violates the null energy condition. Several authors have used a phantom equation of state to describe the wormhole model [1417]. Motivated by this previous work we have chosen quintessence dark energy to develop our present model. Here the quintessence field is characterized by a parameter \(\omega _q\) with \(-1<\omega _q<-\frac{1}{3}\). We have assumed that the underlying fluid is a mixture of ordinary matter and a still unknown form of matter i.e. of dark energy type, which is repulsive in nature. These two fluids are non-interacting and we have considered the combined effect of these two fluids in our model. Let us assume that the pressure distribution inside the fluid sphere is not isotropic in nature, but that it can be decomposed into two parts: the radial pressure \(p_\mathrm{r}\) and the transverse pressure \(p_\mathrm{t}\). Here \(p_\mathrm{t}\) is in the perpendicular direction to \(p_\mathrm{r}\) and \(\Delta =p_\mathrm{t}-p_\mathrm{r}\) is defined as an anisotropic factor. The choice of an anisotropic pressure is inspired by the fact that at the core of the superdense star, where the density \(\sim \)10\(^{15}\) gm/cc, the matter distribution shows anisotropy.

In 1982 Vaidya and Tikekar [18] proposed a static spherically symmetric model of a superdense star based on an exact solution of Einstein’s equations. The physical 3-space \(\{t = \mathrm{constant}\}\) of the star is spheroidal, the density of the star is \({\sim }2 \times 10^{14}\) gm/cc, and the mass is about four times the solar mass. Several studies have been performed by using the Vaidya–Tikekar ansatz. Gupta and Kumar have studied a charged Vaidya–Tikekar star in [19]. In this paper the authors have considered a particular form of electric field intensity, which has a positive gradient. This particular form of the electric field intensity was used by Sharma et al. [20]. Komathiraj and Maharaj [21] have also assumed the same expression to model a new type of Vaidya–Tikekar type star. Some new closed form solutions of Vaidya–Tikekar type star were obtained by Gupta et al. [22]. Bijalwan and Gupta [23] have taken a more general form of the electric intensity to obtain a new solution of Vaidya–Tikekar type stars with a charge analog. In this paper the authors have matched their interior solution to the exterior R-N metric and they have analyzed their result numerically by assuming suitable values of the chosen parameter. Some other works on Vaidya–Tikekar stars can be found in [2426]. Very recently Bhar [27, 28] proposed a new model of a strange star in the presence of a quintessence field.

In the recent past many researchers have worked on conformal motion. Anisotropic stars admitting conformal motion have been studied by Rahaman et al. [29]. A charged gravastar admitting conformal motion has been studied by Usmani et al. [8]. Relativistic stars admitting conformal motion have been analyzed in [30]. Isotropic and anisotropic charged spheres admitting a one parameter group of conformal motions were analyzed in [3133]. A charged fluid sphere with a linear equation of state admitting conformal motion has been studied in [34]. In this paper the authors have also discussed the dynamical stability analysis of the system. Ray et al. [35, 36] have given an electromagnetic mass model admitting a conformal Killing vector. By assuming the existence of a one parameter group of conformal motion Mak and Harko [37] have described a charged strange quark star model. The authors have also discussed conformally symmetric vacuum solutions of the gravitational field equations in brane-world models [38]. In a very recent work Rahaman et al. [39] and Bhar [40] have described conformal motion in higher dimensional spacetimes.

To search the natural relationship between geometry and matter through the Einstein field equations, we generally use inheritance symmetry. The well known inheritance symmetry is the symmetry under conformal Killing vectors (CKVs), i.e.,

$$\begin{aligned} L_\xi g_{ik}=\psi g_{ik} \end{aligned}$$
(1)

where \(L\) is the Lie derivative of the metric tensor which describes the interior gravitational field of a compact star with respect to the vector field \(\xi \), and \(\psi \) is the conformal factor. It is supposed that the vector \(\xi \) generates the conformal symmetry and the metric \(g\) is conformally mapped onto itself along \(\xi \). Neither \(\xi \) nor \(\psi \) need to be static, even though one considers a static metric [41, 42]. If \(\psi =0\) then (1) gives the Killing vector; for \(\psi =\) constant it gives a homothetic vector and if \(\psi =\psi (\mathbf x ,t)\) then it yields conformal vectors. Moreover, note that if \(\psi =0\) the underlying spacetime is asymptotically flat, which further implies that the Weyl tensor will also vanish. So CKV provides a deeper insight in the spacetime geometry.

The plan of our paper is as follows: In Sect. 2 we discuss the interior solution and the Einstein field equation. The conformal Killing vector and solution of the system are given in Sects. 3 and 4, respectively. Some physical properties of the model is given in Sects. 5, 6, 7, 8, 9, 10 and 11 and we make some concluding remarks in Sect. 12.

2 Interior solutions and Einstein field equation

To describe a static spherically symmetry spacetime let us consider the line element in the standard form,

$$\begin{aligned} \mathrm{d}s^{2}=-\mathrm{e}^{\nu (r)}\mathrm{d}t^{2}+\mathrm{e}^{\lambda (r)}\mathrm{d}r^{2}+r^{2}(\mathrm{d}\theta ^{2}+\sin ^{2}\theta \mathrm{d}\phi ^{2}). \end{aligned}$$
(2)

Here \(\lambda \) and \(\nu \) are functions of the radial co-ordinate \(r\) only.

Now let us assume that our model contains a quintessence-like field along with anisotropic pressure. The Einstein equations can be written as

$$\begin{aligned} G_{\mu \nu }=8\pi G (T_{\mu \nu }+\tau _{\mu \nu }). \end{aligned}$$
(3)

Here \(\tau _{\mu \nu }\) is the energy-momentum tensor of the quintessence-like field, which is characterized by a parameter \(\omega _q\) with \(-1<\omega _q<-\frac{1}{3}\). Now Kiselev [43] has shown that the components of this tensor need to satisfy the conditions of additivity and linearity. Considering the different signature used in the line elements, the components can be stated as follows:

$$\begin{aligned}&\tau _\mathrm{t}^{\mathrm{t}}=\tau _\mathrm{r}^{\mathrm{r}}=-\rho _q,\end{aligned}$$
(4)
$$\begin{aligned}&\tau _{\theta }^{\theta }=\tau _{\phi }^{\phi }=\frac{1}{2}(3\omega _q+1)\rho _q, \end{aligned}$$
(5)

and the corresponding energy-momentum tensor can be written as

$$\begin{aligned} T_{\nu }^{\mu }=(\rho +p_\mathrm{r})u^{\mu }u_{\nu }-p_\mathrm{t} g_{\nu }^{\mu }+(p_\mathrm{r}-p_\mathrm{t})\eta ^{\mu }\eta _{\nu }, \end{aligned}$$
(6)

with \(u^{i}u_{j} =-\eta ^{i}\eta _j = 1 \) and \(u^{i}\eta _j= 0\). Here the vector \(u_i\) is the fluid 4-velocity and \(\eta ^{i}\) is the spacelike vector which is orthogonal to \(u^{i}\), \(\rho \) is the energy density; \(p_\mathrm{r}\) and \(p_\mathrm{t}\) are, respectively, the radial and the transversal pressure of the fluid.

The Einstein field equation assuming \(G=1=c\) can be written as

$$\begin{aligned}&\mathrm{e}^{-\lambda }\left[ \frac{\lambda '}{r}-\frac{1}{r^{2}} \right] +\frac{1}{r^{2}}=8\pi (\rho +\rho _q),\end{aligned}$$
(7)
$$\begin{aligned}&\mathrm{e}^{-\lambda }\left[ \frac{1}{r^{2}}+\frac{\nu '}{r} \right] -\frac{1}{r^{2}}=8\pi (p_\mathrm{r}-\rho _q),\end{aligned}$$
(8)
$$\begin{aligned}&\frac{1}{2}\mathrm{e}^{-\lambda }\left[ \frac{1}{2}\nu '^{2}+\nu ''-\frac{1}{2}\lambda '\nu '+\frac{1}{r}(\nu '-\lambda ')\right] \nonumber \\&\quad =8\pi \left( p_\mathrm{t}+\frac{3\omega _q+1}{2}\rho _q \right) . \end{aligned}$$
(9)

3 Conformal Killing equation

The conformal Killing equation (1) becomes

$$\begin{aligned} L_\xi g_{ik}=\xi _{i;k}+\xi _{k;i}=\psi g_{ik}. \end{aligned}$$
(10)

Now using the conformal Killing equation for the line element (2) we get the following equations:

$$\begin{aligned}&\xi ^{1}\nu '=\psi ,\end{aligned}$$
(11)
$$\begin{aligned}&\xi ^{4}=C_1,\end{aligned}$$
(12)
$$\begin{aligned}&\xi ^{1}=\frac{\psi r}{2},\end{aligned}$$
(13)
$$\begin{aligned}&\xi ^{1}\lambda '+2\xi ^{1},_1=\psi . \end{aligned}$$
(14)

Here \(C_1\) is a constant.

The above four equations consequently give

$$\begin{aligned}&\mathrm{e}^{\nu }=C_2^{2}r^{2}, \end{aligned}$$
(15)

where 1 stands for the spatial co-ordinates \(r\), ‘prime’ and ‘,’ denotes the partial derivative with respect to \(r\).

$$\begin{aligned}&\mathrm{e}^{\lambda }=\left( \frac{C_3}{\psi }\right) ^{2},\end{aligned}$$
(16)
$$\begin{aligned}&\xi ^{i}=C_1\delta _{4}^{i}+\left( \frac{\psi r}{2}\right) \delta _1^{i}. \end{aligned}$$
(17)

Here \(C_2\) and \(C_3\) are constants of integrations.

Now using Eqs. (15)–(17) into the Einstein field equations (7)–(9) one can obtain

$$\begin{aligned}&\frac{1}{r^{2}}\left[ 1-\frac{\psi ^{2}}{C_3^{2}}\right] -\frac{2\psi \psi '}{r C_3^{2}}=8\pi (\rho +\rho _q),\end{aligned}$$
(18)
$$\begin{aligned}&\frac{1}{r^{2}}\left[ \frac{3\psi ^{2}}{C_3^{2}}-1\right] =8\pi (p_\mathrm{r}-\rho _q),\end{aligned}$$
(19)
$$\begin{aligned}&\frac{\psi ^{2}}{C_3^{2}r^{2}}+\frac{2\psi \psi '}{r C_3^{2}}=8\pi \left( p_\mathrm{t}+\frac{3\omega _q+1}{2}\rho _q\right) . \end{aligned}$$
(20)

4 Solution

To solve Eqs. (18)–(20) we consider the Vaidya–Tikekar ansatz [18]

$$\begin{aligned} \mathrm{e}^{\lambda }=\frac{1-K\left( \frac{r^{2}}{R^{2}}\right) }{1-\frac{r^{2}}{R^{2}}}. \end{aligned}$$
(21)

It may be noted that the physical \(3\)-space \(\{t = \mathrm{constant}\}\) of a Vaidya–Tikekar type star is spheroidal and the geometry of the 3-spheroid is governed by the parameters R and K. Here \( K <1\). For \(K=0\), the hypersurfaces \(\{t=\mathrm{constant}\}\) becomes spherical and it gives a Schwarzschild interior solution and for \(K=1\) the hypersurfaces \(\{t=\mathrm{constant}\}\) become flat. The metric function \(\mathrm{e}^{\lambda }\) is regular at the center and it is well behaved for \(r<R\).

From Eqs. (16) and (21) we get

$$\begin{aligned} \psi ^{2}=C_3^{2}\frac{R^{2}-r^{2}}{R^{2}-Kr^{2}}. \end{aligned}$$
(22)

Using the value of \(\psi \) given in Eq. (22) we can write Eqs. (18)–(20) as follows:

$$\begin{aligned}&(1-K)\frac{3R^{2}-Kr^{2}}{(R^{2}-Kr^{2})^{2}}=8\pi (\rho +\rho _q),\end{aligned}$$
(23)
$$\begin{aligned}&\frac{1}{r^{2}}\left[ \frac{2R^{2}-(3-K)r^{2}}{R^{2}-Kr^{2}}\right] =8\pi (p_\mathrm{r}-\rho _q),\end{aligned}$$
(24)
$$\begin{aligned}&\frac{1}{r^{2}}\frac{R^{2}-r^{2}}{R^{2}-Kr^{2}}-\frac{2(1-K)R^{2}}{(R^{2}-Kr^{2})^{2}}=8\pi \left( p_\mathrm{t}+\frac{3\omega _q+1}{2}\rho _q\right) .\nonumber \\ \end{aligned}$$
(25)

One can note from Eqs. (23)–(25) that we have three equations with four unknowns, namely \(\rho \)\(p_\mathrm{r}\)\(p_\mathrm{t}\)\(\rho _q\).

To solve the above three Eqs. (23)–(25) let us assume that the radial pressure \(p_\mathrm{r}\) is proportional to the matter density \(\rho \), i.e.,

$$\begin{aligned} p_\mathrm{r}=m\rho ,\qquad 0<m<1. \end{aligned}$$
(26)

Here \(m\) is the equation of state parameter.

Solving Eqs. (23)–(25) with the help of Eq. (26) one can obtain

$$\begin{aligned} \displaystyle \rho= & {} \frac{1}{8\pi (1\!+m)}\left[ \!(1\!-\!K)\frac{3R^{2}\!-Kr^{2}}{(R^{2}\!-Kr^{2})^{2}}+\!\frac{2R^{2}\!-(3\!-K)r^{2}}{r^{2}(R^{2}\!-Kr^{2})}\!\right] ,\nonumber \\ \end{aligned}$$
(27)
$$\begin{aligned} \displaystyle p_\mathrm{r}= & {} \frac{m}{8\pi (1\!+m)}\left[ \!(1\!-\!K)\frac{3R^{2}\!-Kr^{2}}{(R^{2}\!-\!Kr^{2})^{2}}\!+\!\frac{2R^{2}\!-(3\!-K)r^{2}}{r^{2}(R^{2}\!-Kr^{2})}\!\right] ,\nonumber \\ \end{aligned}$$
(28)
$$\begin{aligned} \displaystyle \rho _q= & {} \frac{1\!-\!K}{8\pi }\frac{3R^{2}\!-\!Kr^{2}}{(R^{2}\!-\!Kr^{2})^{2}}\nonumber \\&-\frac{1}{8\pi (1\!+m)}\left[ (1\!-\!K)\frac{3R^{2}\!-\!Kr^{2}}{(R^{2}\!-\!Kr^{2})^{2}}\!+\!\frac{2R^{2}\!-\!(3-K)r^{2}}{r^{2}(R^{2}\!-\!Kr^{2})}\right] ,\nonumber \\ \end{aligned}$$
(29)
$$\begin{aligned} p_\mathrm{t}= & {} \frac{1}{8\pi }\left[ \frac{R^{2}\!-r^{2}}{r^{2}(R^{2}\!-\!Kr^{2})}\!+\frac{2(K\!-1)R^{2}}{(R^{2}\!-Kr^{2})^{2}}\right] \!- \frac{(3\omega _q\!+\!1)}{2}\nonumber \\\ \displaystyle&\times \frac{(1\!-\!K)}{8\pi }\frac{3R^{2}\!-\!Kr^{2}}{(R^{2}\!-\!Kr^{2})^{2}}-\frac{3\omega _q\!+\!1}{16\pi (1\!+\!m)}\frac{(1\!-\!K)(3R^{2}\!-\!Kr^{2})}{(R^{2}\!-Kr^{2})^{2}}\nonumber \\&+\,\frac{3\omega _q\!+1}{16\pi (1\!+m)}\frac{2R^{2}\!-(3\!-K)r^{2}}{r^{2}(R^{2}\!-\!Kr^{2})}. \end{aligned}$$
(30)

We denote

$$\begin{aligned} \rho _\mathrm{eff}=\frac{1}{8\pi }\left[ (1-K)\frac{3R^{2}-Kr^{2}}{(R^{2}-Kr^{2})^{2}}\right] , \end{aligned}$$
(31)
$$\begin{aligned} p_\mathrm{r\,eff}=\frac{1}{8\pi }\frac{1}{r^{2}}\left[ \frac{2R^{2}-(3-K)r^{2}}{R^{2}-Kr^{2}}\right] , \end{aligned}$$
(32)
$$\begin{aligned} p_\mathrm{t\,eff}=\frac{1}{8\pi }\left[ \frac{1}{r^{2}}\frac{R^{2}-r^{2}}{R^{2}-Kr^{2}}-\frac{2(1-K)R^{2}}{(R^{2}-Kr^{2})^{2}}\right] . \end{aligned}$$
(33)

The plot of effective density and effective radial and transverse pressure are shown in Figs. 1 and 2, respectively. From these two figures we see that density, radial and transverse pressure all are monotonic decreasing function of \(r\) and approach zero at the surface of the star.

Fig. 1
figure 1

Effective density plotted against \(r\)

Fig. 2
figure 2

Effective radial and transverse pressure plotted against \(r\)

5 Physical analysis

The effective central density of the quintessence star is given by

$$\begin{aligned}&\displaystyle \rho _{0~\mathrm{eff}}=\rho _\mathrm{eff}(r=0)=\frac{3(1-K)}{8\pi R^{2}},\end{aligned}$$
(34)
$$\begin{aligned}&\displaystyle \frac{\mathrm{d}\rho _\mathrm{eff}}{\mathrm{d}r}=\frac{K(1-K)}{4\pi }\frac{r(5R^{2}-Rr^{2})}{(R^{2}-Kr^{2})^{3}},\end{aligned}$$
(35)
$$\begin{aligned}&\displaystyle \frac{\mathrm{d}^{2}\rho _\mathrm{eff}}{\mathrm{d}r^{2}}|_{r=0}=\frac{5K(1-K)}{4\pi R^{4}}. \end{aligned}$$
(36)

So we see that the effective density is regular at the center. The plot of \(\frac{\mathrm{d}\rho _\mathrm{eff}}{\mathrm{d}r}~ \mathrm{vs.} ~r\) is shown in Fig. 3. Both the expressions given in Eqs. (35) and (36) are negative, since we have chosen \(K<0\) for our model. This tells us that the effective density has a maximum value at the center of the star.

Fig. 3
figure 3

\(\frac{\mathrm{d}\rho _\mathrm{eff}}{\mathrm{d}r}\) plotted against \(r\)

From the expression of \(p_\mathrm{r~eff}\) given in Eq. (32) we see that effective radial pressure is not regular at the center. However,

$$\begin{aligned} \frac{\mathrm{d}p_\mathrm{r~eff}}{\mathrm{d}r}= -\frac{2\left[ 2R^{4}+K(3-K)r^{4}-4Kr^{2}R^{2}\right] }{r^{3}(R^{2}-Kr^{2})^{2}}~<0.\nonumber \\ \end{aligned}$$
(37)

The profile of \(\frac{\mathrm{d}p_\mathrm{r~eff}}{\mathrm{d}r}~\mathrm{vs.} ~r\) is shown in Fig. 4. This figure once again verifies that \(\frac{\mathrm{d}p_\mathrm{r~eff}}{\mathrm{d}r}<0\).

Fig. 4
figure 4

\(\frac{\mathrm{d}p_{\mathrm{r}\ \mathrm{eff}}}{\mathrm{d}r}\) plotted against \(r\)

The anisotropic factor of our model of the quintessence star is defined by

$$\begin{aligned} \Delta= & {} (p_\mathrm{t~eff}-p_\mathrm{r~eff})\nonumber \\= & {} \frac{1}{8\pi }\left[ \frac{1}{r^{2}}\frac{-R^{2}+(2-K)r^{2}}{R^{2}-Kr^{2}}-\frac{2(1-K)R^{2}}{(R^{2}-Kr^{2})^{2}}\right] \end{aligned}$$
(38)

and \(\frac{2\Delta }{r}\) is termed the anisotropic force.

The profile of anisotropic factor is given in Fig. 5, which shows that \(\Delta <0\); this implies that \(p_\mathrm{t}<p_\mathrm{r}\). From this we can conclude that the force is attractive in nature. One may note that generally the quintessence field is repulsive in nature but for our model, where we have considered the combined effect of ordinary matter and the quintessence field, the effective anisotropic force turns out to be attractive.

Fig. 5
figure 5

Anisotropic factor plotted against \(r\) using \(R=10\) and \(K= -0. 049\)

6 Exterior spacetime and matching condition

In this section we will match our interior solution of the quintessence star to the Schwarzschild exterior solution at the boundary \(r=a\) outside the event horizon, i.e. \(a>2M\), where the exterior spacetime is described by the metric

$$\begin{aligned} \mathrm{d}s^{2}&=-\left( 1-\frac{2M}{r}\right) \mathrm{d}t^{2}+\left( 1-\frac{2M}{r}\right) ^{-1}\mathrm{d}r^{2}\nonumber \\&\quad +\,r^{2}(\mathrm{d}\theta ^{2}+\sin ^{2}\theta \mathrm{d}\phi ^{2}). \end{aligned}$$
(39)

Using the matching condition at the boundary we have

$$\begin{aligned} 1-\frac{2M}{a}=C_2^{2}a^{2} \end{aligned}$$
(40)

and

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

Solving the above two equations we get

$$\begin{aligned}&\displaystyle C_2^{2}=\frac{1}{a^{2}}\left( 1-\frac{2M}{a}\right) ,\end{aligned}$$
(42)
$$\begin{aligned}&\displaystyle K=\frac{1-\left( \frac{2M}{a}\right) \left( \frac{R^{2}}{a^{2}}\right) }{1-\frac{2M}{a}}. \end{aligned}$$
(43)

7 TOV equation

To describe the static equilibrium let us consider the generalized Tolman–Oppenheimer–Volkov (TOV) equation, which is represented by the formula

$$\begin{aligned} -\frac{M_\mathrm{G}(\rho +p_\mathrm{r})}{r^{2}}\mathrm{e}^{\frac{\lambda -\nu }{2}}-\frac{\mathrm{d}p_\mathrm{r}}{\mathrm{d}r}+\frac{2}{r}(p_\mathrm{t}-p_\mathrm{r})=0. \end{aligned}$$
(44)

Here \(M_\mathrm{G}=M_\mathrm{G}(r)\) is termed the effective gravitational mass inside the fluid sphere of radius \(r\) and is defined by

$$\begin{aligned} M_\mathrm{G}(r)=\frac{1}{2}r^{2}\mathrm{e}^{\frac{\nu -\lambda }{2}}\nu '. \end{aligned}$$
(45)

The above expression of \(M_\mathrm{G}(r)\) can be derived from the Tolman–Whittaker mass formula.

Using the expression of Eq. (45) in (44) we obtain the modified TOV equation,

$$\begin{aligned} F_\mathrm{g}+F_\mathrm{h}+F_\mathrm{a}=0 \end{aligned}$$
(46)

where

$$\begin{aligned}&F_\mathrm{g}=-\frac{\nu '}{2}(\rho _{\mathrm{eff}}+p_{\mathrm{r~eff}}),\end{aligned}$$
(47)
$$\begin{aligned}&F_\mathrm{h}=-\frac{\mathrm{d}p_\mathrm{r}}{\mathrm{d}r},\end{aligned}$$
(48)
$$\begin{aligned}&F_\mathrm{a}=\frac{2}{r}(p_{\mathrm{t~eff}}-p_{\mathrm{r~eff}}). \end{aligned}$$
(49)

Here \(F_\mathrm{g},F_\mathrm{h}\), and \(F_\mathrm{a}\) are termed gravitational, hydrostatic, and anisotropic forces, respectively, of the system. From Fig. 6 we see that the system is in equilibrium under the above three forces.

Fig. 6
figure 6

The system is in static equilibrium under three forces

8 Energy condition

All the energy conditions, namely, the null energy condition (NEC), the weak energy condition (WEC), the strong energy condition (SEC) are satisfied for our model if the following inequalities hold in the interior of the fluid sphere:

$$\begin{aligned}&\rho _{\mathrm{eff}}\ge 0,\end{aligned}$$
(50)
$$\begin{aligned}&\rho _{\mathrm{eff}}+p_{\mathrm{r~eff}}\ge 0,\end{aligned}$$
(51)
$$\begin{aligned}&\rho _{\mathrm{eff}}+p_{\mathrm{t~eff}}\ge 0,\end{aligned}$$
(52)
$$\begin{aligned}&\rho _{\mathrm{eff}}+p_{\mathrm{r~eff}}+2p_{\mathrm{t~eff}}\ge 0. \end{aligned}$$
(53)

We will prove these inequalities with the help of a graphical representation by choosing some suitable values to the parameters, given in Fig. 7. From the figure we see that WEC, NEC, and SEC are satisfied by our model. Since SEC is satisfied by our model, we can conclude that our spacetime does not contain any black hole.

Fig. 7
figure 7

Energy conditions plotted against \(r\)

9 Stability

For a physically acceptable model one must have the velocity of sound in the range \(0<v^{2}=\frac{\mathrm{d}p}{\mathrm{d}\rho }\le 1\).

In the case of anisotropy the radial \((v_{\mathrm{sr}}^{2})\) and transverse \((v_{\mathrm{st}}^{2})\) sound velocity can be obtained as

$$\begin{aligned}&v_{\mathrm{sr}}^{2}=\frac{\mathrm{d}p_\mathrm{r}}{\mathrm{d}\rho }=m=0.4<1,\end{aligned}$$
(54)
$$\begin{aligned}&v_{\mathrm{st}}^{2}=\frac{\mathrm{d}p_\mathrm{t}}{\mathrm{d}\rho }. \end{aligned}$$
(55)

From Eq. (54) we have \(v_{\mathrm{sr}}^{2}<1\) and Fig. 8 shows that \(0<v_{\mathrm{st}}^{2}<1\) everywhere within the stellar configuration. According to Herrera’s [44] cracking (or overturning) theorem for a potentially stable region one must have \(v_{\mathrm{st}}^{2}-v_{\mathrm{sr}}^{2}<0\). From Fig. 9 it is clear that our model satisfies this condition. So we conclude that our model is potentially stable. Moreover, \(0<v_{\mathrm{sr}}^{2}\le 1\) and \(0<v_{\mathrm{st}}^{2}<1\) therefore according to Andréasson [45], \(|v_{\mathrm{st}}^{2}-v_{\mathrm{sr}}^{2}|\le 1\) which is also clear from Fig. 10.

Fig. 8
figure 8

Transverse velocity shown against \(r\)

Fig. 9
figure 9

\(v_{\mathrm{st}}^{2}-v_{\mathrm{sr}}^{2}\) plotted against \(r\)

Fig. 10
figure 10

\(|-v_{\mathrm{st}}^{2}+v_{\mathrm{sr}}^{2}|\) plotted against \(r\)

10 Some features

10.1 Mass radius relation

The mass function within the radius \(r\) can be obtained as

$$\begin{aligned} M_{\mathrm{eff}}(r)=\int _0^{r}4\pi r^{2} \rho _{\mathrm{eff}} \mathrm{d}r=\frac{1-K}{2}\frac{r^{3}}{R^{2}-Kr^{2}}. \end{aligned}$$
(56)

The profile of the effective mass function is given in Fig. 11. For \(r\rightarrow 0\), \(M_{\mathrm{eff}}(r)\rightarrow 0\), which implies that the mass function is regular at the center; moreover, the effective mass function is monotonic increasing function of \(r\) and it is positive inside the stellar configuration.

Fig. 11
figure 11

Effective mass function plotted against \(r\)

10.2 Compactness

The effective compactness of the star \({u_{\mathrm{eff}}}(r)\) can be defined by

$$\begin{aligned} {u_{\mathrm{eff}}}=\frac{M_{\mathrm{eff}}(r)}{r}=\frac{1-K}{2}\frac{r^{2}}{R^{2}-Kr^{2}}. \end{aligned}$$
(57)

The profile of the effective compactness of the star is depicted in Fig. 12.

Fig. 12
figure 12

Effective compactness plotted against \(r\)

10.3 Surface redshift

The redshift function \({Z}_{\mathrm{s~eff}}\) can be defined by

$$\begin{aligned} 1+z_{\mathrm{s~eff}}=(1-2u_{\mathrm{eff}})^{-\frac{1}{2}}; \end{aligned}$$

using the above formula we obtain

$$\begin{aligned} {z}_{\mathrm{s~eff}}=(1-2u_{\mathrm{eff}})^{-\frac{1}{2}}-1=\left( \frac{R^{2}-r^{2}}{R^{2}-Kr^{2}}\right) ^{-\frac{1}{2}}-1.\nonumber \\ \end{aligned}$$
(58)

The profile of the effective redshift function is given in Fig. 13, which is a monotonic increasing function of \(r\).

Fig. 13
figure 13

Effective surface redshift plotted against \(r\)

11 Junction condition

In Sect. 6 we have matched our interior spacetime to the exterior Schwarzschild at the boundary \(r=a\). It is obvious that the metric coefficients are continuous at \(r=a\), but this does not ensure that their derivatives are also continuous at the junction surface. To take care of this let us consider the Darmois–Israel [46, 47] formation to determine the surface stresses at the junction boundary. The intrinsic surface stress energy tensor \(S_{ij}\) is given by the Lancozs equations in the following form:

$$\begin{aligned} S^{i}_{j}=-\frac{1}{8\pi }(\kappa ^{i}_j-\delta ^{i}_j\kappa ^{k}_k). \end{aligned}$$
(59)

The second fundamental form is given by

$$\begin{aligned} K_{ij}^{\pm }=-n_{\nu }^{\pm }\left[ \frac{\partial ^{2}X_{\nu }}{\partial \xi ^{1}\partial \xi ^{j}}+\Gamma _{\alpha \beta }^{\nu }\frac{\partial X^{\alpha }}{\partial \xi ^{i}}\frac{\partial X^{\beta }}{\partial \xi ^{j}} \right] \bigg |_S, \end{aligned}$$
(60)

and the discontinuity in the second fundamental form is given by

$$\begin{aligned} \kappa _{ij}=K_{ij}^{+}-K_{ij}^{-} \end{aligned}$$
(61)

where \(n_{\nu }^{\pm }\) are the unit normal vector defined by

$$\begin{aligned} n_{\nu }^{\pm }=\pm \left| g^{\alpha \beta }\frac{\partial f}{\partial X^{\alpha }}\frac{\partial f}{\partial X^{\beta }} \right| ^{-\frac{1}{2}}\frac{\partial f}{\partial X^{\nu }} \end{aligned}$$
(62)

with \(n^{\nu }n_{\nu }=1\). Here \(\xi ^{i}\) is the intrinsic coordinate on the shell. \(+\) and \(-\) correspond to exterior, i.e., Schwarzschild spacetime and interior (our) spacetime, respectively.

The non-trivial components of the extrinsic curvature are given by

$$\begin{aligned}&K_{\tau }^{\tau ~+}=\frac{\frac{M}{a^{2}}+\ddot{a}}{\sqrt{1-\frac{2M}{a}+\dot{a}^{2}}},\end{aligned}$$
(63)
$$\begin{aligned}&K_{\tau }^{\tau ~-}=\frac{\frac{-a(1-K)R^{2}}{(R^{2}-Ka^{2})^{2}}+\ddot{a}}{\sqrt{\frac{R^{2}-a^{2}}{R^{2}-Ka^{2}}+\dot{a}^{2}}}, \end{aligned}$$
(64)

and

$$\begin{aligned}&K_{\theta }^{\theta ~+}=\frac{1}{a}\sqrt{1-\frac{2M}{a}+\dot{a}^{2}},\end{aligned}$$
(65)
$$\begin{aligned}&K_{\theta }^{\theta ~-}=\frac{1}{a}\sqrt{\frac{R^{2}-a^{2}}{R^{2}-Ka^{2}}+\dot{a}^{2}}. \end{aligned}$$
(66)

Considering the spherical symmetry of the spacetime, the surface stress energy tensor can be written as \(S^{i}_j=\mathrm{diag}(-\sigma ,\mathcal {P})\). Here \(\sigma \) and \(\mathcal {P}\) are the surface energy density and surface pressure, respectively. We have

$$\begin{aligned} \sigma= & {} -\frac{1}{4\pi a}[\sqrt{\mathrm{e}^{-\lambda }} ]_{-}^{+}\nonumber \\= & {} -\frac{1}{4\pi a}\!\left[ \!\sqrt{1-\frac{2M}{a}\!+\dot{a}^{2}}-\sqrt{\frac{R^{2}\!-a^{2}}{R^{2}\!-Ka^{2}}+\dot{a}^{2}}~\right] ,\quad \end{aligned}$$
(67)
$$\begin{aligned} \mathcal {P}= & {} \frac{1}{8\pi a}\left[ \left\{ 1+\frac{a\nu '}{2}\right\} \sqrt{\mathrm{e}^{-\lambda }}\right] _{-}^{+}\nonumber \\= & {} \frac{1}{8\pi a}\left[ \frac{1-\frac{M}{a}}{\sqrt{1-\frac{2M}{a}}}-2\sqrt{\frac{R^{2}-a^{2}}{R^{2}-Ka^{2}}}\right] . \end{aligned}$$
(68)

Hence we can match our interior spacetime to the exterior Schwarzschild spacetime in the presence of a thin shell.

The mass of the thin shell is given by

$$\begin{aligned} m_\mathrm{s}=4\pi a^{2}\sigma . \end{aligned}$$
(69)

From (67) and (69) one can obtain

$$\begin{aligned} M=\frac{a^{3}}{2}\left[ \frac{1-K}{R^{2}-Ka^{2}}-m_\mathrm{s}^{2}\right] +2am_\mathrm{s}\sqrt{\frac{R^{2}-a^{2}}{R^{2}-Ka^{2}}}. \end{aligned}$$
(70)

This gives the mass of the quintessence star in terms of the thin shell mass.

Next we will discuss the evolution identity given by \([T_{\mu \nu }n^{\mu }n^{\nu }]_{-}^{+}=\overline{K}^{i}_{j}S^{j}_{i}\) where

$$\begin{aligned} \overline{K}^{i}_{j}=\frac{1}{2}(K_{j}^{i+}+K_{j}^{i-}), \end{aligned}$$

which gives

$$\begin{aligned}&p_\mathrm{r}+\frac{(\rho +p_\mathrm{r})\dot{a}^{2}}{\frac{R^{2}-a^{2}}{R^{2}-Ka^{2}}}\nonumber \\&=-\frac{1}{2a}\left( \sqrt{1-\frac{2M}{a}+\dot{a}^{2}}+\sqrt{\frac{R^{2}-a^{2}}{R^{2}-Ka^{2}}+\dot{a}^{2}}\right) \mathcal {P}\nonumber \\&+\frac{1}{2}\left( \frac{\frac{M}{a^{2}}+\ddot{a}}{\sqrt{1-\frac{2M}{a}+\dot{a}^{2}}}+\frac{\frac{-a(1-K)R^{2}}{(R^{2}-Ka^{2})^{2}}+\ddot{a}}{\sqrt{\frac{R^{2}-a^{2}}{R^{2}-Ka^{2}}+\dot{a}^{2}}}\right) \sigma . \end{aligned}$$
(71)

For a static solution \(a_0\) from Eq. (71) (assuming \(\dot{a}=0=\ddot{a}\)) one can obtain

$$\begin{aligned} p_\mathrm{r}(a_0)= & {} -\frac{1}{2a_0}\left( \sqrt{1-\frac{2M}{a_0}}+\sqrt{\frac{R^{2}-a_0^{2}}{R^{2}-Ka_0^{2}}}~\right) \mathcal {P}\nonumber \\&+\frac{1}{2}\left( \frac{\frac{M}{a_0^{2}}}{\sqrt{1-\frac{2M}{a_0}}}+\frac{\frac{-a_0(1-K)R^{2}}{(R^{2}-Ka_0^{2})^{2}}}{\sqrt{\frac{R^{2}-a_0^{2}}{R^{2}-Ka_0^{2}}}}\right) \sigma . \end{aligned}$$
(72)

The above equation relates the radial pressure \((p_\mathrm{r})\) of the quintessence star with the surface pressure \((\mathcal {P})\) and surface density \((\sigma )\) of the thin shell.

12 Discussion and concluding remarks

In the present paper we have proposed a new model of a superdense star by choosing the Vaidya–Tikekar spacetime which admits CKV in the presence of a quintessence field which is characterized by a parameter \(\omega _q\) with \(-1<\omega _q<-\frac{1}{3}\). For our model the effective density is regular at the center but the radial and transverse pressure suffers from a central singularity like other CKV models. The profile of both the density function and the radial pressure are monotonically decreasing, which indicates that the density and radial pressure of the star is maximum at the center and it decreases from the center to the surface of the star. By taking \(R=10\) and \(K=-0.049\) from the relation \(p_{\mathrm{r~eff}}(a)=0\) (where \(a\) is the radius of the star) we obtain \(a=8. 1\) km. Plugging in \(G\) and \(c\), the central density of the star is calculated as \(\rho _\mathrm{c}=1. 69\times 10^{15}\) gm/cc and \(M_{\mathrm{eff}}=1. 83 M_{\bigodot }\). The mass function is regular at the center and the maximum allowable ratio of mass to radius is \(0. 333<\frac{4}{9}\), which lies in the Buchdahl [48] limit; and the maximum value of the surface redshift is calculated as \(0. 732\). For our model the radial and transverse speed of sound is less than \(1\), which gives the stability condition. According to Herrera’s [44] concept if for a model the radial speed of sound is greater than the transverse speed of sound, the model is potentially stable. With the help of a graphical representation we have shown that \(v_{\mathrm{sr}}^{2}-v_{\mathrm{st}}^{2}>0\). So our model is potentially stable. All the energy conditions are satisfied inside the fluid sphere. Our model is also in static equilibrium under anisotropic, gravitational, and hydrostatic forces. We have matched our interior solution to the exterior Schwarzschild metric in the presence of a thin shell and also obtained the mass of the quintessence star in terms of the thin shell mass. A relation among the radial pressure, surface pressure, and surface density has been obtained.