1 Introduction

After the introduction of Einstein’s theory of general relativity, at first a series of mathematical singularities appeared as solutions to Einstein’s general equation of relativity. The first settled solution of general relativity as a black hole was found by Schwarzschild in 1916. For a long time, black holes were considered to be a mathematical peculiarity, until in 1973 Bekenstein introduced black holes as interesting thermodynamic systems that follow the laws of usual thermodynamics [2]. This progress made us one step closer to a better understanding of quantum gravity [3].

On the other hand, Einstein’s equation generally described an expanding universe, and Einstein first added a cosmological constant to his equation to describe a static universe. But after discovering the expansion of the universe by Hubble in 1931, Einstein ignored the cosmological constant, until 1998, it was discovered that the expansion of the universe is accelerating, imposing a positive value for the cosmological constant. If the cosmological constant is positive, the associated negative pressure will derive an accelerated expansion of the universe, as observed from the Planck Collaboration [4]. So far, cosmological constant is considered as a constant parameter, but on the contrary, in black hole thermodynamics is regarded as thermodynamic pressure which can vary. From this perspective, an extended phase space appears with a new dimension added, and the negative cosmological constant determines a positive varying thermodynamic pressure in this new framework

$$\begin{aligned} P = - \frac{\Lambda }{{8\pi }}, \end{aligned}$$
(1)

to review a few examples of work in the context of extended phase space, see [5,6,7,8].

Among the modified gravity theories, one of the interesting proposals is Lovelock theory, which is reduced to Einstein’s theory in three and four dimensions, but in five dimensions and more, it includes higher curvature terms. The first additional term is Gauss–Bonnet (GB) gravity where is quadratic in curvature tensors and leads to field equations that are second-order unto metric derivatives and do not engage in ghosts [9, 10]. It was also shown that the GB theory can be derived from the low-energy limit of heterotic string theory [11, 12]. One of the promising theories in modern theoretical cosmology is the scalar-Einstein–Gauss–Bonnet gravity theory [13, 14] which is motivated by string theory and shows how the string theory affects the primordial acceleration of the universe. Many other aspects of GB theory have been studied in literature [15,16,17,18,19,20,21,22,23].

One of the most consistent theory of gravity that modifies GR by endowing the graviton with a nonzero mass, is dRGT massive gravity [24]. This theory is ghost free and avoids discontinuities in the limit where the graviton mass goes to zero. Also, the theory of general relativity is modified by massive gravity at large distances, explains the accelerated expansion of the universe, without resorting to the concept of dark energy. In addition , the cosmological solutions of massive gravity and its expanded types, such as bimetric gravity [25], can reflect late-time acceleration compatibility with observations [26,27,28].

However, string theory predicts the existence of a graviton, but we do not have a successful quantum theory of gravity. Superstring theory is a theory that considers the particles and fundamental forces of nature as vibrations of tiny supersymmetric strings. The idea of taking fundamental particles as vibration modes of one-dimensional string objects plays an essential role in these theories. The fast accelerated expansion of the universe in the period of inflation can be attributed to the stretch of such cosmic strings that penetrated everywhere in our observed universe [29]. A cloud of strings, an aggregation of one dimensional objects in a certain geometrical frame, was proposed by Letelier [30]. The gravitational effects of matter in the form of sting cloud are studied [30,31,32].

On the other side, when a control parameter such as temperature is changed in a thermodynamic system, the system may change to a different macroscopic state that is more stable, which this mutation is called phase transition. In a phase transition, a thermodynamic potential such as free energy becomes non-analytic. Although the AdS black holes in the radiation can remain stable in the heat stability, but at a certain critical temperature, there is a phase transition called Hawking–Page phase transition [33]. This phase transition is mainly observed in Einstein’s general relativity family such as Gauss–Bonnet gravity [34] and other theories like dilaton gravity [35], magnetic black brane [36], black Dp-branes and R-charged black holes with an IR Cutoff [37] and BTZ black hole [38]. There is also a resemblance between “small black hole/large black hole”(SBH/LBH) phase transition and the liquid–gas phase transition, that this critical behavior is called Van der Waals-like behavior. It can be seen that this behavior is commonly found in charged AdS black holes and in massive gravity theories, as well as the coupled theory with a cloud of strings [39,40,41,42,43,44].

Recently, the effects of a cloud of strings on the extended phase space of Einstein–Gauss–Bonnet AdS black hole is studied and the Van der Waals-like behavior in absence of the GB term is observed [45]. Also, in the previous work [1], we investigated the effects of the external string cloud on the Van der Waals like behavior of AdS-Schwarzschild black holes in massive gravity. With these explanation, in this paper, we study critical behavior of AdS Gauss–Bonnet massive black holes in the presence of external string cloud. One of the motivations of this study is to investigate the simultaneous effects of the massive, Gauss–Bonnet and cloud of strings terms on critical points and other is study the effect of each of these parameters on critical behavior by keeping the other two parameters in constant.

This paper is organized as follows. In Sect. 2, the solutions of AdS-GB black holes in dRGT massive gravity minimally coupled to a cloud of strings are introduced and the metric function and its diagrams in different modes are investigated. In Sect. 3, we examine the first law of thermodynamics of these black holes and employ extended phase space thermodynamics to explore critical points. Also, we study the behavior of system along the coexistence line by plotting isothermal curves in \(P - T\) diagrams. We then investigate the possibility of the Joule–Thomson effect in our model by drawing isenthalpic curves in \(T - P\) plan. In the following, the critical exponents are calculated in our model. The thermal stability of the solutions in canonical ensemble are studied in Sect. 4, and more, a search for critical behavior in extended phase space has been performed using heat capacity. Finally, in last section we will present our conclusions.

2 Black hole in GB-massive gravity minimally coupled to a cloud of strings

Let us start with an AdS GB-massive gravity in 5-dimensions in the presence of external string cloud. The action is as follows,

$$\begin{aligned} I= & {} - \frac{1}{{16\pi }}\int {d^5}x\sqrt{ - g} \left[ R - 2\Lambda + {\lambda _{gb}}{{{{\mathcal {L}}}}_{gb}}\right. \nonumber \\&\left. + {m^2}\sum \limits _{i = 1}^4 {{c_i}{{{\mathcal {U}}}_i}(g,f)} \right] + \int _\Sigma {{\mathrm{N}_\mathrm{{P}}}} \sqrt{ - \chi } d{\lambda ^0}d{\lambda ^1}, \end{aligned}$$
(2)

where R is the scalar curvature, \(\Lambda = {{ - 6} \over {{L^2}}}\) is cosmological constant with L as the cosmological constant scale, f is a fixed rank-2 symmetric tensor known as reference metric and m is the massive parameter. The last part called a Nambu-Goto action, in which \({\mathrm{N}_\mathrm{P}}\) is a positive quantity and is related to the tension of string, \(({\lambda ^0},{\lambda ^1})\) is a parametrization of the world sheet \(\Sigma \) and \( \chi \) is the determinant of the induced metric [46,47,48]

