1 Introduction

There has been great deal of interest in understanding the behavior of non-Newtonian fluids [1, 2]. Examples of such rheological complex fluids are blood plasma, chocolate, mustard mayonnaise, tooth paste, shampoo, food stuffs, mud, polymer melts, clay coatings, oils and greases, paints etc. These kinds of fluids offer special challenges to the engineers, modelers, mathematicians, and physicists. The study of non-Newtonian fluids is very important in view of its applications in various branches of engineering and technology, therefore the flow analysis of these fluids is very important in theory and practice. From a theoretical point of view, flows of this type are fundamental in fluid mechanics. Practically speaking, these flows have applications in many manufacturing processes in industry. Due to the great diversity in the physical structures of non-Newtonian fluids, it is not possible to establish a single constitutive equation. Thus, many non-Newtonian fluid models have been proposed of which most are empirical or semi-empirical. The equations of motion for non-Newtonian fluids are much more complicated and are of higher order than the Navier-Stokes equations. The solutions of most of the problems in the real world are usually even numerical, on computers. However, analytical solutions, even if they may not be accurate, can provide some penetrating insight into the physics of a problem which manages a maze of numbers crunched on a computer. For that reason, researchers still look for analytical solutions of the known and unknown problems, particularly the former, as they can act as a bench mark for the latter. Various analytical and numerical approaches/methods by a number of people with and without slip condition [326] have been done.

Different models are suggested to express the constitutive equations of non-Newtonian fluids. Amongst these fluid models, there is one known as Casson fluid which was originally introduced by Casson [27]. We can define a Casson fluid as a shear thinning liquid which is assumed to have infinite viscosity at zero rate of shear, and a yield stress below which no flow occurs and a zero viscosity at an infinite rate of shear. The non-linear Casson’s constitutive equation has been found to describe accurately the flow curves of suspensions of pigments in lithographic varnishes used for preparation of printing inks. In particular, the Casson fluid model describes the flow characteristics of blood more accurately at low shear rates and when it flows through small blood vessels [28]. Some famous examples of the Casson fluid include jelly, tomato sauce, honey, soup, and concentrated fruit juices etc. Many researchers [2938] studied the Casson fluid under different boundary conditions. Some find the solutions by using either approximate methods or numerical schemes and some find its exact analytical solutions. The solutions when the Casson fluids are in free convection flow with constant wall temperature are also determined. On the other hand the flow of the Casson fluid in the presence of heat transfer is also an important research area. Motivated by Khalid et al. [39] we focused on the unsteady flow of a Casson fluid past an oscillating vertical plate with constant wall temperature under the non-slip conditions. In the present paper, we extended the work of Khalid et al. by applying the slip condition at the boundary. Exact solutions are obtained by applying the Laplace transform technique and it is found that the results in the absence of slip are fully agreed with that of [39].

2 Statement of the problem

Let us consider the heat transfer effect on unsteady boundary layer flow in a Casson fluid past an infinite oscillating vertical plate fixed at \(y=0\), the flow being confined to \(y>0\), where y is the coordinate axis normal to the plate. Initially, for time \(t=0\), both plate and fluid are under stationary conditions with the temperature \(T_{\infty}\). At time \(t=0^{+}\), the plate started an oscillatory motion in its plane and slip is considered at the boundary.

At the same time, the heat transfer from the plate to the fluid is proportional to the local surface temperature T. We assume that the rheological equation for an isotropic and incompressible Casson fluid, reported by Casson [27], is

$$ \tau=\tau_{o}+\mu \dot{\sigma}, $$
(2.1)

or

$$\begin{aligned} \tau_{ij} =& \biggl\{ 2 \biggl(\mu_{B}+\frac{p_{y}}{\sqrt{2\pi}} \biggr)e_{ij}, \pi >\pi_{c} \biggr\} \\ =& \biggl\{ 2 \biggl(\mu_{B}+\frac{p_{y}}{\sqrt{2\pi_{c}}} \biggr)e_{ij}, \pi _{c}< \pi \biggr\} , \end{aligned}$$
(2.2)

