1 Introduction

The black hole (BH) is one of the celestial objects having such a strong gravitational pull that the nearby matter, even light, cannot escape from its gravitational field. There are different ways to detect BHs in binary systems and the centers of galaxies, as it cannot be observed directly. The detection of its effect on the nearby matter is the one way and the most promising is accretion. In astrophysics, accretion is defined as the inward flow of matter surrounding a compact object under the influence of the gravitational field. Recent developments in the study of quasar luminosity, the relationship among the masses of massive BHs, and the properties of their host galaxies motivated the idea of accretion onto BHs [1].

Like most of the substances in the universe, all accreting matter is in gaseous form. The problem of gas accretion by a star was first studied by Hoyle and Lyttleton [2] and later by Bondi and Hoyle [3]. Steady-state spherically symmetric accretion was considered in work by Bondi [4] in which a star was considered at rest at in infinite gas cloud. In his classical model, he studied the flow of a barotropic fluid in the context of Newtonian gravity. Michel [5] extended this work in the framework of general relativity by investigating steady-state spherically symmetric inflow of gas onto a Schwarzschild BH. Other important studies in this context are the luminosity and the frequency spectrum, the effect of a magnetic field on accreting ionized gases, and accretion onto a rotating BH [68]. Malec [9] investigated relativistic spherically symmetric accretion onto a BH with and without back reaction. He found that the relativistic effects raise the accretion mass in the absence of back reaction.

Shatskiy and Andreev [10] studied accretion onto a non-rotating compact object in a comoving frame and explored the dynamics of event horizon formation. Jamil et al. [11] analyzed the effect of phantom-like dark energy onto a Reissner–Nordström (RN) BH and found that accretion is possible only through the outer horizon. Jamil and Akbar [12] investigated accretion of exotic phantom energy onto a \((2+1)\)-dimensional Banados–Teitelboim–Zanelli (BTZ) BH and showed that mass accretion due to phantom energy is independent of the BH mass. Babichev et al. [13] described steady-state spherically symmetric accretion of a perfect fluid as well as a scalar field onto a RN BH and found the formation of a static atmosphere of fluid around a naked singularity. The same authors [14] studied accretion of a spherically symmetric metric with back reaction and showed that the metric is of the Vaidya form near the horizon using perturbation. de Freitas Pacheco [15] examined relativistic as well as non-relativistic accretion onto a RN BH using two equations of state (EOSs) and found that the accretion was slightly affected in the first case, while in the second case it reduced up to 60 % as compared to the schwarzschild BH (for the extreme RN case). Sharif and Abbas [16] investigated phantom accretion onto a magnetically stringy charged BH and found that the BH does not transform into an extremal BH or a naked singularity.

Recently, Park and Ricotti [17] studied the increase in luminosity and growth rates of BHs moving at a supersonic speed. Gaspari et al. [18] suggested that the cooling rates are tightly linked to the BH accretion rates (\({\dot{M}}_{\mathrm{BH}}\approx {\dot{M}}_{\mathrm{cool},\mathrm{core}}\)) in the galactic core. Karkowski and Malec [19] studied steady accretion onto a BH that is immersed in a cosmological universe and found that dark energy may halt this type of accretion. Babichev et al. [20] investigated the interaction of dark energy with a Schwarzschild as well as an RN BH and gave physical reasons of the decrease in mass due to the accretion of phantom energy. Ganguly et al. [21] examined the process of accretion on a 4-dimensional string cloud and found an increase in the accretion rate with respect to the string cloud parameter.

The study of gravity in a theory such as braneworld (which implies the existence of extra dimensions) has attracted many people in the last few decades. This theory is based on the fact that a (\(3+1\))-dimensional brane is embedded in a (\(4+n\))-dimensional spacetime with n compact spacelike dimensions [22]. It is suggested that in braneworld theory, the effects of quantum gravity can be observed in the laboratory at TeV energies. Also, these theories recommend that higher-dimensional BHs can be produced in large hadron colliders and cosmic ray experiments. With the development of higher-dimensional theories [23], it would thus be interesting to study BHs in higher dimensions.

Tangherlini [24] was the pioneer in the generalization of the Schwarzschild BH in higher dimensions. Dadhich et al. [25] found the first static spherically symmetric BH solution in higher dimensions in the context of the braneworld, which has the same structure as a 4-dimensional RN BH. The physics of higher-dimensional BHs is very different from and richer than in four dimensions [26]. Accretion in higher dimensions onto TeV-scale BHs was first studied by Giddings and Mangano [27] in a Newtonian background. Sharif and Abbas [28] investigated phantom energy accretion onto a 5-dimensional charged BH and found the validity of the cosmic censorship hypothesis. John et al. [29] examined steady-state accretion onto a higher-dimensional Schwarzschild BH and found a decrease in the accretion mass. Debnath [30] studied accretion onto a higher-dimensional charged BTZ BH assuming a modified Chaplygin gas as accreting matter and found that initially the BH mass increases and then decreases to a certain finite value for the phantom stage.