$$\begin{aligned} {\chi _{ab}} = {g_{\mu \nu }}\frac{{\partial {x^\mu }}}{{\partial {\lambda ^a}}}\frac{{\partial {x^\nu }}}{{\partial {\lambda ^b}}}. \end{aligned}$$
(3)

\(\mathcal {L}_{gb}\) is the Gauss–Bonnet term of gravity with \({\lambda _{gb}}\) its dimensionless coupling. \(\mathcal {L}_{gb}\) is given by

$$\begin{aligned} \mathcal {L}_{gb}=R^2-4R_{\mu \nu }R^{\mu \nu }+R_{\mu \nu \rho \sigma }R^{\mu \nu \rho \sigma }, \end{aligned}$$
(4)

where \({R_{\mu \nu }}\) and \({R_{\mu \nu \rho \sigma }}\) are Ricci and Riemann tensors respectively.

In massive term, \( c_i \)’s are constants and \( \mathcal {U}_i \)’s are symmetric polynomials of the eigenvalues of the \( 5\times 5 \) matrix \( \mathcal {K}^{\mu }_{\nu }=\sqrt{g^{\mu \alpha }f_{\alpha \nu }} \)

$$\begin{aligned}&\mathcal {U}_1=[\mathcal {K}],\nonumber \\&\mathcal {U}_2=[\mathcal {K}]^2-[\mathcal {K}^2],\nonumber \\&\mathcal {U}_3=[\mathcal {K}]^3-3[\mathcal {K}][\mathcal {K}^2]+2[\mathcal {K}^3],\nonumber \\&\mathcal {U}_4=[\mathcal {K}]^4-6[\mathcal {K}^2][\mathcal {K}]^2+8[\mathcal {K}^3][\mathcal {K}]+3[\mathcal {K}^2]^2-6[\mathcal {K}^4], \end{aligned}$$
(5)

the square root in \( \mathcal {K} \) means \((\sqrt{{\mathrm{A}}} )_\nu ^\mu (\sqrt{{\mathrm{A}}})_\lambda ^\nu = {\mathrm{A}}_\lambda ^\mu \) and the rectangular brackets denote traces.

A generalized version of \( f_{\mu \nu } \) was proposed in [49, 50] with the form \( f_{\mu \nu } = diag(0,0,c_0^2h_{ij})\), where \({h_{ij}} = {1 \over {{L^2}}}{\delta _{ij}}\). The values of \( \mathcal {U}_i \)’s are calculated as below,

$$\begin{aligned}&\mathcal {U}_1=\frac{3c_{0}}{r}, \quad \mathcal {U}_2=\frac{6c_0^2}{r^2}, \quad \mathcal {U}_3=\frac{6c_0^3}{r^3}, \quad \mathcal {U}_4=0. \end{aligned}$$

The energy–momentum tensor for a cloud of strings is given by

$$\begin{aligned} {\mathrm{T}^{\mu \nu }} = \rho {\Sigma ^{\mu \sigma }}\Sigma _\sigma ^\nu /\sqrt{ - \chi } , \end{aligned}$$
(6)

where \(\rho \) is the proper density of a string cloud and \(\Sigma _\nu ^\mu \) is the spacetime bivector

$$\begin{aligned} {\Sigma ^{\mu \nu }} = {\varepsilon ^{ab}}\frac{{\partial {x^\mu }}}{{\partial {\lambda ^a}}}\frac{{\partial {x^\nu }}}{{\partial {\lambda ^b}}}, \end{aligned}$$
(7)

in which \({\varepsilon ^{ab}}\) is Levi-Civita tensor.

Fig. 1
figure 1

\(f(r)- r\) for \(d\,=\,5\), \({L^2}\,=\, 6\), \({c_0}\, =\, 1\), \({c_1}\, =\, 0.6\), \({c_2}\, =\, -2\), \({c_3}\, =\, 0.5\), \({m_0}\, =\, 2\), and \(m \,=\, 2.1\); a a = 1, \({\lambda _{gb}}\, =\,1\), b a = 1, \({\lambda _{gb}}\, =\, 0.3\), c a=60, \({\lambda _{gb}} =1\), d a=60, \({\lambda _{gb}}\, =\,9\), e a=1, \({\lambda _{gb}} = -0.3\), and f a = 60, \({\lambda _{gb}} = -0.3\)

Conservation of the energy–momentum tensor, \({\nabla _\nu }{\mathrm{T}^{\mu \nu }} = 0\) results in,

$$\begin{aligned} {\partial _\mu }(\sqrt{ - g} \rho {\Sigma ^{\mu \sigma }}) = 0. \end{aligned}$$
(8)

The equation of motion is obtained by variation of the action with respect to the metric tensor \({g_{\mu \nu }}\)

$$\begin{aligned} {G_{\mu \nu }} + \Lambda {g_{\mu \nu }} + {\mathrm{H}_{\mu \nu }} + {m^2}{X_{\mu \nu }} = {\mathrm{T}_{\mu \nu }}, \end{aligned}$$
(9)

where \({G_{\mu \nu }}\) is the Einstein tensor, \({\mathrm{H}_{\mu \nu }}\) and \({X_{\mu \nu }}\) are

$$\begin{aligned} {\mathrm{H}_{\mu \nu }}= & {} - \frac{{{\lambda _{gb}}}}{2}\Bigg (8{R^{\rho \sigma }}{R_{\mu \rho \nu \sigma }} - 4R_\mu ^{\rho \sigma \lambda }{R_{\nu \rho \sigma \lambda }} \nonumber \\&- 4R{R_{\mu \nu }} + 8{R_{\mu \lambda }}R_\nu ^\lambda + {g_{\mu \nu }}{{{\mathcal {L}}}_{gb}}\Bigg ), \end{aligned}$$
(10)
$$\begin{aligned} {X_{\mu \nu }}= & {} - \frac{{{c_1}}}{2}(\mathcal {U}_1{g_{\mu \nu }} - {\mathcal {K} _{\mu \nu }}) - \frac{{{c_2}}}{2}( \mathcal {U}_2{g_{\mu \nu }} {-}2 \mathcal {U}_1{\mathcal {K} _{\mu \nu }} {+} 2\mathcal {K} _{\mu \nu }^2)\nonumber \\&- \frac{{{c_3}}}{2} \Bigg ( \mathcal {U}_3{g_{\mu \nu }} - 3 \mathcal {U}_2{\mathcal {K} _{\mu \nu }}\nonumber \\&+ 6 \mathcal {U}_1\mathcal {K} _{\mu \nu }^2 - 6\mathcal {K} _{\mu \nu }^3\Bigg ) - \frac{{{c_4}}}{2}\Bigg ( \mathcal {U}_4{g_{\mu \nu }} - 4 \mathcal {U}_3{\mathcal {K} _{\mu \nu }} \nonumber \\&+ 12 \mathcal {U}_2\mathcal {K} _{\mu \nu }^2 - 24 \mathcal {U}_1\mathcal {K} _{\mu \nu }^3 + 24\mathcal {K} _{\mu \nu }^4\Bigg ). \end{aligned}$$
(11)