where τ is the shear stress, \(\tau_{o}\) is the Casson yield stress, μ is the dynamic viscosity, σ̇ is the shear rate, \(\pi =e_{ij} e_{ij}\), and \(e_{ij}\) is the \((i, j)\)th component of the deformation rate, π is the product of the component of deformation rate with itself, \(\pi_{c}\) is a critical value of this product based on the non-Newtonian model, \(\mu_{B}\) the is plastic dynamic viscosity of the non-Newtonian fluid and \(p_{y}\) is the yield stress of the fluid. The velocity as well as the temperature are functions of y, t only.

Under the Boussinesq approximation along with the assumption that the pressure is uniform across the boundary layer, we get the following set of partial differential equations [39]:

$$\begin{aligned}& \frac{\partial u(y, t)}{\partial t}=\nu \biggl(1+\frac{1}{\gamma} \biggr) \frac{\partial u^{2}(y, t)}{\partial y^{2}}+g \beta(T-T_{\infty}), \end{aligned}$$
(2.3)
$$\begin{aligned}& \rho C_{p}\frac{\partial T(y, t)}{\partial t}=k \frac{\partial T^{2}(y, t)}{\partial y^{2}}, \end{aligned}$$
(2.4)

with the associated initial and boundary conditions

$$\begin{aligned}& u(y, 0)=0,\quad\quad T(y, 0)=T_{\infty},\quad y>0, \end{aligned}$$
(2.5)
$$\begin{aligned}& u(0, t)-\eta\frac{\partial u(0, t)}{\partial y}=U_{o} H(t)\cos(\omega t), \quad\quad T(0, t)=T_{w},\quad t>0, \end{aligned}$$
(2.6)
$$\begin{aligned}& u(y, t)\rightarrow0, \quad\quad T(y, t)\rightarrow T_{\infty},\quad \mbox{as } y \rightarrow \infty, t>0, \end{aligned}$$
(2.7)

where η is the slip parameter, \(C_{p}\) is the heat capacity at constant pressure, k is the thermal conductivity, ν is the kinematic viscosity, γ is the Casson fluid parameter, \(U_{o}\) is the amplitude of the motion, \(H(t)\) is the unit step function, ω is the frequency of plate oscillation, and β is the volumetric coefficient of thermal expansion. Introducing the following non-dimensional quantities:

$$ y^{\star}=\frac{y}{\nu/U_{o}},\quad\quad u^{\star}=\frac{u}{U_{o}},\quad\quad t^{\star}=\frac {t}{\nu/U_{o}^{2}},\quad\quad \theta^{\star}=\frac{T-T_{\infty}}{T_{w}-T_{\infty}},\quad\quad \omega ^{\ast}=\frac{\omega}{U_{o}^{2}/\nu}, $$
(2.8)

into equations (2.3)-(2.7), we obtain the following set of non-dimensional partial differential equations on dropping the sign of the star:

$$\begin{aligned}& \frac{\partial u(y, t)}{\partial t}= \biggl(1+\frac{1}{\gamma} \biggr) \frac{\partial u^{2}(y, t)}{\partial y^{2}}+\mathit{Gr} \theta(y, t), \end{aligned}$$
(2.9)
$$\begin{aligned}& \mathit{Pr}\frac{\partial T(y, t)}{\partial t}=\frac{\partial T^{2}(y, t)}{\partial y^{2}}. \end{aligned}$$
(2.10)

The corresponding initial and boundary conditions in dimensionless form are

$$\begin{aligned}& u(y, 0)=0,\quad\quad \theta(y, 0)=0,\quad \mbox{for all }y\geq0, \end{aligned}$$
(2.11)
$$\begin{aligned}& u(0, t)-\lambda\frac{\partial u(0, t)}{\partial y}=H(t)\cos(\omega t),\quad\quad \theta(0, t)=1,\quad t>0, \end{aligned}$$
(2.12)
$$\begin{aligned}& u(y, t)\rightarrow0, \quad\quad \theta(y, t)\rightarrow0, \quad\mbox{as } y\rightarrow \infty, t>0, \end{aligned}$$
(2.13)

where \(\lambda=\frac{\eta U_{o}}{\nu}\), \(\mathit{Gr}=\frac{\nu g \beta T_{\infty}}{U^{3}_{o}}\), and \(\mathit{Pr}=\frac{\mu C_{p}}{k}\), are the Grashof number and Prandtl number, respectively.

