1 Introduction

Traversable wormholes are throatlike geometrical structures which connect two separate and distinct regions of spacetimes and have no horizon or singularity. There are some hints in the paper of Flamm [1], to such spatial geometry. In 1935, Einstein and Rosen [2] firstly obtained the wormhole solutions as bridge model of a particle . The study of Lorentzian wormholes in the context of general relativity (GR) was stimulated by the significant paper of Morris and Thorne in 1988 [3, 4]. A fundamental ingredient in wormhole physics is the flaring-out condition of the throat, which in GR entails the violation of the NEC. Matter that violates the NEC is denoted exotic matter.

A very important challenge in wormhole scenarios is the establishment of standard energy conditions. In this regard, various methods have been proposed in the literature that deal with the issue of energy conditions within wormhole settings. Work along this line has been done in dynamical wormholes [5,6,7] and thin-shell wormholes [8], where the supporting matter is concentrated on the wormholes throat. In the context of modified theories of gravity, the presence of higher-order terms in curvature would allow for building thin-shell wormholes supported by ordinary matter [9,10,11]. Recently, many people try to build and study wormhole solutions within the framework of modified gravity for instance, wormhole solutions in BransDicke theory [12,13,14,15], Born–Infeld theory [16, 17], Einstein–Gauss–Bonnet theory [18, 19], Kaluza–Klein gravity [20, 21] and scalar–tensor gravity [22] and Einstein–Cartan theory [23,24,25].

In recent years, theories of modified gravity have been studied involving cosmological objects like black holes, gravastars, strange stars and wormholes. Such theories are able to explain accelerating expansion of the universe and also solve the dark matter problem [26,27,28]. A well-known theory of modified gravity is f(R) gravity which modifies GR by replacing the gravitational action R by an arbitary function f(R), where R is the Ricci scalar. These models can be demonstrated to cause acceleration [29,30,31,32,33,34,35]. It was found that higher-order curvature invariants can satisfy the energy conditions in f(R) gravity [36,37,38]. The power-law \(R^m\) gravity is also studied in [39, 40], the new static wormholes in f(R) theory using the non-commutative geometry are built in [41, 42] and the cosmological evolution of wormhole solutions is investigated in [43, 44]. Recently, the junction conditions in f(R) applied to the construction of thin-shell wormholes [45,46,47] and pure double layer bubbles [48]. The static wormhole geometries have also been theorized within curvature-matter coupling theories such as f(R, T) [49, 50].

Lorentzian wormhole solutions were also investigated in viable f(R) modified theories of gravity [51], which are consistent with observations of the solar system and cosmological evolution in [52,53,54,55,56,57]. These wormholes were found in specific f(R) models which are considered to reproduce realistic scenarios of cosmological evolution based on the accelerated expansion of the universe. it was shown that the WEC holds at the vicinity of the throat for certain ranges of the free parameters of the theory. These asymptotically flat solutions analysed with the simple choices of shape function which WEC is satisfied at a specific point in space.

A large class of static black hole solutions with non constant Ricci scalar and traversable wormholes with constant Ricci scalar have also investigated in the background of f(R) gravity [58, 59]. The existence of wormhole solutions in scalar–tensor and f(R) gravity was studied in [60, 61] and it was shown that static wormhole solutions in these theories can be obtained with matter respecting the WEC when the effective gravitational constant is negative (which means the anti-gravitational property of the solutions) in some regions of space.

In this work, our aim is to obtain the wormhole solutions with non constant Ricci scalar in the context of viable f(R) gravity. This paper is organized as follows: after this introduction, we will present the basic field equations of f(R) gravity . In Sec. III, we will derive the properties of wormholes solutions within the framework of f(R) gravity and discuss about the energy conditions. The final section is devoted to our concluding remarks.

2 f(R) gravity wormholes

The action of f(R) modified theories of gravity is given by

$$\begin{aligned} S=\frac{1}{2\kappa }\int d^4x\sqrt{-g}\,f(R)+\int d^4x\sqrt{-g}\,\mathcal{{L}}_m(g_{\mu \nu },\psi )\,, \end{aligned}$$
(1)

where \(\kappa =8\pi G\) and \(\mathcal{{L}}_m\) is the matter Lagrangian density, in which the matter field \(\psi \) is minimally coupled to the metric \(g_{\mu \nu }\). Throughout this work for notational simplicity we consider \(\kappa =1\). One can find the field equation by varying the action (1) with respect to metric \(g^{\mu \nu }\) as