We consider the following metric ansatz for a five-dimensional static spherically symmetric metric

$$\begin{aligned} d{s^2} = - f(r)d{t^2} + \frac{{d{r^2}}}{{f(r)}} + {r^2}{h_{ij}}d{x^i}d{x^j}. \end{aligned}$$
(12)

Inserting this ansatz into the Eq. (8) yields two solutions for f(r)

$$\begin{aligned}&{f_ \pm }(r) = k + \frac{{{r^2}}}{{4{\lambda _{gb}}}}\nonumber \\&\quad \left[ 1 \pm \sqrt{1 - 8{\lambda _{gb}}\left( \frac{1}{{{L^2}}} - \frac{{{b^4}}}{{{r^4}}} - \frac{{2a}}{{3{r^3}}}\right) - 8{m^2}{\lambda _{gb}}\left( \frac{{c_0^3{c_3}}}{{{r^3}}} + \frac{{c_0^2{c_2}}}{{{r^2}}} + \frac{{{c_0}{c_1}}}{{2r}} \right) } \right] ,\nonumber \\ \end{aligned}$$
(13)

in which \({b^4}\) is an integration constant and a is a real positive constant known as string cloud parameter. Since black hole should have an event horizon we pick up \({f_ - }(r)\). To calculate the radius of the event horizon, \( r_0 \), we set \({f_ - }( r_0) = 0\), so we have

$$\begin{aligned} {b^4} \equiv {m_0}= & {} r_0^4\left[ \frac{1}{{{L^2}}} - \frac{{2a}}{{3r_0^3}} + \frac{k}{{r_0^2}} + \frac{{2{\lambda _{gb}}{k^2}}}{{r_0^4}} \right. \nonumber \\&\left. + {m^2}\left( {\frac{{c_0^3{c_3}}}{{r_0^3}} + \frac{{c_0^2{c_2}}}{{r_0^2}} + \frac{{{c_0}{c_1}}}{{2{r_0}}}} \right) \right] , \end{aligned}$$
(14)

where \({m_0}\) is related to the total mass of the black hole with \(M = {{3{V_3}{m_0}} \over {16\pi }}\) where \({V_3} = {{4\pi } \over 3}\), is volume of the three dimensional unit sphere as plane or hyperbola.

To provide the estimated value for the dimensionless coupling coefficient associated with the GB-term, the well-defined constraint of the vacuum solution (\({b^4} = 0\), \(a = 0\) and \(m = 0\)) leads to \(0 \le {\lambda _{gb}} \le {{{L^2}} \over 8}\). Besides, the causality and positive requirement of the boundary energy density in holography requires that \( - 7.72 \le {\lambda _{gb}} \le 9.20\), [45], then we can estimate \(L \simeq 8.579044\) for maximum value of the cosmological constant scale in vacuum solution. However we see that if \(r \rightarrow 0\) then f(r) approaches k so there is no \(r = 0\) singularity in vacuum solution. Also in non-vacuum regime we observe that if \(r \rightarrow 0\) then f(r) approaches \(k - \sqrt{{{{m_0}} \over {2\lambda _{gb} }}}\), it means adding the Gauss–Bonnet term to the action causes the causal singularity to be removed.

In order to investigate the effects of cloud string parameter and GB parameter on the metric function of gravitational theory we plot \(f(r) - r\) diagrams in the following (Fig. 1). We observe that, due to the addition of the GB parameter, singularity is gone. By comparing the diagrams (a) and (b), we observe that in flat topology, the number of horizons decreases by decreasing the value of the GB parameter. It is also clear from the difference between the two diagrams (c) and (d) that the number of horizons increases with increasing GB parameter. Contrary to this, the comparison of the diagrams (a) and (c) shows that the increase of the string cloud parameter, in contrast to the GB parameter, has a decreasing role in the number of horizons. All in all, it can be said, the existence of a maximum of 3 roots in \(f(r) - r\) diagrams is obvious. It should be noted that in diagrams (a) through (d), the change in the parameters of \({\lambda _{gb}}\) and a, except for the effect on the number of horizons, does not have a significant effect on the metric function, especially on asymptotical behavior, but for the negative value for \({\lambda _{gb}}\), the diagrams (e) and (f) show that for radii less than a certain value, the metric function has no value and so is not defined. Also, for the negative values of \({\lambda _{gb}}\), the asymptotical behavior is different from that of the positive values of \({\lambda _{gb}}\).

3 Thermodynamics and critical behavior in the extended phase space

In this section, we first calculate the thermodynamic quantities of AdS black holes in GB-massive gravity minimally coupled to a cloud of strings in the extended phase space and we present the first law of thermodynamics and corresponding Smarr relation. Then we study the phase transition points and \(P - V\) criticality of these black holes. In extended phase space, the mass appears not only as an internal energy, but as an enthalpy of the thermodynamic system, as below

$$\begin{aligned} H= & {} M = \frac{1}{3}\pi Pr_0^4 - \frac{1}{6}a{r_0} + \frac{1}{4}kr_0^2 + \frac{1}{2}{k^2}\lambda _{gb} \nonumber \\&+ \frac{1}{4}{m^2}\left( {c_0^3{c_3}{r_0} + c_0^2{c_2}r_0^2 + {c_0}{c_1}r_0^3/2} \right) . \end{aligned}$$
(15)

The Hawking temperature of the black hole is obtained by applying the definition of surface gravity, is as follows

$$\begin{aligned} \begin{aligned} T&=\frac{{\mathrm{K} ({r_0})}}{{2\pi }}=\frac{1}{{2\pi }}\left[ {\frac{1}{{\sqrt{{g_{rr}}} }}\frac{d}{{dr}}\sqrt{ - {g_{tt}}} } \right] {|_{r = {r_0}}} = \frac{1}{{4\pi }}{\partial _r}f(r){|_{r = {r_0}}}\\&= \frac{{8\pi Pr_0^3 - a + 3k{r_0} + 3{m^2}(c_0^3{c_3}/2 + c_0^2{c_2}{r_0} + 3{c_0}{c_1}r_0^2/4)}}{{6\pi (r_0^2 + 4k\lambda _{gb} )}}. \end{aligned}\nonumber \\ \end{aligned}$$
(16)

The entropy of the black hole is given by using Wald’s formula

$$\begin{aligned} S = \int _0^{{r_0}} {\frac{1}{T}} \left( {\frac{{\partial M}}{{\partial {r_0}}}} \right) d{r_0} = \pi \left( {\frac{1}{3}r_0^3 + 4k\lambda _{gb} {r_0}} \right) , \end{aligned}$$
(17)

which clearly shows the correction of the area law with the GB-term for non-flat topology \((k \ne 0)\). It is also obvious that the entropy of a string cloud and massive term does not affect the black hole entropy.

