Higher order methods for Radiative Transfer in Astrophysical simulations: P n \rm P_{n} vs M 1 \rm M_{1} M. Palanque, P. Ocvirk, E. Franck, P. Gerhard, D. Aubert, O. Marchal , Abstract Context. In current cosmological simulations, the radiative transfer modules generally rely on the M 1 \rm M_{1} approximation, which has some glaring flaws related to its fluid-like behaviour, such as spurious pseudo-sources and loss of directionality when radiation fronts from different directions collide. P n \rm P_{n} , another moment-based model used in other fields of physics, may correct these issues. Aims. We aim at testing out P n \rm P_{n} in an astrophysical setting and compare it to M 1 \rm M_{1} , in order to see if it can indeed correct M 1 \rm M_{1} ’s flaws. Also, we want to use P n \rm P_{n} ’s solutions to better pinpoint M 1 \rm M_{1} errors. Methods. We implement a P n \rm P_{n} radiation transport method and couple it to a photo-thermo-chemistry module to account for the interaction of ionising radiation with the Hydrogen gas, and benchmark it using tests for radiative transfer models comparison in astrophysics as defined in Iliev et al. 2006 . Results. We find that high order P n \rm P_{n} (e.g. P 9 \rm P_{9} ) indeed correct M 1 \rm M_{1} ’s flaws, while faring as well or even better in some aspects in the tests, in particular when directionality is important or colliding radiation fronts occur. By comparing P 9 \rm P_{9} and M 1 \rm M_{1} radiation fields in an idealised and cosmological test case, we highlight a new, thus far unreported artefact of M 1 \rm M_{1} , the ’dark sombrero’. A dark sombrero appears as a spherical photon-deficit shell around the source, at typically 1/3-1/4 of the distance to the next source. The photon density in dark sombreros can be underestimated by a factor up to 2-3. They occur in regions where a source’s radiation field connects with that of another source or group of sources. These basic properties (position and amplitude) of the dark sombreros may depend on the sources’ relative intensities, positions, spatial resolution, although we have not been able to test this in detail in this study. Moreover, the M 1 \rm M_{1} larger scale photon density also exhibits spurious features, enhancing or reducing photon density in various regions. We use a small reionisation-like test simulation to characterize the relative error in hydrogen neutral fractions between M 1 \rm M_{1} and P 9 \rm P_{9} . The relative error is well represented by a gaussian with a dispersion of 0.27 dex in log 10 ⁡ ( x HI ) \log_{10}(\rm x_{HI}) . Both aspects are likely related to the photons’ collisional behaviour in M 1 \rm M_{1} . 1 Introduction The epoch of reionisation takes place starting 150 My after the big bang, and ends approximately around 1 Gyr after the big bang (redshift 20 to 6) ( Barkana & Loeb 2001 ) . During this early period of our universe’s history, its entire gas content gets ionised by the recently formed first stars and galaxies. This is an important process of the history of our universe. However, details about how this reionisation took place are still debated, mainly on the matter of the mass range of the galaxies driving it and the nature of ionising sources (stars, compact objects…). This tension originates in the difficult task of deriving the properties of galaxies in such a remote epoch, and the lack of observational constraints for this period. Pending the arrival of such constraints such as the ones that will be brought by the Square Kilometre Array telescope SKA ( Dewdney et al. 2009 ) , numerical simulations offer insight into the epoch of reionisation and help us prepare future observational campaigns. Some data hints toward a major role played by the more numerous, small and medium sized galaxies ( Lewis et al. 2020 ; Katz et al. 2019 ) while some others favour higher mass galaxies ( Naidu et al. 2020 ) . There are even proposed scenarios where both the lower and higher ends of the galaxy mass spectrum drive reionisation at different epochs ( Ocvirk et al. 2021 ) . In all of these simulations, radiative transfer is a central component. With the ionisation of the intergalactic medium (IGM) being the main subject of study of this epoch, the need for a reliable radiative transfer model is central to better describe this process. One of the most commonly used models nowadays is the moment derived model \rm M_{1} ( Levermore 1984 ; Aubert & Teyssier 2008 ) . However, \rm M_{1} isn’t without flaws, as, for example, it tends to create pseudo-sources at the colliding point of two wave fronts. This stems from the fact that \rm M_{1} ’s approximates photons as a fluid, making colliding photon flux add up. It is even more glaringly obvious when observing two perpendicular photon beams cross each other. In a physical setting, the two light beams should not interact with each other, but with the \rm M_{1} approximation, they merge into one single beam whose direction is the sum of the direction vectors of the two initial beams ( Rosdahl et al. 2013 ) . \rm M_{1} ’s collisionality could be one of the reasons why the model tends to under estimate the photo-ionisation rate at small scales ( Wu et al. 2021 ) and potentially impact the results of previous simulations. There are many other radiative transfer models in the literature despite the omnipresence of \rm M_{1} in the field of cosmology simulations ( Brunner 2002 ; Garrett & Hauck 2013 ) . We aim at testing out mainly one of them specifically, the \rm P_{n} model as described in BRUNNER 2002 , Meltz 2015 , and observe how it fares compared to \rm M_{1} . The objective is determining if \rm P_{n} can correct \rm M_{1} ’s flaws. We also aim at characterising \rm M_{1} ’s artefacts in the observable space (Lyman- \alpha forest transmissions and neutral hydrogen fraction). 2 Methodology In this section, we will describe in more depth how the \rm P_{n} model works, how it was implemented in our test cases, what kind of chemistry we devised and the code we used to run all of our tests on GPUs. 2.1 The \rm P_{n} model \rm P_{n} is a moment derived model of order n of the equation of radiative transfer. Just like \rm M_{1} or any other moment derived model, they approximate the equation of radiative transfer in the void (Eq. 1 ) by deriving its moments until reaching the n-\rm th order. At this point, a need arises for a closure equation to close the system. This is where the approximations for \rm M_{1} and \rm P_{n} diverge. \frac{1}{c}\partial_{t}I(r,\Omega,t)+\mathbf{\Omega}\cdot\nabla I(r,\Omega,t)=0, (1) with \Omega(\theta,\phi) the angular unit vector. \rm M_{1} is a moment derived model of order 1, which means the closure equation consists in writing the moment of order 2 as a combination of lower order moments. A detailed explanation of the \rm M_{1} model’s closure equation can be found in Aubert & Teyssier 2008 . The equation can be projected on a simple (1,\Omega) basis. However, since \rm P_{n} can technically be derived up to any moment n , we need to project our equation on an infinite basis. We’ll be using the spherical harmonics basis (Eq. 2 , 3 ) as is done in Meltz 2015 , P being the Legendre polynomial. \displaystyle Y_{l}^{m}(\theta,\phi)=\left\{\begin{aligned} &\sqrt{\frac{1}{\pi}\frac{(l-m)!}{(l+m)!}\frac{2l+1}{2}}P_{l}^{m}(\cos(\phi))\cos(m\theta),&\quad m>0\\ &\sqrt{\frac{1}{2\pi}\frac{2l+1}{2}}P_{l}(\cos(\phi)),&\quad m=0\\ &-\sqrt{\frac{1}{\pi}\frac{(l+m)!}{(l-m)!}\frac{2l+1}{2}}P_{l}^{-m}(\cos(\phi))\sin(m\theta),&\quad m<0\end{aligned}\right. (2) P_{l}^{m}(\mu)=(-1)^{m}\sqrt{(}(1-\mu^{2})^{m})\frac{d^{m}P_{l}}{d\mu^{m}} (3) We then apply the \rm P_{n} closure equation, which consists in truncating our projected equations at the order n . Let us call w=\sum\limits_{l=0}^{n}\sum\limits_{m=-l}^{l}w_{l,m} our vector solution. In other terms, we approximate our intensity I as: \rm I(t,r,\mathbf{\Omega})=\sum\limits_{l=0}^{n}\sum\limits_{m=-l}^{l}\rm w_{l,m}Y_{l,m} (4) or \forall l>n,\forall m\in[\![-l;l]\!],\rm w_{l,m}(t,r)=0 (5) By projecting the whole radiative transfer equation on our basis, we obtain the following equation: \displaystyle\oint_{4\pi}\mathbf{\Omega}\cdot\nabla\rm I\mathbf{Y} \displaystyle=\oint_{4\pi}\sin(\phi)\cos(\theta)\partial_{x}\rm I\mathbf{Y}d\mathbf{\Omega} (6) \displaystyle+\oint_{4\pi}\sin(\phi)sin(\theta)\partial_{y}\rm I\mathbf{Y}d\mathbf{\Omega} \displaystyle+\oint_{4\pi}\cos(\phi)\partial_{z}\rm I\mathbf{Y}d\mathbf{\Omega} Recurrence formulas developed in Meltz 2015 show that Eq. 6 can be simplified as: \frac{1}{c}\partial_{t}w+J^{x}\partial_{x}w+J^{y}\partial_{y}w+J^{z}\partial_{z}w=0 (7) Where \mathbf{I} is the intensity projected on the spherical harmonics basis, and J^{x},J^{y},J^{z} are constant matrices of size (n+1)^{2}\times(n+1)^{2} . They are defined in appendix A . This is a very convenient notation since these matrices are constant and only need to be computed once at the beginning of a simulation run. However, they are very sparse despite being quite large, which can take a lot of memory space. The simplicity of the closure equation being a simple truncation means this method is very sensitive to sharp discontinuities, which make it oscillate. On top of that, it isn’t based on a physical entropy like \rm M_{1} is, and thus doesn’t guarantee the positivity of the system, which we will delve deeper into these issues in subsection 2.3 and 3.2 . 2.2 Transport Kernel We use a classical finite volumes solver for our model, which is described on a three-dimensional grid of fixed size. Each cell can be described by its position in the grid (i,j,k) and its volume \Delta x*\Delta y*\Delta z . For all our tests, we’ll use cubic cells, hence \Delta x=\Delta y=\Delta z . Our time step \Delta t is controlled by a Courant condition (CFL) defined as \rm CFL=\frac{\Delta tc}{h_{min}} with c velocity of the light and h_{min}=\frac{Volume_{cell}}{Surface_{cell}}=\frac{\Delta x^{3}}{6\Delta x^{2}} . The CFL must be chosen such as \rm CFL<1 to ensure stability of our scheme in an explicit case such as ours, determining the value of \Delta t . In this paper, the Courant condition will be consistently chosen to be \rm CFL=0.8 , except for a few exceptions detailed at the end of subsection 2.3 . Our code will make use of two separate kernels running successively to perform a complete time step p. As such, we will call p , p+1/2 and p+1 the state of our variables respectively at the beginning of the transport kernel, at the interface between the transport and chemistry kernels, and at the beginning of the next time step p+1 . This notation will be used throughout this subsection and the next one dedicated to the chemistry kernel. To compute our explicit transport time step using the \rm P_{n} model, we use a Rusanov scheme ( Rusanov 1962 ) as advised in Meltz 2015 Sahmim 2005 for its great stability. For comparison purposes, and as opposed to Aubert & Teyssier 2008 we’re referencing, our own implementation of \rm M_{1} will also use that scheme. Using Eq. 7 , and defining S the source function, we can write: Let us call w_{l} the factor corresponding to moment of order l in our solution vector w . We can derive the moments of the radiative transfer equations until the n-th order as follows, with S the source function: \frac{1}{c}\partial_{t}w+J^{x}\partial_{x}w+J^{y}\partial_{y}w+J^{z}\partial_{z}w=S (8) This system can be discretised as follows, for a time step p and positions (i,j,k) : \displaystyle\forall l\in[\![1,n]\!] (9) \displaystyle\frac{w_{l}^{p+1/2,i,j,k}-w_{l}^{p,i,j,k}}{\Delta t}+c[ \displaystyle\frac{w_{l+1}^{p,i+1/2,j,k}-w_{l+1}^{p,i-1/2,j,k}}{\Delta x}+ \displaystyle\frac{w_{l+1}^{p,i,j+1/2,k}-w_{l+1}^{p,i,j-1/2,k}}{\Delta y}+ \displaystyle\frac{w_{l+1}^{p,i,j,k+1/2}-w_{l+1}^{p,i,j,k-1/2}}{\Delta z}]=S With i+1/2 the flux at the interface between the cells i and i+1 of our grid, in the x direction. This flux can be computed with the Rusanov scheme as follows: w^{p,i+1/2,j,k}=\frac{1}{2}J^{x}(w^{p,i+1,j,k}+w^{p,i,j,k})-\frac{B}{2}(w^{p,i+1,j,k}-w^{p,i,j,k}) (10) In the same way, we can compute the two other directions: w^{p,i,j+1/2,k}=\frac{1}{2}J^{y}(w^{p,i,j+1,k}+w^{p,i,j,k})-\frac{B}{2}(w^{p,i,j+1,k}-w^{p,i,j,k}) (11) w^{p,i,j,k+1/2}=\frac{1}{2}J^{z}(w^{p,i,j,k+1}+w^{p,i,j,k})-\frac{B}{2}(w^{p,i,j,k+1}-w^{p,i,j,k}) (12) With B a majoration of the spectral radius of the matrices J . Said spectral radius being ]-1;1[ ( Meltz 2015 ) , we chose B=1 for our implementation. With this scheme in place, we can compute multiple adimensional tests of section 3 . However, to accurately test the abilities of \rm P_{n} in an astrophysical setting, there’s a need for a dimensional chemistry kernel. This kernel runs after the transport kernel, returns the temperature and ionised fraction of the simulation, as well as some feedback photon density value w due the absorption of photons by neutral hydrogen atoms and recombination. 2.3 Chemistry Kernel Our chemistry kernel works separately from the transport kernel devised in 2.2 . During a time step p , it takes in the photon density w_{0}^{p+1/2} from our transport kernel, defined as our coefficient of order 0, and outputs the updated temperature T^{p}(r) , ionised fraction x^{p}(r) , and photon density variation dw_{0}^{p}(r) . This last parameter is then used to update all moments in the transport kernel to take into account the photon recombination in the energy budget. As a reminder, the only chemical compound we take into account is hydrogen, and its density n_{H} stays constant in time as a result of the absence of a hydrodynamical solver in our tests. With n_{HI} and n_{HII} respectively density of neutral and ionised hydrogen, n_{e} the density of free electrons equal to n_{HII} , and x the fraction of ionised hydrogen, the hydrogen density n_{H} can be written as follows: n_{H}=n_{HI}+n_{HII}=(1-x)n_{H}+xn_{H} (13) With that in mind, we aim at solving the following equations to obtain the updated w_{0} , w_{k} , x and T : \frac{\partial w_{0}}{\partial t}=-(1-x)n_{H}c\sigma w_{0}+x^{2}n_{H}^{2}(\alpha_{A}-\alpha_{B}) (14) \frac{\partial w_{k}}{\partial t}=-(1-x)n_{H}c\sigma w_{k},\forall k\in[1,n] (15) \frac{\partial x}{\partial t}=(1-x)c\sigma w_{0}-x^{2}n_{H}^{2}\alpha_{A}-x(1-x)n_{H}\beta (16) \frac{\partial E}{\partial t}=\mathcal{H}-\mathcal{L} (17) Where \alpha_{A}(T) , \alpha_{B}(T) and \beta(T) correspond respectively to the case A and case B recombination rates, and the HI collisional ionisation coefficient as defined in Hui & Gnedin 1997 , \sigma is the effective HI cross section at e_{HI} , E(T,t) the thermal energy of the gas and \mathcal{H}(x,w_{0},n_{H}) and \mathcal{L}(T,n_{H}) are the photoionisation heating rate and cooling rate. In all of our test cases of section 4 , we consider 10^{5}\>\rm K black body sources to comply with litterature test cases ( Iliev et al. 2006 ) implying a cross-section \sigma=1.63\times 10^{-22}\>\rm m^{2} at e_{HI} = 29.61 ( Aubert & Teyssier 2008 ) , except for test 1 where we consider 3.10^{4}\>\rm K black body sources and \sigma=6.3\times 10^{-22}\>\rm m^{2} for photon energy e_{HI} = 13.6 eV ( Osterbrock 1974 ) . We use an implicit scheme to solve the ionised fraction, from which we then deduce the photon density as described in Aubert & Teyssier 2008 . However, for sake of simplicity, our temperature will use an explicit scheme. As we said previously in subsection 2.1 , and as we’ll delve deeper into in subsection 3.2 , \rm P_{n} , in essence, does not guarantee that the photon density w_{0}^{p+1/2} at the end of a transport step is positive. This does not concern us while in the transport kernel, but it cannot stay this way when entering the chemistry kernel. Our way around this possible non positivity of the density is to approximate it as zero in negative regions, as shown in Eq. 18 . This might seem like a strong choice, but as shown in Appendix B , the negative photon density output is mostly negligible as long as \rm P_{n} ’s order is sufficiently high in spherical cases. \bar{w_{0}}^{p+1/2}=max(w_{0}^{p+1/2},0) (18) In the chemistry kernel, we’ll only ever use this truncated version \bar{w_{0}} of the photon density. To follow the rate of reionisation, the neutral fraction of gas is a key observable that can be derived from the 21cm emission of neutral hydrogen. This parameter can be defined as x_{HI}=1-x where x is the fraction of ionised hydrogen in our simulation. We can write the coupled equation of the first moment in 1D and the ionising equation as follows: \frac{dw_{0}}{dt}+\frac{dw_{1}}{dr}=\dot{w_{0}}+\dot{w_{0}}^{rec}-n_{H}\sigma cw_{0}(1-x) (19) Where \dot{w_{0}} and \dot{w_{0}}^{rec} correspond respectively to ionising sources and ionising photons from recombination. Assuming that \alpha_{A}n_{H}^{2}x^{2}=\dot{w_{0}}^{rec}+\alpha_{B}n_{H}^{2}x^{2} , and using Eq. 16 , we can rewrite Eq. 19 as: \frac{dw_{0}}{dt}+\frac{dw_{1}}{dr}=\dot{w_{0}}-\alpha_{B}n_{H}^{2}x^{2}+\beta n_{H}^{2}x(1-x)-n_{H}\frac{dx}{dt} (20) Now, we can approximate \frac{dw_{0}}{dt}=\frac{w_{0}^{p+1}-w_{0}^{p}}{\Delta t} . We’ll also write x^{p}=x^{p+1/2}=x and x^{p+1}=X for sake of comprehension. Doing this, and knowing that w_{0}^{p+1/2}=w_{0}^{p}+\dot{w_{0}}-\frac{dw_{1}}{dr} is the solution to the transport equation in the void already solved in section 2.2 , we can rewrite Eq. 20 as: w_{0}^{p+1}=w_{0}^{p+1/2}+\beta n_{H}^{2}(1-X)X\Delta t-\alpha_{B}n_{H}^{2}X^{2}\Delta t-n_{H}(X-x) (21) Replacing w_{0}^{p+1} in Eq. 19 by this new definition, and using the truncated version of the photon density \bar{w_{0}}^{p+1/2} instead of the real value w_{0}^{p+1/2} to ensure positivity, we obtain a third degree polynomial in X defined as follows: mX^{3}+nX^{2}+pX+q=0 (22a) m=(\alpha_{B}+\beta)n_{H}^{2}\Delta t (22b) n=n_{H}-\frac{(\alpha_{B}+\beta)n_{H}}{\sigma c}-\alpha_{B}n_{H}^{2}\Delta t-2\beta n_{H}^{2}\Delta t (22c) p=\beta n_{H}^{2}\Delta t-n_{H}(1+x)-\bar{w_{0}}^{p+1/2}-\frac{1}{\sigma c\Delta t}+\frac{\beta n_{H}}{\sigma c} (22d) q=\bar{w_{0}}^{p+1/2}+n_{H}x+\frac{x}{\sigma c\Delta t} (22e) Solving this system by finding the only real root between 0 and 1 will give the updated value of the ionised fraction x^{p+1} in the cell. Given our knowledge of this updated ionised fraction and Eq. 21 , we define the updated photon density as follows: \displaystyle w_{0}^{p+1}=w_{0}^{p+1/2}+dw_{0}^{p+1/2} (23) \displaystyle with\>dw_{0}^{p+1/2}=\beta n_{H}^{2}(1-X)X\Delta t-\alpha_{B}n_{H}^{2}X^{2}\Delta t-n_{H}(X-x) This way, we add the photon density variation dw_{0}^{p+1/2} derived from the truncated photon density \bar{w_{0}}^{p+1/2} to the real photon density w_{0}^{p+1/2} . As such, even if dw_{0}^{p+1/2} is strictly positive, w_{0}^{p+1} can be negative if w_{0}^{p+1/2} already was. In the same way as done in Eq. 19 , we can write all coefficients of order superior to 0 as follows: \frac{dw_{l}}{\partial t}+\frac{dw_{l+1}}{dr}=-n_{H}\sigma w_{l}(1-x) (24) As such, using an implicit scheme and the updated X previously computed, the updated value of all coefficients of order superior to 0 is written: w_{l}^{p+1}=\frac{w_{l}^{p+1/2}}{1+n_{H}\sigma c\Delta t(1-X)} (25) With w_{l}^{p+1/2}=w_{l}^{p}-\frac{dw_{l+1}^{p}}{dr}\Delta t value of the coefficient at the end of a transport step. This way, all of our coefficients are updated with photon variation due to absorption. The last parameter to be computed is the temperature of the hydrogen gas. Our code follows its variations through heating and cooling processes. The heating rate \mathcal{H} mainly involves photoionisation and is given by: \mathcal{H}=n_{H}(1-X)\bar{w_{0}}^{p+1/2}\sigma c\Delta e (26) Where \Delta e=e_{HI}-e_{HII} where delta e is the energy leftover in the unbound electron and proton system after a photo-ionisation, available as thermal energy. In our case, this difference is equal to \Delta e=29.61-13.6\>\rm eV . For stability reasons, we chose to use the updated value of the ionised fraction X , but the non-updated value of the photon density w_{0}^{p+1/2} . The cooling rate \mathcal{L} is the result of collisional cooling due to case A and B recombination, collisional ionisation and excitation, and bremsstrahlung effect. We use fits from Hui & Gnedin 1997 and Maselli et al. 2003 to compute these processes. Our internal gas energy E=\frac{3}{2}n_{tot}k_{B}T is linked to these two rates by Eq. 17 . Knowing that n_{tot}=n_{e^{-}}+n_{H}=xn_{H}+n_{H}=n_{H}(1+x) , it can rewritten as: \frac{3}{2}k_{B}n_{H}[T\frac{\partial(x+1)}{\partial t}+(x+1)\frac{\partial T}{\partial t}]=\mathcal{H}-\mathcal{L} (27) Which, when discretising, gives the following explicit equation for the evolution of the temperature, remembering that T^{p}=T^{p+1/2} , x^{p}=x^{p+1/2}=x and x^{p+1}=X : \displaystyle\frac{T^{p+1}-T^{p+\frac{1}{2}}}{\Delta t} \displaystyle=\frac{1}{X+1}\times (28) \displaystyle[\frac{2[\mathcal{H}(x,X,\bar{w_{0}}^{p+1/2})-\mathcal{L}(X,T^{p+\frac{1}{2}})]}{3k_{B}n_{H}}-\frac{(X-x)T^{p+1}}{\Delta t}] Since computing the updated temperature T^{p+1} requires prior knowledge of the updated ionised fraction X , it is computed in last during a chemistry time step. We now have updated all chemistry variables for the time step p+1 . Updated values of w^{p+1} are sent back to the transport kernel as new initial conditions for the next time step. We note that we didn’t implement any subcycling for our chemistry kernel in this paper despite the possibility of \Delta t being too large to accurately describe the short time scale behaviour of our chemistry. In cases where the time step would be too great to be handled by the kernel, we opted for a diminished CFL, which increases our computational cost. However, subcycling our chemistry kernel would ensure a more optimised implementation of the code and should be used for further use of the model. In conclusion, our scheme is made of Eq. 9 for the transport, and Eq. 22 , 23 , 25 and 28 . Figure 1 : Execution time comparison of RKMS compared to our Julia implementation on CPU and GPU depending on the box size 2.4 RKMS Moment based models can quickly become quite computationally expensive as the order of the model increases. Indeed, each moment requires an increasing number of coefficients. The moment of order 0, representing the isotropic component of our radiation, only requires one, but the first order already needs three more (the three directional flux components). For a given order n of a moment based model, the number of coefficients to be computed at each time step, in each cell, is (n+1)^{2} . This means that, while \rm M_{1} only requires the computation of four coefficients at each time step, \rm P_{9} will need a hundred. This quickly became a problem for our python-based and then julia-based CPU implementations, which struggled to compute our models in a reasonable time frame. Reduced Kinetic Model Solver (RKMS) is an openCL based, python wrapped, mono-GPU implementation of \rm P_{n} developed by Pierre Gerhard during his PHD thesis https://github.com/p-gerhard/rkms , ( Gerhard 2020 ) . Its fully optimised GPU core makes it incredibly faster than our previous implementations, at the cost of the flexibility. Extensive work on RKMS was necessary to implement the chemistry kernel and the dimensionalisation required for the test cases in section 4 , but allowed us to run a lot of tests far more quickly than we expected, as shown in Fig. 1 . However, another limit of RKMS is that it is not parallelised on several GPUs, and thus can still take a long time to compute higher orders of \rm P_{n} . As a result, the biggest box size used in this paper will be a 128^{3} box with \rm P_{9} implementation. For our GPU runs, whose results will be shown throughout this paper, we relied heavily on the services of the High Performance Computing Centre of Strasbourg (HPC). Figure 2 : Comparison of colliding fronts of two isotropic continuous sources in \rm M_{1} and \rm P_{9} Figure 3 : Beam crossing comparison between \rm M_{1} (Left) and \rm P_{9} (Right). We can observe the difference between how the beams cross each other in \rm P_{9} and average out in \rm M_{1} 3 Results: Radiation only test cases We start by highlighting the ways in which \rm P_{n} solves \rm M_{1} ’s issues in a series of simple tests. All test cases in this section are purely adimensional radiative transfer models with no chemistry coupling nor hydrodynamics and gravity, ran on a 64^{3} grid. Their aim is to showcase how \rm P_{n} compares to \rm M_{1} in the specific cases where it tends to have issues. 3.1 Continuous Isotropic Sources Our first and most straightforward test case serves to illustrate the main improvement \rm P_{n} brings to the table compared to \rm M_{1} . Indeed, as talked about previously, \rm M_{1} suffers from its fluid-like approximation of photons resulting in a collisional behaviour. As such, two wave fronts colliding end up adding up instead of just crossing each other as would be physically expected. This tends to create pseudo-sources and ejecta of energy that have no physical reality. This mainly appears when the photon fluxes coming from several sources interact with each other. To highlight this flaw in \rm M_{1} and see if \rm P_{n} can correct it, we put two continuous isotropic sources next to each other in a 64^{3} box. Both sources are adimensional of intensity equal to 1 per time step. We want to observe the consequence of their wave front interacting in the continuous regime. Knowing the issues \rm M_{1} usually have in this kind of setting, we expect the apparition of a pseudo-source and beams of energy being emitted from it, orthogonally to the direction of the flux. As for \rm P_{n} , we expect none of this behaviour, with simply two wave fronts crossing each other without interaction. Results of this test for \rm M_{1} and \rm P_{9} are showcased in Fig. 2 . Immediately, the pseudo source created by the coalescence of two wave fronts becomes evident in \rm M_{1} , which emits vertically and changes the directionality of the photon flux. It is also visible in the profile made along the line formed by the two sources, where a bump appears in the photon distribution between the sources, highlighting their interaction. This behaviour is completely absent in \rm P_{9} , where the bump is absent in the profile, and no coalescence is apparent in the slice shown in the same figure, on the right. The directionality of the energy is conserved, and the continuous regime is what we should physically expect from two isotropic sources placed next to each other. As such, we can confidently say that \rm P_{n} corrects this issue of \rm M_{1} in the isotropic case. 3.2 Continuous non-isotropic sources The issues of \rm M_{1} can be highlighted even further in a more extreme test case that shows how detrimental it can be to the physics of a simulation. Indeed, the directionality change highlighted in the previous case can be shown even more strongly. In the next test case, we will put two adimensional non-isotropic continuous sources in a 64^{3} box. Those directional sources each emit a beam of light that cross at the centre of the box. Physically, we expect the two light beams should just cross each other without interacting, since light is non collisional. However, considering \rm M_{1} ’s peculiar properties, we expect the two beams to coalesce and their resultant directional vector being the sum of the two initial direction vectors. Results for this test case are shown in Fig. 3 and highlight even more blatantly the flaw of \rm M_{1} . Here, the two beams merge and the resulting new beam changes direction, in a completely non-physical way. However, we can see that \rm P_{9} manages to maintain the crossing behaviour that should be modelled here, and corrects once again the issues of \rm M_{1} . However, we can also see a lot of oscillations around the sources in \rm P_{9} which do not look very physical either. Indeed, as mentioned previously, \rm P_{n} has a hard time with discontinuities, and the non-isotropy of the sources is one such discontinuity. It creates ripple effects in all directions around the sources, which are very low intensity compared to the beam. We also mention the case of temporal discontinuities in Appendix B . Table 1 : Initial Condition Parameters for the benchmarked tests Test Name Duration (Myr) Cross section ( m^{-2} ) T( t_{0} ) (K) n_{h} ( m^{-3} ) x_{HII} ( t_{0} ) Source Isothermal Strömgren Sphere 500 6.3\times 10^{-22} 1\times 10^{4} 1\times 10^{3} 1.2\times 10^{-3} 5\times 10^{48} photons/s Adiabatic Strömgren Sphere 100 1.63\times 10^{-22} 100 1\times 10^{3} 1.2\times 10^{-3} 5\times 10^{48} photons/s Shadowing a dense clump 3 1.63\times 10^{-22} 8\times 10^{4} 2\times 10^{2} 1.2\times 10^{-3} 10^{10} photon/ m^{2} Cosmological map 4 1.63\times 10^{-22} 100 Cube 1.2\times 10^{-3} List Figure 4 : Front radius evolution of \rm P_{5} for several reductions of c Figure 5 : Ionised and Neutral hydrogen profile comparison of \rm M_{1} and \rm P_{5} around 35 Myr (Left) and 500 Myr (Right) in the isothermal case Figure 6 : Ionised and Neutral hydrogen profile comparison of \rm M_{1} and \rm P_{5} around 35 Myr (Left) and 100 Myr (Right) with coupled temperature evolution Figure 7 : Comparison of the temperature profiles in the strömgren sphere at three times, 10, 35 and 100 Myr Figure 8 : Dense clump of hydrogen in the path of a flux of ionising radiations using \rm M_{1} (top) and \rm P_{9} (bottom) at 3 Myr Figure 9 : Example slice of hydrogen density map from Iliev et al. 2006 used in this test Figure 10 : Maps of the photon density at 0.4 Myr in \rm M_{1} (Left) and \rm P_{9} (Right) with a limited dynamic Figure 11 : Maps of the neutral fraction of hydrogen at 0.4 Myr in \rm M_{1} (Left) and \rm P_{9} (Right) Figure 12 : Position of the 50% ionisation front at 0.4 Myr Figure 13 : Left: Probability distribution function of photon density at 0.4 Myr Right: Probability distribution function of neutral fraction at 0.4 Myr Figure 14 : Left: Map of neutral fraction of \rm P_{n} over \rm M_{1} Right: Histogram of this ratio for the whole box, fitted with a sum of 3 log-gaussian curve, at 0.4 Myr Figure 15 : Maps of the neutral fraction of hydrogen at 4.0 Myr in \rm M_{1} (Left) and \rm P_{9} (Right) Figure 16 : Mean neutral fraction evolution over time Figure 17 : Left: Probability distribution function of photon density at 4.0 Myr Right: Probability distribution function of neutral fraction at 4.0 Myr Figure 18 : Maps of the photon density at 4.0 Myr in \rm M_{1} (Left) and \rm P_{9} (Right) Figure 19 : Left: Map of neutral fraction of \rm P_{n} over \rm M_{1} Right: Histogram of this ratio for the whole box, fitted with a log-gaussian curve, at 4.0 Myr Figure 20 : Photon density profile around source 7 at 4.0 Myr Figure 21 : Photon density profiles between source 6 and six other sources of the simulation at 4.0 Myr Figure 22 : Positions of the Lines of Sight used for the transmission spectra Figure 23 : Transmission spectra along several lines of sight for \rm M_{1} and \rm P_{9} 4 Results: Coupled radiation and chemistry - Cosmological Radiative Benchmark Tests In this section, we show how \rm P_{n} fits the requirements for a Cosmological radiative transfer model by making it undergo four separate test cases described in Iliev et al. 2006 . These standardised tests allow for an easy comparison with other radiative transfer models in the literature, but we will keep making a comparison with the \rm M_{1} model for sake of comprehension. More in depth analysis of \rm M_{1} ’s results for the same tests can be found in Aubert & Teyssier 2008 . All test cases in this section are dimensional, i.e. using physical box sizes and emissivities, with coupled chemistry as described in 2.3 and no hydrodynamics or gravity. 4.1 Isothermal Strömgren Sphere A single ionising source can only ionise a given radius of gas around it before equilibrium is reached and we enter the continuous regime. The sphere of such ionised gas is referred to as the Strömgren Sphere, which radius is given by the following equation: R_{s}=\displaystyle\frac{3S}{4\pi\alpha_{B}(T)n_{H}^{2}}^{1/3} (29) With S the intensity of the ionising source in \rm photon.s^{-1} , n_{H} the density of the gas in \rm m^{-3} , T the gas temperature in \rm K and \alpha_{B} the case B recombination rate of hydrogen. The characteristic evolution time of the front can be derived as t_{r}=1/\alpha_{B}(T)n_{H} . As such, with a unique non variable source and fixed temperature and hydrogen density, the theoretical radius of this sphere can easily be computed, and compared to the result of our model. With that in mind, we devise a test similar to the one given in Iliev et al. 2006 consisting of a single continuous isotropic source in the centre of a simulation box, emitting S=5\times 10^{48}\>\rm photons.s^{-1} . The surrounding hydrogen as a fixed density n_{H}=1\times 10^{3}\>\rm m^{-3} and temperature T=1\times 10^{4}\>\rm K . The initial value of ionised fraction is 1.2\times 10^{-3} . The grid uses a 65^{3} cube representing a 13.2 kpc side with reflexive boundary conditions. Fig. 4 shows the evolution of the position of the ionising front over the Strömgren radius over the length of the simulation, for several values of reduction for the speed of light c, along with a theoretical evolution of the front derived as [1-exp(-t/t_{r})]^{1/3} . Here, the simulation runs for a little bit over four times the characteristic evolution time, for about 500 Myrs. Fig. 5 shows side by side, profiles of the ionised and neutral fractions at 35 Myr on the left, and 500 Myr on the right. Both \rm P_{5} and \rm M_{1} are compared here, with their relative difference being showcased in the underplot. With several values of reduced c, we can observe that \rm P_{n} converges toward the theoretical value of the strömgren sphere in Fig. 4 . However, we also can see that the variation in value of c also changes the celerity of the front line, and could impact results in further tests, despite allowing for a far shorter computation time. All in all though, \rm P_{n} passes this test easily, and matches the results of \rm M_{1} very closely, as shown in Fig. 5 , as the difference between the two models never oversteps 1%. 4.2 Non-isothermal Strömgren Sphere A similar experiment can be made, but this time with temperature variation being taken into account. The conditions of the test are similar to the one previously described, but with an initial condition in temperature of 100\>\rm K and the source being a 10^{5}\>\rm K black body. This time, the computation of the theoretical strömgren sphere radius is less straightforward, but we use a comparison with \rm M_{1} as done previously, as well as with the previous test, to determine how well \rm P_{n} is doing. In Fig. 6 , are shown side by side the profiles of the ionised and neutral fractions at 35 Myr on the left, and 100 Myr on the right. As done previously, we compare both models, with their relative difference being showcased in the underplot. Fig. 7 shows the same comparison but on the temperature profile around our source, and at three different time steps instead of two: 10, 35 and 100 Myr. Once again, \rm P_{n} matches \rm M_{1} very well, both in ionised fraction and in temperature, with maximum differences of around 2% for the former and 5% in the latter. Surprisingly, we observe that this variation in ionised fraction has been divided by a factor two compared to the same test without temperature variation at the same time step. The temperature profile also fits what is physically expected of this test, with a sudden drop when the ionising front is reached. 4.3 Shadowing a dense clump Previous test cases took place in a context in which \rm P_{n} is known to fare pretty well, i.e. with continuous, isotropic sources that tend to limit the oscillations of the model. We’ve confirmed that, in such cases, \rm P_{n} fares as well as \rm M_{1} . However, the third test in Iliev et al. 2006 makes use of non-isotropic sources that may cause more issue for the model. The shadowing by a dense clump test aims at mimicking how resistant to ionisation a clump of dense, cold gas would be using our radiative transfer model. It consists in a cold, high-density sphere of hydrogen placed on the path of a constant directional flux of photons. The sphere - hereby referred to as ”clump” - should resist full ionisation, as it is too dense for the radiation to properly penetrate it, instead creating a slim shell of ionised gas on its exposed surface. On top of that, as the clump blocks the path of the ionising flux, it should create a ”shadow” of non-ionised, non-heated gas in its wake. For our experiment, we define the background hydrogen density as 0.2\>\rm h^{-1}\>m^{-3} comoving, which correspond to the mean background density of the universe. In the same way, the mean density of a dark matter clump is two hundred times greater at 40\>\rm h^{-1}\>m^{-3} . Considering a redshift of z=9 for our test, this turns into a high density hydrogen sphere of 4\times 10^{4}\>\rm m^{-3} plunged in a background gas density of 2\times 10^{2}\>\rm m^{-3} . We use a 6.6\>\rm kpc box with a clump of radius 0.8\>\rm kpc that runs for 3\>\rm Myr . The initial temperature is homogeneous at 8000\>\rm K , unless in the clump where it is set at 80\>\rm K . The ionising flux is emitted along the z direction by a plan of source cells, at a value of 1\times 10^{10}\>\rm s^{-1}.m^{-2} . However, as shown in Fig. 3 , non-isotrope sources in \rm P_{n} have modes and oscillations, which means that some of the energy, even if negligible, isn’t aligned with the main direction of our beams. Worse, some of this photon density goes in the opposite direction, and can create further oscillations if met with the discontinuity of the absorbent boundary conditions. To ensure that such oscillations don’t impact the result of the experiment, we create buffers between the cells used in our model and the border of our box, which dampen the intensity of our oscillations and their impact on the test itself. As such, we will use nested boxes, with, at the centre, our 64^{3},\>6.6\>\rm kpc box, inside a 128^{3},\>13.2\>\rm kpc one that will serve as a buffer. Indeed, the boundary conditions can interact with the ripples created by non-isotropic \rm P_{n} sources and create oscillations which prevents a fair comparison between the two models. This bigger box will serve to minimise the impact of boundary conditions on the simulation box. To ensure a fair comparison, \rm M_{1} will use the same box as \rm P_{n} . In all plots of this test case, we will only showcase the main simulation box and omit the buffers. The centre of the clump is placed at coordinates [0.5,0.5,0.25] in the main simulation box. We can observe the results of \rm P_{9} compare well to \rm M_{1} in Fig. 8 , where both models show a similar ionisation of the clump. On top of that, we can see that \rm P_{9} creates a stronger shadow behind said clump than \rm M_{1} , which, in this case, is closer to what should be physically expected. Indeed, on top of the already present numerical diffusion caused by the Rusanov scheme used for both models, \rm M_{1} tends to be an already quite diffusive model, which leads to the flux of photons encroaching on the shadow. This was already shown in Aubert & Teyssier 2008 , where comparison with a ray-tracing model highlighted this behaviour of the model. In this case, we can confidently say that \rm P_{9} performs better compared to \rm M_{1} , which is a good sign. One can however observe the modes in the photon density of \rm P_{9} . This is the consequence of the non-directional components of \rm P_{9} and the oscillations that result from it. However, this difference compared to \rm M_{1} has little to no impact on the temperature and neutral fraction maps, and is specific to this situation adverse to \rm P_{n} that wouldn’t be found in most simulations. 4.4 Cosmological density map The fourth and final test is also the one who comes closest to the future applications this model could have in cosmological simulations of the epoch of reionisation. It consists in testing the behaviour of our radiative transfer model on a fixed 128^{3} cells grid of hydrogen density provided by the authors of Iliev et al. 2006 , along with sixteen isotropic continuous sources of varying intensities placed in that cosmological field. This situation mimics a real simulation cube (without hydro or gravity) at a smaller scale to get a better idea of how the model will react in situations more practical than the previously mentioned test cases. We expect to observe strong differences between \rm M_{1} and \rm P_{n} due to the interaction between several sources and the pseudo-sources we’ve shown in section 3 , which may cause a delay in the propagation front in \rm M_{1} compared to \rm P_{n} . Indeed, since these unwanted interactions tend to change the directionality of part of the photon flux, the energy brought to the main ionising front might be diminished compared to \rm P_{n} , where this problem doesn’t arise. We also aim at observing the differences between several orders of \rm P_{n} , especially \rm P_{3} , \rm P_{5} , \rm P_{7} and \rm P_{9} , to observe at which point the solution seems to converge. As for \rm P_{n} potential negativity, we expect it to have a minor impact of the test, as this test doesn’t hold any discontinuities that might cause the model to strongly oscillate, apart from potential boundary condition effects. Finally, we’ll also push the test further than was done in the initial paper to reach the optically thin regime where \rm M_{1} is known to struggle, to see how much better \rm P_{n} fares compared to it. The simulation box represents a 0.5/h Mpc sized cube comoving, which, with h=0.7 in this specific case, and considering a redshift z=9 , translates to a 71.4 kpc sized box. The initial temperature is set to be 100\>\rm K , and the initial ionised fraction 1.2\times 10^{-3} . The 16 sources range from 0.64\times 10^{52}\>\rm photons.s^{-1} to 7.97\times 10^{52}\>\rm photons.s^{-1} . The full test is described at https://astronomy.sussex.ac.uk/~iti20/RT_comparison_project/tests.html . The binary file containing the hydrogen density can also be found on the same website. For our analysis, we’ll observe specifically one slice of this box, at coordinate z=64 , of which we show the hydrogen density map in Fig. 9 . We first observe the results at t=0.4\>\rm Myr as was done in the original papers, before running the simulation until t=4.0\>\rm Myr to reach the optically thin regime. It is to note that, at this time frame, \rm M_{1} appears to have some issues ionising some part of the simulation box due to boundary conditions. The hydrogen density map being periodic, but not the boundary conditions of the box, we shift the cells to avoid the appearance of that artefact in the probability distribution functions showed later. At 0.4\>\rm Myr , we can already spot some strong differences between the two models. Qualitatively, it appears quite obvious in Fig. 10 that photons in \rm P_{9} seem to propagate faster than \rm M_{1} , but also seem more evenly distributed in the already ionised portion of the slice we observe. This translates in the neutral fraction too as shown in Fig. 11 , where \rm P_{9} seems to have more chunks of ionised regions than \rm M_{1} at the same time. We can quantify this difference, by observing the position of the ionising front at 0.4\>\rm Myr , defined as the point where the gas is 50% ionised, or x=0.5 . This is shown in Fig. 12 , where it appears even more strikingly that, not only \rm P_{9} , but also \rm P_{7} , \rm P_{5} , and even \rm P_{3} are ionising faster than \rm M_{1} . This may be the result of the interaction between sources in \rm M_{1} and the artifacts they create, resulting in less energy contributing to the ionising of neutral hydrogen. We can also point out that all instances of \rm P_{n} seem to converge toward a single solution as the order increases, the highest tested order being \rm P_{9} . It looks like, based on this metric, \rm P_{7} could be a potentially less expensive alternative to \rm P_{9} with similar results. To better compare the homogeneity of \rm P_{9} and \rm M_{1} in ionised regions, we can look at the probability distribution function (PDF) of the photon density and the neutral fraction, which is done if Fig. 13 . We don’t observe here a significant difference between \rm M_{1} and \rm P_{9} yet, apart from a slightly lower number of neutral cells cells in \rm M_{1} . We can also point out that \rm P_{3} diverges quite a lot from both \rm P_{5} , \rm P_{7} and \rm P_{9} both in photon density distribution and neutral fraction distribution, which tends to show that it is too low of an order to use, as it strays too much from the converged solution. Yet, in Fig. 10 , it appears already obvious that, in the ionised regions, a large discrepancy is already present between \rm M_{1} and \rm P_{9} , with huge energy ejectas in \rm M_{1} , mainly in the top right corner, which are absent in the other model, and incompatible with the physically expected results of such an experiment. This effect, that can already be seen in the PDF, is highlighted further in Fig. 14 , where we plot the ratio of neutral fraction of \rm P_{n} over \rm M_{1} ( x_{HI}^{P_{9}}/x_{HI}^{M_{1}} ) along with a histogram of this ratio in the whole simulation box. Three regimes appear: • a very piqued regime with \sigma=0.02 corresponding to the regions where the gas is neutral in both \rm M_{1} and \rm P_{9} . Those are the areas not yet reached by radiations in both models • a very broad regime with \sigma=2.49 corresponding to regions where the gas is neutral in either \rm M_{1} or \rm P_{9} . Those areas match the propagation discrepancy between the two models • a medium regime with \sigma=0.22 corresponding to regions where the gas is ionised in both models. Those areas have reached the optically thin regime The third regime is especially relevant as it quantifies the theoretical error on x_{HI} due to the radiative transfer model, as would be observed in the Lyman- \alpha forest. In conclusion, we can say that, at 0.4\>Myr , \rm P_{n} ionises the medium faster than \rm M_{1} , and that the inhomogeneities appearing in the ionised region in \rm M_{1} are already significant despite being outmatched by the difference in velocity between the two models. We then observe the simulation at 4.0\>Myr , in the optically thin regime. Here, there are no ionising front to observe any more as the whole box should be ionised already. Yet, when we observe neutral fraction maps in Fig. 15 , we can very quickly see that \rm M_{1} is less ionised than \rm P_{9} , with bigger patches of more neutral hydrogen in the higher density regions. These patches aren’t neutral per se, as their neutral fraction is quite low ( \penalty\ 10^{-3} ), but are far less ionised than \rm P_{9} even though the simulation has converged by now, as shown by the mean neutral fraction evolution in the left plot of Fig. 16 , since both \rm P_{9} and \rm M_{1} ’s neutral fractions have reached a plateau or a near plateau. The apparent difference in ionisation can be found in this plot too, as the final mean neutral fraction in \rm M_{1} is slightly higher than all the mean values for \rm P_{n} models, who seem to converge toward a value of 10^{-5} . \rm M_{1} is also a bit late compared to most \rm P_{n} models, converging around 0.5 Myr later, which could also have an impact on simulations as the timing of reionisation is an important open question. This contrast translates in the PDF of the neutral fraction distribution, right plot of Fig. 17 . Here, it is obvious that \rm M_{1} under-ionises cells even as it stands above all \rm P_{n} orders, which have all converged toward a lower proportion of neutral cells. This graph shows how blatantly bad \rm M_{1} ends up being once the optically thin regime is reached. At this point in time, we also physically expect a 1/r^{2} photon density profile around sources, as the fully ionised medium is now transparent to radiations. However, it is quite obvious from Fig. 18 that, while \rm P_{9} seems to fit that description, \rm M_{1} is extremely far from it. Here, all of the issues of \rm M_{1} are shown in plain sight, with large ejecta of energy probably due to the interaction between sources that do not represent the physically expected distribution of photon in that regime, or the unexpected rings of under-densities surrounding the sources, a known characteristic of the model sometimes referred to as the ”dark donut” or the ”dark sombrero”, and that can be found in real cosmological simulations. This specific artefact is highlighted in Fig. 20 , where we can see how the photon density dips around sources in \rm M_{1} , forming said ”dark sombrero” shape that is completely unphysical. This phenomenon is ubiquitous in the simulation, as shown in Fig. 21 , where we plot all the profiles between source 6 and the six other sources in the simulation. We observe that, as long as two sources are distant enough, the same kind of dips appear in the photon density of \rm M_{1} , where the density of \rm P_{9} is smooth, as is physically expected at this time in the simulation. This hints toward the fact that this unphysical phenomenon, as well as the ejectas of matter we have mentioned previously, also takes place in more complete simulations, and, as mentioned previously with the stark differences in neutral fraction between the models. This is also highlighted in the PDF on the left plot of Fig. 17 , where a tail appears in the \rm M_{1} distribution which is absent from all \rm P_{n} ones, showcasing far more cells at low density, and, as such, a far more diffuse distribution of photons in the box. We can quantify this difference in ionisation by observing the plot and histogram in Fig. 19 , showcasing the ratio of neutral fractions x_{HI}(P_{9})/x_{HI}(M_{1}) at 4.0 Myr. The sigma of the log-gaussian is \sigma=0.28 , which is almost the same as in the transitional regime. This error is bound to have an impact on the global output of the neutral fraction, which is the observable that is used to probe the reionisation epoch. It appears that the results given by the \rm M_{1} model for this observable might not represent reality as good as \rm P_{9} does. To get a better insight into the observational equivalent of what is presented in this simplified version of a cosmological simulation, we can observe the transmission spectra of our cells, i.e. the fraction of radiation they allow to pass through depending on the wavelength of light, as a makeshift ”mock” Lyman- \alpha forest spectra. The transmission in a cell is computed by taking the inverse exponential of \tau , which is defined as follows ( Dijkstra 2019 ) : \tau=n_{H}(1-x)dx\sigma_{HI}(T) (30) With: \sigma_{HI}(T)=5.9\times 10^{-14}\times(\frac{T}{10^{4}})^{-\frac{1}{2}}\times 10^{-4} (31) However, to ensure we get a representative sample of how the transmission can evolve depending on the medium it is going through, we take four separate lines of sights (LoS) in our box to extract the spectra from. They are shown in Fig. 22 , and were chosen with the following criterions: • LoS 1 goes through two regions with a large contrast in neutral fraction when comparing the two models, as seen in Fig. 19 • LoS 2 goes through source 7, whose ”dark sombrero” artifact is very visible in most of our images and in Fig. 20 • LoS 3 goes through the high photon density region created by the cluster of sources 3 to 6, whose interaction with source 7 is shown in most of our images • LoS 4 goes through a region with high neutral fraction x_{HI} , thus less ionised The results are shown in Fig. 23 for all of the four LoS. We observe far less transmission in \rm M_{1} when the LoS goes through less ionised medium, which shows once again the weaker ionising effect of this model. We also highlight the fact that this difference is strongest in areas with a large difference in neutral fractions between the two models, especially with LoS 1. Comparing it to Fig. 19 , we can see regions where \rm P_{9} ionises more, where \rm M_{1} ’s transmission is lower, and regions where \rm M_{1} over-ionises (LoS 1, 400-500 \rm h^{-1}\rm kpc ), i.e. where \rm M_{1} ’s transmission is higher than \rm P_{9} ’s. This latter area has been shown to be the result of non-physical interactions in \rm M_{1} , which in turn has a real, very tangible effect in these spectra. What we also observe is the presence of cells with a transmission value of 0 for both models in three of the four LoS, showing that there are still areas that are opaque to radiation at this epoch. However, they are quite sparse, and more common and larger in \rm M_{1} . 5 Conclusions \rm P_{n} is an alternative moment based radiative transfer model to the usual \rm M_{1} model, based on a projection of the moments on the spherical harmonics basis and using a simple closure equation. After showcasing how it can correct some of the most glaring issues in \rm M_{1} , such as the interactions between sources, but also pointing at its weaknesses, namely its sensitivity to discontinuities and its ability to output negative photon densities, we compared the two models using benchmarked tests created for this purpose. It turns out that even in the more physical and astro-physical context, \rm P_{n} fares better than \rm M_{1} . To top it all, \rm P_{n} corrects the glaring issues \rm M_{1} showcases in the most complex test, which is also the closest to real simulations where the two models could be used, especially in the optically thin regime. As such, \rm P_{n} appears to be a viable replacement for \rm M_{1} from a purely physical standpoint. By comparing \rm P_{9} and \rm M_{1} radiation fields in an idealised and cosmological test case, we highlight a new, thus far unreported artefact of \rm M_{1} , the ’dark sombrero’. A dark sombrero appears in \rm M_{1} solutions as a spherical photon-deficit shell around the source, at typically 1/3-1/4 of the distance to the next source. The photon density in dark sombreros can be underestimated by a factor up to 2-3. They occur in regions where a source’s radiation field connects with that of another source or group of sources. These basic properties (position and amplitude) of the dark sombreros may depend on the sources’ relative intensities, positions, spatial resolution, although we have not been able to test this in detail in this study. Moreover, the \rm M_{1} larger scale photon density also exhibits spurious features, enhancing or reducing photon density in various regions. We use a small reionisation-like test simulation to characterize the relative error in hydrogen neutral fractions between \rm M_{1} and \rm P_{9} . We find that there is a small difference in the timing of the reionisation of the test box. Also, in its final state \rm M_{1} test box is slightly more neutral than the \rm P_{9} realization. In regions where reionisation is finished in both models, the relative error is well represented by a gaussian with a dispersion between 0.22 and 0.28 dex in \log_{10}(\rm x_{HI}) . Both aspects are likely related to the photons’ collisional behaviour in \rm M_{1} . We also compute the Lyman- \alpha transmission on 4 LoS of this mini-reionisation box, to produce mock Lyman- \alpha forests. We find the main transmission differences between \rm M_{1} and \rm P_{9} are related mostly to the small difference in neutral fraction between the two models, with \rm M_{1} being slightly more opaque than \rm P_{9} , except where spurious overionisation occurs in \rm M_{1} . We highlight that this is mostly an experiment and ideally, a proper, large-scale, well-resolved, Cosmic Dawn - like simulations should be performed to quantify these transmission differences in a more realistic scenario. Even though \rm P_{n} may display a form of oscillatory behaviour in presence of either quickly time-varying or angle-discontinuous sources (such strongly collimated / focused emission), this can be mitigated by increasing \rm P_{n} ’s order, at the cost of a lot of computational power (see Appendix B ) or filtering. We’ve shown that models like \rm P_{3} or \rm P_{5} might have too low orders to be used in simulations, but that \rm P_{7} and \rm P_{9} seem already close to convergence in the tests we’ve showcased. We consider that there is probably no need to push the order further for our simulations, which, in general, fit the model’s needs quite well, with their isotropic sources and simple geometry. However, further tests could be done comparing \rm P_{9} , \rm P_{11} , \rm P_{13} and \rm P_{15} to ensure this convergence in more complex environments. Of course, all the tests presented in this paper were done in a simplified context, with only hydrogen, simplified chemical reactions, and no gravity or hydrodynamics added. Knowing that RT already takes up a large part of the computing power and time in current cosmological simulations with the use of \rm M_{1} as a radiative transfer model, the question of the cost \rm P_{n} could add to these simulations has to be asked. Furthermore, even if we’ve highlighted some of the starkest differences between \rm M_{1} and \rm P_{n} , we still need to study these differences and their impact in larger, more complex simulations. As such, a comparison should be made between fully fledged cosmological runs with both models to ensure this increased computational costs translates to a significant variation in our final results. Ideally, the results presented in this paper should motivate and support an implementation of \rm P_{N} into state of the art and exascale astrophysical codes such as RAMSES, miniRAMSES 1 1 1 https://bitbucket.org/rteyssie/mini-ramses/src/develop/ and DYABLO. Alternatively, other methods should be researched to overcome \rm M_{1} ’s shortcomings, such as with the use of neural network to correct its closure or to facilitate the computation of the closure of higher orders of \rm M_{N} . Acknowledgements. The authors would like to acknowledge the High Performance Computing Center of the University of Strasbourg for supporting this work by providing scientific support and access to computing resources. Part of the computing resources were funded by the Equipex Equip@Meso project (Programme Investissements d’Avenir) and the CPER Alsacalcul/Big Data. This work of the Interdisciplinary Thematic Institute IRMIA++, as part of the ITI 2021-2028 program of the University of Strasbourg, CNRS and Inserm, was supported by IdEx Unistra (ANR-10-IDEX-0002), and by SFRI-STRAT’US project (ANR-20-SFRI-0012) under the framework of the French Investments for the Future Program. Appendix A \rm P_{n} matrices In this appendix, we will write the definitions of the matrices J_{x},J_{y},J_{z} as defined in the thesis of Bertrand Meltz ( Meltz 2015 ) . We won’t however go through the extensive proof and recurrence developed in said paper. Let us define A_{l}^{m} and B_{l}^{m} in the context of spherical harmonics with l0\\ &0,&\quad x=0\\ &-1,&\quad x<0\end{aligned}\right. (38) Figure 24 : Pulse response of \rm M_{1} Left: and \rm P_{3} Right: Figure 25 : Radial profiles of an impulse response using \rm M_{1} and various orders of \rm P_{n} Figure 26 : Dense clump of hydrogen in the path of a flux of ionising radiations using \rm P_{3} at 16 Myr Figure 27 : Fraction of negative photon density cells Left: and minimum density Right: over time in the cosmological map test Appendix B Order and negativity As mentioned previously, one of \rm P_{n} ’s limitations is its propensity to oscillate in the presence of strong spatial, angular and time discontinuities. Source angular discontinuities are quite unusual in the context of reionisation simulation, since sources are in general isotropic and continuous, and the boundary conditions are generally periodic. Here, we tried very hard to put \rm P_{n} through the worst case scenario and see how it fares. This short test consists of a single discontinuous adimensional source. There is no chemistry involved here, we just want to observe how \rm P_{n} reacts to a pulse-like source that we will define as a dirac, such that the integral of the cell containing it is equal to 1. As such, our source emits as follows during one time step: S=\frac{1}{dxdydz} (39) We expect the differences between \rm M_{1} and \rm P_{n} to be quite sharp, with \rm M_{1} being strictly positive and non oscillatory, contrary to \rm P_{n} . However, we’re interested in the difference between the various orders of \rm P_{n} and at what point the order is high enough for these oscillations to dampen enough to be comparable to \rm M_{1} . These results can already be seen quite clearly in fig 24 where the ring of the wave front for \rm M_{1} is very visible, but \rm P_{3} oscillates and outputs negative energies, which makes the position of the wave front less obvious. This is even more blatant when looking at the profiles for both models, as \rm P_{3} ’s minimum at this time step is -40 , its negative amplitude being far superior to its positive part. It is important to note that \rm P_{3} is used here on purpose, as its very low order showcases the limits of \rm P_{n} the most, and demonstrates why there is a need to go to higher orders for a sensible result, which we did during this paper. To convince ourselves further, a simple look at Fig. 25 shows the various profiles of the impulse response for several orders of \rm P_{n} , with \rm M_{1} in dashed line as a reference. The oscillations of the models are very strong under order 9, where the output becomes almost indistinguishable from \rm M_{1} . As such, we can assume that orders above \rm P_{9} are able to handle the worst case of \rm P_{n} the best, as their oscillations are dampened enough for them to be negligible. This is the reason why we focused mainly on \rm P_{9} in this paper, instead of less expensive orders like \rm P_{7} or \rm P_{5} . We also point out that it is possible to use filters to dampen the oscillations for almost no computational cost, but it is beyond the scope of this paper. The issue of the lower orders of \rm P_{n} appears in other unfavourable cases, for example the clump test of section 4.3 , where all sources are directional, thus non isotropic, thus introducing a discontinuity into \rm P_{n} . Fig. 26 shows the result of this test using \rm P_{3} , and we can clearly note that \rm P_{n} , at low order and similar computational cost to \rm M_{1} , cannot reproduce correctly what we physically expect from this test. \rm P_{3} , which only requires 16 coefficients, creates large visible modes in the photon density, and tends to over-ionise the sphere. On top of that, its modes output negative energies in a large area close to the sources, at the top of the simulation box, which creates artefacts in the neutral fraction and temperature that should not exist. As such, we can say that, to have a reliable \rm P_{n} model able to reproduce or outperform \rm M_{1} ’s result, a higher order is required, and as such, a higher computational cost. However, can we ensure the positivity of our model at all times, even at higher orders and in a favourable test? This can be answered partially by Fig. 27 , where we plot the fraction of negative cells to the right in the cosmological map test. One surprising result is that, in this specific test case, the fraction of negative cells seems to be almost independent of the order of our model, with a peak around 7.5% of cells around 0.2 Myr. It means that no matter which model we use, there will be at least some cells outputting a negative energy, which might pose a problem. However, we can note that in the case of this test, these negative cells are transient and do not last until the end of the simulation, but also that these cells are not as negative as others. Indeed, when looking at the right plot of Fig. 27 that shows the minimum energy value at each time step, it appears obvious that all models above \rm P_{7} have an almost negligible negative outputs, which in turn won’t impact the simulation as much as \rm P_{3} or \rm P_{5} would. Indeed, since we approximate the value of a negative cell as 0 (see Eq. 18 ), the impact of this modification will be smaller if the value of our negative cell is already almost a 0. This is yet another reason for favouring higher order \rm P_{n} even in scenarios where lower orders would seem accurate.