$$\begin{aligned} FR_{\mu \nu }-\frac{1}{2}\,f\,g_{\mu \nu }-\nabla _\mu \nabla _\nu F+g_{\mu \nu }\Box F=T^m_{\mu \nu }, \end{aligned}$$
(2)

and the trace of the field equation

$$\begin{aligned} FR-2f+3\,\Box F=T, \end{aligned}$$
(3)

where \(F= df/dR\). Substituting the trace equation in (2) and re-organizing the terms, one can write the field equation as [62]

$$\begin{aligned} G_{\mu \nu }\equiv R_{\mu \nu }-\frac{1}{2}\,R\,g_{\mu \nu } =T^c_{\mu \nu }+\tilde{T}^{\,m}_{\mu \nu }\,. \end{aligned}$$
(4)

In the above, the two terms in the right hand side of the field equation are in the form

$$\begin{aligned} T^c_{\mu \nu }= & {} \frac{1}{F}\left[ \nabla _\mu \nabla _\nu F -\frac{1}{4}\,g_{\mu \nu }(RF+\Box F+T) \right] \,, \nonumber \\ \tilde{T}^{\,m}_{\mu \nu }= & {} T^{\,m}_{\mu \nu }/F \,. \end{aligned}$$
(5)
Fig. 1
figure 1

ac Show the asymptotically flat (\(c_1=0\)), asymptotically hyperbolic (\(c_1=-1\)) and asymptotically spherical (\(c_1=1\)) wormhole solutions respectively. Wormhole throat is chosen at \(r_0=1\), we also set \(n=4\) in these figures

In this background, we are going to study the static and spherically symmetric traversable wormholes which is given by the following metricFootnote 1

$$\begin{aligned} ds^2=-dt^2+\frac{dr^2}{1-b(r)/r}+r^2\,(d\theta ^2 +\sin ^2{\theta } \, d\phi ^2) \,. \end{aligned}$$
(6)

The Ricci scalar for the above wormhole geometry is