With these definitions, one can obtain the first law of thermodynamics in extended phase space in the following form

$$\begin{aligned} dM= & {} TdS + VdP + Ad\lambda _{gb} + Bda + {C_1}d{c_1} \nonumber \\&+ {C_2}d{c_2} + {C_3}d{c_3}, \end{aligned}$$
(18)

with

$$\begin{aligned} V= & {} {\left( {\frac{{\partial M}}{{\partial P}}} \right) _{S,\lambda _{gb} ,a,{c_i}}} = \frac{1}{3}\pi r_0^4, \end{aligned}$$
(19)
$$\begin{aligned} A= & {} {\left( {\frac{{\partial M}}{{\partial \lambda _{gb} }}} \right) _{S,P,a,{c_i}}} = \frac{1}{2}{k^2}, \end{aligned}$$
(20)
$$\begin{aligned} B= & {} {\left( {\frac{{\partial M}}{{\partial a}}} \right) _{S,P,\lambda _{gb} ,{c_i}}} = - \frac{1}{6}{r_0}, \end{aligned}$$
(21)
$$\begin{aligned} {C_1}= & {} {\left( {\frac{{\partial M}}{{\partial {c_1}}}} \right) _{S,P,\lambda _{gb} ,a,{c_2},{c_3}}} = \frac{{{m^2}{c_0}{r_0^3}}}{8}, \end{aligned}$$
(22)
$$\begin{aligned} {C_2}= & {} {\left( {\frac{{\partial M}}{{\partial {c_2}}}} \right) _{S,P,\lambda _{gb} ,a,{c_1},{c_3}}} = \frac{{{m^2}c_0^2r_0^2}}{4}, \end{aligned}$$
(23)
$$\begin{aligned} {C_3}= & {} {\left( {\frac{{\partial M}}{{\partial {c_3}}}} \right) _{S,P,\lambda _{gb} ,a,{c_1},{c_2}}} = \frac{{{m^2}c_0^3{r_0}}}{4}, \end{aligned}$$
(24)

where V, conjugating thermodynamical variable corresponding to pressure is thermodynamical volume of the black hole and \(A,B,{C_i}\)’s represent for physical quantities conjugated to the parameters \({\lambda _{gb}},a\) and \({c_i}\)’s respectively. By a dimensional argument one can present the Smarr relation as

$$\begin{aligned} 2M = 3TS - 2VP + 2A{\lambda _{gb}} + Ba - {C_1}{c_1} + {C_3}{c_3}. \end{aligned}$$
(25)

We observe that the massive term \({c_2}\) has scaling weight 0 and it is constant in the metric function, so, does not appear in Smarr relation. By putting the thermodynamic quantities presented above in Smarr relation or directly from Eq. (16), we obtain the equation describes the state of the thermodynamic system in the extended phase space, called the equation of state

$$\begin{aligned} P= & {} \frac{3}{{4{r_0}}}\left[ {\left( {1 + \frac{{4k{\lambda _{gb}}}}{{r_0^2}}} \right) T - \frac{{3{m^2}{c_0}{c_1}}}{{8\pi }}} \right] \nonumber \\&- \frac{{3k + 3{m^2}c_0^2{c_2}}}{{8\pi r_0^2}} + \frac{{2a - 3{m^2}c_0^3{c_3}}}{{16\pi r_0^3}}. \end{aligned}$$
(26)

To investigate critical behavior, one can calculate critical values by using the inflection point properties, \({({{\partial P} \over {\partial {r_0}}})_T} = {({{{\partial ^2}P} \over {\partial {r_0}^2}})_T} = 0\), of the equation of state, as follow

$$\begin{aligned} {r_c}= & {} \frac{{(2a - 3{m^2}c_0^3{c_3} + 18k{\lambda _{gb}}{m^2}{c_0}{c_1} + \xi )}}{{4(k + {m^2}c_0^2{c_2})}},\nonumber \\ {T_c}= & {} \frac{1}{{64\vartheta }}\Bigg \{6a{c_0}{c_1}{m^2}\xi + 16kc_0^2{c_2}{m^2}\xi \nonumber \\&+16c_0^4{c_2}{m^4}\xi - 9c_0^4{c_1}{c_3}{m^4}\xi + 54k{\lambda _{gb}}c_0^2c_1^2{m^4}\xi \nonumber \\&+ 486k{\lambda _{gb}}c_0^2c_1^2{m^6}+ 288k{\lambda _{gb}}c_0^5{c_1}{c_2}{m^6}\nonumber \\&- 162k{\lambda _{gb}}c_0^5c_1^2{c_3}{m^6}- 162k{\lambda _{gb}}c_0^5c_1^2{c_3}{m^6} \nonumber \\&+486{k^2}\lambda _{gb}^2c_0^3c_1^3{m^6} + 108ak{\lambda _{gb}}c_0^2c_1^2{m^4}\nonumber \\&+288{k^2}{\lambda _{gb}}c_0^3{c_1}{c_2}{m^4}+ 108ak{\lambda _{gb}}c_0^2c_1^2{m^4}\nonumber \\&+ 288k{\lambda _{gb}}{c_0}{c_1}{m^2}{(k + c_0^2{c_2}{m^2})^2}- 48c_0^7{c_2}{c_3}{m^6}\nonumber \\&+ 48c_0^7{c_2}{c_3}{m^6} + 27c_0^7{c_1}c_3^2{m^6}\nonumber \\&- 18ac_0^4{c_1}{c_3}{m^4} - 48kc_0^5{c_2}{c_3}{m^4}\nonumber \\&- 18ac_0^4{c_1}{c_3}{m^4} + 96kc_0^5{c_2}{c_3}{m^4}\nonumber \\&+ 12{a^2}{c_0}{c_1}{m^2}+ 48{k^2}c_0^3{c_3}{m^2}\nonumber \\&- 32akc_0^2{c_2}{m^2}- 32a{k^2}\nonumber \\&+ 64kc_0^4{c_2}{m^4}{r_c} + 128{k^2}c_0^2{c_2}{m^2}{r_c}+ 64{k^3}{r_c}\Bigg \},\nonumber \\ {P_c}= & {} \frac{1}{{32\pi r_c^3}}\Bigg \{ \frac{{192\pi {T_c}r_c^3(k + c_0^2{c_2}{m^2})\psi }}{{{{(2a - 3c_0^3{c_3}{m^2} + 18k{\lambda _{gb}}{c_0}{c_1}{m^2} + \xi )}^3}}}\nonumber \\&+ 4a - 6c_0^3{c_3}{m^2} - 12\pi k{r_c}\nonumber \\&- 12\pi c_0^2{c_2}{m^2}{r_c} - 9\pi {c_0}{c_1}{m^2}r_c^2\Bigg \}, \end{aligned}$$
(27)

where