In this paper, we study steady-state accretion onto a D-dimensional RN BH using the technique of Michel [5] as well as Shapiro and Teukolsky [31]. The paper is organized as follows: in Sect. 2, we study analytic relativistic perfect fluid accretion onto an RN BH in higher dimensions. Section 3 investigates accretion on critical points. We also study critical accretion with a polytropic EOS and obtain expressions for gas compression and the temperature profile near horizon. Finally, we summarize and discuss the results in the last section.

2 General formalism for spherical accretion

In this section, we develop a general framework for accretion onto a higher-dimensional spacetime and study the laws of the conservation of mass and energy. The static spherically symmetric higher-dimensional RN BH is given by [32]

$$\begin{aligned} \mathrm{d}s^{2}=-f(r)\mathrm{d}t^{2}+f^{-1}(r)\mathrm{d}r^{2}+r^{2}(\mathrm{d}\Omega ^{2}_{D-2}), \end{aligned}$$
(1)

where D is the spacetime dimension and

$$\begin{aligned} \mathrm{d}\Omega ^{2}_{D-2}= & {} \mathrm{d}\theta ^{2}_{1}+\sin ^{2}\theta _{1}\mathrm{d}\theta ^{2}_{2}+ \sin ^{2}\theta _{1}\sin ^{2}\theta _{2}\mathrm{d}\theta ^{2}_{3}+\cdots \\&+\,\prod ^{D-3}_{\mu =1}\sin ^{2}\theta _{\mu }\mathrm{d}\theta ^{2}_{D-2} \end{aligned}$$

is the line element on a \((D-2)\)-dimensional unit sphere whose volume is

$$\begin{aligned} \Omega _{D-2}=\frac{2\pi ^{\frac{D-1}{2}}}{\Gamma (\frac{D-1}{2})}. \end{aligned}$$

The lapse function in terms of mass and charge parameters \(\mu \) and q is

$$\begin{aligned} f(r)=1-\frac{2\mu }{r^{D-3}}+\frac{q^{2}}{r^{2(D-3)}}, \end{aligned}$$

where \(\mu =\frac{8\pi GM}{(D-2)\Omega _{(D-2)}}\) and \({q=\sqrt{\frac{8 \pi G}{(D-2)(D-3)}}Q}\) are the ADM mass and charge, respectively. When \(q^{2}>\mu ^{2}\), this solution develops a singularity at \(r=0\), while for \(q^{2}\le \mu ^{2}\), f(r) has two real roots

$$\begin{aligned} r_{\pm }=\left( \mu \pm \mu \sqrt{1-\frac{q^{2}}{\mu ^{2}}}\right) ^{\frac{1}{(D-3)}}, \end{aligned}$$

where \(r_{+}\) is the outer horizon and \(r_{-}\) is the Cauchy horizon.

We consider steady-state inflow of gas onto a central mass of the BH in a radial direction. The gas is assumed to be a perfect fluid specified by the energy-momentum tensor

$$\begin{aligned} T^{\sigma \upsilon }=(\rho +p)u^{\sigma }u^{\upsilon }+pg^{\sigma \upsilon }. \end{aligned}$$
(2)

Here p and \(\rho \) are the pressure and energy density of the fluid and \(u^{\sigma }=\frac{\mathrm{d}x^{\sigma }}{\mathrm{d}s}\) is the fluid D-velocity, which satisfies the normalization condition \(u^{\sigma }u_{\sigma }=-1\). We also define the baryon number flux \(J^{\sigma }=nu^{\sigma }\), where n is the proper baryon number density. The accretion process depends upon the two conservation laws. If no particles are created or destroyed then the particle number is conserved, i.e.,

$$\begin{aligned} \nabla _{\sigma }J^{\sigma }=\nabla _{\sigma }(nu^{\sigma })=0. \end{aligned}$$
(3)

The law of conservation of energy-momentum tensor gives

$$\begin{aligned} \nabla _{\sigma }T^{\sigma }_{\upsilon }=0. \end{aligned}$$
(4)

The non-zero components of the D-velocity are \(u^{0}=\frac{\mathrm{d}t}{\mathrm{d}s}\) and \(\nu (r)=u^{1}=\frac{\mathrm{d}r}{\mathrm{d}s}\). Using \(u^{\sigma }u_{\sigma }=-1\), we have

$$\begin{aligned} u^{0}=\frac{(\nu ^{2}+1-\frac{2\mu }{r^{D-3}}+\frac{q^{2}}{r^{2(D-3)}})^{\frac{1}{2}}}{1-\frac{2\mu }{r^{D-3}}+\frac{q^{2}}{r^{2(D-3)}}}. \end{aligned}$$