3 Solution of the problem

In order to solve the initial boundary value problem we will use the Laplace transform technique. Applying the Laplace transform to equations (2.9) and (2.10) together with (2.11)1,2 we have

$$\begin{aligned}& \biggl(1+\frac{1}{\gamma} \biggr) \frac{\partial^{2} \overline{u}(y, s)}{\partial y^{2}}-s\overline{u}(y, s)+\mathit{Gr} \overline{\theta}(y, s)=0, \end{aligned}$$
(3.1)
$$\begin{aligned}& \frac{\partial^{2} \overline{\theta}(y, s)}{\partial y^{2}}-\mathit{Pr} s\overline {\theta}(y, s)=0. \end{aligned}$$
(3.2)

The transformed boundary conditions are

$$\begin{aligned}& \overline{u}(0, s)-\lambda\frac{\partial\overline{u}(0, s)}{\partial y}=H(t)\frac{s}{s^{2}+1},\quad\quad \overline{ \theta}(0, s)=\frac{1}{s}, \end{aligned}$$
(3.3)
$$\begin{aligned}& \overline{u}(y, s)\rightarrow0, \quad\quad \overline{\theta}(y, s)\rightarrow0,\quad \mbox{as } y\rightarrow\infty, \end{aligned}$$
(3.4)

where \(\overline{u}(y, s)\) and \(\overline{\theta}(y, s)\) are the Laplace transforms of the functions \(u(y, t)\) and \(\theta(y, t)\), respectively. The solution of equations (3.1) and (3.2) in transformed form are subject to the conditions (3.3) and (3.4)

$$\begin{aligned}& \overline{u}(y, s)=H(t)\frac{s}{(s^{2}+1)(\lambda\sqrt{as}+1)}e^{-y\sqrt {as}}+\frac{b}{s^{2}} \biggl(\frac{\lambda\sqrt{\mathit{Pr} s}+1}{\lambda\sqrt {as}+1} \biggr)e^{-y\sqrt{as}}-\frac{b}{s^{2}}e^{-y\sqrt{\mathit{Pr} s}}, \end{aligned}$$
(3.5)
$$\begin{aligned}& \overline{\theta}(y, s)=\frac{1}{s}e^{-y\sqrt{\mathit{Pr} s}}, \end{aligned}$$
(3.6)

where \(a=\frac{\gamma}{1+\gamma}\) and \(b=\frac{-a\mathit{Gr}}{\mathit{Pr}-a}\), \(\mathit{Pr}\neq a\).

The solution of equation (3.6) is given by

$$ \theta(y, t)=\operatorname{erfc} \biggl(\frac{y\sqrt{\mathit{Pr}}}{2\sqrt{t}} \biggr), $$
(3.7)

and the heat transfer rate is

$$ \frac{\partial\theta(y, t)}{\partial y}\bigg|_{y=0}= -\sqrt{\frac{\mathit{Pr}}{\pi t}}. $$
(3.8)

Equation (3.5) can be written in simple form as

$$\begin{aligned} \overline{u}(y, s) =&H(t) \biggl[A_{11}\frac{\sqrt{s}}{s+i\omega}e^{-y\sqrt {as}}+A_{12} \frac{\sqrt{s}}{s-i\omega}e^{-y\sqrt{as}}+A_{13}\frac{\sqrt {s}}{s-d^{2}}e^{-y\sqrt{as}} \biggr] \\ &{}+H(t) \biggl[A_{14}\frac{1}{s+i\omega}e^{-y\sqrt{as}}+A_{15} \frac {1}{s-i\omega}e^{-y\sqrt{as}}+A_{16}\frac{1}{s-d^{2}}e^{-y\sqrt{as}} \biggr] \\ &{}+ \frac{b\sqrt{\mathit{Pr}}}{\sqrt{a}}\frac{1}{s^{2}(s-d^{2})}e^{-y\sqrt{as}}+\frac {\lambda b(\sqrt{a}-\sqrt{\mathit{Pr}})}{d^{2}} \frac{1}{s^{3/2}(s-d^{2})}e^{-y\sqrt{as}} \\ &{}-\frac{b}{d^{2}}\frac{1}{s^{2}(s-d)}e^{-y\sqrt{as}}-\frac {b}{s^{2}}e^{-y\sqrt{\mathit{Pr} s}}, \end{aligned}$$
(3.9)