$$\begin{aligned} \xi= & {} \Bigg (4{a^2} - 12ac_0^3{c_3}{m^2} + 72ak{\lambda _{gb}}{c_0}{c_1}{m^2}\nonumber \\&+ 324{k^2}\lambda _{gb}^2c_0^2c_1^2{m^4} - 108k{\lambda _{gb}}c_0^4{c_1}{c_3}{m^4}\nonumber \\&+ 192k{\lambda _{gb}}{(k + c_0^2{c_2}{m^2})^2} + 9c_0^6c_3^2{m^4}{\Bigg )^{\frac{1}{2}}},\nonumber \\ \vartheta= & {} 2\pi kc_0^2{c_2}{m^2}r_c^2 + \pi c_0^4{c_2}{m^4}r_c^2\nonumber \\&+ \pi {k^2}r_c^2 + 24\pi {k^2}{\lambda _{gb}}c_0^2{c_2}{m^2}\nonumber \\&+ 12\pi k{\lambda _{gb}}c_0^4{c_2}{m^4}+12\pi {k^3}{\lambda _{gb}},\nonumber \\ \psi= & {} 4{a^2} - 12ac_0^3{c_3}{m^2} + 72ak{\lambda _{gb}}{c_0}{c_1}{m^2}\nonumber \\&+ (2a - 3c_0^3{c_3}{m^2}+ 18k{\lambda _{gb}}{c_0}{c_1}{m^2})\xi \nonumber \\&+ 9c_0^6c_3^2{m^4} - 108k{\lambda _{gb}}c_0^4{c_1}{c_3}{m^4}+ 162k{\lambda _{gb}}{c_0}{c_1}{m^4} \nonumber \\&+ 162{k^2}\lambda _{gb}^2c_0^2c_1^2{m^4}\nonumber \\&+ 96k{\lambda _{gb}}{(k + c_0^2{c_2}{m^2})^2} + 32{k^3}{\lambda _{gb}} \nonumber \\&+64{k^2}{\lambda _{gb}}c_0^2{c_2}{m^2} + 32k{\lambda _{gb}}c_0^4{c_2}{m^4}. \end{aligned}$$
(28)

\({r_c},{T_c}\) and \({P_c}\) are called horizon radius, temperature and pressure, respectively.

The other thermodynamic quantity that can be calculated in the extended phase space for the considered black hole, is the Gibbs free energy given as

$$\begin{aligned} G = M - TS = \frac{{\Gamma + 4k{\lambda _{gb}}\Delta }}{{r_0^2 + 4k{\lambda _{gb}}}}, \end{aligned}$$

with

$$\begin{aligned} \Gamma= & {} - \frac{\pi }{9}Pr_0^6 + \frac{1}{{12}}(k + c_0^2{c_2}{m^2})r_0^4 \nonumber \\&- \frac{1}{{18}}(2a - 3c_0^3{c_3}{m^2})r_0^3 + \frac{1}{2}{k^2}{\lambda _{gb}}r_0^2, \nonumber \\ \Delta= & {} - \pi Pr_0^4 - \frac{{{m^2}}}{4}({c_0}{c_1}r_0^3 + c_0^2{c_2}r_0^2) - \frac{1}{4}kr_0^2 + \frac{1}{2}{k^2}{\lambda _{gb}}.\nonumber \\ \end{aligned}$$
(29)

In a phase transition, always a thermodynamic potential such as Gibbs free energy becomes non-analytic(discontinuous). To further investigation of critical behavior and effects of GB, massive and cloud string parameters on the criticality, one can plot \(P - {r_0}\) and \(G - T\) diagrams (Figs. 234567) and observe Van der Waals-like behavior clearly. Various diagrams are based on the increase of the GB, massive and cloud string parameters. From \(P - {r_0}\) diagrams, it can be seen that by decreasing the value of the GB parameter and increasing massive parameter, Van der Waals-like behavior becomes more apparent. Also, the increase of the value of the cloud string parameter in comparison with the two above-mentioned parameters leads to a diminution of critical behavior. It can be shown that there is no critical behavior and phase transition for values greater than a critical value of the cloud string parameter, \({a_c}\), which satisfies the following condition

$$\begin{aligned}&{\left( { - \frac{1}{{27}}{\mathfrak {I}^3} + \frac{4}{3}\mathfrak {I}\aleph - \frac{1}{2}{\mathfrak {R}^2}} \right) ^2} - {\left( {\frac{1}{9}{\mathfrak {I}^2} + \frac{4}{3}\aleph } \right) ^3} > 0,\nonumber \\&\mathfrak {I}= \frac{1}{\Lambda }\left( {3k + 3{m^2}c_0^2{c_2} + 12k{\lambda _{gb}}\Lambda } \right) ,\nonumber \\&\mathfrak {R}= \frac{1}{\Lambda }\left( {3{m^2}c_0^3{c_3} - 2{a_c} - 18k{\lambda _{gb}}{m^2}{c_0}{c_1}} \right) ,\nonumber \\&\aleph = \frac{1}{\Lambda }\left( { - 12{m^2}c_0^2{c_2}k{\lambda _{gb}} - 12{k^2}{\lambda _{gb}}} \right) , \end{aligned}$$
(30)

that is, the above inequality holds for \(a \le {a_c}\).

In addition, the appearance of discontinuity and swallow tail in \(G - T\) diagrams corroborates critical behavior and the occurrence of phase transition. It is obvious that the incremental effect of the massive parameter on criticality is in contrast to the GB and cloud string parameters. In Fig. 5, an significant increase in the value of GB parameter has reduced the criticality, which is more evident in flat topology. In Fig. 6, we see that increasing the massive parameter from zero to a common value causes the emergence of criticality and phase transition. Finally, in Fig. 7, it can be seen that the increase in the value of the string cloud parameter exceeds the critical value, eliminates the criticality.

Fig. 2
figure 2

\(P- {r_0}\) for \(d=5\), \(T = 0.3\), \({c_0} = 1\), \({c_1} = -2\), \({c_2} = 3.75\), \({c_3} = -4\), \(a=1\), and \(m = 2.1\); a \({\lambda _{gb}} = 0.0001\), b \({\lambda _{gb}} = 0.1\), c \({\lambda _{gb}} = 0.5\)

Fig. 3
figure 3

\(P- {r_0}\) for \(d=5\), \(T = 0.3\), \({c_0} = 1\), \({c_1} = -2\), \({c_2} = 4\), \({c_3} = -4\), \(a=1\), and \({\lambda _{gb}} = 0.01\); a \(m = 0\), b \(m = 1\), c \(m = 3\)

Fig. 4
figure 4

\(P- {r_0}\) for \(d=5\), \(T = 0.05\), \({c_0} = 1\), \({c_1} = -2\), \({c_2} = 4\), \({c_3} = -4\), \({\lambda _{gb}} = 0.01\), and \(m = 1\) ; a \(a = 1\), b \(a = 6\), c \(a = 60\)

Fig. 5
figure 5