For a D-dimensional RN BH, Eq. (3) takes the form

$$\begin{aligned} \frac{1}{r^{D-2}}\frac{\mathrm{d}}{\mathrm{d}r}(r^{D-2}n\nu )=0. \end{aligned}$$
(5)

The null and radial components of Eq. (4) can be written as

$$\begin{aligned}&\frac{1}{r^{D-2}}\frac{\mathrm{d}}{\mathrm{d}r}\left[ r^{D-2}\nu (\rho +p)\left( \nu ^{2}+1-\frac{2\mu }{r^{D-3}}\right. \right. \nonumber \\&\qquad \qquad \left. \left. +\, \frac{q^{2}}{r^{2(D-3)}}\right) ^{\frac{1}{2}}\right] =0, \end{aligned}$$
(6)
$$\begin{aligned}&\nu \frac{\mathrm{d}\nu }{\mathrm{d}r}=-\left[ \frac{\mathrm{d}p}{\mathrm{d}r} \left( \frac{\nu ^{2}+1-\frac{2\mu }{r^{D-3}}+ \frac{q^{2}}{r^{2(D-3)}}}{\rho +p}\right) \nonumber \right. \\&\qquad \qquad \left. \phantom {\frac{\mathrm{d}p}{\mathrm{d}r} \left( \frac{\nu ^{2}+1-\frac{2\mu }{r^{D-3}}+ \frac{q^{2}}{r^{2(D-3)}}}{\rho +p}\right) }+(D-3)\left( \frac{\mu }{r^{D-2}}-\frac{q^{2}}{r^{2D-5}}\right) \right] . \end{aligned}$$
(7)

For \(q=0\) and \(D=4\), the above equations reduce to the expressions for the Schwarzschild BH [5, 31].

3 Critical accretion

This section is devoted to the study of the solutions passing through critical points that describe the material falling into a BH with increasing velocity. The behavior of the falling fluid at critical points can express a variety of changes close to the compact objects. The speed of sound in the medium is also very important for a fluid as shown in the classical paper by Bondi [4]. We consider an adiabatic fluid for which there is no entropy production, hence the law of conservation of mass-energy is defined as [31]

$$\begin{aligned} T\mathrm{d}S=0=\mathrm{d}\left( \frac{\rho }{n}\right) +p\mathrm{d}\left( \frac{1}{n}\right) , \end{aligned}$$
(8)

where S is the entropy per baryon and T is the temperature. It may be written as \(\frac{\mathrm{d}\rho }{\mathrm{d}n}=\frac{\rho +p}{n}\), leading to the adiabatic sound speed \(\alpha \),

$$\begin{aligned} \alpha ^{2}\equiv \frac{\mathrm{d}p}{\mathrm{d}\rho }=\frac{n}{\rho +p}\frac{\mathrm{d}p}{\mathrm{d}\rho }. \end{aligned}$$
(9)

Using this equation, the baryon and energy-momentum conservation become

$$\begin{aligned} \frac{\nu '}{\nu }+ & {} \frac{n'}{n}+\frac{D-2}{r}=0,\end{aligned}$$
(10)
$$\begin{aligned} \nu \nu '+ & {} \alpha \frac{n'}{n} \left( 1-\frac{2\mu }{r^{D-3}}+\frac{q^{2}}{r^{2(D-3)}}+\nu ^{2}\right) \nonumber \\+ & {} (D-3) \left( \frac{\mu }{r^{D-2}}-\frac{q^{2}}{r^{2D-5}}\right) =0, \end{aligned}$$
(11)

where a prime denotes differentiation with respect to r. Using Eqs. (10) and (11), we obtain

$$\begin{aligned} \nu '=\frac{X_{1}}{X},\quad n'=\frac{X_{2}}{X}, \end{aligned}$$
(12)

where

$$\begin{aligned} X_{1}= & {} \frac{1}{n}\left[ \frac{\alpha (D-2)}{r}\left( \nu ^{2}+1- \frac{2\mu }{r^{D-3}}+\frac{q^{2}}{r^{2(D-3)}}\right) \nonumber \right. \\&\left. -\,(D-3) \left( \frac{\mu }{r^{D-2}}-\frac{q^{2}}{r^{2D-5}}\right) \right] ,\end{aligned}$$
(13)
$$\begin{aligned} X_{2}= & {} -\frac{1}{\nu }\left[ \frac{\nu ^{2}(D-2)}{r}-(D-3) \left( \frac{\mu }{r^{D-2}}-\frac{q^{2}}{r^{2D-5}}\right) \right] ,\nonumber \\ \end{aligned}$$
(14)
$$\begin{aligned} X= & {} \frac{\nu ^{2}-\alpha \left( \nu ^{2}+1-\frac{2\mu }{r^{D-3}}+ \frac{q^{2}}{r^{2(D-3)}}\right) }{\nu n}. \end{aligned}$$
(15)