where

$$\begin{aligned}& A_{11}=\frac{-dH(t)}{2(d^{2}+i\omega)},\quad\quad A_{12}=\frac{-dH(t)}{2(d^{2}-i\omega )},\quad\quad A_{13}=\frac{d^{3}H(t)}{d^{4}+\omega^{2}}, \\& A_{14}=\frac{d^{2}H(t)}{2(d^{2}+i\omega)},\quad\quad A_{15}=\frac {d^{2}H(t)}{2(d^{2}-i\omega)},\quad\quad A_{16}=\frac{-d^{4}H(t)}{d^{4}+\omega^{2}},\quad\quad d=\frac {1}{\lambda\sqrt{a}}. \end{aligned}$$

Now, use the Laplace transform method (Hetnarski (1975)) [40]. The inverse Laplace transform of equation (3.9) is given as

$$\begin{aligned} u(y, t) =&\frac{H(t)e^{-i\omega t}}{2} \biggl[K_{11}e^{-y\sqrt{-i\omega a}} \operatorname{erfc} \biggl( \frac{y}{2}\sqrt{\frac{a}{t}}-\sqrt{-i\omega t} \biggr) \\ &{}+K_{12}e^{-y\sqrt{-i\omega a}} \operatorname{erfc} \biggl(\frac{y}{2}\sqrt{ \frac{a}{t}}+ \sqrt{-i\omega t} \biggr) \biggr] \\ &{} +\frac{H(t)e^{i\omega t}}{2} \biggl[K_{21}e^{-y\sqrt{i\omega a}} \operatorname{erfc} \biggl(\frac{y}{2}\sqrt{\frac{a}{t}}-\sqrt{i\omega t} \biggr) \\ &{}+K_{22}e^{y\sqrt{i\omega a}} \operatorname{erfc} \biggl(\frac{y}{2}\sqrt{ \frac {a}{t}}+\sqrt{i\omega t} \biggr) \biggr] \\ &{}+\frac{H(t)e^{d^{2}t}}{2} \biggl[K_{31}e^{-y d \sqrt{ a}}\operatorname{erfc} \biggl( \frac {y}{2}\sqrt{\frac{a}{t}}-d\sqrt{t} \biggr) +K_{32}e^{y d \sqrt{ a}} \operatorname{erfc} \biggl(\frac{y}{2}\sqrt{\frac{a}{t}}+d\sqrt {t} \biggr) \biggr] \\ &{}+K_{41}\operatorname{erfc} \biggl(\frac{y}{2}\sqrt{\frac{a}{2}} \biggr)+K_{42}\sqrt{\frac {t}{\pi}}e^{\frac{-ay^{2}}{4t}} \\ &{}+b \biggl[ \biggl(t+\frac{ay^{2}}{2} \biggr)\operatorname{erfc} \biggl(\frac{y\sqrt{a}}{2\sqrt {t}} \biggr)-y \sqrt{a}\sqrt{\frac{t}{\pi}}e^{\frac{-ay^{2}}{4t}} \biggr] \\ &{}-b \biggl[ \biggl(t+\frac{\mathit{Pr}y^{2}}{2} \biggr)\operatorname{erfc} \biggl(\frac{y\sqrt {\mathit{Pr}}}{2\sqrt{t}} \biggr)-y\sqrt{\mathit{Pr}}\sqrt{\frac{t}{\pi}}e^{\frac {-\mathit{Pr}y^{2}}{4t}} \biggr], \end{aligned}$$
(3.10)