$$\begin{aligned} R=\frac{2\,b'(r)}{r^2}\,, \end{aligned}$$
(7)

where “ \('\) ” denotes derivative with respect to the radial coordinate r. As in [62] we choose the energy–momentum tensor of anisotropic distribution of matter

$$\begin{aligned} T_{\mu \nu }=(\rho +p_t)U_\mu \, U_\nu +p_t\, g_{\mu \nu }+(p_r-p_t)\,\chi _\mu \chi _\nu \,, \end{aligned}$$
(8)

where \(U^{\mu }\) is the four-velocity and \(\chi ^\mu =\sqrt{1-b(r)/r}\,\delta ^{\mu }_r\) is the unit spacelike vector in the radial direction. \(\rho (r)\) is the energy density and \(p_r(r),\,p_t(r)\) are radial and transverse pressure respectively, so the energy–momentum tensor takes to the form \(T^{\mu }_{\,\,\,\,\,\nu }=\mathrm{diag}[-\rho ,p_r,p_t,p_t]\,\). Thus the field equation (4) leads to the following relationships

$$\begin{aligned} \frac{b'}{r^2}= & {} \frac{\rho }{F}+\frac{H}{F}\,, \nonumber \\ -\frac{b}{r^3}= & {} \frac{p_r}{F}+\frac{1}{F}\bigg \{\bigg (1\!-\frac{b}{r}\bigg ) \bigg [F''\! -F'\frac{b'r-b}{2r^2(1-b/r)}\bigg ]\! -H\bigg \} , \nonumber \\ \frac{b\!-\!b'r}{2r^3}= & {} \frac{p_t}{F}+\frac{1}{F}\bigg [\bigg (1-\frac{b}{r}\bigg ) \frac{F'}{r} -H\bigg ] , \end{aligned}$$
(9)

where \(H(r)=\frac{1}{4}\,(FR+\Box F +T)\). By solving the above system, one finds the following expressions [62]

$$\begin{aligned} \rho= & {} \frac{Fb'}{r^2}\,, \end{aligned}$$
(10)
$$\begin{aligned} p_r= & {} -\frac{bF}{r^3}+\frac{F'}{2r^2}(b'r-b)-F''\bigg (1-\frac{b}{r}\bigg ) \,, \end{aligned}$$
(11)
$$\begin{aligned} p_t= & {} -\frac{F'}{r}\bigg (1-\frac{b}{r}\bigg )+\frac{F}{2r^3}(b-b'r)\,. \end{aligned}$$
(12)

We are interested in studying inhomogeneous spacetimes which merge smoothly to the cosmological background. Therefore, we may consider the Ricci scalar of the wormhole geometry as

$$\begin{aligned} R=6\,c_1+\frac{6\,c_2}{r^n}\,, \end{aligned}$$
(13)

where \(c_1,\, c_2\) and n are free parameters. In the following section we consider some choices for these free parameters and study the corresponding wormhole solutions in some different f(R) backgrounds.

3 Traversable wormhole solutions in f(R) models

We start this section by finding wormhole solutions with Ricci scalar in the form (13). Combining (7) and (13) one can find the shape function as

$$\begin{aligned} b(r)=r^3\left( c_1+\frac{3\,c_2}{3-n}\,r^{-n}\right) +c_3, \end{aligned}$$
(14)

where \(c_3\) is the integration constant. This wormhole solution by choosing \(c_2=0\) is obtained in [59]. In the following we set the integration constant to zero. The shape function b(r) for a wormhole solution, should satisfy the following conditions:

$$\begin{aligned}&{ i}) \quad \,\, b(r_0)=r_0\,,\nonumber \\&{ ii}) \quad \,\, b'(r_0)<1\,,\nonumber \\&{ iii}) \quad \,\, 1-\frac{b(r)}{r}>0\, . \end{aligned}$$
(15)

Inserting condition i), one can find \(c_2\) in terms of \(r_0,\,c_1\) and n; so it is possible to rewrite the shape function as

$$\begin{aligned} b(r)=\left[ \left( -r_0^{n}\,c_1+r_0^{n-2} \right) {r}^{3-n}+{c_1\,r^3} \right] \,. \end{aligned}$$
(16)

We consider the wormhole solutions with three values \(c_1=0,\pm 1\). The shape function for these values are depicted in Fig. 1. It is easy to check that in the case of \(c_1=0,-1\) the condition ii) in (15) is satisfied for \(n>2\) and in the case of \(c_1=1\) condition ii) is satisfied when \(n>2.4\) .

Setting the shape function into the form (16), one can write

$$\begin{aligned} \frac{b(r)}{r}=c_1\,r^2+(r_0^{n-2}-c_1\,r_0^n)r^{2-n}\,, \end{aligned}$$
(17)

note that due to the condition ii) we should insert \(n>2\) in the above, so the second term in (17) falls down at large r. Remembering the wormhole metric (6), one deduces that the wormhole solutions with \(c_1=-1,\,c_1=0\) and \(c_1=1\) at large r match the hyperbolic, flat and spherical FRW universe respectively, so we call them asymptotically flat (\(c_1=0\)), asymptotically hyperbolic (\(c_1=-1\)) and asymptotically spherical (\(c_1=1\)) wormhole solutions.

In the framework of Einstein gravity, the traversable wormhole geometry (6), violates the weak energy condition WEC1: \(\rho >0\) , WEC2: \(\rho +p_t>0\) , WEC3: \(\rho +p_r>0\)  and the null energy condition WEC2: \(\rho +p_t>0\) , WEC3: \(\rho +p_r>0\) . Substituting \(\rho , p_r\) and \(p_t\) given in (10)–(12) and the shape function (16), one can rewrite the requirements of WEC as