For large values of r (\(r\rightarrow \infty \)), the flow satisfies \(\nu ^{2}\ll 1\) and is subsonic (\(\nu ^{2}<\alpha ^{2}\)), while the sound speed must be sub-luminal (\(\alpha ^{2}<1\)), thus Eq. (15) implies that

$$\begin{aligned} X\simeq \frac{\nu ^{2}-\alpha ^{2}}{\nu n}<0. \end{aligned}$$
(16)

At the event horizon, we have

$$\begin{aligned} X=\frac{\nu ^{2}(1-\alpha ^{2})}{\nu n}>0, \end{aligned}$$
(17)

under the causality constraint \(\alpha ^{2}<1\). It is mentioned here that Eq. (17) is possible only for the extreme RN case, i.e., for \(q=\mu \). From Eqs. (16) and (17), we see that X must pass through zero at \(r=r_{c}\). A flow with constant energy and entropy must be smooth at every point. Thus, if the denominator vanishes at some point, the numerator must also vanish at that point, so for a smooth flow we must have \(X_{1}=X_{2}=X=0\) at \(r=r_{c}\) [31]. From Eqs. (13)–(15), we obtain a relationship between the flow and the sound velocity:

$$\begin{aligned} \nu ^{2}_{c}=\frac{\alpha ^{2}_{c}\left( 1-\frac{q^{2}}{r^{2(D-3)}}\right) }{1+\alpha ^{2}_{c}\left( \frac{D-1}{D-3}\right) } =\frac{D-3}{D-2}\left( \frac{\mu }{r^{D-3}}-\frac{q^{2}}{r^{2(D-3)}}\right) ,\nonumber \\ \end{aligned}$$
(18)

where \(\nu _{c}\equiv \nu (r_{c})\) and \(\alpha _{c}\equiv \alpha (r_{c})\). In the absence of a charge parameter in four dimensions, the above relation is exactly the same as obtained in [29]. To determine the accretion rate \({\dot{M}}\), we integrate Eq. (5) over a \((D-1)\)-dimensional volume and multiply by the baryon mass, \(m_{b}\); it follows that

$$\begin{aligned} {\dot{M}}=\frac{2 \pi ^{\frac{D-1}{2}}}{\Gamma \left( \frac{D-1}{2}\right) } r^{D-2}m_{b}n\nu , \end{aligned}$$
(19)

where \({\dot{M}}\) is the constant of integration (independent of r, having dimension of mass per unit time), related to the mass accretion rate [4]. Equation (19) is the generalization of the Bondi accretion rate in higher dimensions. For \(q=0\) and \(D=4\), it reduces to the Schwarzschild case.

Following [20], Eqs. (5) and (6) lead to

$$\begin{aligned}&n\nu r^{D-2}=A,\end{aligned}$$
(20)
$$\begin{aligned}&\left( \frac{\rho +p}{n}\right) ^{2}\left( 1-\frac{2\mu }{r^{D-3}}+ \frac{q^{2}}{r^{2(D-3)}}\right) =\left( \frac{\rho _{\infty }+ p_{\infty }}{n_{\infty }}\right) ^{2},\nonumber \\ \end{aligned}$$
(21)

where A is the constant of integration. Differentiating Eqs. (20) and (21) and eliminating \(\mathrm{d}\rho \), we have

$$\begin{aligned} \frac{\mathrm{d}\nu }{\mathrm{d}r}=-\frac{\nu }{r}\frac{\left[ V^{2}-\frac{\nu ^{2}}{1-\frac{2\mu }{r^{D-3}}+\frac{q^{2}}{r^{2(D-3)}}+\nu ^{2}}\right] }{\left[ (D-2)V^{2}-\frac{(D-3)(\frac{\mu }{r^{D-3}}-\frac{q^{2}}{r^{2(D-3)}})}{1-\frac{2\mu }{r^{D-3}}+\frac{q^{2}}{r^{2(D-3)}}+\nu ^{2}}\right] }, \end{aligned}$$
(22)

where \(V^{2}\equiv \frac{\mathrm{d}ln(\rho +p)}{\mathrm{d}n}-1\), which is equal to the sound velocity \(\frac{\mathrm{d}p}{\mathrm{d}\rho }=\alpha ^{2}_{c}\). Equation (21) is the generalized Bernoulli equation in D dimensions for a charged BH. Equating numerator and denominator to zero, we obtain Eq. (18) and

$$\begin{aligned} V^{2}=\alpha ^{2}_{c}=\frac{(D-3)(\mu r^{D-3}-q^{2})}{(D-2)r^{2(D-3)}-(D-1)\mu r^{D-3}+q^{2}}. \end{aligned}$$
(23)