where \(K_{11}=\frac{d}{2(d+\sqrt{-i\omega})}\), \(K_{12}=\frac {d}{2(d-\sqrt{-i\omega})}\), \(K_{21}=\frac{d}{2(d+\sqrt{i\omega})}\), \(K_{22}=\frac{d}{2(d-\sqrt{i\omega})}\), \(K_{31}=\sqrt{\frac{\mathit{Pr}}{a}}\frac {b}{d^{2}}+\frac{\lambda b(\sqrt{a}-\sqrt{\mathit{Pr}})}{d^{5}}\), \(K_{32}=\sqrt {\frac{\mathit{Pr}}{a}}\frac{b}{d^{2}}-\frac{\lambda b(\sqrt{a}-\sqrt {\mathit{Pr}})}{d^{5}}-2\frac{d^{4}}{d^{4}+\omega^{2}}\), \(K_{41}=-\sqrt{\frac {\mathit{Pr}}{a}}\frac{b}{d^{2}}+\frac{\sqrt{a}\lambda b(\sqrt{a}-\sqrt {\mathit{Pr}})}{d^{4}}\), \(K_{42}=\frac{-2\lambda b(\sqrt{a}-\sqrt{\mathit{Pr}})}{d^{4}}\).

4 Limiting cases

4.1 Motion without slip when \(\eta\rightarrow0\), implies \(\lambda\rightarrow0\)

Making \(\eta\rightarrow0 \) in equation (3.10) we obtain similar solutions

$$\begin{aligned} u(y, t) =&\frac{H(t)e^{-i\omega t}}{4} \biggl[e^{-y\sqrt{-i\omega a}} \operatorname{erfc} \biggl( \frac{y}{2}\sqrt{\frac{a}{t}}-\sqrt{-i\omega t} \biggr) +e^{-y\sqrt{-i\omega a}} \operatorname{erfc} \biggl(\frac{y}{2}\sqrt{\frac{a}{t}}+\sqrt {-i\omega t} \biggr) \biggr] \\ &{}+\frac{H(t)e^{i\omega t}}{4} \biggl[e^{-y\sqrt{i\omega a}} \operatorname{erfc} \biggl(\frac{y}{2} \sqrt{\frac{a}{t}}-\sqrt{i\omega t} \biggr) +e^{y\sqrt{i\omega a}} \operatorname{erfc} \biggl( \frac{y}{2}\sqrt{\frac{a}{t}}+\sqrt {i\omega t} \biggr) \biggr] \\ &+b \biggl[ \biggl(t+\frac{ay^{2}}{2} \biggr)\operatorname{erfc} \biggl(\frac{y\sqrt{a}}{2\sqrt {t}} \biggr)-y\sqrt{a}\sqrt{\frac{t}{\pi}}e^{\frac{-ay^{2}}{4t}} \biggr] \\ &{}-b \biggl[ \biggl(t+\frac{\mathit{Pr}y^{2}}{2} \biggr)\operatorname{erfc} \biggl(\frac{y\sqrt{\mathit{Pr}}}{2\sqrt {t}} \biggr) -y\sqrt{\mathit{Pr}}\sqrt{\frac{t}{\pi}}e^{\frac{-\mathit{Pr}y^{2}}{4t}} \biggr], \end{aligned}$$
(4.1)

for the same motion without slip. The obtained solution (4.1) is identical to those with no slip condition obtained by Khalid et al. [39], equation (14), from the literature which validates our results. A graphical comparison of results given in equation (3.10) with the results in equation (4.1) is given in Figure 1. One can clearly observe from Figure 1 that our solutions (3.10) are identical to those obtained by Khalid et al. [39] as the slip parameter η approached zero both analytically and graphically. This also confirms the accuracy of our obtained results.

Figure 1
figure 1

Comparison of present results for velocity field \(\pmb{u(y,t)}\) given by equation ( 3.10 ) with those obtained by [ 33 ], equation (14), for \(\pmb{t=0.5}\) , \(\pmb{\mathit{Gr}=1.5}\) , \(\pmb{\mathit{Pr} = 1}\) , \(\pmb{\gamma=0.5}\) , \(\pmb{\omega = 0.1}\) .

4.2 Motion corresponding to viscous fluid with slip when \(\gamma \rightarrow\infty\)

By taking \(\gamma\rightarrow\infty\) in equation (3.10) the corresponding solutions for viscous fluid obtained as a special case:

