CAFE-R a code that solves the special relativistic radiation hydrodynamics equations
F. J. Rivera-Paleo, F. S. Guzm\'an

TL;DR
This paper introduces CAFE-R, a 3D special-relativistic radiation hydrodynamics code that employs the M1-closure scheme to simulate complex astrophysical phenomena involving radiation and relativistic flows.
Contribution
The paper presents a novel 3D code using the M1-closure relation for radiation, capable of handling a wide range of optical depths and configurations in relativistic hydrodynamics.
Findings
Successfully tested in 1D and 2D scenarios with various optical depths.
Demonstrated application to a radiation-driven jet with helical perturbation.
Code suitable for high-energy astrophysics simulations like GRBs.
Abstract
We present a 3D special-relativistic radiation hydrodynamics code. It uses the radiative inversion scheme with the M1-closure relation for the radiation equations, which allows the treatment of a wide range of optical depth, temperature and opacity. The radiation field is treated in the grey-body approximation. We present the standard 1D and 2D tests that include both optically thin and thick scenarios, as well as hydrodynamical and radiation pressure dominated configurations. As an application in 3D, we show the evolution of a jet driven by radiation-hydrodynamics with a helical perturbation. The code is expected to allow the exploration of scenarios in high-energy astrophysics where the radiation is important, like sources of GRBs.
| Test | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| 5/3 | |||||||||||
| 5/3 | |||||||||||
| 2 | |||||||||||
| 2 | |||||||||||
| 5/3 | |||||||||||
| 5/3 | |||||||||||
| 2 |
| Eddington | M1 | |||
| Test | CF() | CF() | CF() | CF() |
| 2.6 | 2.3 | 2.6 | 2.52 | |
| 2.29 | 2.32 | 2.51 | 3.4 | |
| 2.42 | 2.35 | 2.23 | 2.22 | |
| 3.24 | 3.41 | 3.32 | 3.51 | |
| 2.36 | 2.35 | 3.8 | 3.2 | |
| 2.21 | 2.33 | 2.32 | 2.35 | |
| Eddington | M1 | |||
| Test | CF() | CF() | CF() | CF() |
| 0.9 | 2.2 | 0.83 | 1.9 | |
| 0.8 | 1.99 | 0.6 | 0.9 | |
| 1.35 | 1.33 | 0.8 | 0.76 | |
| 3.25 | 3.28 | 3.1 | 3.42 | |
| 2.231 | 2.23 | 1.9 | 1.7 | |
| 1.75 | 1.98 | 1.98 | 2.004 | |
| Eddington | M1 | |||
| Test | ||||
| 2.041 | 2.006 | 2.068 | 2.011 | |
| Eddington | M1 | |||
| Test | ||||
| 2.01 | 2.001 | 2.067 | 2.02 | |
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
CAFE-R a code that solves the special relativistic radiation hydrodynamics equations
F. J. Rivera-Paleo and F.S. Guzmán
Instituto de Física y Matemáticas, Universidad Michoacana de San Nicolás de Hidalgo. Morelia, Michoacán, México.
Abstract
We present a 3D special-relativistic radiation hydrodynamics code. It uses the radiative inversion scheme with the M1-closure relation for the radiation equations, which allows the treatment of a wide range of optical depth, temperature and opacity. The radiation field is treated in the grey-body approximation. We present the standard 1D and 2D tests that include both optically thin and thick scenarios, as well as hydrodynamical and radiation pressure dominated configurations. As an application in 3D, we show the evolution of a jet driven by radiation-hydrodynamics with a helical perturbation. The code is expected to allow the exploration of scenarios in high-energy astrophysics where the radiation is important, like sources of GRBs.
Subject headings:
methods: numerical – relativistic processes – radiative transfer
1. Introduction
The radiation is ubiquitous in all high-energy astrophysical scenarios and in many of them, radiative transference has large effects in the dynamics of the system, specially in scenarios where the radiation is strongly coupled with the matter. Examples of scenarios like these include core-collapse supernovae and supernova shock breakout (Shibata et al., 2011; Kuroda et al., 2012; Suzuki et al., 2016; Kuroda et al., 2016; Roberts et al., 2016; Obergaulinger et al., 2018; Skinner et al., 2018), jets from active galactic nuclei (AGN), microquasars, tidal disruption events (TDEs) and gamma ray bursts (GRBs) (Aloy & Rezzolla, 2006; Cuesta-Martínez et al., 2015, 2015b; Rivera-Paleo & Guzmán, 2016; De Colle et al., 2017; Rivera-Paleo & Guzmán, 2018; Aloy et al., 2018), accretion of material onto black holes (Zanotti et al., 2011; Fragile et al., 2012; Sadowski et al., 2013b; Parfrey & Tchekhovsko, 2017; Fernández et al., 2018; Liska et al., 2018; Dai et al., 2018), as well as merger and post-merger of compact objects (Foucart et al., 2015; Sekiguchi et al., 2016; Fujibayashi et al., 2017; Kyutoku et al., 2018). In the most complex cases, the numerical models that emulate the radiation field of these high-energy astrophysical phenomena should include the solution of the Boltzmann radiation transfer equation, for either photons or neutrinos.
However, solving the Boltzmann equation for photons/neutrinos in 3D is a demanding challenge. There are two approximate methods that are successfully applied to solve the Boltzmann radiative equation, which describe the optically thin and/or optically thick regimes pretty well. The first one of them is the so-called Eddington approximation, in which the zeroth and first-moment equations of the Boltzmann equation are solved and closed by the Eddington tensor, which is evaluated assuming the radiation field is isotropic. This is a useful approach to treat systems in the diffusion limit (Mihalas & Mihalas, 1984). Otherwise, in the free-streaming limit, the Eddington approximation does not work properly because the speed of signals is limited by . In the second approximate method, the zeroth and the first-moment equation are closed with a more general assumption about the Eddington tensor, considering anisotropies in the radiation field; in this case, the Eddington tensor is obtained as a function of zeroth and first moments and allows the radiation to propagate with the speed of light in optically thin media (Levermore, 1984). This second approach is called the M1-closure.
These two approximate methods have been widely used to couple radiation with matter. For instance, in the non-relativistic radiation hydrodynamics limit (González et al., 2007; Skinner et al., 2018) implemented codes that use the M1-closure approximation; in the special relativistic regime in (Takahashi et al., 2013) the matter was coupled with radiation using the Eddington approximation, later on, in (Takahashi & Ohsuga, 2013) the authors extended the numerical method to include resistive magnetohydrodynamics (MHD) with the M1-closure relation; in the general relativistic (GR) context, (Farris et al., 2008) implemented a numerical scheme of GR-RMHD in which the Eddington approximation is employed; in (Zanotti et al., 2011) and (Fragile et al., 2012) an implementation of the GR-RMHD equations is used to study, in the optically thick regime, the Bondi-Hoyle accretion onto black holes and also to model the radiation in accretion disks; the M1-closure approach also was implemented in GR codes, by (Roedig, Zanotti & Alic, 2012) where the GR-RMHD was used to model more realistic temperatures of the supersonic Bondi Hoyle Lyttleton accretion in two dimensions; in (Sadowski et al., 2013b) and (Fragile et al., 2014) the robustness of two GR-RMHD codes were presented.
Concerning the difficulties of solving matter fields coupled to radiation fields, one finds that besides the moment-closure relation, there is another important ingredient, namely, the opacities. This property has a considerable influence on the dynamics of the system and if the opacity has a large value, the system of equations may become stiff. Then, evolution methods used to solve the radiation hydrodynamics equations are conditioned to use small time steps in order to preserve numerical stability (Farris et al., 2008; Zanotti et al., 2011; Fragile et al., 2012). Recently, in order to avoid instabilities due the stiffness, the state of the art numerical simulations use hybrid implicit-explicit (IMEX) schemes to evolve the system without the time step size restriction (Roedig, Zanotti & Alic, 2012; Takahashi et al., 2013; Takahashi & Ohsuga, 2013; Sadowski et al., 2013b; Fragile et al., 2014).
In this paper, we present CAFE-R, a numerical code that takes into account the dynamical feedback between the matter and radiation pressures by solving the special relativistic radiation hydrodynamics equations under the Gray-Body approximation. The radiation field is solved using the moment equations of the Boltzmann equation associated with the transport of photons, using both Eddington and M1-closure approximations. We verify the numerical results using a set of established test problems in different regimes, covering from a non-relativistic gas-pressure-dominated scenario until a highly-relativistic radiation-pressure-dominated limit, in the optically thin and thick regimes. Also, we show the self-converge factor of 1D test problems.
The objective of CAFE-R is the simulation of high-energy astrophysical scenarios in which the matter and radiation are strongly coupled, but magnetic fields and gravitational field effects are negligible. Among these scenarios, there are a number of interesting scenarios, including jets from AGNs (Cielo et al., 2014; Karen & Reynolds, 2016), microquasars (Bosch-Ramon & Khangulyan, 2009; Perucho, 2012), blazars (Fromm et al., 2016; Rueda-Becerril et al., 2017), GRBs (Nagakura et al., 2011; Cuesta-Martínez et al., 2015, 2015b; López-Cámara et al., 2016; De Colle et al., 2017; Rivera-Paleo & Guzmán, 2018), and jets launched from the common envelope phase of two compact objects (Moreno Méndez et al., 2017; López-Cámara et al., 2018) can be modeled with relativistic radiation hydrodynamics (RRHD). The special relativistic regime of our code, is appropriate in a region far from the central engine. On the other hand, the radiation plays an important role due to acceleration effects on jets (Takeuchi et al., 2010).
The above scenarios seem to have in common that they are launched from a progenitor such as a compact object, as well as, they present collimated shapes and relativistic speeds. In these cases, some differences are expected if temporal and spatial scales that must be taken into account in the RRHD models vary significantly. For instance, the time scale for GRB jets is of the order of seconds, whereas for AGN jets it is of order of years (Bottcher et al., 2012). A major advantage of solving the coupled system of matter and radiation is that it allows the construction of Light Curves directly from the radiation flux on the fly and is one of the reasons for the implementation of such schemes. Another advantage of CAFE-R is that it also allows to distinguish the temperatures of the fluid and radiation separately, since local thermal equilibrium is assumed only at initial time . This is so important because, through macroscopic quantities like temperature, we can infer information about the progenitor of the jet, the nature of the surroundings of the progenitor and the dominant radiative processes.
This work is organized as follows. In Section 2, we show the system of equations of the special relativistic radiation hydrodynamics. In Section 3 we describe the numerical methods used to solve such equations. In Section 4, we show the standard 1D and 2D numerical tests and self-convergence. In Section 5, as a 3D application, we present the simulation of a jet in the radiation pressure dominated regime with a helical perturbation. Finally, in Section 6, we discuss the potential and limitations of CAFE-R.
2. System of equations
The equations of radiation hydrodynamics describe the evolution of a fluid coupled to a radiation field. The fluid evolution is determined by the conservation equations of mass, momentum, and energy of the fluid, which are coupled to the radiative transfer equations through source terms, which characterize the momentum and energy exchanges between the fluid and the radiation. We now describe the equations of the fluid-radiation system, for which in what follows, we assume the speed of light is one, Latin indices range over 1-3, and Greek ones do over 0-3, where the 0 corresponds to the temporal component and the 1-3 represent the spatial components of the tensors involved. The equations that govern the evolution of the system are:
[TABLE]
with the rest-mass density, the four-velocity of fluid elements and is the stress energy tensor of the fluid
[TABLE]
where is the metric of Minkowski space-time, is the specific enthalpy, the specific internal energy, and the thermal pressure. The thermal pressure is related to and through a gamma-law equation of state (EoS) , where is the adiabatic index of the gas. Finally, is the stress-energy tensor that describes the radiation field in (3). We treat the radiation in the laboratory frame, rather than in the comoving frame. This approach was introduced in (Takahashi et al., 2013; Takahashi & Ohsuga, 2013) and is slightly different from the approach in our previous applications (Rivera-Paleo & Guzmán, 2016, 2018). In the laboratory frame this tensor reads
[TABLE]
where is the density of radiated energy, is the radiation flux, and is the radiation pressure tensor, quantities that correspond to the zeroth, first, and second moments of the Boltzmann equation, respectively. All of them are measured in the laboratory frame. This frame is useful because the equations for radiation are hyperbolic, a convenient property for numerical integration. However, a drawback is that, using the radiative quantities expressed in the comoving frame adds non-conservative terms to the equations, and transformations between the comoving and laboratory frames are required in order to calculate observables. Then, interactions between radiation and matter become complex because of Doppler and aberration effects that have to be incorporated in the source terms .
An important assumption in CAFE-R is that the radiation field obeys the grey-body (GB) approximation, then the source terms read explicitly as (Takahashi et al., 2013)
[TABLE]
where , is the Lorentz factor, and , are the opacity coefficients, where the superscripts and denote the thermal and scattering opacities respectively. The GB assumption means that the are independent of the frequency, then, the Planck function is , with the temperature of the fluid, and the radiation constant. It is important to point out that the source terms (2) and (2) become stiff in regimes where the optical thickness is high.
In order to close the system of equations, an extra condition that relates the second moment of radiation with one of the lower order moments is needed. The simplest approach is the Eddington approximation, which assumes a nearly isotropic radiation field and in the comoving frame it shows a pressure tensor with the form (Mihalas & Mihalas, 1984)
[TABLE]
where subindex “co” indicates the quantity is defined in the comoving frame. This assumption is valid only in the optically thick regime within the diffusion limit. In order to obtain the radiation pressure in the laboratory frame, a Lorentz transformation on the radiation energy momentum tensor is needed, specifically the radiation stress tensor in the laboratory and in the comoving frames are related through the following equation (Myeong-Gu P., 2006)
[TABLE]
Substituting Eq. (8) into Eq. (2), together with the respective Lorentz transformation on the zeroth and first moments of radiation, one obtains the explicit form of the radiation pressure in the laboratory frame (Takahashi et al., 2013)
[TABLE]
where
[TABLE]
In order to find all the individual components of the radiation pressure tensor, we need to solve Eq. (2) numerically. Following the strategy in (Takahashi et al., 2013), we write Eqs. (2-2) as
[TABLE]
where is a matrix that depends only on the fluid velocity, and . We compute the components by inverting the matrix using the LU-decomposition.
The Eddington approach is appropriate when the radiation field is well coupled with the fluid. However, when the radiation field and the fluid are weakly coupled, a more general assumption is required to have a good approximation. A scheme that allows a description of the radiation field in both, optically thick and thin regimes is the M1-closure (Levermore, 1984; Dubroca & Feugeas, 1999; González et al., 2007; Takahashi & Ohsuga, 2013). The M1-closure provides a better approximation than Eddington to the radiation field because it describes the diffusion limit, as well as the free-streaming limit where the radiative energy is transported at the speed of light. This closure relation is given by
[TABLE]
where , is the Eddington factor (Levermore, 1984), the expression in parentheses is the Eddington tensor, and is the reduced radiative flux. Notice that the Eddington factor of this model is a function of and , which can be evaluated in the laboratory frame. Thus, we can directly obtain from and without any Lorentz transformation. The M1-closure relation contains the optically thick and optically thin regimes. In the optically thick regime , , and , that corresponds to Eddington’s approximation. On the other hand, in the optically thin regime , , and , that is associated to the free-streaming limit.
The gas temperature is estimated from the ideal-gas EoS via the expression , being the Boltzmann constant, the mean molecular weight and the proton mass, that we assume in this paper to be in all cases. This is a good approximation only when the fluid pressure is much greater than the radiation pressure and/or when the radiation field is weakly coupled with matter; otherwise, the temperature must be calculated taking into account the contributions of baryons, radiation pressure, and optical depth. An approximate expression that captures the effects of these two regimes of radiative transfer for the total pressure, similar to that in (Cuesta-Martínez et al., 2015) is
[TABLE]
where is the optical depth computed at each numerical cell of the domain, along straight lines parallel to each direction . The difference between (14) and the relation in (Cuesta-Martínez et al., 2015) is that depends on the temperature of the radiation, which is consistent with the closure M1 in (13). Since the optical depth of a relativistic moving medium strongly depends on its velocity and on the viewing angle (Abramowicz et al., 1991), one needs to compute this variable taking into account the Doppler effect
[TABLE]
where , and is the temperature of radiation. Here, depends on the temperature only if any of the opacity coefficients does. When the fluid and radiation are in local thermal equilibrium (LTE), that is , the temperature approximately obeys a fourth order equation similar to Eq. (14) above (Cuesta-Martínez et al., 2015). In the general case, in order to compute the fluid temperature from Eq. (14), we use a Newton-Raphson method under the assumption of LTE for the initial guess of temperature. Notice that in purely hydrodynamical models, the temperature is an auxiliary quantity, whereas in radiation hydrodynamics models, it is essential because it may substantially change the opacities, and therefore the behavior of the whole system. From Eq. (14), we can see that the value of the optical depth influences importantly the fluid temperature.
It is important to mention that there is another more general EoS (Helmholtz EoS), which not only includes contributions from a radiation field and baryons, but also for completely ionized nuclei, degenerate relativistic electrons and positrons Timmes & Swesty (1999).
3. Numerical methods
So far, we have presented the RRH time-dependent evolution equations that model the radiative transfer on a moving fluid. Now, we describe the numerical methods implemented in CAFE-R used to solve the RRH equations. First, we write the RRH equations in the flux balance form using Cartesian coordinates in 3D, where U is the vector of conserved variables, which are functions of the primitive variables , are the fluxes and S the sources, which are given by
[TABLE]
[TABLE]
Notice that the conservative and primitive variables of radiation are the same . Thus, the conversion between radiation conserved and primitive quantities is straightforward. The coupling of radiation happens through the sources (2) and (2), which require the calculation of , which is obtained and used as follows. We recover the primitive hydrodynamical variables by solving the typical transcendental equation for the fluid pressure that depends on . With this and it is possible to use (14) to obtain . Then this fluid temperature is inserted in the sources (2) and (2) that couple fluid and radiation. This coupling is practiced at every step and intermediate step during the time integration. Since this coupling is essential to the appropriate implementation, at this point we want to enhance the use of Eq. (14) with the following observation. It is possible to compute the fluid temperature by equating the pressure obtained from the gamma-law EoS with that of the ideal gas , that is which is the part of Eq. (14) related exclusively to the fluid, that is, this formula does not involve the radiation effects. In fact the expression for and (14) coincide when , namely, in scenarios where the fluid pressure dominates over radiation pressure. In the appendix we present examples of the calculation of fluid temperature using (14) and in hydrodynamical and radiation pressure dominated cases.
For the solution of the system of equations we use the method of lines with uniform space and time resolutions related by , where CFL is the Courant-Friedrichs-Lewy factor. For the integration in time we use a second order accurate IMEX Runge-Kutta integrator, in which the hydrodynamical variables are solved explicitly whereas the radiation variables are solved implicitly, following the strategy in Roedig, Zanotti & Alic (2012), where the right hand side of the equations is split into two parts
[TABLE]
where H is an operator that contains the spatial derivatives of the conserved hydrodynamical variables and its respective source terms . On the other hand, K will be defined by the spatial derivatives of the radiation conservative variables and the source terms . Keeping this in mind, we implemented a particular solution of Eq.(18) based on those presented in (Higueras, 2006), in which the construction of is given by
[TABLE]
Notice that the variable appears in both sides of (19), as usual in implicit methods, which defines an algebraic equation for this variable that we solve using a Newton-Raphson method.
The spatial part is constructed with a finite volume discretization and the numerical fluxes at the space cell interfaces are computed with a high-resolution shock-capturing method that uses the HLLE numerical flux formula. This formula along the direction, where labels the axes, is given by
[TABLE]
where and are the values of the conservative variables reconstructed at the right and left from the intercell boundary, respectively. The minmod- and mc-slope limiters are used for the intercell reconstruction of the conserved variables. The wave velocities are computed from the eigenvalues of the Jacobian matrix . Finally, and are the fastest and slowest among the characteristic wave velocities of the system respectively.
Since the radiative and hydrodynamical variables of the system of equations (1-3) are coupled only through the source terms , we calculate the radiation and hydrodynamics wave speeds separately. This means that the Jacobian matrix can be separated into two sub-matrices, one for the hydrodynamical variables and another one for the radiation field . Thus, we can compute the eigenvalues of hydrodynamics and radiation equations independently (Sadowski et al., 2013b). Specifically, the five eigenvalues of are those of the purely relativistic hydrodynamics, for instance along the direction these are
[TABLE]
where is a triply degenerated eigenvalue, , and is the sound speed. The eigenvalues in the directions are similar to the above eigenvalues and they can be obtained from an adequate index permutation (Font et al., 1994).
On the other hand, the Jacobian matrix for the radiation part is
[TABLE]
whose eigenvalues depend on the closure relation. In the Eddington approximation the characteristic speeds are , whereas in the M1 model, the characteristic velocities are functions of and , that specifically depend on the norm of the reduced flux () and on the angle that makes with the interface normal to the direction, where labels each of the Cartesian coordinates . In order to obtain explicit formulas for the eigenvalues, following (Skinner & Ostriker, 2013), we rotate the local system of coordinates around , changing from to , so that in the prime coordinate system. In this new coordinate system, the three -out of four- linearly independent eigenvalues are
[TABLE]
where . For the optically thin limit (), the characteristic speeds are . Particularly when and are parallel, the regime in which the fastest characteristic velocity is the speed of light is recovered. When and are perpendicular, there is no longer transport along the direction. Furthermore, for the optically thick limit (), the eigenvalues are and . These should correspond to the fastest characteristic velocity given by the diffusion theory. However, when , the signal speeds can be overestimated, that means that have values numerically larger than , causing additional numerical diffusion. To avoid this numerical diffusion, we follow the suggestion made by Sadowski et al. (2013b), which consists in modifying the characteristic velocities along each Cartesian direction as
[TABLE]
where is the optical depth in a cell and are the characteristic velocities in the comoving frame. This modification allows the reduction of numerical diffusion in the optically thick regime.
Finally, it is important to point out that unphysical solutions appear when . To guarantee that the constraint is satisfied in our numerical scheme, we modify the radiation flux as
[TABLE]
which reduces the radiation flux without changing its direction.
4. Tests
In order to show that our implementation works correctly, we produce the tests in (Takahashi & Ohsuga, 2013) using both M1 and Eddington approximation closure relations. We first show 1D tests, which are basically Riemann problems corresponding to shock-tubes with different initial states designed to illustrate different scenarios, aligned along the axis with the discontinuity at . The domain for tests 1,2 and 5 below, is , whereas for tests 3 and 4 the domain is , even though in the figures we present the zoomed results in a smaller domain. We use a production resolution for all the 1D tests and cover the domain along the additional and directions using 5 cells. For the reconstruction of variables we use the MC-slope limiter and time integration uses a CFL factor equal to . Finally, the boundary conditions are outflow. The essential initial conditions for all the problems appear in Table 1, and the initial values for the radiation flux and the scattering opacity are set to and in all cases. Subscripts and denote the left and right states of the Riemann problem, respectively.
4.1. Non-relativistic Strong Shock
This is Test 1 and in Figure 1 we show the mass density, fluid temperature, radiation energy density, radiation flux, and the reduced flux at measured in the comoving frame.
The initial conditions are set in such a way that the energy density of the fluid dominates over the radiation energy density. In consequence hydrodynamical effects are more important than those due to radiation pressure and consequently the results are similar to those of a hydrodynamical shock-tube test. Another implication is that the results using the two closure models, Eddington and M1, show pretty similar results. For instance, the difference in temperature, radiation energy density and radiation flux profiles is small. The initial conditions imply the radiation flux is being transported from right to left, and has an exponential decrease with distance and for M1 and Eddington closures respectively as discussed in Takahashi & Ohsuga (2013). The factor in the exponential is the factor in the propagation speed between the two closure methods.
Finally, in the bottom panel we compare the reduced flux for the two models, showing that for the M1 closure this quantity is slightly smoother than for the Eddington one.
4.2. Mildly-relativistic strong shock
This is Test 2 and corresponds to a gas-pressure dominated strong shock. In Figure 2, we show the rest-mass density, fluid pressure, radiative energy density, radiation flux, and the component of the Eddington tensor in the comoving frame at . In this test, not only the hydrodynamical variables are discontinuous, but also the radiation energy density and the radiative flux. Our results are in concordance with results in Tolstov et al. (2015), who estimated that the upper limit of the amplitude of this discontinuity is . From Figure 2 we can see that the result obtained with the M1-closure presents a smaller amplitude in the discontinuity than the one obtained with the Eddington approximation. This means that the M1 model, with a smaller discontinuity gives a better result for this test.
4.3. Relativistic Shock
This is Test 3, which has a Lorentz factor near . A snapshot of the fluid density, radiation energy density, radiation flux and the component of the Eddington tensor at appears in Figure 3. In agreement with results in (Takahashi & Ohsuga, 2013), the shock location does not change for the Eddington case, however when using M1 it approaches a drifted stationary state with an approximate velocity of . The drifting of the shock can be due to leakage of radiation flux through the boundaries that difficults keeping the initial two states constant, and both the leakage and drifting velocity reduce by pulling the boundaries further out, which is the reason to use the domain in this and the following three tests. Due to the drifting, the comparison of the two results uses a relocation of the shock for the M1 case. Additionally, in this figure we show the temperature of the fluid and radiation for the M1 closure. The gas density, radiation energy and flux are similar using the two models. This is due to the large optical depth a scenario consistent with the Eddington closure. Nevertheless, the Eddington factor is considerably different, and departs from the value 1/3 when using the M1 model. This indicates the radiation field is anisotropic which is in agreement with (Takahashi & Ohsuga, 2013) . Also, we obtain that the fluid temperature is higher than that of radiation, which indicates the energy transfers from the fluid to the radiation field.
Test 3 is the optically thick version of this case with a high value of and the results are shown in Figure 4. Similar to Test , we show the profiles of the rest-mass density, radiation energy density, radiative flux and the component of the Eddington tensor, and, in the bottom panel, the fluid and radiation temperatures, only for the M1 model, at .
In Test 3 the front of the shock, for the M1 model drifts with a velocity of in code units, which is slower than the shock front of Test 3. This is because the optical depth of Test 3 is higher than that of Test 3, and then it reduces the dynamics of the system. Due to the high optical thickness in Test 3, the M1 model deviates from the Eddington approach by , see in Figure 4. Notice that the fluid and radiation temperature are practically the same, this means that the system is in near LTE, which occurs in regions where the optical depth is large.
These two tests, Tests 3 and 3, verify that the code is able to resolve a highly relativistic wave in two different optical depth regimes.
4.4. Radiation Pressure-dominated Shock
This is Test 4, with the characteristic that in the upstream zone, the ratio between radiation and gas pressures is , larger than in Tests 1, 2, and , with values , , and , respectively.
We show a snapshot of the results at in Figure 5 for the fluid density and velocity, radiation energy density, radiation flux and the forces due to radiation pressure and pressure gradient. Soon after the initial time, the configuration approaches a steady state when using the Eddington closure, whereas when using the M1 closure the solution drifts with a constant small speed and in the frame moving together with the drifting the configuration shows a steady solution.
Notice that the radiation flux is negative for the two cases on the left part of the domain, indicating the radiation energy is transferred from right to left. The radiation energy and pressure are dominant in this case, and the effects of radiation on the fluid affect the velocity, which shows a decreasing profile starting at at the time of the snapshot. This is an effect understood as force produced by the radiation, which also influences the increase of gas density in the left part of the domain. In order to complete this interpretation, in the last plot of Figure 5 we show that the radiation force dominates over the pressure gradient.
Test is the optically thick version of Test . In Figure 6, we show , , , , and the forces acting on the fluid at . Here we found that, the velocity/density begins to decrease/increase at around . Also, the shock front travels across the domain with a drifting speed in code units, which is smaller than that of Test 4. This is in concordance with the fact that the shock front in this case, propagates in a medium with a higher opacity than in Test 4.
These two tests verify that the code is able to resolve radiation-pressure dominated waves in two different optical depth regimes.
4.5. Mildly-relativistic, optically thick flow
This case is illustrated by Test 5 and is the only test that does not approach a stationary solution in the long term. The initial left and right states are identical except that they have different velocities. As a result, two shock waves propagate in opposite directions as shown during a snapshot in Figure 7. This test is relevant because it represents an appropriate problem that tests the ability of a code to handle the stiffness of the source terms (2) and (2). In this case, the thermal opacity coefficient is , much bigger than the one used in the previous tests. The results can be compared with those in (Roedig, Zanotti & Alic, 2012), which confirms that CAFE-R works satisfactorily in optically thick and mildly-relativistic regimes.
4.6. Radiative pulse
In order to test the accuracy in an optically thick regime, we present a radiative pulse similar to that described in (Sadowski et al., 2013b; McKinney et al., 2014), which consists in a radiative pulse propagating along one of the spatial cartesian coordinates in Minkowski space-time. This pulse has a profile given by
[TABLE]
where , and . In this Test, unlike all the previous ones we assume that the thermal opacity coefficient is zero , whereas the scattering opacity coefficient is high . The background fluid is characterized by a constant rest-mass density and temperature given by and respectively. We solve this problem in the numerical domain with 200 cells and periodic boundary conditions.
In this regime the dynamical evolution of the system can be described by the diffusion equation
[TABLE]
whose analytical solution is . In Figure 8, we show the numerical solution (solid lines) for the radiative energy density compared with the exact solution of Eq. (27) (dashed lines) at various instants. We can see that the numerical solution diffuses slightly faster than the analytical solution, which is due to the additional numerical dissipation introduced by the the numerical scheme. However, at later times this difference becomes small. Our numerical solution is in agreement with that obtained by (Sadowski et al., 2013b; McKinney et al., 2014).
4.7. Single beam
After showing the code works fine in 1D problems, we start with 2D tests. In order to carry out these tests with the 3D driver, we use 5 cells along the additional direction and impose outflow boundary conditions along this additional direction.
First we present the single beam problem, a test intended to show the capability to simulate a scenario where the fluid and radiation are decoupled. These conditions corresponds to an optically thin medium with zero opacity . This specific problem consists in the evolution of a beam and check it does not break or distorts during the evolution.
We simulate the process in the domain using grid cells. The beam is constantly injected in the segment of boundary given by , and the rest of the boundary uses outflow conditions. For this exercise the injected radiation energy density is , whereas in the rest of the domain . We use and set . The hydrodynamical variables remain constant throughout the domain with values , and .
A snapshot of is shown in Fig. 9 at and shows that the beam propagates through with no distortion nor disruption. The result is equivalent to that in Sadowski et al. (2013a) and Takahashi & Ohsuga (2013).
4.8. Pulse collision
In this test, two pulses of radiation propagate along the diagonal directions of the domain and eventually interact. This test is solved in the domain at the plane , that we cover with grid cells. The pulses are injected from the two regions defined by the boundary segments and for . We use outflow boundary conditions at the boundary, except at the segments where the beams are injected. The radiative flux components are , where the value of the radiation energy density is and the radiation constant . Both pulses propagate through a static background, this means that the hydrodynamical variables are kept fixed during the evolution and only the radiation variables evolve. In this test we use and adiabatic index .
In Figure 10 we show a snapshot of the radiation energy density in the laboratory frame at . We can see that the beams propagate in straight directions until they interact. The interaction is such that the two beams do not pass through each other, instead they produce a beam in the direction. This is consistent with the fact that the radiation flux component becomes zero when both pulses interact. In the formulation of the M1-closure, the radiation stress tensor is determined only by and , but it is independent of the optical depth. This means that the closure relation approaches that of the Eddington approximation when the flux vanishes even when the system is optically thin. This is an apparent inconsistency of the M1-closure model, but it is not, this happens because the M1-closure scheme can distinguish only a single direction of radiative flux (Levermore, 1984). In order to resolve this problem, we need to implement a more general relation closure, for instance by using the variable Eddington tensor scheme, which handles multiple directions of the radiative flux at a single numerical cell (Gehmeyr & Mihalas, 1993; Stone et al., 1992; González et al., 2007; Jiang et al., 2012; Ohsuga & Takahashi, 2016).
4.9. Shadow
This problem serves to verify that the M1 approximation works properly, and to illustrate the difference between M1 and Eddington approximations in the presence of an obstacle. The test consists in the injection of the gas-radiation fluid on an optically thin environment that encounters a circular obstacle made of an optically thick gas. We solve the test on the domain on the plane , that we cover with cells. Following the set up in (Takahashi & Ohsuga, 2013), the mass density within the circle is given by
[TABLE]
where and are the ambient and injected densities, whereas defines the size of the circular distribution acting as an obstacle. In this test, not only radiation is being injected in this test, but matter as well. At initial time the fluid is at rest, the fluxes are set to zero and thermal equilibrium is assumed.
The fluid temperature is estimated considering its pressure is constant throughout the domain
[TABLE]
where is the initial temperature of the system. We assume the beam enters the domain from the left side of the domain and leaves through the right side, for which we assume inflow and outflow boundary conditions at these faces respectively, whereas we set periodic conditions in the other faces. The properties of the beam are as follows , , and , for which we have assumed , which is four orders of magnitude bigger than in Sadowski et al. (2013b), only to show a test with different parameters. Following Sadowski et al. (2013b), in these tests we set the radiation constant to , the opacities and the adiabatic index to .
A snapshot of at is shown in Figure 11 for the two closure models. As expected for the Eddington closure, the radiation field propagates isotropically, including the region behind the obstacle and no shadow is expected to form. On the other hand, the solution with the M1 approximation corresponds to a radiation field propagating parallel to the direction used for the injection in this optically thin medium where , producing the shadow that can be compared with that in Sadowski et al. (2013b).
4.10. Double shadow
This tests shows the capability to deal with scenarios with various light sources and for which we follow the standard set up in Sadowski et al. (2013b), except that we again use a temperature four orders of magnitude bigger . We set this test in the domain with a circular obstacle at the origin with the same parameters as in the single shadow test.
The initial conditions for fluid and radiation are exactly the same as for the simple shadow test, but unlike that test, the beam is injected differently from the left boundary as follows. For at , the horizontal and vertical radiation flux components are , , which models two light beams, a first one launched from the upper side of the boundary moving downwards and a second one launched from the lower part of the boundary moving upwards.
Eventually the light beams interact, a process we simulate using the M1 closure model and a snapshot of showing this interaction at is shown in Figure 12. At the center of the left boundary there is a spot where the radiation does not enter, later on there are two straight lines where changes from a low to a high value, where the two beams superpose. More to the right, there is the region past the obstacle which has the umbra with low and the penumbra which is a zone of partial shadow. Even though the M1 closure is used, there is an unphysical low radiation energy zone that should not be there at the axis to the right from the obstacle. This shows that even though the M1 seems to produce more consistent results compared with the Eddington model, it has weaknesses in systems with multiple sources. Finally, considering this limitation of the M1 closure, the results in the snapshot of Fig. 12 are consistent with those in Sadowski et al. (2013b).
4.11. Radiation pulse in 3D
Finally, there is a second test related to a pulse, similar to that in Section 4.6 but this time in 3D within the optically thin regime. It consists in the evolution of a Gaussian distribution of radiative energy density centered at the origin. In this case, the radiative temperature is set to (Sadowski et al., 2013b; McKinney et al., 2014)
[TABLE]
with . We solve this problem in the domain covered with with cells. In Figure 13 we show the evolution of the radiative energy density. Since the background is an optically thin medium, the initial pulse is expected to spread isotropically with velocity close to the speed of light. Also, as a consequence of the energy conservation, the energy density decreases as one over the square of the distance to the origin. We show this behavior in Figure 13, where decreases with distance from the center with approximately the appropriate power law.
4.12. Self-convergence
We now present self-convergence for the one dimensional tests. For a given variable , that could be any of the primitive variables of the equations, assuming there is an exact solution , one calculates three numerical solutions , and using the resolutions , and , with . If our methods are accurate to order , then at each point of the domain
[TABLE]
where is the amplitude of the error at a given point of the numerical domain at a given time slice. By combining the above equations one has the following comparison among the numerical solutions that define the self-convergence factor to be
[TABLE]
a relationship that is expected to be approximately fulfilled at every point of the domain and at every snapshot of the evolution. For instance in regions where the fields are smooth, the methods used in explained above, are accurate to order whereas in regions with discontinuities the accuracy is of order . In general the solution is polluted with the poorest accuracy and CF varies between the value corresponding to and the value corresponding to in (31).
Since it is impractical to calculate the self-convergence across the whole numerical domain over the whole evolution, it is common to test the self-convergence at a given time using a norm of and . In our case, we calculate the self-convergence at an interesting snapshot, specifically at as shown in Figures from 1 to 7, using the norm of the difference between numerical solutions. The convergence factor is then , for all the five tests given in Table 1. For the first, second, and third resolutions we use , and cells to cover the domain. Specifically, this corresponds to resolutions , , and .
In Table 2, we report the self-convergence factors for the rest-mass density and the radiation energy density of each test at two different times. We point out that the stationary stage is achieved at around for all tests, and in the Table we show the self convergence factor is kept within first () and second () order of convergence until , which is consistent with the theory in (31). In the Table we also show how the self-convergence degrades by time down to below first order ().
5. Jets
One of the most energetic events in astrophysics are the jets, which are produced by the death of supermassive stars, or active galactic nuclei (AGNs). Emulating these events using numerical simulations is challenging and a test of stability, in particular, because of the formation of strong external and internal shocks. This is the reason why, as an illustrative application, in order to test the potential of using CAFE-R in 3D, we present the simulation of a non-axisymmetric jet.
For this we assume the jet is produced by the injection of a relativistic beam from a nozzle with radius and velocity . This model is characterized by the ratio between the density of the beam (subindex ) and that of the medium (subindex ) and by the ratio between their pressures . The relativistic Mach number of the beam is , where , , and are the Newtonian Mach number, Lorentz factor, and speed of sound, respectively. The boundary conditions we use are outflow in all borders, except at the nozzle located at the center of one of the boundary faces, where the values of the variables are kept constant in time during the injection.
For comparison, we analyze two cases: (i) a purely hydrodynamical jet (HD-jet) and (ii) a radiation-pressure-dominated jet (RRH-jet). We perform this simulation on the domain with resolution . The jet is injected at the plane toward the positive axis through a circular nozzle of the radius . The resolution and size of the nozzle are such that the later contains at least eight cells per beam radius, which is a recommended resolution to properly resolve the internal structure of the jet and its interaction with the external medium (Aloy et al., 1999, 2000). Moreover, we choose the density and pressure ratios to be initially and , the beam Lorentz factor , the Mach number and the adiabatic index .
For the RRH-jet, the radiative energy density is chosen such that the radiation pressure is dominant over the gas pressure. For this, we set , which gives a pressure ratio of . The opacity coefficients are constant in space and time given by and . Thus, since the system is in an optically thick regime, we can choose a small value of the radiative flux of the beam, such as .
The 3D nature is imposed by a helical perturbation in the velocity and radiative flux profiles at the nozzle, following the implementation of helical perturbations on hydrodynamical jets in the past (Aloy et al., 1999)
[TABLE]
where and are perturbations of the helical velocity and helical radiative flux, respectively and for the HD-jet. The quantity is the perturbation period, where is the number of the cycles completed during the injection and is the injection time of the jet.
In Fig. 14, we show the behavior of the purely hydrodynamical jet at different times. We can see snapshots of the rest-mass density, viewed from different perspectives. We show 3D snapshots of the contours, a slice of the plane and a slice at plane . At , we can see the basic characteristics of the jet, namely a collimation shock in the beam, a bow shock, the reverse shock produced by the interaction between the jet and the external medium, and the formation of a cocoon. At this time, we can see that the beam does not exhibit any twisting perturbation yet. Later on, at , we can see structures behind the head of the jet similar to Kelvin-Helmholtz instabilities, which could be better resolved using a higher resolution. Also, at this time, we can see that the helical perturbations exhibited by the beam are still unnoticed. Finally, at , we can see how the helical perturbation in the velocity profile produces an asymmetric jet, as shown for HD-jets in the past (Aloy et al., 1999).
In Fig. 15, we show the dynamical evolution of the RRH-jet at different times. By , we can see how the high pressure at the cocoon compacts the jet and some material is convected backwards as well as a turbulent behavior behind the working surface. At this time, there is a big difference with respect to its HD-jet counterpart (Fig. 14), in which the density does not show signs of a twisted profile, whereas in the RRH-jet it does, which can be seen behind the jet’s head. In both cases there is a reverse shock from the contact discontinuity which modifies the structure of the jet head and influences the further propagation into the surrounding medium (Massaglia et al., 1996). In this context, the radiation pressure helps to push material towards the contact discontinuity by making the internal shock of the RRH-jet behind the jet head stronger than in the HD-jet. At , the head jet keeps spreading continuously upwards, which generates the expected strong shock with the ambient medium. At this moment, the effect of the radiation pressure is noticeable, because it accelerates the matter faster than in the HD-jet case. Finally, at , radiation pressure pushes the matter off the domain.
It would be interesting to know whether the conditions in our simulations can trigger instabilities able to destroy the jet, which have been found in multidimensional jet evolutions as described in (Matsumoto & Masada, 2013; Gourgouliatos & Komissarov, 2018). According to Matsumoto & Masada (2013), some radial oscillations can trigger Rayleigh-Taylor (RTI) and Richtmeier-Meshkov (RMI) instabilities. There is a criterion to know whether the jet can be destroyed by those instabilities or not, indicating that the instabilities will be triggered if the inertia ratio between beam jet and the external medium is less than the unity, where
[TABLE]
where is the effective inertia in the purely hydrodynamic case and the effective inertia of the radiation field is . For both, HD-jet and RRH-jet, the initial effective inertia ratio is and respectively. That means that both, RTI and RMI instabilities are suppressed and hence, the structure of the jets is expected to be kept during the evolution.
Among the differences between the two jets, there is a particularly interesting one related to oscillations separated by about length units, of the layer between the jet and the ambient medium that can be seen in the plane at for the HD-jet in Fig. 14, that are not seen in the RRH-jet. A possible explanation is that the radiation smoothens out the oscillations, because the radiation diffusion length given by , where (see e.g. Turner & Stone (2001)), for the parameters used in the RRH-jet is , a few times bigger than the distance between oscillations.
In order to describe the effect of radiation, we compare the profiles of the pressure, rest-mass density, Lorentz factor, and the maximum of the temperature’s fluid of the HD and RRH-jets, measured along the axis at the same time . In Fig. 16 we show the Lorentz factor, which illustrates the influence of radiation pressure in the velocity of the jet. In the RRH-jet case, the pressure is lower and the radiation boosts the jet making it faster than the HD-jet.
To finalize this section, in Fig. 17, we show the rest-mass density profile at and the maximum of the fluid temperature of the jets. We can see that the rest-mass density of the purely hydrodynamical jet is a little bigger than that of model dominated by the radiation pressure. We also find that the maximum of , which is located behind the bow shock, for the HD-jet is bigger than for the RRH-jet. This agrees with Eq. (14), from which it is expected that in regions with large optical depth, is bigger. Then the regions where the matter is strongly coupled with radiation, that is, with big optical depths are cooler than regions where the matter and radiation are weakly coupled.
6. Final comments
In this paper we have presented the code CAFE-R, that solves in the gray-body approximation, the relativistic Euler equations coupled with the two first moments of the Boltzmann equation for photon transport using both the Eddington and M1-closure relations. CAFE-R has been tested over a standard ranges of optical depths and energy in one, two, and three dimensions. The solutions obtained with the code are consistent with those presented in Farris et al. (2008); Zanotti et al. (2011); Fragile et al. (2012); Takahashi & Ohsuga (2013); Tolstov et al. (2015) for all the test problems. This demonstrates the standard capacity of the code in the optically thin and thick regimes.
In order to check the potential of using CAFE-R in non-standard scenarios, we presented the simulation of a highly relativistic 3D jet, spreading through a constant medium. Specifically, we investigated the jet’s response to helical perturbations. During the evolution time , we found that the behavior of the flow is significantly affected by the radiation field. Specifically, the perturbation on the radiation variables triggers the helicity of the jet earlier than in the HR-jet case. We also found that the fluid and the radiation depart from thermal equilibrium in shocked regions and that the radiative jet is cooler than its hydrodynamical counterpart.
The code has the ability to deal with stiff source terms, for optically thin and optically thick scenarios. However, there are some limitations that can be overtaken in future versions of the code, which are described below.
The evolution method. As mentioned before, the source terms can become stiff depending on the opacities. We use a second order accurate IMEX Runge-Kutta scheme, that allows us to study the evolution of astrophysical scenarios with the radiation and matter strongly coupled without any disruption. However, when the opacity is large, this integrator is unstable. We found that there is not a unique threshold for this unstable behavior, it basically depends on the combination of three quantities, rest-mass density, radiative energy density, and opacity coefficient. In order to explore larger values of these variables, we need to implement higher order IMEX methods.
M1-closure relation. This closure relation improves the Eddington approximation, which cannot handle radiative transport in the optically thin limit. We have shown that the M1-closure relation gives an accurate solution even when the radiation field presents angular anisotropies (Pulse collision and Double shadow tests). However, in general, this accuracy is limited in regions where the optical depth is small and when there are multiple radiation sources. In order to improve this fact, we need to compute a closure relation directly from the Eddington tensor by using, for instance, the so-called variable Eddington tensor formalism Gehmeyr & Mihalas (1993); Stone et al. (1992); González et al. (2007); Jiang et al. (2012); Ohsuga & Takahashi (2016).
The GB approximation. Our current numerical scheme is based upon frequency integrated quantities. In general, this is a good approximation that allows us to measure monochromatic radiation temperatures and bolometric light curves like those computed in (Rivera-Paleo & Guzmán, 2018). However, in many astrophysical scenarios it is important to analyze the frequency spectrum to infer physical properties of the system under study, which cannot be done within the GB approximation. To solve this inconvenient, we need to implement a frequency dependent scheme, for instance, the so-called multi-group scheme, which splits the frequency domain into a finite number of multi-energy groups and the equations of radiative transfer are solved within each frequency group.
MHD. Coupling Maxwell equations to the current radiative model represents another direction of future improvements, which would be the combination with the methods used for CAFE-MHD in (Lora et al., 2015). Finally, we can conclude this manuscript by saying that CAFE-R is useful to study the behavior of relativistic radiation hydrodynamical jets and thus a potential tool to study models of gamma ray bursts.
Acknowledgments. This research is partly supported by the following grants CIC-UMSNH 4.9, and CONACyT 258726 (Fondo Sectorial de Investigación para la Educación). The simulations were carried out in the Big Mamma cluster at the IFM and the farm funded with grant CONACyT 106466. The use of Eq. (14) is important, and it is worth to see how it influences the coupling of the fluid with radiation. As mentioned in the text, it is possible to compute the fluid temperature using . This expression coincides with (14) in the limit . In order to illustrate the differences between the calculation of fluid temperature using from (14) and we show in Figure 18 the results for Test 2, which is a system dominated by the fluid pressure and Test 4a, where radiation pressure dominates. The results illustrate the differences in these two regimes, so as the importance of model (14).
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1Aloy et al. (1999) Aloy M. A., Ibáñez J. M., Martí J. M., Gómez J.-L., Muller E., 1999, Ap J, 523, L 125
- 2Aloy et al. (2000) Aloy M. A., Muller E., Ibáñez J. M., Martí J. M., Mac Fadyen A., 2000, Ap J, 531, L 119
- 3Aloy & Rezzolla (2006) Aloy M. A. & Rezzolla L., 2006, Ap J, 640, L 115
- 4Aloy & Mimica (2012) Aloy M. A., Mimica P., 2012, Relativistic Jets From Active Galactic Nuclei, Wiley-VCH Verlag Gmb H & Co. K Ga A, chap 10, 297
- 5Aloy et al. (2018) Aloy M. A., Cuesta-Martínez C., Obergaulinger M., 2018, MNRAS, 473, 3576
- 6Abramowicz et al. (1991) Abramowicz M. A, I. D. Novikov & Paczynski B, 1991, Ap J, 369, 175-178
- 7Bosch-Ramon & Khangulyan (2009) Bosch-Ramon V., & Khangulyan D., 2009, Int. Journ. Mod. Phys. D, 18, 347
- 8Bottcher et al. (2012) Bottcher M., Harris D. E. & Krawczynki H., 2012, Introduction and Historical Perspective; in Relativistic Jets from Active Galactic Nuclei, Wiley-VCH Verlag Gmb H & Co. K Ga A, chap 1, 1