Equation (23) yields the critical radius:

$$\begin{aligned} r^{D-3}_{c}= & {} \frac{\mu \alpha ^{2}_{c}(D-1)+(D-3)}{2\alpha ^{2}_{c}(D-2)}\nonumber \\&\times \left[ 1\pm \left[ 1-\frac{4\alpha ^{2}_{c}(D-2) (D-3+\alpha ^{2}_{c})}{\alpha ^{2}_{c}(D-1)+(D-3)} \frac{q^{2}}{\mu ^{2}}\right] ^{\frac{1}{2}}\right] .\nonumber \\ \end{aligned}$$
(24)

This equation leads to two possible solutions for the critical radius corresponding to \(+\) and \(-\) signs. The first indicates the critical radius outside the event horizon, which is a physically acceptable solution. The second possibility shows the critical radius between inner and outer horizons [11]. In the present analysis, we are interested only in the first solution. In the limit \(D=4\), our results correspond to [15, 20].

3.1 Accretion with polytropic equation of state

The physical state of a homogeneous substance can be described by an EoS. In order to determine an explicit value of \({\dot{M}}\) as well as all the fundamental characteristics of the flow, Eqs. (19) and (21) must be analyzed using the EoS. We consider the polytropic EoS

$$\begin{aligned} p= k n^{\omega }, \end{aligned}$$
(25)

where k is a constant and \(\omega \) is an adiabatic index satisfying \(1<\omega <\frac{5}{3}\). Inserting Eq. (25) into (8) and integrating, we obtain

$$\begin{aligned} \rho = \frac{k}{\omega -1}n^\omega +m_{b}n, \end{aligned}$$
(26)

where \(m_{b}\) is the constant of integration obtained by comparing with the total energy density \(\rho =m_{b}n+\varepsilon \), \(m_{b}n\) is the rest mass-energy density and \(\varepsilon \) is the internal energy density. From Eqs. (25) and (26), we have

$$\begin{aligned} \omega k n^{\omega -1}=\frac{m_{b}\alpha ^{2}}{1-\frac{\alpha ^{2}}{\omega -1}}. \end{aligned}$$
(27)

When \(\frac{\alpha ^{2}}{\omega -1}\ll 1\), we have \(n\sim \alpha ^{\frac{2}{\omega -1}}\) [31], leading to

$$\begin{aligned} \frac{n_{c}}{n_{\infty }}\approx \left( \frac{\alpha _{c}}{\alpha _{\infty }}\right) ^{\frac{2}{\omega -1}}. \end{aligned}$$
(28)

Using Eqs. (25) and (26) in (21), it follows that

$$\begin{aligned}&\left( 1+\frac{\alpha ^{2}}{\omega -1-\alpha ^{2}}\right) ^{2} \left( 1-\frac{2\mu }{r^{D-3}}+\frac{q^{2}}{r^{2(D-3)}}+\nu ^{2}\right) \nonumber \\&\quad =\left( 1+\frac{\alpha ^{2}_{\infty }}{\omega -1-\alpha ^{2}_{\infty }}\right) ^{2}. \end{aligned}$$
(29)

At critical radius, using (18) and inverting Eq. (29), we obtain

$$\begin{aligned}&\left( 1-\frac{\alpha ^{2}_{c}}{\omega -1}\right) ^{2} \left( \frac{(D-3)+\alpha ^{2}_{c}(D-1)}{D-3}\right) \nonumber \\&\quad =\left( 1-\frac{\alpha ^{2}_{\infty }}{\omega -1}\right) ^{2}. \end{aligned}$$
(30)

For large values of r (\(r>r_{c}\)), the baryons are expected to be non-relativistic (\(T\ll mc^{2}/{\texttt {k}}=10^{13}{\texttt {K}}\)), where \({\texttt {k}}\) and \({\texttt {K}}\) are the Planck length and Kelvin, respectively. In this system, we must have \(\alpha \ll \alpha _{c}\ll 1\). Expanding Eq. (30), we obtain a relationship between the sound velocity at a critical point and the point at infinity:

$$\begin{aligned} \alpha ^{2}_{c}\approx \frac{2\alpha ^{2}_{\infty }(D-3)}{(3D-7)-\omega (D-1)}, \end{aligned}$$
(31)

which corresponds to [15] for \(D=4\). Using Eq. (31), the critical radius takes the form

$$\begin{aligned}&r^{D-3}_{c}\nonumber \\&\quad \approx \left[ 1+\left[ \frac{(8\alpha ^{2}_{\infty }(D-2)(D-3)) ((3D-7)-\omega (D-1)+2\alpha ^{2}_{\infty })}{(2\alpha ^{2}_{\infty }(D-1)-(2D-4))((2D-7)-\omega (D-1))} \frac{q^{2}}{\mu ^{2}}\right] ^\frac{1}{2}\right] \nonumber \\&\qquad \qquad \times \,\frac{\mu ((3D-7)-\omega (D-1))}{4\alpha ^{2}_{\infty }(D-2)(D-3)}. \end{aligned}$$
(32)