$$\begin{aligned} u(y, t) =&\frac{H(t)e^{-i\omega t}}{2} \biggl[L_{11}e^{-y\sqrt{-i\omega}} \operatorname{erfc} \biggl( \frac{y}{2\sqrt{t}}-\sqrt{-i\omega t} \biggr) \\ &{}+L_{12}e^{-y\sqrt{-i\omega}} \operatorname{erfc} \biggl(\frac{y}{2\sqrt{t}}+\sqrt {-i\omega t} \biggr) \biggr] \\ &{}+\frac{H(t)e^{i\omega t}}{2} \biggl[L_{21}e^{-y\sqrt{i\omega}} \operatorname{erfc} \biggl( \frac{y}{2\sqrt{t}}-\sqrt{i\omega t} \biggr) +L_{22}e^{y\sqrt{i\omega}} \operatorname{erfc} \biggl(\frac{y}{2\sqrt{t}}+\sqrt{i\omega t} \biggr) \biggr] \\ &{} +\frac{H(t)e^{d^{2}_{1}t}}{2} \biggl[L_{31}e^{-y d_{1}} \operatorname{erfc} \biggl( \frac {y}{2\sqrt{t}}-d_{1}\sqrt{t} \biggr) +L_{32}e^{y d_{1}} \operatorname{erfc} \biggl(\frac{y}{2\sqrt{t}}+d_{1}\sqrt{t} \biggr) \biggr] \\ &{} +L_{41}\operatorname{erfc} \biggl(\frac{y}{2\sqrt{t}} \biggr)+L_{42}\sqrt{ \frac{t}{\pi }}e^{\frac{-y^{2}}{4t}} +b_{1} \biggl[ \biggl(t+ \frac{y^{2}}{2} \biggr)\operatorname{erfc} \biggl(\frac{y}{2\sqrt {t}} \biggr) -y\sqrt{ \frac{t}{\pi}}e^{\frac{-y^{2}}{4t}} \biggr] \\ &{}+b_{1} \biggl[ \biggl(t+\frac{\mathit{Pr}y^{2}}{2} \biggr)\operatorname{erfc} \biggl( \frac{y\sqrt {\mathit{Pr}}}{2\sqrt{t}} \biggr) -y\sqrt{\mathit{Pr}}\sqrt{\frac{t}{\pi}}e^{\frac{-\mathit{Pr}y^{2}}{4t}} \biggr], \end{aligned}$$
(4.2)

where \(L_{11}=\frac{d_{1}}{2(d_{1}+\sqrt{-i\omega})}\), \(L_{12}=\frac {d_{1}}{2(d_{1}-\sqrt{-i\omega})}\), \(L_{21}=\frac{d_{1}}{2(d_{1}+\sqrt{i\omega })}\), \(L_{22}=\frac{d_{1}}{2(d_{1}-\sqrt{i\omega})}\), \(L_{31}=\sqrt{\mathit{Pr}}\frac {b_{1}}{d^{2}_{1}}+\frac{\lambda b_{1}(1-\sqrt{\mathit{Pr}})}{d^{5}_{1}}\), \(L_{32}=\sqrt {\mathit{Pr}}\frac{b_{1}}{d^{2}_{1}}-\frac{\lambda b_{1}(1-\sqrt{\mathit{Pr}})}{d^{5}_{1}}\), \(L_{41}=-\sqrt{\mathit{Pr}}\frac{b_{1}}{d^{2}_{1}}+\frac{\lambda b_{1}(1-\sqrt {\mathit{Pr}})}{d^{4}_{1}}\), \(L_{42}=\frac{-2\lambda b_{1}(1-\sqrt{\mathit{Pr}})}{d^{4}_{1}}\), \(d_{1}=\frac{1}{\lambda}\), \(b_{1}=\frac{-\mathit{Gr}}{\mathit{Pr}-1}\), \(\mathit{Pr}\neq1\).

4.3 Motion corresponding to viscous fluid without slip when \(\lambda\rightarrow0\)

By taking \(\lambda\rightarrow0\) and \(L_{11}=\frac{1}{2}\), \(L_{12}=\frac {1}{2}\), \(L_{21}=\frac{1}{2}\), \(L_{22}=\frac{1}{2}\), \(L_{31}=0\), \(L_{32}=0\), \(L_{41}=0\), \(L_{42}=0\) in equation (4.2)