$$\begin{aligned}&\mathrm{WEC1:} \left[ 3c_1+(n-3)r^{-n}(c_1\,r_0^n-r_0^{n-2})\right] F>0\,,\nonumber \\&\mathrm{WEC2:}\,\frac{1}{2r}\big [F\big (24\,c_1r+(4-n)(r_0^{n-2}-6c_1r_0^n)r^{1-n}\big )\nonumber \\&\quad +2F'\left( c_1r^2-1+(r_0^{n-2}-6c_1r_0^n)r^{2-n}\right) \big ]>0,\nonumber \\&\mathrm{WEC3:}\,F\left[ 12c_1 -(n-2) \left( r_0^{n-2}-6c_1r_0^{n} \right) r^{-n}\right] \nonumber \\&\quad +\frac{1}{2} F'\left[ 12c_1r+ (6 c_1r_0^{n}- r_0^{n-2} ) \left( n-2 \right) {r}^{1-n}\right] \nonumber \\&\quad + F'' \left[ 6c_1r^2-1+ (r_0^{n-2}-6\,r_0^{n}c_1 ) \right] {r}^{2-n}>0, \end{aligned}$$
(18)

where \(F=df(R)/dR\) and “ \('\) ” denotes derivative with respect to the radial coordinate r.

Fig. 2
figure 2

\(F=df(R)/dR\) and weak energy condition requiements for a wormhole solution of the Tsujikawa model with \(n=5\) are depicted in a. It is obvious that \(F<0\), so the condition of wormhole nonexistence is violated. It is also clear that WEC is respected at the throat \(r_0\) and beyond it. In the blue region of b, \(F<0\) and (18) are simultaneously satisfied, so this region shows traversable asymptotically flat wormholes of the Tsujikawa model, that respect the WEC. In these figures we set \(\mu =1.02, R_*=0.1\) and \(r_0=25\)

The conditions of stability and absence of ghosts are discussed in [60, 61]. It is shown that in a scalar–tensor theory of gravity formulated in the Jordan frame with Lagrangian

$$\begin{aligned} L=\frac{1}{2}\left[ f(\phi )R+h(\phi )g^{\mu \nu }\phi _{, \mu } \phi _{, \nu }-2U(\phi )\right] +L_m\,, \end{aligned}$$
(19)

where f, h and U are arbitrary functions and \(L_m\) is the matter Lagrangian, there is no static wormhole solution that satisfy the null energy conditions when \(f(\phi )>0\) and \(f(\phi )\,h(\phi )+\frac{3}{2}\big (\frac{df}{d\phi }\big )^2>0\). In the case of f(R) theories of modified gravity \(h(\phi )=0\) and \(f(\phi )=F=df(R)/dR\) [61], so the above nonexistence theorem holds for

$$\begin{aligned} F=\frac{df(R)}{dR}>0\,, \qquad \frac{d^2 f(R)}{dR^2}\ne 0\,. \end{aligned}$$
(20)

In the following we consider the asymptotically flat (\(c_1=0\)), asymptotically hyperbolic (\(c_1=-1\)) and asymptotically spherical (\(c_1=1\)) wormhole solutions in the background of f(R) modified gravity. We are interested to the wormholes that respect the requirements of WEC, in the other word, we look for the solutions which satisfy (18), the conditions ii), iii) in (15) and violate the nonexistence theorem (20) simultaneouslyFootnote 2. Note that the regions where \(df(R)/dR < 0\) are anti-gravitational, in the sense that the effective gravitational constant is negative [60, 61].

3.1 The case of \(c_1=0\)

For a wormhole solution, as we mentioned above, the second term in (17) falls down at large r, therefore in the case of \(c_1=0\) the traversable wormhole solution (6) matches the flat FRW metric at large r. At this stage we consider such asymptotically flat wormholes in the background of some static f(R) gravity models. As we will see, the f(R) modified gravity wormhole solutions in many cases satisfy the null or weak energy condition.

1) The Tsujikawa model [63,64,65]

One of f(R) models which is consistent with cosmological and local gravity conditions, proposed by Tsujikawa. In this viable model, the f(R) considered as

$$\begin{aligned} f(R)=R-\mu R_* \tanh (\frac{R}{R_*})\,, \end{aligned}$$
(21)

where \(0.905<\mu <1\) and \(R_*\) is a free small positive parameter [63]. For this model one can easily finds \(F=1-\mu +\mu \tanh ^2(R/R_*)\). It is obvious that F takes positive values when \(\mu <1\), this means that by choosing \(\mu \) in the consistent range \(0.905<\mu <1\), due to (20), there is no static wormhole solution in this model that satisfy the NEC (and so WEC). However by taking \(\mu \) at the neighborhood of this range, one can find wormholes that respect WEC. In Fig. 2a we have depicted F in (20) and the requirements of WEC (18) for a solution with \(\mu =1.02\) and \(n=5\). It is obvious in this figure that \(F<0\) , therefore the condition of nonexistence theorem (20) is violated. The figure also shows that WEC is respected at the wormhole throat \(r_0\).

Fig. 3
figure 3

Setting \(n=2.8\) in a, we can see that \(df(R)/dR<0\) around the throat and the obtained wormhole solution of Hu–Sawicki model respect NEC at \(r_0\). The blue region in b corresponds to traversable asymptotically flat wormholes of the Hu–Sawicki model, which respect NEC. In these figures we set \(m=1, \mu =5\,, R_*=0.001\) and \(r_0=15\)