We evaluate the Bondi mass accretion rate \({\dot{M}}\) at the critical point from Eq. (19) as follows:

$$\begin{aligned} {\dot{M}}= & {} \frac{2\pi ^{\frac{D-1}{2}}}{\Gamma (\frac{D-1}{2})} r^{D-2}_{c}m_{b}n_{c}\nu _{c}\nonumber \\= & {} \frac{2\pi ^{\frac{D-1}{2}}}{\Gamma (\frac{D-1}{2})}\lambda _{c} \mu ^{\frac{D-2}{D-3}}m_{b}n_{\infty }\alpha ^{-(\frac{D-1}{D-3})}_{\infty }f(e), \end{aligned}$$
(33)

where

$$\begin{aligned} \lambda _{c}= & {} \left( \frac{D-3}{2}\right) ^{\frac{\omega +1}{2(\omega -1)}} \left( \frac{(3D-7)-\omega (D-1)}{4}\right) ^{\frac{7-3D+ \omega (D-1)}{2(D-3)(\omega -1)}}\nonumber \\&\times \,(D-2)^{\frac{2-D}{D-3}} \end{aligned}$$
(34)

is a dimensionless accretion parameter and

$$\begin{aligned}&f(e)\nonumber \\&\quad =\left[ 1+\left[ \frac{(8\alpha ^{2}_{\infty }(D-2)(D-3)) ((3D-7)-\omega (D-1)+2\alpha ^{2}_{\infty })e^{2}}{(2\alpha ^{2}_{\infty }(D-1)-(2D-4)) ((2D-7)-\omega (D-1))}\right] ^{\frac{D-1}{4(D-3)}}\right] \nonumber \\&\qquad \times \left[ 1-e^{2}\left[ \frac{(3D-7)- \omega (D-1)}{4(D-2)(D-3)\alpha ^{2}_{\infty }} \right. \right. \nonumber \\&\qquad \times \left. \left. \left[ 1+\left[ \frac{(8\alpha ^{2}_{\infty }(D-2)(D-3)) ((3D-7)-\omega (D-1)+2\alpha ^{2}_{\infty })e^{2}}{(2\alpha ^{2}_{\infty }(D-1)-(2D-4)) ((2D-7)-\omega (D-1))}\right] ^{\frac{1}{2}}\right] \right] ^{-1}\right] , \end{aligned}$$
(35)

here \(e=\frac{q^{2}}{\mu ^{2}}\). Re-writing Eq. (33) in terms of G and M, we have

$$\begin{aligned} {\dot{M}}= & {} \sqrt{\pi }\left[ 2^{\frac{4D-9}{D-3}}(D-2)^{-2(\frac{D-2}{D-3})} \left( \frac{D-1}{2}\right) ^{\frac{1}{D-3}}\right] \nonumber \\&\times \,(GM)^{\frac{D-2}{D-3}} m_{b}n_{\infty }\alpha ^{-(\frac{D-1}{D-3})}_{\infty } \left( \frac{D-3}{2}\right) ^{\frac{\omega +1}{2(\omega -1)}} \nonumber \\&\times \left[ \frac{3D-7-\omega (D-1)}{4}\right] ^{\frac{7-3D+ \omega (D-1)}{2(D-3)(\omega -1)}}f(e) \end{aligned}$$
(36)

and