\(G- T\) for \(d=5\), \(P = 0.33\), \({c_0} = 1\), \({c_1} = -2\), \({c_2} = 4\), \({c_3} = 4\), \(a=1\), and \(m = 2.1\); a \({\lambda _{gb}} = 0.0001\), b \({\lambda _{gb}} = 0.01\), c \({\lambda _{gb}} =1\)

Fig. 6
figure 6

\(G- T\) for \(d=5\), \(P = 0.033\), \({c_0} = 1\), \({c_1} = -2\), \({c_2} = 4\), \({c_3} = -4\), \({\lambda _{gb}} = 0.0001\), and \(a=1\); a \(m = 0\), b \(m = 1\), c \(m = 2\)

Fig. 7
figure 7

\(G- T\) for \(d=5\), \(P = 0.033\), \({c_0} = 1\), \({c_1} = -2\), \({c_2} = 4\), \({c_3} = -4\), \({\lambda _{gb}} = 0.0001\), and \(m = 2.1\); a \(a= 1\), b \(a= 6\), c \(a= 60\)

So far we have only investigated the critical behavior of the system by fixing temperature. One can study the critical behavior of black hole temperature in \(P - {r_0}\) plane and investigate the effect of GB, massive and a cloud of strings parameters on that (Figs. 8910). We observe that when the temperature is above the critical value, a behavior similar to that of an ideal gas appears, which is referred to as the ideal gas phase transition. But for temperatures below the critical temperature, three branches are seen, representing small, medium, and large black holes. Except for the latter, which is unstable, the other two are stable and consistent with the Van der Waals liquid/gas phase transition. As we can see in Fig. 9, we find that for temperatures below the critical temperature, the pressure decreases with mass reduction being negative. Also, as seen in Fig. 10a, there exist a particular temperature for which we have \({{\partial P} \over {\partial {r_0}}} = P = 0\), similar to what we have seen in Van der Waals fluid before.

Fig. 8
figure 8

\(P- {r_0}\) for \(k=1\), \({c_0} = 1\), \({c_1} = -2\), \({c_2} = 3.75\), \({c_3} = -4\), \(a = 1\), and \(m = 2.1\) ; a \({\lambda _{gb}} = 0.0001\), b \({\lambda _{gb}} = 0.1\), c \({\lambda _{gb}} = 0.5\)

Fig. 9
figure 9

\(P- {r_0}\) for \(k=1\), \({c_0} = 1\), \({c_1} = -2\), \({c_2} = 4\), \({c_3} = -4\), \({\lambda _{gb}} = 0.0001\), and \(a = 1\) ; a \(m = 2.1\), b \(m = 1\), c \(m = 0\)

Fig. 10
figure 10

\(P- {r_0}\) for \(k=1\), \({c_0} = 1\), \({c_1} = -2\), \({c_2} = 4\), \({c_3} = -4\), \({\lambda _{gb}} = 0.0001\), and \(m = 2.1\) ; a \(a = 0.1\), b \(a = 6\), c \(a = 20\)

Another way to illustrate the phase transition is to use the \(P - T\) diagram for two different phases where the black hole phase transition is between the two so that both phases have the same Gibbs free energy. This phase transition is of the first order and occurs where two surfaces of Gibbs free energy intersect, known as coexistence line in \(P - T\) diagrams. At any point on this line, the following equations exist between the two phases mentioned,

$$\begin{aligned} {G_1} = {G_2}, {T_1} = {T_2}, 2T = {T_1} + {T_2}, \end{aligned}$$
(31)

where the indices 1 and 2 correspond to the two different phases of the black hole. The temperature equilibrium of these two phases indicates the isothermal phase transition. We plot equation of pressure with respect to temperature for some values of \({\lambda _{gb}}\), m and a parameters and we observe the effect of changing these parameters on \(P - T\) diagrams in Fig. 11. In this figure, p is the value of pressure per unit of critical pressure and \(\tau \) is the value of temperature per unit of critical temperature.

Fig. 11
figure 11

\(P- T\) for \(k=1\), \({c_0} = 1\), \({c_1} = -2\), \({c_2} = 3.75\), \({c_3} = -4\) ; a \(a = 1\), \(m = 2.1\) and \({\lambda _{gb}} = \{ 0.0001,0.1,0.5\} \), b \({\lambda _{gb}} = 0.0001\), \(a = 1\) and \(m = \{ 2.1,1,0\}\), c \({\lambda _{gb}} = 0.0001\), \(m = 2.1\) and \(a = \{ 0.1,6,20\} \)

In addition, plotting \(T- P\) diagrams and examining the behavior of the thermodynamic system would be helpful. This method reveals a process known as Joule–Thomson expansion, which describes the change in system temperature relative to pressure at a constant enthalpy. That means we will have a isenthalpic process that can display heating and cooling phases. To identify the phase of the system, we need to denote the Joule–Thomson coefficient as \({\mu _{JT}} = {({{\partial T} \over {\partial P}})_H}\). If \({\mu _{JT}} > 0\), it indicates the cooling process in which pressure decreases during the expansion and \({\mu _{JT}} < 0\) shows heating in which pressure increases. To plot the \(T-P\) curves and find the process type in our model, we use Eqs. (15) and (16) for different values of constant mass M (Fig. 12). As can be seen from the diagrams, our process has only one cooling phase and never enters a heating phase as shown in [51] which follows a heating-cooling process in a Joule–Thomson expansion.

Fig. 12
figure 12

\(T- P\) for \(k=1\), \({c_0} = 1\), \({c_1} = -2\), \({c_2} = 3.75\), \({c_3} = -4\), \(a = 1\), \(m = 2.1\) ; a \({\lambda _{gb}} = 0.5\) , b \({\lambda _{gb}} = 0.1\) and c \({\lambda _{gb}} = 0\)

Finally, we study the behavior of physical quantities near the critical point. In order to calculate the critical exponents characterizing the behavior of physical quantities in the vicinity of the critical point, it is advisable to use rescaled quantities \(\nu = {\upsilon \over {{\upsilon _c}}},\tau = {T \over {{T_c}}}\) and \( p = {P \over {{P_c}}}\) where \(\upsilon = {4 \over 3}{r_0}\) is specific volume. This simplification makes the equation of state (26) as follows

$$\begin{aligned} p= & {} \left( {\frac{{{T_c}}}{{{\upsilon _c}{P_c}}}} \right) \frac{\tau }{\nu } + \left( {\frac{{64k{\lambda _{gb}}{T_c}}}{{9\upsilon _c^3{P_c}}}} \right) \frac{\tau }{{{\nu ^3}}} - \left( {\frac{{3{m^2}{c_0}{c_1}}}{{8\pi {\upsilon _c}{P_c}}}} \right) \frac{1}{\nu }\nonumber \\&- \left( {\frac{{2(k + {m^2}c_0^2{c_2})}}{{3\pi \upsilon _c^2{P_c}}}} \right) \frac{1}{{{\nu ^2}}} + \left( {\frac{{4(2a - 3{m^2}c_0^3{c_3})}}{{27\pi \upsilon _c^3{P_c}}}} \right) \frac{1}{{{\nu ^3}}},\nonumber \\ \end{aligned}$$
(32)