$$\begin{aligned} u(y, t) =&\frac{H(t)e^{-i\omega t}}{4} \biggl[e^{-y\sqrt{-i\omega}} \operatorname{erfc} \biggl( \frac{y}{2\sqrt{t}}-\sqrt{-i\omega t} \biggr) +e^{-y\sqrt{-i\omega}} \operatorname{erfc} \biggl( \frac{y}{2\sqrt{t}}+\sqrt{-i\omega t} \biggr) \biggr] \\ &{}+\frac{H(t)e^{i\omega t}}{4} \biggl[e^{-y\sqrt{i\omega}} \operatorname{erfc} \biggl(\frac {y}{2\sqrt{t}}- \sqrt{i\omega t} \biggr) +e^{y\sqrt{i\omega}} \operatorname{erfc} \biggl(\frac{y}{2\sqrt{t}}+\sqrt{i \omega t} \biggr) \biggr] \\ &{}+b_{1} \biggl[ \biggl(t+\frac{y^{2}}{2} \biggr)\operatorname{erfc} \biggl( \frac{y}{2\sqrt {t}} \biggr)-y\sqrt{\frac{t}{\pi}}e^{\frac{-y^{2}}{4t}} \biggr] \\ &{}+b_{1} \biggl[ \biggl(t+\frac{\mathit{Pr}y^{2}}{2} \biggr)\operatorname{erfc} \biggl( \frac{y\sqrt {\mathit{Pr}}}{2\sqrt{t}} \biggr) -y\sqrt{\mathit{Pr}}\sqrt{\frac{t}{\pi}}e^{\frac{-\mathit{Pr}y^{2}}{4t}} \biggr], \end{aligned}$$
(4.3)

the corresponding solution for viscous fluid in the absence of slip is in full agreement with [39], equation (21). The comparison of equations (4.2) and (4.3) is shown in Figure 2. It is found that our limiting solutions (4.2) and (4.3) are identical to \(\lambda\rightarrow0\) in equation (4.2). This confirms the accuracy of our obtained results.

Figure 2
figure 2

Comparison of present results for velocity field \(\pmb{u(y,t)}\) given by equation ( 4.1 ) with those obtained by [ 33 ], equation (21), for \(\pmb{t=0.5}\) , \(\pmb{\mathit{Gr}=1.5}\) , \(\pmb{\mathit{Pr} = 2}\) , \(\pmb{\gamma=0.5}\) , \(\pmb{\omega = 0.1}\) .

5 Graphical results and discussion

In this section, the obtained exact solutions are studied numerically and graphically in order to determine the effects of several involved parameters, such as the Prandtl number Pr, the Grashof number Gr, the Casson parameter γ, the phase angle ω, and the time t. For the sake of correctness and verification, we have compared our results with those Khalid et al. [39]. The comparison is shown in Figures 1 and 2. It is found that our limiting solutions (4.1) and (4.3) are identical to (14) and (21) obtained by Khalid et al. [39] This validates the correctness of our obtained solutions. In Figure 3, the influence of time t on the velocity profiles is shown. It is observed that the velocity is an increasing function of time t. In Figure 4, the velocity profiles for different values of Prandtl number Pr are shown, when the other parameters are fixed. It is observed that the velocity of the fluid increases with increasing Prandtl number. Figure 5 shows the profiles of velocity for different values of Gr. It is seen that the velocity decreases with increasing values of Gr. The influence of the Casson fluid parameter γ on the velocity profiles is shown in Figure 6. It is found that velocity decreases with increasing values of γ. It is important to note that an increase in the Casson parameter γ makes the velocity boundary layer thickness shorter. It is further observed from this graph that when the Casson parameter γ is large enough, that is, \(\gamma\rightarrow \infty\), the non-Newtonian behaviors disappear and the fluid purely behaves like a Newtonian fluid. Thus, the velocity boundary layer thickness for the Casson fluid is larger than the Newtonian fluid. It occurs because of plasticity of the Casson fluid. When the Casson parameter decreases, the plasticity of the fluid increases, which causes the increment in velocity boundary layer thickness. The influence of the slip parameter λ on velocity profiles is shown in Figure 7. It is found that velocity decreases with increasing values of λ. The graphical results for the phase angle, ω, are shown in Figure 8. It is observed that the fluid is oscillating between −1 and 1. This figure can easily help us to check the accuracy of our results. For illustration of such results we have concentrated more on the values of \(\omega t = 0, \pi/2 \mbox{ and } \pi\). we can see that, for these values of ωt, the velocity shows its values either 1, 0, or −1, which are identical with the imposed boundary conditions of velocity in (2.6). Hence, both the graphical and mathematical results are found in excellent agreement.

