Effect of Fluid Composition on a Jet Breaking Out of a Cocoon in Gamma-ray Bursts: A Relativistic de Laval Nozzle Treatment

In this paper, we carry out a semi-analytic general relativistic study of a Gamma-Ray Bursts (GRB) jet that is breaking out of a cocoon or stellar envelope. We solve hydrodynamic equations with the relativistic equation of state that takes care of fluid composition. In short GRBs, a general relativistic approach is required to account for curved spacetime in strong gravity. The piercing of the jet through the cocoon resembles a de Laval nozzle and the jet may go through recollimation shock transitions. We show that the possibility of shock transition and the shock properties are sensitive to the matter composition and the cocoon strength. Obtained Lorentz factors in thermally driven jets comfortably reach a few $\times$10.


Introduction
In the current understanding of gamma-ray bursts (GRBs), short GRBs are produced when two compact objects merge together [1][2][3], while a long GRB is a result of the collapse of a massive star [4][5][6]. In both cases, a bipolar jet is launched from the interior of the star or merger and escapes to produce the observed signatures. While breaking out of the stellar surface, the jet interacts with a dense medium or stellar envelope ahead of it. The interaction leads to the deceleration of the jet and the formation of shocked matter at the jet-envelope interface. This piled up matter is an extended structure known as a stellar cocoon or cork. The cocoon then warps up the jet and affects its dynamic evolution [7]. The properties of the cork are modeled extensively in the literature [8][9][10][11][12][13][14][15][16][17][18]. This cocoon forms in both the short and long GRBs [19]. Depending upon the kinetic power of the jet, it either pierces through the cocoon to escape to the external medium [20][21][22], or it is choked to produce backscattered photons [23][24][25][26][27][28]. In the former case, the escaped jet's geometry is shaped and its dynamics is significantly affected by the jet cork interaction [7,9,11,15,[29][30][31][32][33][34][35]. The cocoon is capable of inducing recollimation shocks in the jet stem [10,33]. To explain the observed features of the bursts, the formation of a cocoon is found to be an essential requirement. In recently discovered short GRB associated with gravitational source GW170817, the radio observations hint towards the presence of a cocoon as the jet erupts from the burst [36][37][38]. It is found that the cocoon shock breakout of the jet in the case of GW170817 is a more likely picture over other scenarios such as photospheric emission [17,39].
Given the fact that the jet interacts with the cocoon before breaking out of the system, one may ask an obvious question about how the strength of the cocoon and the composition of the jet matter affect its dynamical evolution during this process. The jet composition is an open question in GRB physics. It is debatable whether GRBs are matter-dominated or radiation dominated [40][41][42][43][44][45][46][47][48]. In this study, we consider a jet composed of baryons and leptons and we keep the lepton fraction over baryons to be a free parameter, an approach similar to [48]. It is noted that the neutrino annihilation in the initial phase of the burst leads to the formation of a large amount of electron-positron pairs [5,[49][50][51][52] and thus the positrons are likely to be a part of the outflowing jet. In the general relativistic regime, we aim to investigate further properties of the jet once it interacts and is shaped by the cocoon. We pose and seek to answer the following questions in this analysis: • As the jets in short GRBs produce near strong gravitational potential, how the jet scenario is affected in the regime of general relativity; • Once the jet strikes against the cocoon to be collimated and escaped, how its dynamics is sensitive to its matter composition (i.e., ratio of lepton's fraction to baryonic matter) and how its observational appearance changes.; • What are the conditions for the generation of the recollimation shocks produced by collimation of the jet and how the possibility of the shock transition depends upon matter composition? • How the properties of the shock (like shock strength and transition location) are sensitive to the jet composition?
Hence, we project to carry out an extensive analysis of the dependence of jet dynamics on its composition, as well as, the collimation strength of the cocoon. To meet this purpose, we solve general relativistic hydrodynamic equations of motion using a relativistic equation of state proposed by [53]. This equation of state takes care of the fluid composition. The jet matter made of electrons and protons may harbour a significant fraction of positrons as pair production takes place at high optical depths [54].
In the next section, we describe the assumptions in the model in detail including the considered jet geometry and the equation of state. Then we proceed to discuss the jet dynamics along with the equations of motion in the general relativistic regime in section 3. In section 4, we discuss the method to solve the dynamical equations of motion using sonic point analysis and discuss the shock conditions and shock properties. The results are described in section 5. We conclude the paper in section 6 to highlight the principle outcomes and their significance in understanding the GRBs. In brief, we discuss the future extension of this work in section 7.

Assumptions
In this work, we construct a semi-analytic general relativistic steady-state model of an erupting jet which is shaped and collimated by the stellar cork. Although the cocoon forms both in long and short GRBs, we restrict this paper to the case of a short GRB jet erupting from the merger of two neutron stars. The conclusions should have morphological similarities with the long GRB jets. However, general relativistic consideration is necessary for short GRBs only. As the jet is hot and harbours relativistic temperatures, one needs a relativistic equation of state to account for the variable nature of the adiabatic index with its temperature. We describe the equation of state in section 2.2 below.
A typical neutron star has mass 1.4 − 3.6M ⊙ and a radius 10 − 12 Km or roughly 1.5 − 3 Schwarzschild radius (r g ) [55][56][57][58]. When two neutron stars merge, we expect that the jet should be erupting from the surface of the merger. It is clear that the analysis needs the inclusion of curved space-time. We consider the Schwarzschild metric and work with geometric units where length and time are defined in the units GM/c 2 (or r g /2) and r g /2c, respectively. Here G is the universal constant of gravity, M is the total mass after the merger and c is light speed. Hence, the velocity is defined in terms of c. The base of the jet is considered at R * = 2r g , or we treat it as the surface of the star.
After launching, the jet interacts mechanically with the envelope above the stellar surface and is shaped accordingly. Properties of the considered jet cross-section are inspired by various numerical studies and are described in detail in section 2.1 below. It is a one-dimensional study, i.e., we consider that the jet's local properties are constant across its horizontal width. This assumption allows us to treat the problem in one dimension and it is justified for narrow jets with a small opening angle which is reasonable for GRBs. We treat the cocoon as an auxiliary agent that shapes the jet and defines its geometry and do not consider any energy exchange between both. It means that in the adiabatic equation of state, the jet energy parameter remains constant and is not affected by its interaction with the cork but its dynamical evolution changes. Further, as the jet speed is likely to be significantly greater than the outflowing speed of the cocoon, we simply consider a stationary cross-section of the jet. It implies that the cocoon shapes the jet but its collimation effects don't evolve with time.

Jet cross section
A fluid jet composed of baryons and leptons erupts from the stellar surface after the merger and it is shaped by an envelope or cocoon above it. Consider spherical coordinate system r, θ, φ whose origin lies at the centre of the merger. The jet propagates vertically along θ = 0 axis and the system has azimuthal symmetry (i.e., dynamical parameters are independent along φ coordinate). If the radius of jet stem at radial coordinate r is y j = r sin θ, we define the jet geometry as, Here the constants are A 1 = 0.5, d = 5, A 2 =1.0. m in f = 0.1/(1 + m) is the slope of radially expanding jet after crossing the envelope and c j = 1.5. mA 1 and A 2 shape the jet. d constraints the approximate location of the cocoon at r = d (as it is extended and has no precise location). A 2 controls the vertical extent up to which the cocoon would affect the jet geometry. We retain constant values of d and A 2 in this work, which means that the cork location as well its dimensions are constant. c j is the mathematical intercept of the jet when it erupts following the merger and is also kept constant. The cross-section of the jet at location r is given as A = πy 2 j . Here m is a geometric parameter which represents the ability of the cocoon to affect the jet geometry. In other words, m controls the cocoon's strength. This jet geometry is inspired by various studies carried out on an erupting GRB jet (for eg. see [39,59]). For m = 0, the jet is radial throughout and there is no effect of cork on its geometry. This type of geometric model was used by [60] where a jet launched around a black hole is collimated following its interaction with the inner torus of an accretion disc. However, such collimation is more prominent in GRB jet as it pierces the cocoon, hence we choose the parameters accordingly. This considered geometry contains information of a jet that is collimated and then flows radially.
In Figure 1, we plot the respective jet geometries corresponding to m = 0.01, 0.1 and 0.3 respectively. In the attached cartoon diagram in this figure, the rough jet launching location from the merger is also shown. For higher values of m, the jet is shaped after erupting. Hence m controls the effective collimation above the stellar surface due to its interaction with the outer envelope of the star, as well as, the cocoon. The collimation of the jet due to the cocoon leads to the variation in the vertical gradient of the jet cross-section. As we will see in the next section, the parameter that affects the jet dynamics is A −1 dA/dr. This implies that the slight fractional change in cross-section results in the variation of jet bulk speed. The jet opening angle θ op is defined at large radius (or r >> d above). To have further physical insight into the jet geometry described above, we write Equation 1 at large distances in the following form (at a large distance), Here , In Figure 2, we plot the opening angle of the jet θ op as a function of m by choosing r = 100. As expected, a higher value of m leads to stronger collimation of the jet and results in narrow opening angles. This parameterized representation of jet geometry captures the cocoon's ability to collimate the jet. Hence m represents the strength of the cork or cocoon. This type of collimation is similar to the conventional de Laval nozzle in hydrodynamics [61]. Here we treat the problem in curved space and the flow is relativistic in nature. In other words, we work out an analysis of the general relativistic de Laval nozzle problem in the context of a GRB jet erupting against a stellar cork ahead of it.

Relativistic equation of state and its dependence upon flow composition
To solve a set of hydrodynamic equations of motion we need an equation of state which is a closure relation between the internal energy density e, matter density ρ and fluid pressure p. Here we use a relativistic adiabatic equation of state proposed in [53,62]. It is an approximated form of the original relativistic equation of state [63] (Also see [64]). This equation of state provides a good agreement with exact results (see appendix C of [65]) and is easy to use in analytic studies. It takes care of multispecies in the fluid flow and has been used to study the effect of flow composition in relativistic fluids [53,[66][67][68][69][70][71][72][73]. It allows us to define the thermodynamic state of the fluid for a given fraction of leptons over baryons. For a relativistic fluid with electron number density n e − the equation of state is given as, Here m e is the mass of the electron. Parameter f is a function of jet composition, as well as, the temperature of the flow.
We defined the non-dimensional temperature as Θ = kT/(m e c 2 ), with k being the Boltzmann constant. Information of the fluid composition is contained in parameter ξ = n p + /n e − which is a relative proportion of number density of protons and electrons. ξ ranges from 0 to 1. ξ = 0 represents purely leptonic flow composed of electrons and positrons while ξ = 1 is for electron-proton flow. η = m e /m p + where m p + is the mass of proton. By definition, the expressions of polytropic index N, sound speed a and adiabatic index Γ, as well as, specific enthalpy h are given as, Here τ = (2 − ξ + ξ/η) is a function of jet composition. For an insight into the effect of the relativistic equation of state compared to the nonrelativistic equation of state with an invariant adiabatic index, we direct the reader to compare the results of [67] and [68], a study carried in the context of X-ray binary jets.

Dynamical equations of motion of the jet
The energy momentum tensor of a fluid in bulk motion is given as T αβ = (e + p)u α u β + pg αβ . Here u α are the components of four-velocity of the jet fluid and g αβ are the the metric tensor components. The conservation of energy-momentum enables us to write down the equations of motion by setting the four divergence of T αβ to zero. i.e., Projecting Equation 5 using the projection operator (g i α + u i u α ) gives us the momentum balance equation along i th coordinate while projecting it along four velocity u α leads to the energy conservation principle as, For this semi-analytic study, we obtain steady-state equations of motion. We assume an axissymmetric jet propagating along θ = 0 and we need to derive and solve the equations along radial coordinate r as the system has φ symmetry. As explained in section 2, we assume that the jet properties remain invariant along its horizontal extent so we solve the equations along r and reduce the problem to one dimension. The momentum balance equation and the energy conservation equation reduce to, and Here ρ is the local fluid density. The mass conservation enables us to write the continuity equation as (ρu β ) ;β = 0 Integration of the continuity equation gives outflow rate along radial coordinate r in spherical coordinates (r, θ, φ),Ṁ out = ρu r A.
Here A is the jet cross section. The continuity equation can be written in differential form as, Pressure p is given as using these relations, the equations of motion convert to, and v is the three velocity of the jet. It is defined as Here u r = √ g rr γv and u t = −γ (1 − 2/r). γ 2 = −u t u t is the Lorentz factor and g rr = 1 − 2/r. We need to integrate equations 13 and 14 simultaneously to obtain the dynamical evolution of the jet parameters v and Θ along radial coordinate r. All the other parameters are then derived using the relations defined above in the text.

Constants of motion
Integrating momentum balance equation gives the first constant of motion, i.e., We obtain the specific energy by dividing equation (16) to (10) i.e., It also enables us to define the total kinetic power of the jet as, Integrating energy conservation equation (8) one obtains an adiabatic relation similar to p ∝ ρ Γ for a constant Γ with, Here the defined parameters are, We obtain the entropy outflow rate by substituting ρ into equation (10), The two constants of motion are defined by equations (20) and (17).Ṁ is discontinuous at the shock.

Method of obtaining solutions : sonic point analysis and shock conditions
Once erupted from the surface of the merger, the matter is hot and sub-relativistic which implies that the matter has to be subsonic (v < a). As it progresses, it speeds up due to thermal pressure and cools down subsequently. Escaping to infinity, the jet is supersonic (v > a). At some distance r = r s , the jet has to pass through a sonic point where the local sound speed equals the bulk jet speed. Flows associated with such solutions are called transonic flows. The entropy of these solutions is maximum among the whole family of solutions. Following the second law of thermodynamics, the jet naturally chooses the transonic trajectory having maximum entropy. It is a necessary condition for the escape of a subsonic flow to become relativistic. We inject the jet with sub-relativistic and subsonic speeds and solve equations 13 and14 simultaneously using Runge Kutta 4th order method for the numerical solutions. Stability of the coupled equations and the test of convergence of the numerical solutions require that the constants of motion E andṀ should remain conserved across the jet extent and it should always be checked for each solution. Alternatively, one can study the dynamical evolution of the system directly using equations 17 and 20 to arrive at identical results.
Sonic point analysis is important in studying the mathematical nature of the solutions, as well as, it helps in revealing their physical insight. The location of a sonic point is obtained when the denominator of equation 13 equals zero. The sonic point condition is thus, At r = r s , the slope dv/dr (r=r s ) = 0/0 is undetermined and we need to use L'hopital's rule for its estimation [74]. For a given sonic point, the energy parameter, as well as, entropy is determined. With condition v s = a s , the sonic point serves as a mathematical boundary from which the transonic solutions can be alternatively computed by integrating the equations of motion outward (dr → +ve), as well as, inward (dr → −ve).
We will see that the collimation of the jet by the cocoon leads to the formation of multiple sonic points for a range of energy parameter E. In the current case, we will see that a jet can have up to three sonic points, which makes it possible to go through a shock transition. The shock conditions across the shock are given by relativistic Rankine-Hugoniot equations where the following flow quantities remain constant across the flow [75].
[ρu r ] = [(e + p)u t u r ] = [(e + p)u r u r + pg rr ] = 0, The quantities in square brackets represent their differences across the shock. i.e., [A] = A 2 − A 1 , where subscript 1(2) denotes the respective quantity in pre-shock (post-shock) region. These conditions ensure the invariance of mass, momentum and energy fluxes across the shock. In case multiple sonic points are present for a given value of E, the solutions from outer and inner sonic points can have a shock transition between them if the values of fluxes in Equation 22 coincide at shock location r = r sh . The shock is always located between the outer and inner sonic points. For any given value of E, followed by multiple sonic points, we check for the solutions from outer and inner sonic points and test for consistency from the shock conditions defined above to look for the location of shock transition between the two solutions. It may be noted that the entropy of the flow does have a discontinuous jump at the shock and is not necessarily conserved in such a case. The fluid is compressed at the shock and the associated compression ratio is defined as Higher value of R represents stronger shock transition. From the continuity equation (Equation 10), we can write it as

Results
For a given energy parameter E, the total energy of the jet is fixed as we work with the adiabatic equation of state. We inject the jet at the surface of the star assigning it a value of E which corresponds to sub relativistic flow speeds and high sound speed. As the jets are thermally driven in this study, their dynamic evolution for a given energy parameter is likely to be affected by their composition (ξ), as well as, the cocoon's strength which is controlled by the parameter m in the jet cross-section profile.

Dependence of flow solutions on the cocoon's strength
To study the effect of the jet cross-section on its dynamics we set to analyze a family of sonic points for different values of the energy parameter keeping a constant composition. In Figure 3 we plot the energy parameter E as a function of sonic point r s for various choices of m. For these results, we consider a fixed composition assigned by ξ = 0.1.
For m = 0, the jet is radial in nature and E monotonously decreases with r s . It means that a single sonic point corresponds to each value of E and there is no effect of the cocoon on the jet's dynamics. It produces monotonous jet velocity (v) profiles, plotted in Figure 4 Figure 3. The higher energy parameter brings the sonic point closer to the surface of the ejecta which is seen in Figure 3 (blue dotted curve). These trajectories are similar to conventional Bondi solutions in relativistic regime. For higher values of m (i.e., m ≥ 0.1), a single value of E corresponds to multiple sonic points which leads to the possibility of shock transition. For a more detailed account of the nature of multiple sonic points and the formation of shocks, see [76][77][78]. In the bottom right panel of Figure 4, we plot the Lorentz factor profile for high energy jet with E = 20 and a weak cocoon (i.e., small values of m = 0.05, and 0.2). The jet becomes transonic at points shown by filled blue circles. The cocoon slightly affects and collimates the jet after its ejection. However, the terminal value of γ at infinity is unaffected by the cocoon's presence. This fact directly follows from the expression of E and our consideration of the adiabatic equation of state where no energy dissipation is involved in the jet's propagation throughout its spatial extent.  Next, we choose a stronger cocoon by setting m = 0.3 and keeping ξ = 0.1 same as before. The corresponding velocity profiles are plotted in Figure 5 for three different values of jet energies E = 20.5( Dotted blue), 3.19 (solid black) and 1.97 (green dashed-dotted). Physical solutions pass through sonic points shown by black filled circles (Also marked in Figure 3). From Figure 3, in E − r s parameter space for m = 0.3, we observe that multiple sonic points are present for a single value of E in large sonic point space (r s < 2). Thus, it leads to the possibility of a shock transition. From the velocity profiles, we see that a jet with high energy (E =20.5, blue dotted) doesn't care much about the cocoon's presence and is mildly decelerated by cocoon interaction before further accelerated due to thermal pressure to achieve relativistic speeds. Similarly, a jet with a very low energy parameter (E=1.97, red dashed-dotted) is also not able to form shocks and has a smooth solution up to infinity. However, at intermediate energies (E ∼ 3.19, black solid) the jet goes through recollimation shock transition at r sh = 1.275R * . The reason why low energy jets are able to escape without being much affected by the cocoon is that they do not have a sufficient momentum to interact with the cocoon to go through a discontinuous transition. It should be noted that the jets with even low energies (E → 1) are chocked by the cocoon or generate breeze solutions. We do not consider such solutions in this study and restrict ourselves to the cases where the jet has minimum energy to convert into transonic outflows with a successful escape.
The jet harbours shocks within the energy range E = 3.09 to 3.2. In Figure 6 we plot the compression ratio R as a function of E (top left panel) and show that the shock in the high energy jets is stronger. In top right panel the variation of shock location r sh is showed with E. The high value of E pushes the shock away from the base and the spatial shock region appears between r = 1.25R * and 1.3R * above the stellar surface. These solutions are for a fixed strength of cocoon (or a constant m = 0.3). In bottom left and bottom right panels of Figure  6, we plot R and r sh as functions of m keeping a jet with fixed energy parameter E = 3.26.
As an obvious result, we obtain a stronger shock for higher values of m or a stronger cocoon. Subsequently, a stronger cocoon produces shocks closer to the jet base (i.e., r sh decreases with increasing m).

Effect of fluid composition on jet dynamics
To investigate the effect of flow composition on the jet dynamics, we choose m = 0.1, that corresponds to a weak cocoon and plot E − r s parameter space in Figure 7 (left panel) for different choices of the jet composition ξ = 0.1 (dotted blue), 0.5 (dashed green), 0.75 (dasheddotted red) and 1.0 (solid black). For whole range of ξ, the jet harbours multiple sonic points within distance ∼ 1.2R * − 1.7R * . However, the occurrence of multiple sonic points is more prominent in jets with low ξ. It can be understood as the low value of ξ corresponds to a relatively high fraction of leptons over baryons. Or the jet has a lower inertia. The cocoon more effectively collimates a less dense jet. In the right panel, we consider strong cocoon with m = 0.8 for ξ = 0.01 (solid blue) and ξ = 1.0 (dashed black). As the cocoon is stronger, it effectively collimates the jet irrespective of its composition and harbours multiple sonic points in most of the parameter space (r s < 5R * ).  In Figure 9, we plot the velocity profiles for a jet piercing a strong cocoon with m = 0.8. Energy of the jet is kept fixed at E = 3.26 (the horizontal black line in Figure 7 right panel) and four cases of ξ = 1.0 (top left), ξ = 0.75 (top right), ξ = 0.50 (middle left) and ξ = 0.1 (middle right) are chosen. As the cocoon interacts with the jet strongly, in all the cases, the jet goes through a shock transition between the outer and inner sonic points marked by black open circles. In the bottom panel, we over-plot all these solutions and zoom in on the location around shock generation. The shock is pushed away from the jet base for an increasing value of ξ and subsequently, the shock transition is stronger which is seen in the height of the vertical shock transition dashed curves. This conclusion is quantitatively visible in Figure 10 where we plot the variation of compression ratio R (left) and shock location r sh (right) with ξ. Jet with a higher baryon fraction produces stronger shock while the shock subsequently forms at larger distances.

Jets with supersonic injection
So far we discussed transonic jets that start with subsonic speeds and become supersonic at the sonic point. There is another possibility for the jets that are injected at the stellar surface with supersonic speeds or relativistic Lorentz factors [30]. Such jets travel at supersonic speeds throughout their propagation. We consider one such case in Figure 11. A jet with an initial Lorentz factor 10 is considered with an energy parameter E = 19. It faces a cork with collimation parameter m = 0.8. The flow composition is kept at ξ = 0.1. We observe that the jet shows deceleration due to the cocoon collimation. After escaping, it reaches Lorentz factors ≈ 20. Such jets are physically realizable if there are accelerating agents that drive the jet up to supersonic speeds at the time of eruption from the surface of the star.

Discussion and conclusions
In this work, we studied a gamma-ray burst produced by the merger of a compact binary star and giving rise to a relativistic jet that breaks out of the surface of the merger. The jet faces a cocoon or stellar envelope above the surface and pierces through it to escape to infinity. In the process, the jet dynamics is affected and it is effectively collimated by the cocoon. We describe the cocoon's effectiveness by an empirical jet geometry in this model (Equation 1) where the cocoon's effectiveness is controlled by the collimation parameter m. This geometry sets the defined cross-section that the jet follows during its evolution. We solve the hydrodynamic equations of motion with the help of adiabatic relativistic equation of state which is sensitive to the jet composition. The fluid composition is controlled by parameter ξ and it assigns the presence of lepton fraction over baryon concentration in the fluid. This is an exploratory analysis where we describe the jet dynamics within all possible ranges of jet energy parameter E, cocoon strength m and the lepton fraction in its matter composition.
In this hydrodynamic study of thermally driven relativistic GRB jets, we reconfirmed that a sufficiently strong cocoon is able to produce recollimation shocks in the jet stem. Additionally, we explored the dependence of the shock properties on dynamical parameters of the system. We can draw the following conclusions from this analysis.

•
The mechanical interaction of the piercing jet with the cocoon leads to the formation of strong shocks which. The possibility of shock transition strongly depends upon the energy content of the jet. A jet with very high or low values of E and interacting with a moderate strength having cocoon (m = 0.3) is less affected by it and is not capable of forming the shocks. However, the shock transition takes place for intermediate energies ( Figure 5). Our hydrodynamic study captures the theoretical picture of the jet collimation by the cocoon in a GRB jet that is repeatedly seen in various numerical studies [11] and the formation of recollimation shocks above the stellar surfaces [79]. However, in the current model we are only able to observe a single recollimation shock compared to such multiple shocks seen in some simulations. It is due to complicated structure and the time evolution of the cocoon interaction with the jet. • The compression ratio R, as well as, the transition location r sh of the generated shock are sensitive to all the free parameters, cocoon strength m, jet energy parameter E and the fluid composition ξ. Stronger shocks are formed by higher collimation, as well as, the jets with greater energy. • We show that the jets injected at sub relativistic speeds can be driven up to relativistic Lorentz factors following thermally driving. These jets comfortably achieve Lorentz factors ∼ few × 10. As we have ignored other possible accelerating agents such as magnetic driving and radiation in this study, the Lorentz factors are mildly relativistic. The Lorentz factor of GRB 170817A is constrained to be γ = 13.4 +9.8 −5.5 [80]. Further, the observationally constrained minimum Lorentz factors for several GRBs with early time radio emission are found to be in a typical range of 5.8 − 21 (table 4 of [81]) which is again consistent with the magnitudes obtained in this study. The upper limit of Lorentz factors extends by an order of magnitude and the above-mentioned acceleration factors might be responsible there.

Missing links in this work and future prospects
Besides the importance of this study in exploring the GRB jet dynamics in general relativistic regime along with the dependence of outcomes on the jet composition, the model is quite simple and doesn't consider the jet cocoon mixing, and its possible effects. Also, we ignored the effects of other possible factors like radiation driving and the effects of large scale magnetic fields on the jet. In the next attempts, we will study the effect of the existing radiation field due to the star and the cocoon and will elaborate on their effects on the jet dynamics. In previous works related to radiation driving of X-ray binary jets and the jets in AGNs, we established that the external radiation fields are capable of inducing recollimation shocks in the jets. It is worth investigating to seek such effects in GRB jets. In the presence of magnetic fields across the shock, the recollimation shocks generated in this paper would accelerate nonthermal electrons through diffuse Fermi acceleration [82]. However, to account for the precise estimation of particle acceleration, one needs to incorporate the effect of the magnetic field on the shock conditions as well as on the jet propagation. Furthermore, the effect of the jet composition on the shock properties in this model has no numerical analogue to the best of our knowledge and can be tested in future simulations to reveal their significance as well their time-dependent nature.