where is called as law of corresponding state. We can now search for the thermodynamical behavior of the system near the critical points by redefining parameters \(t,\omega \)

$$\begin{aligned} \tau = 1 + t, \nu = 1 + \omega . \end{aligned}$$

That is, the \(\nu ,\tau \) and p parameters are expanded around one, so the law of corresponding state would be approximated as

$$\begin{aligned} p = 1 + \Theta t + \Phi t\omega + \Omega {\omega ^3} + \cdots \end{aligned}$$
(33)

where

(34)

To characterize the critical behavior near the critical point, one can introduce the critical exponents as [52]

$$\begin{aligned} {C_\upsilon } =&\, T\frac{{\partial S}}{{\partial T}}\left| {_\upsilon } \right. \propto {\left| t \right| ^{ - \alpha }},\nonumber \\ \eta =&\, {\upsilon _l} - {\upsilon _s} \propto {\left| t \right| ^\beta },\nonumber \\ {\kappa _T} =&\, - \frac{1}{\upsilon }\frac{{\partial \upsilon }}{{\partial P}}\left| {_T} \right. \propto {\left| t \right| ^{ - \gamma }},\nonumber \\&\left| {P - {P_c}} \right| \propto {\left| {\upsilon - {\upsilon _c}} \right| ^\delta }. \end{aligned}$$
(35)

As is clear from the above definitions, the exponents \(\alpha ,\beta ,\gamma \), and \(\delta \) describe the behavior of specific heat with fixed volume, the order parameter \(\eta \), the isothermal compressibility coefficient \({\kappa _T}\), and the critical isotherm, respectively. The subscripts l and s represent the large black hole and the small black hole, respectively, in the phase transition process.

The entropy S does not depend on the Hawking temperature T, so the specific heat at constant volume \({C_\upsilon }\) is equal to zero, consequently the corresponding critical exponent vanishes (\(\alpha = 0\)). To estimate the second exponent \(\beta \), one can evaluate \({\upsilon _l}\) and \({\upsilon _s}\) to calculate the order parameter. During the phase transition the pressure of the black hole keeps unchanged. It results that the large black hole pressure equals the small black hole pressure, \({p_l} = {p_s}\) for which

$$\begin{aligned} 1 + \Theta t + \Phi t{\omega _l} + \Omega \omega _l^3 = 1 + \Theta t + \Phi t{\omega _s} + \Omega \omega _s^3. \end{aligned}$$
(36)

On the other hand, from the Maxwell’s equal area law, one can further obtain

$$\begin{aligned} \int _{{\omega _l}}^{{\omega _s}} {\omega \frac{{dp}}{{d\omega }}} d\omega {=} 0 \rightarrow \Phi t(\omega _l^2 - \omega _s^2) {+} \frac{3}{2}\Omega (\omega _l^4 - \omega _s^4) = 0.\nonumber \\ \end{aligned}$$
(37)

With two above equations, one can get

$$\begin{aligned} {\omega _l} = - {\omega _s} = \sqrt{\frac{{ - \Phi t}}{\Omega }}. \end{aligned}$$
(38)

So the order parameter can be derived as

$$\begin{aligned} \eta = {\upsilon _l} - {\upsilon _s} = {\upsilon _c}({\omega _l} - {\omega _s}) = 2{\upsilon _c}{\omega _l} \propto \sqrt{ - t}, \end{aligned}$$
(39)

where this leads to the conclusion that \(\beta = {1 \over 2}\).

The isothermal compressibility can be estimated as follows

$$\begin{aligned} {\kappa _T} = - \frac{1}{{{\upsilon _c}(1 + \omega )}}\frac{{\partial \upsilon }}{{\partial \omega }}\frac{{\partial \omega }}{{\partial P}}\left| {_T} \right. \propto - \frac{1}{{\frac{{\partial p}}{{\partial \omega }}}}\left| {_{\omega = 0}} \right. = - \frac{1}{{\Phi t}}. \end{aligned}$$
(40)

From this one can conclude that \(\gamma = 1\). The critical isotherm is an isotherm process at critical temperature \(T = {T_c}\) or \(t = 0\). Then we can conclude that \(p - 1 = \Omega {\omega ^3}\) that leads to \(\delta = 3\). We see that, the values of critical exponents are independent of GB, massive and cloud string parameters. The critical exponents in our model are the same as those mentioned in other articles [52,53,54], and all the models reviewed have the same scaling laws.

Fig. 13
figure 13

\(T- {r_0}\) for \(d=5\), \(P = 0.33\), \({c_0} = 1\), \({c_1} = -2\), \({c_2} = 4\), \({c_3} = -4\), \({\lambda _{gb}} = 0.0001\), and \(a= 1\); a \(m = 0\), b \(m =1.5\), c \(m = 2.1\)

Fig. 14
figure 14

\(T- {r_0}\) for \(d=5\), \(P = 0.33\), \({c_0} = 1\), \({c_1} = -2\), \({c_2} = 4\), \({c_3} = -4\), \(m = 2.1\), and \(a= 1\); a \({\lambda _{gb}} = 1\), b \({\lambda _{gb}} = 0.01\), c \({\lambda _{gb}} = 0.001\)

Fig. 15
figure 15

\(T- {r_0}\) for \(d=5\), \(P = 0.33\), \({c_0} = 1\), \({c_1} = -2\), \({c_2} = 4\), \({c_3} = -4\), \(m = 2.1\), and \({\lambda _{gb}} = 0.0001\); a \(a= 0.1\), b \(a= 6\), c \(a= 60\)

Fig. 16
figure 16

\(C- {r_0}\) for \(d=5\), \(\Lambda = - 1\), \({c_0} = 1\), \({c_1} = -2\), \({c_2} = 4\), \({c_3} = -4\), \(m = 2.1\), and \(a= 1\); a \({\lambda _{gb}} = 1\), b \({\lambda _{gb}} = 0.1\), c \({\lambda _{gb}} = 0.01\)

Fig. 17
figure 17

\(C- {r_0}\) for \(d=5\), \(\Lambda = - 1\), \({c_0} = 1\), \({c_1} = -2\), \({c_2} = 4\), \({c_3} = -4\), \({\lambda _{gb}} = 0.1\), and \(a= 1\); a \(m = 0.05\), b \(m =1\), c \(m = 2\)

Fig. 18
figure 18

\(C- {r_0}\) for \(d=5\), \(\Lambda = - 1\), \({c_0} = 1\), \({c_1} = -2\), \({c_2} = 4\), \({c_3} = -4\), \(m = 2\), and \({\lambda _{gb}} = 0.1\); a \(a= 0.1\), b \(a= 20\), c \(a= 100\)

Fig. 19
figure 19