$$\begin{aligned} f(e)= & {} \left[ \phantom {\left. \left. \frac{\pi ^{D-2}(D-2)Q^{2}}{2G(D-3) \left( \Gamma \left( \frac{D-1}{2}\right) ^{2}\right) } \right] ^{\frac{D-1}{4(D-3)}}\right] }1+\left[ \phantom {\left. \frac{\pi ^{D-2}(D-2)Q^{2}}{2G(D-3) \left( \Gamma \left( \frac{D-1}{2}\right) ^{2}\right) } \right] }\frac{(8\alpha ^{2}_{\infty }(D-2)(D-3)) ((3D-7)-\omega (D-1)+2\alpha ^{2}_{\infty })}{(2\alpha ^{2}_{\infty }(D-1)-(2D-4)) ((2D-7)-\omega (D-1))}\right. \right. \nonumber \\&\times \left. \left. \frac{\pi ^{D-2}(D-2)Q^{2}}{2G(D-3) \left( \Gamma \left( \frac{D-1}{2}\right) ^{2}\right) } \right] ^{\frac{D-1}{4(D-3)}}\right] \nonumber \\&\times \left[ \phantom {\left. \left. \left. \frac{\pi ^{D-2}(D-2)Q^{2}}{2G(D-3)\left( \Gamma \left( \frac{D-1}{2} \right) ^{2}\right) }\right] ^{\frac{1}{2}}\right] \right] ^{-1}}1-\frac{\pi ^{D-2}(D-2)Q^{2}}{2G(D-3) \left( \Gamma \left( \frac{D-1}{2}\right) ^{2}\right) }\left[ \phantom {\left. \left. \frac{\pi ^{D-2}(D-2)Q^{2}}{2G(D-3)\left( \Gamma \left( \frac{D-1}{2} \right) ^{2}\right) }\right] ^{\frac{1}{2}}\right] }\frac{(3D-7)- \omega (D-1)}{4(D-2)(D-3)\alpha ^{2}_{\infty }} \right. \right. \nonumber \\&\times \left. \left. \left. \left[ \phantom {\left. \frac{\pi ^{D-2}(D-2)Q^{2}}{2G(D-3)\left( \Gamma \left( \frac{D-1}{2} \right) ^{2}\right) }\right] ^{\frac{1}{2}}}1\right. +\left[ \phantom {\frac{\pi ^{D-2}(D-2)Q^{2}}{2G(D-3)\left( \Gamma \left( \frac{D-1}{2} \right) ^{2}\right) }} \frac{(8\alpha ^{2}_{\infty }(D-2)(D-3)) ((3D-7)-\omega (D-1)+2\alpha ^{2}_{\infty })}{(2\alpha ^{2}_{\infty }(D-1)-(2D-4)) ((2D-7)-\omega (D-1))} \right. \right. \right. \right. \nonumber \\&\times \left. \left. \left. \left. \frac{\pi ^{D-2}(D-2)Q^{2}}{2G(D-3)\left( \Gamma \left( \frac{D-1}{2} \right) ^{2}\right) }\right] ^{\frac{1}{2}}\right] \right] ^{-1}\right] . \end{aligned}$$
(37)

Equation (36) shows that the accretion rate in a charged background is modified by the term f(e). However, the mass accretion rate scales as \({\dot{M}}\sim M^{\frac{D-2}{D-3}}\), which corresponds to the Newtonian [4] as well as relativistic model [31] for \(e=0,~D=4\). For the standard values of the adiabatic index (\(1<\omega <\frac{5}{3}\)), different values of e and \(G=1,~M=M_{_{\bigodot }}=1.989\times 10^{33}~\hbox {g}\), \(m_{b}= 1.67\times 10^{-24}~\hbox {g}\), \(\alpha _{\infty }=10^{6}~\hbox {cm}~\hbox {s}^{-1}\), \(n_{\infty }=1~\hbox {cm}^{-3}\), the behavior of \(r_{c},~\lambda _{c}\) and \({\dot{M}}\) is given in Tables 1, 2, 3, 4, 5, 6, and 7. The graphical representation of \({\dot{M}}\) and \(\lambda _{c}\) is shown in Figs. 1 and 2. It is seen that the dimensions as well as charge parameter affect the rate of accretion. The accretion becomes slower as the dimension increases. The rate of accretion for small values of charge is higher as compared to large charge values. Thus \({\dot{M}}\) shows decreasing behavior for increasing dimensions as well as charge.

3.2 Asymptotic analysis

Here we estimate the flow parameters for \(r_{H}<r\ll r_{c}\) as well as \(r=r_{c}\). The gas passes through supersonic flow at distance below the Bondi radius, i.e., \(\nu >\alpha \) when \(r_{H}<r\ll r_{c}\). We find an upper bound of the radial dependence of the gas velocity [29, 31],

$$\begin{aligned} \nu ^{2}\approx \frac{2\mu }{r^{D-3}}-\frac{q^{2}}{r^{2(D-3)}}. \end{aligned}$$
(38)

The gas compression rate from Eqs. (19), (33), and (38) becomes

$$\begin{aligned} \frac{n(r)}{n_{\infty }}\approx \frac{\lambda _{c}}{\sqrt{2}}f(e) \left( \frac{\mu }{r^{D-3}\alpha ^{2}_{\infty }}\right) ^{\frac{D-1}{2(D-3)}} \left( 1-\frac{q^{2}}{4\mu r^{D-3}}\right) . \end{aligned}$$
(39)
Table 1 Accretion parameter \(\lambda _{c}\) for \(\omega =1.2,~\frac{4}{3},~1.6\)
Table 2 Critical radius \(r_{c}\) for \(\omega =1.1\) and \(e=0.2,~0.4,~0.67\)
Table 3 Critical radius \(r_{c}\) for \(\omega =\frac{4}{3}\) and \(e=0.2,~0.4,~0.67\)
Table 4 Critical radius \(r_{c}\) for \(\omega =1.6\) and \(e=0.2,0.4,0.67\)
Table 5 Accretion rate \({\dot{M}}\) for \(\omega =1.1\) and \(e=0.2,~0.4,~0.67\)
Table 6 Accretion rate \({\dot{M}}\) for \(\omega =\frac{4}{3}\) and \(e=0.2,~0.4,~0.67\)
Table 7 Accretion rate \({\dot{M}}\) for \(\omega =1.6\) and \(e=0.2,~0.4,~0.67\)