It is worth to mention that in this model, there is a 4-dimensional parameter space for the wormhole solutions which is made of \(\mu , R_*, r_0\) and n. Among these parameters, \(\mu , R_*\) are limited by the model [63], we also measure the radial distance r, in the unit of wormhole throat \(r_0\) (the WEC1,2,3 in Fig. 2a are depicted in term of \(r/r_0\)). Now we are going to find the parameter n in a manner that wormhole solutions respect WEC through the space. In the other word we search for regions in \(n-r/r_0\) diagram that (18) and conditions ii), iii) in (15) are satisfied and F in (20) takes a negative value simultaneously.

Fig. 4
figure 4

It is clear that \(df(R)/dR<0\) at the throat, but the wormhole solutions in Starobinsky model do not respect NEC at the throat \(r_0\). In this figures we set \(q=2, \lambda =0.98\,, R_*=0.01\) and \(r_0=15\)

Fig. 5
figure 5

a Shows that \(df(R)/dR<0\) and the NEC is satisfied at the throat for the wormhole solution of the Nojiri–Odintsov model with \(n=2.8\). According to b asymptoticly flat traversable wormholes in this model, respect NEC by choosing adequate values for n. In these figures we set \(m=2,\, a=2,\, b=20,\, c=20\) and \(r_0=1\)

Fig. 6
figure 6

The NEC for a wormhole solution in the case of Amendola–Gannouji–Polarski–Tsujikawa model is respected (a). In the blue part in b, traversable asymptoticly flat wormholes respect the NEC. In these figures we set \(\mu =5, R_*=0.01, p=0.5\) and \(r_0=3\)

Fig. 7
figure 7

Setting \(n=2.65\) in a we found a wormhole solution in the exponential gravity model that respect NEC. The blue region in b also shows that it is possible to find wormholes solutions in this model that respect NEC around the throat. In these figures we set \(\lambda =2, R_*=0.01\) and \(r_0=10\)

Fig. 8
figure 8

The blue region in a, c show the asymptotically spherical (hyperbolic) wormhole solutions of the Tsujikawa model that respect the NEC. b Which is depicted by setting \(n=4.5, r_0=1\), shows that \(F=df(R)/dR<0\) and the asymptotically spherical wormhole in this model respect NEC around the throat. d Demonstrates that for an asymptotically open wormhole with \(n=2.02, r_0=0.5\), NEC is respected around the throat. In these figures we set \(\mu =5, R_*=1\)

Figure 2b shows \(n-r/r_0\) diagram. The blue region in this figure corresponds to asymptotically flat traversable wormhole solutions in the background of (21), which respect the WEC. It is obvious that by choosing \(4<n<5.2\), the WEC is respected at the throat \(r_0\) and through the whole space outside that. Note that unlike the Einstein gravity, considering f(R) gravity model in the form (21), it is possible to find traversable wormhole solutions that respect the WEC at the throat and beyond that.

2) Hu–Sawicki model

The second f(R) model which satisfies both cosmological and local gravity constraints proposed by Hu and Sawicki [65, 66]. This model is in the form

$$\begin{aligned} f(R)=R-\mu R_* \frac{(R/R_*)^{2m}}{(R/R_*)^{2m}+1}\,, \end{aligned}$$
(22)

where \(m, R_*\) and \(\mu \) are positive parameters. It is shown in [63] that \(R_*\) takes a small positive value and for \(m=1\) one should insert \(\mu \ge 8\sqrt{3}/9\). Similar to the previous case, we are looking for the wormhole solutions of this f(R) model which respect the NEC or WEC. In Fig. 3a by setting \(\mu =5\) and \(n=2.8\), we have depicted F in (20) and WEC2,3 (18). It is clear from the figure that around the throat \(r_0\), \(F<0\) and WEC2,3 are positive, which means that this wormhole solution respect the null energy conditions.

Figure 3b shows the \(n-r/r_0\) diagram for this model. The blue zone in this figure is the region that \(F<0\), \(\mathrm{WEC2>0}\), \(\mathrm{WEC3>0}\) and ii), iii) in (15) are satisfied simultaneously. This means that traversable asymptotically flat wormhole solutions in this model respect the NEC around the throat \(r_0\) when \(2<n<3\) and by setting \(n\sim 2.8\) the NEC is respected at the throat.