\(P- {r_0}\) for \(d=5\), \({c_0} = 1\), \({c_1} = -2\), \({c_2} = 4\), \({c_3} = -4\), \(a=1\), and \(m = 2\); a \({\lambda _{gb}} = 0.01\), b \({\lambda _{gb}} = 0.0001\), c \({\lambda _{gb}} =0 \)

4 Heat capacity in canonical ensemble vs in the extended phase space

In this section, we first study the stability of the black hole by using heat capacity in canonical ensemble. Then we investigate criticality in extended phase space by employing heat capacity. When the black hole heat capacity is positive, we say that the black hole is thermally stable. On the other side, an unstable black hole may turn into a stable state, which this transition is called phase transition. If we calculate the heat capacity of this black hole, using it, we can determine the type of phase transition. In this way, the presence of roots and divergence points for the heat capacity will represents the type one and the type two phase transition. When the heat capacity is in the form of a fraction, in order to obtain the roots, we set the numerator to zero and for calculation the divergence points, we set the denominator to zero.

The heat capacity is calculated as follows

$$\begin{aligned} C = \frac{{\partial M}}{{\partial T}} = T\left( {\frac{{\partial S}}{{\partial T}}} \right) = \frac{\Upsilon }{\Psi }, \end{aligned}$$

where

$$\begin{aligned} \Upsilon= & {} 6{\pi ^2}{(r_0^2 + 4k{\lambda _{gb}})^2}\left\{ - \Lambda r_0^3 + \frac{{9{c_0}{c_1}{m^2}}}{4}r_0^2 \right. \nonumber \\&\left. + 3(k + c_0^2{c_2}{m^2}){r_0} - a + \frac{3}{2}c_0^3{c_3}{m^2}\right\} , \nonumber \\ \Psi= & {} - \Lambda r_0^4 - 3( k + c_0^2{c_2}{m^2}\nonumber \\&+4k{\lambda _{gb}}\Lambda )r_0^2 + (2a - 3c_0^3{c_3}{m^2} \nonumber \\&+ 18k{\lambda _{gb}}{c_0}{c_1}{m^2}){r_0} + 12k{\lambda _{gb}}(k + c_0^2{c_2}{m^2}). \end{aligned}$$
(41)

It is carefully observed in these equations, since the GB parameter is coupled to the curvature factor, in flat topology, the behavior of heat capacity is independent of GB gravity. To check the black hole’s thermal stability, \(T - {r_0}\) and \(C - {r_0}\) diagrams are ploted (see Figs. 131415161718). For a region of the event horizon, which temperature is negative, the solution is non-physical, and we have removed it from \(T- {r_0}\) diagrams. It is observed that, for spherical (\(k= 1\)) and flat (\(k= 0\)) topologies, temperature have one root and for hyperbolic (\(k= -1\)) have two roots. If the radius of the black hole event horizon is called the size of the black hole, there will be a black hole with minimum size and non-zero entropy at zero temperature. As one can see, increasing the value of the massive parameter leads to the formation of extrema on the \(T - {r_0}\) diagrams, indicating type two phase transition (Fig. 13). It is also seen in Fig. 14 that the decrease of the GB parameter has a direct effect on the formation of type two phase transition. Finally, the increase of the string cloud parameter above the critical value results in the loss of the type two phase transition (Fig. 15).

It is observed clearly in Fig. 16 that, for spherical topology, with the decrease of the GB parameter, the black hole’s instability domain becomes larger. In Fig. 17, the \(C - {r_0}\) diagrams are ploted in three modes in terms of the massive parameter increase. For small values of massive parameter (Fig. 17a), there is no divergence points, ie, the massive term has a direct effect on the presence of type two phase transition. When the massive parameter increases sufficiently enough (Fig. 17b, c), the heat capacity has divergencies, indicating type two phase transition, ie, the black hole in these points changes the phase between stable and unstable states. As the massive parameter increases, the black hole’s instability domain extends. Finally, in Fig. 18, we observe that with the increase of the cloud string parameter, the black hole stability domain grows, as long as the string cloud parameter exceeds the critical value, the solutions become completely stable.

As mentioned earlier, to calculate the divergence points, we must denote the denominator of the fraction of the heat capacity equal to zero. In extended phase space, the critical values in which phase transition takes place are the same as divergencies in heat capacity. Therefore, as stated in reference [55], by substituting (1) in the denominator of the heat capacity and solving it with respect to pressure, the following relation is obtained

(42)

This equation obtained for pressure is different from Eq. (26) calculated for pressure which is called the equation of state. At the point(s) where this new relation is obtained for pressure, has a maximum(s), phase transition takes place. Indeed, instead of looking for the criticality using the equation of state, we can search for the maximums of the new relation obtained for the pressure from this method. According to the diagrams are plotted in Fig. 19, we can say that when \({\lambda _{gb}} \rightarrow 0\), the pressure has maximum and the phase transition takes place. Therefore, by using this method, one can calculate critical horizon radius and pressure without referring to the complex formulas given in the usual way.

5 Conclusion

In this paper, we have studied GB-massive black holes in the presence of external string cloud. It is observed that the solutions of the gravitational theory modified by GB term are protected from the causal singularity. It is worth noting that in all of the computed quantities throughout the paper, apart from the metric function, the GB parameter is coupled to the curvature factor, which means that in the case of flat topology \((k = 0)\), GB gravity has no effect. We observe that the first law of the black hole thermodynamics is modified because the black hole entropy gains a contribution from the GB term.

We also investigated the criticality and phase transition of the solution in the extended phase space by employing the equation of state. It is important to note that the massive parameter plays a crucial role in creating critical behavior. Also, when \({\lambda _{gb}} \rightarrow 0\), the criticality becomes more obvious. It was shown that, the effects of GB and massive parameters on criticality are opposite of each other. Also, the effect of the cloud string parameter on the criticality, like the effect of the GB parameter, is a decreasing effect. In other words, the cloud of strings coupling with the desired gravitational theory has a positive effect on the critical behavior of the theory’s solutions, provided that the value of the string cloud parameter does not exceed its critical value. That is, when the cloud string parameter becomes more than critical value, the solutions are completely stable and the phase transition disappears.

By studying critical behaviour of the black hole temperature, we conclude that when temperature is above the critical value, Van der Waals-like phase transition would be disappeared and an ideal gas-like behaviour recovers. We also plotted the coexistence line in \(P - T\) diagrams in which two phases are in equilibrium and Gibbs free energy and Hawking temperature keep unchanged during transition.

We investigated \(T - P\) diagrams to find out the sign of the Joule–Thomson coefficient. It is shown that the system has only one cooling phase and never enter to a heating phase, that is, the Joule–Thomson effect does not happen. Investigations on the critical exponents showed that the GB, massive and cloud string parameters do not affect them.

Then, we examined thermal stability of these black holes by calculating heat capacity. As expected, it was observed that, the effects of the above three parameters on stability was the opposite of their effects on the criticality. Finally, using the method mentioned in reference [55], showed that this method is much simpler than the usual method for investigating critical behavior.