Figure 3
figure 3

Profiles of the velocity field \(\pmb{u(y,t)}\) given by equation ( 3.10 ) for \(\pmb{\mathit{Gr}=1.5}\) , \(\pmb{\mathit{Pr} = 1}\) , \(\pmb{\gamma=0.5}\) , \(\pmb{\omega = 0.1}\) , \(\pmb{{\lambda = 0.1}}\) , and different values of time.

Figure 4
figure 4

Profiles of the velocity field \(\pmb{u(y,t)}\) given by equation ( 3.10 ) for \(\pmb{t=1}\) , \(\pmb{\mathit{Gr} = 1}\) , \(\pmb{\gamma=0.5}\) , \(\pmb{\omega = 0.3}\) , \(\pmb{{\lambda = 0.2}}\) , and different values of Pr .

Figure 5
figure 5

Profiles of the velocity field \(\pmb{u(y,t)}\) given by equation ( 3.10 ) for \(\pmb{t=0.5}\) , \(\pmb{\mathit{Pr} = 0.7}\) , \(\pmb{\gamma=0.5 }\) , \(\pmb{\omega = 0.3}\) , \(\pmb{{\lambda = 0.2}}\) , and different values of Gr .

Figure 6
figure 6

Profiles of the velocity field \(\pmb{u(y,t)}\) given by equation ( 3.10 ) for \(\pmb{t=0.5}\) , \(\pmb{\mathit{Pr} = 0.7}\) , \(\pmb{\mathit{Gr}=0.3}\) , \(\pmb{\omega = 0.3}\) , \(\pmb{{\lambda = 0.2}}\) , and different values of γ .

Figure 7
figure 7

Profiles of the velocity field \(\pmb{u(y,t)}\) given by equation ( 3.10 ) for \(\pmb{t=0.5}\) , \(\pmb{\mathit{Pr} = 1}\) , \(\pmb{\mathit{Gr}=1.5}\) , \(\pmb{\gamma = 0.5}\) , \(\pmb{{\omega = 0.3}}\) , and different values of λ .

Figure 8
figure 8

Profiles of the velocity field \(\pmb{u(y,t)}\) given by equation ( 3.10 ) for \(\pmb{t=0.5}\) , \(\pmb{\mathit{P r} = 0.7}\) , \(\pmb{\mathit{Gr}=1.5}\) , \(\pmb{\gamma = 0.5}\) , \(\pmb{{\lambda = 0.1}}\) , and different values of ω .

6 Conclusion

In this paper an exact analysis is performed to investigate the unsteady boundary layer flow of a Casson fluid past an oscillating vertical plate with constant wall temperature with slip at the boundary. By introducing appropriate non-dimensional variables, the resulting equations are solved analytically by using the Laplace transform technique. The corresponding solutions for a Casson fluid without slip at the boundary for \(\eta\rightarrow0\), a Newtonian fluid with slip for \(\gamma\rightarrow\infty\), and a Newtonian fluid in the absence of slip for \(\eta\rightarrow0\) and \(\gamma\rightarrow\infty\) are obtained as limiting cases. Numerical results for velocity and temperature, are shown in various graphs and discussed for embedded flow parameters. The results for velocity and temperature are obtained and plotted graphically. The main conclusions of this study are as follows.

  1. 1.

    The velocity increases with increasing t and Pr, whereas it decreases with increasing values of Pr, ω, γ and λ.

  2. 2.

    The temperature increases with increasing t, whereas it decreases when Pr is increased.

  3. 3.

    Solution (4.1) corresponding to the no slip condition is found to be in excellent agreement with the result obtained by Khalid et al. [39], equation (14).

  4. 4.

    Solution (4.3) corresponding to a viscous fluid without slip is found to be in excellent agreement with the result obtained by Khalid et al. [39], equation (21).