3) The Starobinsky model [65, 67, 68]

Another viable modified f(R) gravity model that we consider, has three free parameters \(\lambda , R_*\) and q as:

$$\begin{aligned} f(R)=R+\lambda R_*\bigg [\bigg (1+\frac{R^2}{R_*^2}\bigg )^{-q}-1\bigg ], \end{aligned}$$
(23)

where \(0.944<\lambda <0.966\) for \(q=2\) according to [63] and \(R_*\) takes small positive values. Similar to the previous case, we are looking for the wormhole solutions of this f(R) model which respect the WEC (18). One can check that by choosing \(0.944<\lambda <0.966\), F in (20) takes positive values and there is no static wormhole solution in this model. However by taking \(\lambda \) at the neighborhood of this range, it is possible to obtain negative values for F. In Fig. 4a we draw F and (18) by choosing \(\lambda =0.98, n=2.5\). It is clear that by this choice, F is negative at the throat however the null (and so weak) energy condition is violated at the wormhole throat.

We also tried – by varying the parameter n – to find wormhole solutions that respect NEC, but there is no region in \(n-r/r_0\) diagram that \(F<0\) and the NEC is satisfied simultaneously (the \(n-r/r_0\) diagram is blank). In the other words, our results show that there is no asymptotically flat wormhole in this model that respect the NEC.

4) Nojiri–Odintsov model [69]

Another viable f(R) model suggests that

$$\begin{aligned} f(R)=R+\frac{R^m\big (aR^m-b\big )}{1+cR^m}\,, \end{aligned}$$
(24)

where \(m\ge 2\) and ab and c are free positive parameters which satisfy the condition \(bc>>a\). Setting \(m=2,\, a=2,\, b=20,\, c=20\) and \(n=2.8\), we checked that \(F<0\) and WEC2, WEC3 are respected around the wormhole throat \(r_0\) (Fig. 5a). Figure 5b shows that the f(R) model (24) contains asymptoticly flat wormhole solutions with different values for the parameter n, that respect the null energy condition.

5) Amendola–Gannouji–Polarski–Tsujikawa model

In the fifth model that we consider, the f(R) is in the form [65, 70]

$$\begin{aligned} f(R)=R-\mu R_*(R/R_*)^p\,. \end{aligned}$$
(25)

This viable model contains three parameters \(0<p<1\), \(\mu >0\) and \(R_*\) which takes a small positive value. The same analysis by setting \(p=1/2,\,\mu =5\) and \(n=2.75\), shows that F in (20) becomes negative and the obtained wormhole solution satisfies NEC at the throat (Fig. 6a). It is also obvious in Fig. 6b that there are asymptoticly flat traversable wormhole solutions in this model which respect NEC outside the throat \(r_0\), if one choose adequate values for n.

6) Exponential gravity model [71, 72]

For the last model that we consider in this section, the f(R) is in the form

$$\begin{aligned} f(R)=R-\lambda R_*\left[ 1-\exp (-\frac{R}{R_*})\right] \,, \end{aligned}$$
(26)

where \(\lambda , R_*\) are free positive parameters of the model. Similar to the previous cases, one can find a wormhole in this model which respect NEC at the throat (Fig. 7a). In Fig. 7b the \(n-r/r_0\) diagram is depicted. It is clear that there is a little possibility for traversable asymptotically flat wormhole solutions in this model to satisfy the null energy conditions around the throat \(r_0\).

3.2 The cases of \(c_1\ne 0\)

We considered traversable wormhole solution as (6), where b(r) / r given by (17). Remember that the wormhole shape function b(r) satisfies the conditions in (15) which leads to \(n>2\) in the case of \(c_1=-1\) and \(n>2.4\) in the case of \(c_1=1\), therefore the second term in (17) falls down at large r. In this subsection we choose \(c_1=\pm 1\), for which the wormhole metric (6) at large r matches hyperbolic (\(c_1=-1\)) and spherical (\(c_1=1\)) FRW metric, so we call them asymptotically hyperbolic and asymptotically spherical wormhole solutions respectively. In the following we verify the null and weak energy condition for these asymptotically hyperbolic and spherical wormhole solutions in the background of static f(R) modified gravity models that we considered in the previous subsection.

Fig. 9
figure 9