We consider a Maxwell–Boltzmann gas, \(P=nk_{\texttt {B}}T\). From Eqs. (25) and (39) we calculate the adiabatic temperature profile as

$$\begin{aligned} \frac{T(r)}{T_{\infty }}= & {} \frac{n(r)}{n_{\infty }}\nonumber \\\approx & {} \left[ \frac{\lambda _{c}}{\sqrt{2}}f(e) \left( \frac{\mu }{r^{D-3}\alpha ^{2}_{\infty }}\right) ^{\frac{D-1}{2(D-3)}} \left( 1-\frac{q^{2}}{4\mu r^{D-3}}\right) \right] ^{\omega -1},\nonumber \\ \end{aligned}$$
(40)
Fig. 1
figure 1

Plots of the accretion rate \({\dot{M}}\) as a function of \(D=4{-}11\) and \(\lambda _{c}\) for \(\omega =1.1,\) \(\frac{4}{3}\), 1.6 and \(e=0.2, 0.4, 0.64\)

Fig. 2
figure 2

Behavior of accretion parameter \(\lambda _{c}\) corresponding to \(D=4{-}11\) where red, blue and green curves indicate \(\omega =1.1,\frac{4}{3}\), and 1.6

at the event horizon \(r=r_{H}=[\mu (1+(1-e^{2})^{\frac{1}{2}})]^{\frac{1}{D-3}}\). Since the flow is supersonic below the Bondi radius, the flow velocity is still approximated by Eq. (38). At the event horizon, we have \(\nu _{H}=\nu ^{2}(r_{H})\approx \left( 1-\frac{e^{2}}{1+(1-e^{2})^{\frac{1}{2}}}\right) \frac{1}{1+(1-e^{2})^{\frac{1}{2}}}\). Using Eqs. (39) and (40), the gas compression rate and the adiabatic temperature profile at the event horizon take the following form:

$$\begin{aligned} \frac{n_{H}}{n_{\infty }}\approx & {} \frac{\lambda _{c}f(e)}{\sqrt{2}(1+(1-e^{2})^{\frac{D-1}{2(D-3)}})}\nonumber \\&\times \left( \frac{4(1+(1-e^{2})^{\frac{1}{2}})-e^{2}}{4(1+(1-e^{2})^{\frac{1}{2}})}\right) \left( \frac{c}{\alpha _{\infty }}\right) ^{\frac{D-1}{D-3}},\end{aligned}$$
(41)
$$\begin{aligned} \frac{T_{H}}{T_{\infty }}\approx & {} \left[ \frac{\lambda _{c}f(e)}{\sqrt{2}(1+(1-e^{2})^{\frac{D-1}{2(D-3)}})}\right. \nonumber \\&\times \left. \left( \frac{4(1+(1-e^{2})^{\frac{1}{2}})-e^{2}}{4(1+(1-e^{2})^{\frac{1}{2}})}\right) \left( \frac{c}{\alpha _{\infty }}\right) ^{\frac{D-1}{D-3}}\right] ^{\omega -1},\nonumber \\ \end{aligned}$$
(42)

where c is the speed of light. In the 4-dimensional case, when \(e=0\) the above expressions correspond to the spherical accretion onto a Schwarzschild BH [31].

4 Concluding remarks

It is believed that matter accreting onto a gravitating body is the source of a power supply in closed binary systems, galactic nuclei, and quasars [33]. There has been a growing interest to study theories which predict gravity in extra dimensions, such as string theories and braneworld cosmology. This paper provides the effect of steady-state spherically symmetric adiabatic accretion onto a charged D-dimensional BH and explores critical accretion following Michel [5] as well as Shapiro and Teukolsky [31]. The critical radius and mass accretion rate as well as the gas compression and temperature profile (below the critical radius and at the event horizon) are found. It turns out that the mass accretion rate depends upon the BH mass and dimensions. Also, \({\dot{M}}\) is modified by the term f(e), which continuously decreases as the dimension increases, and the accretion rate for large values of charge is less than that of small values. We observe that the accretion rate decreases gradually but the process is slower than the higher-dimensional Schwarzschild BH [29]. We conclude that the accretion rate of a charged BH slows down in higher dimensions. It is interesting to mention here that all our results for \(q=0\) and \(D=4\) correspond to the accretion rate of a Schwarzschild BH. This leads to the generalization of the results presented in [5, 31] in terms of the accretion onto a charged BH in higher dimensions.