Similar to the previous model, there are asymptotically spherical (a) and hyperbolic (c) wormholes in Hu–Sawicki model that respect the NEC. In b we draw F and WEC2,3 for an asymptoticly spherical solution with \(n=2.8\). d Also shows that an asymptoticly hyperbolic wormhole with \(n=2.5\), respect the NEC. In these figures we set the parameters as \(\mu =10, R_*=1, r_0=.5\)

Fig. 10
figure 10

In the case of Starobinsky model, a, b show F, WEC2,3 for the asymptotically hyperbolic and spherical wormhole solutions respectively. In both cases by fixing \(\lambda =1, R_*=1\) the \(F<0\) is satisfied around \(r_0\), however the NEC are violated. We set \(r_0=0.55, n=2.25\) in a and \(r_0=1.5, n=4\) in b

Fig. 11
figure 11

a Shows that the asymptoticly hyperbolic wormholes with \(n>2\) in the Nojiri–Odintsov model, respect the WEC almost through the whole space outside the throat \(r_0\). We have depicted WEC1,2,3 and F for an asymptotically hyperbolic wormhole with \(n=3.2\) in b. The asymptoticly spherical wormholes do not respect the NEC in this background (c). In a, b we set \(a=2,\, b=20,\, c=20\) and \(r_0=1\). c Is drawn by setting \(a=5,\, b=20,\, c=10\) and \(r_0=0.5\) 

1) The Tsujikawa model

For this model the f(R) is given in (21). We are interested in solutions for which F in (20) takes negative values, conditions ii), iii in (15) are satisfied and (18) are respected simultaneously. Figure 8a, c show the location of these asymptotically closed (\(c_1=1\)) and open (\(c_1=-1\)) wormhole solutions in the \(n-r/r_0\) diagram respectively. In Fig. 8b, d we have explicitly depicted F and requirements of the WEC for an asymptotically spherical (hyperbolic) wormhole solution with \(n=4.5\) (\(n=2.02\)). It is obvious that by choosing adequate values for the parameters, one can find traversable asymptotically closed and open wormhole solutions in this f(R) gravity model that respect NEC around the wormhole throat.

2) Hu–Sawicki model

The second model that we studied its wormhole solutions at the previous subsection was the Hu–Sawicki model with the f(R) in the form (22). We verify the NEC for asymptotically spherical and hyperbolic wormhole solutions of this model in Fig. 9a, c respectively. In the blue regions in these figures \(F=df(R)/dR\) becomes negative, ii), iii) of (15) are satisfied and (18) are respected simultaneously. We have plotted the NEC for an asymptotically spherical and hyperbolic wormhole solution in Fig. 9b, d respectively.Similar to the previous model, it is clear that by setting the parameters in adequate values, traversable asymptotically spherical and hyperbolic wormholes in this model respect the null energy condition around the throat \(r_0\).

Fig. 12
figure 12

The blue region in a corresponds to asymptoticly hyperbolic wormhole solutions that respect the NEC in Amendola-Gannouji-Polarski-Tsujikawa model. It is clear from b that \(F<0\) and NEC is respected around \(r_0\), for an asymptoticly hyperbolic wormhole with \(n=2.3\). In c by setting \(n=5\) we show an example for violation of the NEC in the case of asymptotically spherical wormholes in this model. We set the parameters as \(p=1/2\,, R_*=0.1, \mu =20, r_0=0.3\, (\mu =7, r_0=2)\) in a, b (c)

Fig. 13
figure 13

In the case of \(c_1=-1\), a shows the region that \(F<0\) and (18) are satisfied in blue. This means that the WEC is respected by the asymptotically hyperbolic wormhole solutions of the exponential gravity model, almost through the whole space outside the throat. In b we have plotted F and WEC1,2,3 for an asymptoticly hyperbolic wormhole with \(n=2.5\). In the case of \(c_1=1\), Fig (13.c) shows that the NEC is violated at the throat for a wormhole with \(n=4\). In these figures we set \(\lambda =2,\, R_*=0.1\) and \(r_0=1\)

3) The Starobinsky model

In the case of Starobinsky model which f(R) is given in (23), the \(df(R)/dR<0\) could be satisfied for both asymptotically spherical and hyperbolic solutions by choosing \(R_*\) and \(r_0\) appropriately, however the null energy condition is violated around the throat by these wormhole solutions (Fig. 10). In this model the \(n-r/r_0\) diagram is blank which means that there is no wormhole solution in this case which respect the NEC.

4) Nojiri–Odintsov model

Now we return to the Nojiri–Odintsov modified gravity model where the form of f(R) is given in (24). The \(n-r/r_0\) diagram for asymptotically hyperbolic (\(c_1=-1\)) solutions in this model by setting \(m=2\), is depicted in Fig. 11a. The blue zone in this diagram corresponds to the region that \(F<0\), ii), iii) of (15) and (18) are satisfied simultaneously. It is clear that the asymptoticly hyperbolic wormholes with \(n>2\) in this model, respect the WEC almost through the whole space outside the throat \(r_0\). In Fig. 11b we have drawn df(R) / dR and WEC1,2,3 explicitly for a wormhole solution with \(n=3.2\).

In the case of \(c_1=1\), it is possible to set the parameters in a manner that \(F<0\) is satisfied, however these asymptotically spherical wormhole solutions do not respect the NEC (see Fig. 11c for instance), in the other words, the \(n-r/r_0\) diagram in this case is blank.

5) Amendola–Gannouji–Polarski–Tsujikawa model

The f(R) in this model is given by (25). In the case of \(c_1=-1\) we check the NEC for wormhole solutions of this model in Fig. 12a which shows that it is possible to find asymptotically hyperbolic wormholes that respect NEC around the throat, by choosing appropriate parameters in this static model. In Fig. 12b we have explicitly drawn the NEC for a wormhole by setting \(n=2.3\).

In the case of \(c_1=1\) our results show that, like the previous model, there is no asymptoticly closed wormhole solution in this model which respect NEC (the \(n-r/r_0\) diagram is blank). As an example we have depicted \(F=df(R)/dR\) and WEC2,3 for a wormhole by setting \(n=5\) in Fig. 12c.

6) Exponential gravity model

For the last model that we considered in the previous subsection, the f(R) is given by (26). The same analysis shows that in the case of \(c_1=-1\), there are asymptotically hyperbolic wormhole solutions which respect the WEC almost through the whole space outside the wormhole throat (Fig. 13a, b). It is also possible in the case of \(c_1=1\), to find asymptoticly spherical wormhole solutions by choosing parameters in a manner that \(F<0\). However the NEC are violated by these wormholes as we can see in the Fig. 13c.

4 Conclusion

In this paper we considered wormhole solutions in the context of some f(R) modified gravity models. In the first step, by solving the field equations similar to [62], we found the energy density, radial and transverse pressure (10)–(12) of the solutions in terms of \(F=df(R)/dR\) and the shape function b(r). In the second step we considered the Ricci scalar of the wormhole solutions in the form (13) and reorganized the shape function into the form \(b(r)=\left[ \left( -r_0^{n}\,c_1+r_0^{n-2} \right) {r}^{3-n}+{c_1\,r^3} \right] \).

As the next step we inserted the physical conditions on b(r) and found that n must be greater than 2. This convey us to choose the values \(c_1=-1,0,+1\) for which the wormhole solution (6) at large radial coordinate r, matches the hyperbolic, flat and spherical FRW universe respectively (asymptotically hyperbolic, flat and spherical solutions). In the final step we chose six static f(R) modified gravity models and checked whether the null and weak energy conditions (18) hold for the wormhole solutions in the background of these f(R) models.

Our results show that by choosing adequate parameters, it is possible to find traversable asymptotically hyperbolic and flat wormhole solutions that respect NEC around the throat \(r_0\), in all these f(R) models except that the Starobinsky model. In the case of the Tsujikawa model, asymptoticly flat wormholes can also respect the weak energy condition through the whole space outside the throat. In the case of exponential gravity and Nojiri–Odintsov models, asymptoticly hyperbolic wormholes can respect WEC in the whole space outside the \(r_0\) too. We also found that asymptotically spherical wormhole solutions respect the NEC around \(r_0\) just in the Tsujikawa and Hu–Sawicki models. It is worth to mention that due to \(F=df(R)/dR<0\) for these wormhole solutions, the “remote mouths” would be located in anti-gravitational regions because of the effective gravitational constant is negative [60, 61].

As a final remark we emphasis that unlike the Einstein gravity, our results show that it is possible to find traversable wormhole solutions which respect the null and weak energy conditions in the background of some f(R) modified gravity models. This means that f(R) gravity in addition to its applications in cosmology, can be a useful framework in wormhole physics.