Open Access
Issue
A&A
Volume 653, September 2021
Article Number A139
Number of page(s) 10
Section Astrophysical processes
DOI https://doi.org/10.1051/0004-6361/202040236
Published online 24 September 2021

© J. Perdigon et al. 2021

Licence Creative CommonsOpen Access article, published by EDP Sciences, under the terms of the Creative Commons Attribution License (https://creativecommons.org/licenses/by/4.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

1. Introduction

The study of circumstellar environments at different stages of stellar evolution is of crucial importance. These environments reflect the physical processes in action, from the star formation with the presence of accretion discs to late stages in the evolution, in which strong stellar winds shape the circumstellar envelopes. Observations at high angular resolution allow to probe and characterise the circumstellar material by determining densities, temperatures, abundances, velocity fields, etc. The exploitation of instruments such as the Multi AperTure mid-Infrared SpectroScopic Experiment1 (MATISSE), operating in the mid-IR, or the Atacama Large Millimeter Array2 (ALMA) in the sub-millimetric domain offer complementary views of these environments, that give access to regions close to the central star up to the outer regions using a multi-wavelength approach.

Circumstellar matter is generally composed of a mixture of gas and dust particles that absorbs and scatters the incident stellar radiation. The envelope is then heated by the radiation, and a radiative equilibrium can be reached in which the envelope also emits radiation in the infrared domain.

In order to constrain the models describing circumstellar environments, it is necessary to solve the radiative transfer equation under the assumption of radiative equilibrium. Several numerical techniques exist to solve this problem in one, two, and three dimensions. The Monte Carlo method is popular because it can be adapted to any geometry and can handle many physical processes (see Steinacker et al. 2013 for a thorough review). However, solving the radiative transfer problem requires much CPU time, which makes the use of any automatic minimisation procedure to characterise these environments challenging.

In this context, the use of approximate methods is of primary interest. One promising candidate is the flux-limited diffusion (FLD), introduced by Levermore & Pomraning (1981) (L&P hereafter). This description numerically simplifies the problem by recasting the radiative transfer equation into a non-linear diffusion equation for the mean specific intensity of the radiation field (see Sect. 2).

Physically, the boundary conditions (BCs) for the radiative transfer equation are obtained from the known specific intensity incident on the surface of the object. However, the outgoing intensity is not known a priori and has to be obtained from the solution of the radiative transfer problem. It is thus not obvious to find a BC for the mean specific intensity at the surface of the object. A consequent theoretical work has already been done in finding satisfying BCs for the FLD method (Pomraning 1986, 1988). These BCs were derived with the assumption that a boundary layer could be defined, which might not be true in astrophysical applications where the media may not be seen as an infinite half-space by the radiation for some frequencies. Furthermore, as far as we know, they have never been numerically tested in an astrophysical context.

The FLD approximation has already been implemented in several astrophysical applications. Sonnhalter et al. (1995), Yorke & Sonnhalter (2002) used the FLD to solve the frequency-dependent radiative transfer to model protostellar discs and massive star formation, respectively. In these studies, the central star was treated as an additional source and the specific mean intensity Jν at the outer edge of the media was set to be equal to the Planck function Bν(Tout), with a prescribed temperature Tout at the boundary. Some improvements were made later, in the context of the radiation hydrodynamics problem for massive star formation (see Kuiper et al. 2010; Mignon-Risse et al. 2020). These more sophisticated hybrid codes split the radiation field into two components, the stellar and the dust component, where the FLD method only solves for the latest part. In this treatment, the Dirichlet boundary condition at the outer edge only applies to the dust component. This relies on the assumption that the dust temperature is known at the interface with the interstellar medium. In the problem we consider, the temperature at the outer boundary is not known a priori and must be derived as part of the solution to the radiative transfer problem coupled with the radiative equilibrium equation. In a non-grey problem, we need BCs that can properly handle several regimes of optical thicknesses, for different frequencies.

We present new BCs for the FLD theory in circumstellar environments that we tested and implemented in the case of spherically symmetric envelopes. The condition is derived from the prescription of (i) the incident flux, derived from an extended stellar source and the self-heating of the envelope at the inner boundary and from (ii) the ratio of the mean specific intensity over the radiative flux at the free outer boundary. We show that they both may be written as mixed BCs relating the mean specific intensity and its gradient at the surfaces of the envelope. They consequently lead to a more realistic description of the radiation field (compared to simple Dirichlet or von Neumann boundary conditions) while still remaining sufficiently easy to implement. As a by-product of our investigations, we also derived an approximate expression for the emergent flux at the free outer surface.

The paper is organised as follows: in Sect. 2 we recall the bases of the FLD theory. In Sect. 3 we present the new boundary conditions and in Sect. 4 their numerical implementations. In Sect. 5 we test the accuracy of our results by comparing the temperature profile in the envelope and the spectral energy distribution (SED) of the outgoing flux with the results of two radiative transfer codes, namely (i) DUSTY (Ivezic & Elitzur 1997), which numerically solves the integral equation for the energy density, and (ii) a Monte Carlo (MC) radiative transfer code (Niccolini & Alcolea 2006). Additionally, we compare the derived boundary conditions with the original boundary conditions of Levermore & Pomraning (1981). Finally, in Sect. 6, we conclude and present some perspective for our future work.

2. The flux limited diffusion theory

In the following, we present the original work of L&P and introduce the relevant background for the derivation of the BCs in Sect. 3. The position is denoted by r, the direction of propagation by n ̂ $ {\hat{n}} $, and the frequency by the subscript ν. The transport equation for the specific intensity I ν ( r , n ̂ , t ) $ {I_{\nu}}\left(\boldsymbol{r},{\hat{n}},t\right) $ at the position r in the n ̂ $ {\hat{n}} $ direction with isotropic and coherent scattering is

1 c t I ν + n ̂ . I ν = κ ν ext I ν + κ ν abs B ν + κ ν sca J ν . $$ \begin{aligned} \frac{1}{c} \partial _t \, I_{\nu }+ \hat{n}.\boldsymbol{\nabla } I_{\nu }= - \kappa ^{\mathrm{ext} }_{\nu }I_{\nu }+ \kappa ^{\mathrm{abs} }_{\nu }B_{\nu }+ \kappa ^{\mathrm{sca} }_{\nu }J_{\nu }. \end{aligned} $$(1)

Jν = Jν(r,t) is the mean specific intensity, Bν = Bν(T(r,t)) is the Planck function and κ ν ext $ {\kappa^{\mathrm{ext}}_{\nu}} $, κ ν abs $ {\kappa^{\mathrm{abs}}_{\nu}} $ and κ ν sca $ {\kappa^{\mathrm{sca}}_{\nu}} $ are the extinction, absorption and scattering coefficients, respectively. The zeroth and first moments of the specific intensity, namely Jν and Hν, are defined as

J ν = 1 4 π 4 π I ν d 2 n ̂ , H ν = 1 4 π 4 π I ν n ̂ d 2 n ̂ , $$ \begin{aligned} J_{\nu }= \frac{1}{4\pi }\int \limits _{4\pi } I_{\nu }\ \mathrm{d} ^2\hat{n}, \boldsymbol{H}_{\nu }= \frac{1}{4\pi }\int \limits _{4\pi } I_{\nu }\ \hat{n}\ \mathrm{d} ^2\hat{n}, \end{aligned} $$(2)

where the integration is performed over all directions. These quantities are linked by the zeroth moment of Eq. (1),

1 c t J ν + . H ν = κ ν abs ( B ν J ν ) . $$ \begin{aligned} \frac{1}{c} \partial _t \ J_{\nu }+ \boldsymbol{\nabla }.\boldsymbol{H}_{\nu }= \kappa ^{\mathrm{abs} }_{\nu }\left( B_{\nu }- J_{\nu }\right) . \end{aligned} $$(3)

The FLD approximation is a closure of the system of the moment equations by expressing Hν as a function of Jν. This is done by expressing the specific intensity Iν as a function of the mean specific intensity Jν,

I ν = J ν ψ ν ( r , n ̂ , t ) , H ν = J ν h ν ( r , t ) , 1 4 π 4 π ψ ν d 2 n ̂ = 1 , $$ \begin{aligned} I_{\nu }= J_{\nu }\ \psi _\nu \left(\boldsymbol{r},\hat{n},t\right), \boldsymbol{H}_{\nu }= J_{\nu }\ \boldsymbol{h}_\nu \left(\boldsymbol{r},t\right),\frac{1}{4\pi }\int \limits _{4\pi } \psi _\nu \ \mathrm{d} ^2\hat{n}= 1 , \end{aligned} $$(4)

where hν is the normalised flux and is expressed as

h ν ( r , t ) = 1 4 π 4 π n ̂ ψ ν ( r , n ̂ , t ) d 2 n ̂ . $$ \begin{aligned} \boldsymbol{h}_\nu \left(\boldsymbol{r},t\right) = \frac{1}{4\pi }\int \limits _{4\pi } \hat{n}\, \psi _\nu \left(\boldsymbol{r},\hat{n},t\right) \mathrm{d} ^2\hat{n}. \end{aligned} $$(5)

The ψν function is called the normalised intensity and quantifies the anisotropy of the radiation field Iν. In the optically thin and thick limits, this function reduces to a Dirac distribution and a constant, respectively. The FLD approximation consists of assuming that the anisotropy of the radiation field is a conserved quantity, yielding the expression for ψν,

ψ ν ( r , n ̂ , t ) = 1 1 + ( h ν n ̂ ) . R ν , $$ \begin{aligned} \psi _\nu \left(\boldsymbol{r},\hat{n},t\right) = \frac{1}{1+ \left( \boldsymbol{h}_\nu - \hat{n}\right) .\boldsymbol{R}_\nu } , \end{aligned} $$(6)

with

R ν ( r , t ) = J ν ω ν κ ν ext J ν , ω ν = κ ν abs B ν + κ ν sca J ν κ ν ext J ν · $$ \begin{aligned} \boldsymbol{R}_\nu \left(\boldsymbol{r},t\right) = \frac{- \boldsymbol{\nabla }J_{\nu }}{\omega _\nu \ \kappa ^{\mathrm{ext} }_{\nu }\ J_{\nu }}, \ \ \ \ \omega _\nu = \frac{\kappa ^{\mathrm{abs} }_{\nu }B_{\nu }+ \kappa ^{\mathrm{sca} }_{\nu }J_{\nu }}{\kappa ^{\mathrm{ext} }_{\nu }J_{\nu }} \cdot \end{aligned} $$(7)

The quantity denoted by Rν plays a key role in the description of the local radiation field in the medium. It expresses the ratio of the (effective) mean free path over the characteristic length of the variation of the mean specific intensity. Consequently, the limits Rν ≫ 1 and Rν ≪ 1 correspond to the optical thin and thick regimes, respectively. The quantity ων is called the effective albedo. It is equal to unity in the absence of true absorption ( κ ν abs $ {\kappa^{\mathrm{abs}}_{\nu}} $ = 0). L&P showed that, using Eq. (6) in Eq. (5), hν is proportional to Rν,

h ν = λ ( R ν ) R ν , λ ( R ν ) = 1 R ν ( 1 tanh R ν 1 R ν ) , $$ \begin{aligned} \boldsymbol{h}_\nu = \lambda \left(R_{\nu }\right) \boldsymbol{R}_\nu , \ \ \ \ \lambda \left(R_{\nu }\right) = \frac{1}{R_{\nu }}\left( \frac{1}{\tanh {R_{\nu }}} - \frac{1}{R_{\nu }} \right) , \end{aligned} $$(8)

where Rν is the norm of Rν and λ(Rν) is the ‘flux-limiting’ parameter. Finally, using Eq. (8) in Eq. (4) allows Eq. (3) to be rewritten as a non-linear diffusion equation for the mean specific intensity

1 c t J ν . ( D ν J ν ) = κ ν abs ( B ν J ν ) , $$ \begin{aligned} \frac{1}{c}\partial _t \ J_{\nu }- \boldsymbol{\nabla }.\left( D_{\nu }\boldsymbol{\nabla } J_{\nu }\right) = \kappa ^{\mathrm{abs} }_{\nu }\left( B_{\nu }- J_{\nu }\right) , \end{aligned} $$(9)

with the non-linear diffusion coefficient

D ν = λ ( R ν ) ω ν κ ν ext . $$ \begin{aligned} D_{\nu }= \frac{\lambda \left(R_{\nu }\right)}{\omega _\nu \kappa ^{\mathrm{ext} }_{\nu }} . \end{aligned} $$(10)

We note that in the FLD approach, the radiative net flux Hν is related to the gradient of the mean specific intensity Jν by Hν = −DνJν. It shows some similarities with the Fick law, which applies in the stellar interior, but here the diffusion coefficient depends on a non-linear way on the mean specific intensity. In the optically thick regime, the FLD approximation reduces to a linear diffusion equation, whereas in the optically thin regime, it reduces to an advection equation, as expected.

3. Boundary conditions

In this section, we specify the time-independent BCs that were implemented for the FLD Eq. (9). They are defined at the specific boundaries of a circumstellar shell, namely an inner spherical cavity that is illuminated by an enclosed star, and an outer boundary with no incoming radiation.

The BCs for the radiative transfer equation Eq. (1) would be obtained by specifying the value of the incident specific intensity Iν on the considered surface. In the framework of the FLD approximation, we face two problems: (i) The FLD equation applies to the mean specific intensity, whereas the physical constraint is on the ingoing specific intensity at the boundaries, and (ii) we also explained in Sect. 2 that the FLD approach implies a specific angular dependence of Iν, given by the function ψν (see Eq. (6)). This specific dependence would not be consistent with any arbitrary value of the incident radiation field at the surface. Consequently, the actual BCs for the radiative transfer equation are in general incompatible with the FLD solution.

This is expected because the FLD approximation is in principle not valid close to the boundaries of objects. Pomraning (1988) derived the BCs for the FLD equation from the decomposition of the radiative transfer problem into an interior problem described by the FLD equation and an additional boundary layer term. The match of the interior and boundary layer solutions yields the BCs for the FLD equation. A relation of the surface values of the mean specific intensity and its gradient is obtained, but with rather involved coefficients depending on integrals of the Chandrasekhar H function and on the surface value of Rν. In the literature, Dirichlet BCs are often used with a prescribed value for the temperature at the outer boundary of the medium. As already pointed out, the surface temperature is not known a priori and must be derived from the solution of the radiative transfer problem.

Here, we propose to impose BCs for the zeroth and the first angular moments of the radiation field, in a form that is compatible with the FLD approach, in order to ensure a smooth match with the interior FLD solution. We obtained mixed Robin-type BCs that relate the surface values of the mean specific intensity and its gradient, but the coefficients are quite simple analytical functions of the surface value of Rν.

3.1. Inner spherical cavity

3.1.1. Expression of the incident flux in the FLD formalism

One example of physical significance is to write a condition on the flux F ν in $ {F^{\mathrm{in}}_{\nu}} $ entering a boundary surface at the position rS,

F ν in ( r S ) = J ν ( r S ) s ̂ . n ̂ 0 s ̂ . n ̂ ψ ν ( r S , n ̂ ) d 2 n ̂ . $$ \begin{aligned} F^{\mathrm{in} }_{\nu }(\boldsymbol{r}_\mathrm{S} ) = J_{\nu }(\boldsymbol{r}_\mathrm{S} ) \int \limits _{\hat{s}.\hat{n}\le 0} \hat{s}.\hat{n}\ \psi _\nu (\boldsymbol{r}_\mathrm{S} ,\hat{n})\ \mathrm{d} ^2\hat{n}. \end{aligned} $$(11)

Here, s ̂ $ {\hat{s}} $ is the outward normal vector to the surface of the envelope ( s ̂ = r ̂ $ {\hat{s}}= - \hat{r} $ at the inner edge). The right-hand side (RHS) of Eq. (11) is the expression of an incoming flux in the FLD formalism. Equation (11) is the general form of the inner BC without any assumption on the geometry of the problem. The integral can be performed analytically using Eq. (6) for ψν if we assume that the vector Rν is normal to the surface ( R ν = ± R ν r ̂ $ \boldsymbol{R}_\nu = \pm \, R_\nu \ {\hat{r}} $), which is exact for spherically symmetric problems. The equation can then be rewritten as a non-linear mixed BC,

F ν in ( r S ) = π ( α ν J ν ( r S ) + β ν s ̂ . J ν | r = r S ) $$ \begin{aligned} F^{\mathrm{in} }_{\nu }(\boldsymbol{r}_\mathrm{S} ) = \pi \left( \alpha _\nu \ J_{\nu }(\boldsymbol{r}_\mathrm{S} ) + \beta _\nu \ \hat{s}.\boldsymbol{\nabla } J_{\nu }|_{\boldsymbol{r}=\boldsymbol{r}_\mathrm{S} } \right) \end{aligned} $$(12)

with

α ν = 2 ln ( cosh R ν ) R ν tanh R ν | r = r S , β ν = 2 D ν | r = r S . $$ \begin{aligned} \alpha _\nu = \left. 2 \frac{\ln {(\cosh {R_{\nu }}})}{R_{\nu }\tanh {R_{\nu }}}\right|_{\boldsymbol{r}=\boldsymbol{r}_\mathrm{S} },\ \ \ \ \beta _\nu = 2 D_{\nu }|_{\boldsymbol{r}=\boldsymbol{r}_\mathrm{S} }. \end{aligned} $$(13)

This BC may be regarded as an implicit relation of the surface values of Jν and Rν that yields an FLD solution compatible with the given incident flux. It is interesting to note that although Eq. (12) is different in its coefficients and construction from the original BC Eqs. (56) and (66) in L&P, they are analytically equivalent. In L&P, the coefficients were derived to give an exact transport result for the case of a source-free (Bν = 0) half-space media, with a constant κ ν ext $ {\kappa^{\mathrm{ext}}_{\nu}} $, ων and a particular incident intensity distribution Γ(rS, μ) of the form

Γ ( r S , μ ) = 1 coth ( R ν ( r S ) ) μ = R ν ( r S ) ψ ν ( r S , μ ) . $$ \begin{aligned} \Gamma (\boldsymbol{r}_\mathrm{S} ,\mu ) = \frac{1}{\coth (R_{\nu }(\boldsymbol{r}_\mathrm{S} )) - \mu } = R_{\nu }(\boldsymbol{r}_\mathrm{S} ) \ \psi _\nu (\boldsymbol{r}_\mathrm{S} ,\mu ) . \end{aligned} $$(14)

This specific form is proportional to the angular dependence in the FLD formalism. The correspondence between αν in Eq. (13) and Eq. (56) in L&P is

γ = α ν 2 λ ( R ν ) s ̂ . R ν 2 4 λ ( R ν ) s ̂ . R ν . $$ \begin{aligned} \gamma = \frac{\alpha _\nu - 2 \lambda (R_{\nu }) \hat{s}.\boldsymbol{R}_\nu }{2 - 4 \lambda (R_{\nu }) \hat{s}.\boldsymbol{R}_\nu } . \end{aligned} $$(15)

Hence, specifying the FLD flux at the boundaries of a spherically symmetric domain will actually give the same BC as is obtained by solving the exact transport result of a source-free (Bν = 0) half-space media, with a constant κ ν ext $ {\kappa^{\mathrm{ext}}_{\nu}} $, ων and a particular incident intensity distribution Γ(rS, μ), given by Eq. (14). We note that this equivalence only applies for the spherical and planar symmetric systems and no longer holds when we specify Eq. (11) for other configurations, where the radiative flux is not orthogonal to the boundary surface.

3.1.2. Incident flux from an extended source and the envelope

We want to write the BC at an inner spherical cavity located at a distance Rin from the centre of a star of radius R ( r S = R in r ̂ $ \boldsymbol{r}_S = {R_{\text{in}}}\ \hat{r} $) and surface temperature T. For this, we need to specify the flux F ν in $ {F^{\mathrm{in}}_{\nu}} $. We have two contributions,

F ν in = s ̂ . n ̂ 0 s ̂ . n ̂ [ B ν ( T ) + I ν e ( r , n ̂ ) ] d 2 n ̂ . $$ \begin{aligned} F^{\mathrm{in} }_{\nu }= \int \limits _{\hat{s}.\hat{n}\le 0} \hat{s}.\hat{n}\left[ B_{\nu }(T_{\star }) + I^{\mathrm{e} }_{\nu }\left(\boldsymbol{r},-\hat{n}\right) \right]\ \mathrm{d} ^2\hat{n}. \end{aligned} $$(16)

The first contribution, denoted by Bν(T) comes from the star and the other from the inner boundary itself and is expressed as I ν e ( r , n ̂ ) = J ν ( r ) ψ ν ( r , n ̂ ) $ {I^{\text{e}}_{\nu}}\left(\boldsymbol{r},-{\hat{n}}\right) = J_\nu \left( \boldsymbol{r}\right) {\psi_\nu}\left(\boldsymbol{r},-{\hat{n}}\right) $. As shown by Fig. 1, the vector r = r S 2 ( r S . n ̂ ) n ̂ $ \boldsymbol{r} = {\boldsymbol{r}_\text{S}}- 2 ( {\boldsymbol{r}_\text{S}}. {\hat{n}}) \ {\hat{n}} $ corresponds to the opposite point at the inner boundary, along n ̂ $ {\hat{n}} $. Because of this dependence, this BC is no longer local by nature and cannot be expressed in a closed form, except in spherical symmetry where Jν(r) = Jν(rS) and ψ ν ( r , n ̂ ) = ψ ν ( r S , n ̂ ) $ {\psi_\nu}(\boldsymbol{r},- {\hat{n}}) = {\psi_\nu}({\boldsymbol{r}_\text{S}},-{\hat{n}}) $. To perform the angular integration, we aligned the nz axis with the unitary vector r ̂ $ \hat{r} $. For the star, the integration on μ = cos(θ) (θ being the angle between nz and n ̂ $ {\hat{n}} $) spans from μ 0 = 1 ( R / R in ) 2 $ \mu_0=\sqrt{1-\left({R_{\star}}/{R_{\text{in}}}\right)^2} $ to 1, and for the inner cavity, it spans from 0 to μ0,

F ν in = 2 π ( μ 0 1 μ B ν ( T ) d μ + J ν ( r S ) 0 μ 0 μ ψ ν ( r S , μ ) d μ ) . $$ \begin{aligned} F^{\mathrm{in} }_{\nu }= 2 \pi \left( \int \limits _{\mu _0}^{1} \mu \ B_\nu (T_{\star }) \ d\mu + J_\nu (\boldsymbol{r}_S) \int \limits _{0}^{\mu _0} \mu \ \psi _\nu \left(\boldsymbol{r}_S,-\mu \right)\ \mathrm{d} \mu \right) . \end{aligned} $$(17)

thumbnail Fig. 1.

Geometry of an inner spherical cavity (solid black line) illuminated by a central star (grey disc).

The incident flux F ν in $ {F^{\mathrm{in}}_{\nu}} $ is then expressed as,

F ν in = π [ ( R R in ) 2 B ν ( T ) + γ ν J ν ( r S ) ] , $$ \begin{aligned} F^{\mathrm{in} }_{\nu }= \pi \left[ \left(\frac{R_{\star }}{R_{\mathrm{in} }}\right)^2 B_\nu (T_{\star }) + \gamma _\nu \ J_\nu \left( \boldsymbol{r}_S \right) \right] , \end{aligned} $$(18)

with,

γ ν = 2 [ μ 0 tanh R ν ln ( 1 + μ 0 tanh R ν ) ] R ν tanh R ν | r = r S . $$ \begin{aligned} \gamma _\nu = \left.\frac{2 \left[\mu _0\tanh {R_\nu }-\ln {\left(1+\mu _0\tanh {R_\nu }\right)} \right]}{R_\nu \tanh {R_\nu }}\right|_{\boldsymbol{r} = \boldsymbol{r}_S} . \end{aligned} $$(19)

The inner BC for the FLD equation in the case of an inner spherical cavity enclosing a star is

( α ν γ ν ) J ν ( R in ) + β ν s ̂ . J ν | r = R in = ( R R in ) 2 B ν ( T ) , $$ \begin{aligned} \left( \alpha _\nu - \gamma _\nu \right) \ J_\nu \left( R_{\mathrm{in} }\right) + \beta _\nu \ \hat{s}.\boldsymbol{\nabla } J_\nu |_{r = R_{in}} = \left(\frac{R_{\star }}{R_{\mathrm{in} }}\right)^2 B_\nu (T_{\star }), \end{aligned} $$(20)

with αν and βν, the quantities defined by Eq. (13).

We can analytically write the FLD solution with this inner boundary condition in the limit where the envelope is optically thin (Rν ≫ 1) and compare it with the known analytical solution for the dilution of the mean specific intensity in free space,

J ν = B ν ( T ) 2 ( 1 1 ( R r ) 2 ) . $$ \begin{aligned} J_{\nu }= \frac{B_{\nu }(T_{\star })}{2} \left( 1-\sqrt{1-\left(\frac{R_{\star }}{r}\right)^2} \right) . \end{aligned} $$(21)

In the optically thin limit, the FLD Eq. (9) and the BC Eq. (20) reduce to

r 2 J ν = const . = R in 2 J ν ( R in ) , J ν ( R in ) = 1 4 ( R R in ) 2 B ν ( T ) , $$ \begin{aligned} r^2 J_{\nu }= \mathrm{const.} = R_{\mathrm{in} }^2 J_{\nu }\left( R_{\mathrm{in} }\right), J_{\nu }\left( R_{\mathrm{in} }\right) = \frac{1}{4} \left(\frac{R_{\star }}{R_{\mathrm{in} }}\right)^2 B_\nu (T_{\star }) , \end{aligned} $$(22)

respectively. The solution of the FLD equation, in this limit is then

J ν = 1 4 ( R r ) 2 B ν ( T ) , $$ \begin{aligned} J_{\nu }= \frac{1}{4} \left(\frac{R_{\star }}{r}\right)^2 B_{\nu }(T_{\star }), \end{aligned} $$(23)

in agreement with Eq. (21) when (R/r)2 ≪ 1. The relative difference in temperature between Eq. (21) and the FLD solution Eq. (23) is ≈15% at the star surface, 1% at r ≈ 2.5 R. For r ≳ 10 R (values for our test cases presented in Sect. 5), this difference becomes negligible (≲0.06%).

3.2. Outer boundary

For the inner cavity, we would like to impose that no incoming radiation enters the external shell of the envelope ( F ν in =0 $ F_\nu^\mathrm{in} = 0 $). However, in the FLD formalism, the angular dependence of the radiation is given by the specific form of the ψν function (Eq. (6)). The incoming radiation vanishes only when Rν becomes infinite, which also results in a sharp-peaked distribution for the emerging specific intensity. This is not physically realistic, and this inconsistency is expected because the FLD method is rigorously not valid close to the surface of the object. Another approach is then required to describe the behaviour of the radiation on the external edge. Inspired by L&P and Pomraning (1986), we seek a BC in the form of a closure relation between the mean specific intensity and the radiation flux at the surface, that is,

J ν ( R out ) ζ ν s ̂ . H ν ( R out ) = 0 , $$ \begin{aligned} J_\nu (R_{\mathrm{out} }) - \zeta _\nu \ \hat{s}.\boldsymbol{H_\nu }(R_{\mathrm{out} }) = 0, \end{aligned} $$(24)

with ζν, a coefficient we need to determine. At the outer edge and without incoming radiation, ζν has to be understood as the ratio of the energy density over the emerging flux. This ratio can be expressed in spherical symmetry as

ζ ν = 0 1 I ν d μ 0 1 μ I ν d μ . $$ \begin{aligned} \zeta _\nu = \frac{\int _{0}^{1} I_{\nu }\ \mathrm{d} \mu }{\int _{0}^{1}\mu \ I_{\nu }\ \mathrm{d} \mu }. \end{aligned} $$(25)

It depends on the anisotropy of the emergent radiation field. In the optically thin limit, the radiation field is along the s ̂ $ {\hat{s}} $ direction (spherical symmetry), thus Iν ∝ δ(μ − 1) and hence ζ ν 1 $ \zeta_\nu \rightarrow 1 $. In the diffusion regime where the emergent field is isotropic, ζ ν 2 $ \zeta_\nu \rightarrow 2 $. In the original study of L&P, ζν was chosen to be equal to 2, which means that it correctly describes the optically thick cases where Rν ≪ 1. If the BC is to correctly describe different optical regimes, we need ζν to be a function of Rν. In the framework of the FLD approximation, Iν = Jνψν and the specific angular dependence of Iν, given by ψν, is used to compute the surface value of ζν,

ζ ν = ζ ( R ν ) = 2 + α ( R ν ) tanh ( R ν ) α ( R ν ) + 2 λ ( R ν ) R ν . $$ \begin{aligned} \zeta _\nu = \zeta (R_{\nu }) = \frac{2 + \alpha (R_\nu ) \tanh (R_\nu )}{\alpha (R_\nu ) + 2 \lambda (R_\nu )R_\nu } . \end{aligned} $$(26)

In the two limits (Rν ≫ 1 and Rν ≪ 1), we recover ζ ν 1 $ \zeta_\nu \rightarrow 1 $ and ζ ν 2 $ \zeta_\nu \rightarrow 2 $. We note that the latter limit reduces to the boundary condition Eq. (56) in L&P. Now we need to specify the value of Rν at the external boundary of the envelope. The behaviour of the radiation at this interface is only dictated by the interior solution because there is no incoming radiation. Consequently, to ensure a smooth match of the BC and the interior FLD solution, we used a second-order extrapolated value for R ν ( R out )= R ν e $ {R_{\nu}}({R_{\mathrm{out}}}) = {R_{\nu}^{\mathrm{e}}} $ (see Eq. (41)). Because we prescribe a value for Rν at the external edge, R ν e $ {R_{\nu}^{\mathrm{e}}} $ is also used to compute the non-linear diffusion coefficient D ν ( R out )= D ν ( R ν e )=λ( R ν e )/ ω ν κ ν ext $ {D_{\nu}}({R_{\mathrm{out}}}) = {{D_{\nu}}({R_{\nu}^{\mathrm{e}}})} = \lambda({R_{\nu}^{\mathrm{e}}}) / \omega_\nu {\kappa^{\mathrm{ext}}_{\nu}} $ and the coefficients of the numerical scheme Eq. (34) on the external edge. The outer BC without incoming radiation that we implemented is then

J ν ( R out ) + ζ ( R ν e ) D ν ( R ν e ) s ̂ . J ν | r = R out = 0 , $$ \begin{aligned} J_{\nu }(R_{\mathrm{out} }) + \zeta (R_{\nu }^{\mathrm{e} }) \ D_{\nu }(R_{\nu }^{\mathrm{e} })\ \hat{s}.\left.\boldsymbol{\nabla }J_{\nu }\right|_{r=R_{\mathrm{out} }} = 0 , \end{aligned} $$(27)

where we have expressed h ν ( R out )= D ν ( R ν e ) J ν | r= R out $ {\boldsymbol{h}_\nu}({R_{\mathrm{out}}}) = - {{D_{\nu}}({R_{\nu}^{\mathrm{e}}})} \ \boldsymbol{\nabla}\left.{J_{\nu}}\right|_{r={R_{\mathrm{out}}}} $. In Sect. 5.2 we compare this BC in an astrophysical application with respect to the original BCs of L&P.

3.3. Approximation for the emergent flux

We used an extrapolation of the non-linear diffusion coefficient D ν ( R ν e ) $ {D_{\nu}}({R_{\nu}^{\mathrm{e}}}) $ to relate the flux at the external edge to the gradient of the mean specific intensity. As there is no incident flux, this provides us with an approximate expression for the emergent flux, given by

F ν out = 4 π H ν ( R out ) = 4 π D ν ( R ν e ) J ν | r = R out . $$ \begin{aligned} \boldsymbol{F}_\nu ^\mathrm{out} = 4\pi \boldsymbol{H}_{\nu }(R_{\mathrm{out} }) = - 4\pi \ D_{\nu }(R_{\nu }^{\mathrm{e} })\ \left. \boldsymbol{\nabla } J_{\nu }\right|_{r=R_{\mathrm{out} }}\!. \end{aligned} $$(28)

This approximation is tested in Sect. 5. It reproduces the results of different radiative transfer codes that solve the full transfer equation very well, as shown in Figs. 2 and 3.

thumbnail Fig. 2.

Non-grey case: normalised temperature profiles (upper panels) and SEDs (lower panels) for four different opacities τν0 = 1, 10, 100, and 1000 (blue, orange, green and red, respectively) and two density power laws: p = 0 (left panels) and p = 2 (right panels). The solid lines represent the FLD curves, and the black dots indicate the benchmark profiles from Ivezic et al. (1997).

thumbnail Fig. 3.

Grey case: normalised temperature profiles (left panel) and emerging fluxes (right panel) for four different opacities τ = 0.01, 1, 10, and 100 (blue, orange, green and red, respectively) with a constant density profile (p = 0). The solid lines represent the FLD curves, and the black dots with the error bars σ indicate the MC profiles from Niccolini & Alcolea (2006).

3.4. Radiative equilibrium and warming of the stellar surface

Because of the geometric extension of the star (see Fig. 1), there is part of the radiation that emerges from the envelope that falls back onto the star,

F ν fall ( R in ) = 2 π J ν ( R in ) 1 μ 0 μ ψ ν ( R in , μ ) d μ = 2 π J ν ( R in ) R ν tanh R ν [ ln ( 1 + tanh R ν 1 + μ 0 tanh R ν ) ( 1 μ 0 ) tanh R ν ] , $$ \begin{aligned} F_\nu ^{\mathrm{fall} }(R_{\mathrm{in} })&= 2 \pi J_{\nu }(R_{\mathrm{in} }) \int \limits _{-1}^{-\mu _0} \mu \ \psi _\nu \left(R_{\mathrm{in} },\mu \right)\ \mathrm{d} \mu \nonumber \\&= \frac{2 \pi J_{\nu }(R_{\mathrm{in} })}{R_{\nu }\tanh {R_{\nu }}} \left[ \ln {\left(\frac{1+\tanh {R_{\nu }}}{1+\mu _0\tanh {R_{\nu }}}\right)} - \left(1-\mu _0\right)\tanh {R_{\nu }} \right], \end{aligned} $$(29)

with Rν being evaluated at r = Rin. We used the same conventions as in Sect. 3.1 to perform the angle integration. This part of the flux is hidden from the rest of the envelope, and the radiative equilibrium inside the cavity leads to a warming of the stellar surface (Niccolini et al. 2003). This effect can be quite dramatic, and reach up to 30% of the total stellar luminosity that is obscured for optically-thick grey shell, as in the test case presented in Sect. 5.2. This has to be taken into account to properly ensure the radiative equilibrium condition throughout the full space from the stellar surface to the outer boundary of the envelope. To fulfil the radiative equilibrium condition at the stellar surface we write

σ T eff 4 = σ T 4 + ( R in R ) 2 0 F ν fall ( R in ) d ν . $$ \begin{aligned} \sigma T_{\mathrm{eff} }^4 = \sigma T_{\star }^4 + \left(\frac{R_{\mathrm{in} }}{R_{\star }} \right)^2 \int \limits _{0}^{\infty } F_\nu ^{\mathrm{fall} }(R_{\mathrm{in} }) \ d\nu . \end{aligned} $$(30)

We imposed a fixed value for Teff, and the temperature of the star T was updated accordingly.

4. Numerical implementation

The FLD Eq. (9) is a non-linear diffusion equation that has to be solved numerically for each point of space, time, and frequency. In the following, we limit ourselves to the 1D time-independent FLD equation,

1 r 2 r ( r 2 D ν r J ν ) = κ ν abs ( J ν B ν ) . $$ \begin{aligned} \frac{1}{r^2}\partial _r \left( r^2 D_\nu \ \partial _r J_\nu \right) = \kappa ^{\mathrm{abs} }_{\nu }\left(J_\nu - B_\nu \right) . \end{aligned} $$(31)

Here, r denotes the radial variable from the centre of the envelope. An additional constraint to Eq. (31) is given by the equation of the radiative equilibrium

0 κ ν abs B ν d ν = 0 κ ν abs J ν d ν . $$ \begin{aligned} \int \limits _{0}^{\infty } \kappa ^{\mathrm{abs} }_{\nu }B_{\nu }\ \mathrm{d} \nu = \int \limits _{0}^{\infty } \kappa ^{\mathrm{abs} }_{\nu }J_{\nu }\ \mathrm{d} \nu . \end{aligned} $$(32)

These equations are solved for a spherically symmetric envelope of inner radius Rin and outer radius Rout, surrounding a star of radius R.

4.1. Numerical scheme

4.1.1. Finite-difference approximation

Following a finite-difference procedure, we discretise and sample in a logarithmic way the frequency domain into nν points, denoted by the subscript k. Space is discretised into nx cells and denoted by the subscript i. Jν is computed at the cell centres and the vector Hν on the walls. The differential operator is approximated with a second-order finite differences operator. The equation is solved with respect to a new variable x = f(r) on a regular grid of constant step Δx = (x(Rout)−x(Rin))/(nx−2) to allow r to be non-uniformly sampled. We make use of one ghost cell for each grid border to ensure the BCs. We obtain the following system of equations:

A k , i + 1 2 J k , i + 1 A k , i J k , i + A k , i 1 2 J k , i 1 = b k , i B k ( T i ) . $$ \begin{aligned} A_{k,i+\frac{1}{2}} J_{k,i+1} - A_{k,i} J_{k,i} + A_{k,i-\frac{1}{2}} J_{k,i-1} = - b_{k,i} B_k(T_i) . \end{aligned} $$(33)

The non-linear coefficients A are given by

A k , i ± 1 2 = r i ± 1 2 2 D k , i ± 1 2 d x d r | i ± 1 2 , A k , i = A k , i + 1 2 + b k , i + A k , i 1 2 , b k , i = Δ x 2 ( d x d r | i ) 1 r i 2 κ k , i abs . $$ \begin{aligned} \begin{split} A_{k,i\pm \frac{1}{2}} = r_{i\pm \frac{1}{2}}^2 D_{k,i\pm \frac{1}{2}} \left.\frac{\mathrm{d} x}{\mathrm{d} r}\right|_{i\pm \frac{1}{2}},\ A_{k,i} = A_{k,i+\frac{1}{2}} + b_{k,i} + A_{k,i-\frac{1}{2}}, \\ b_{k,i}= \Delta x^2 \left( \left.\frac{\mathrm{d} x}{\mathrm{d} r}\right|_{i} \right) ^{-1} r_{i}^2 \kappa ^{\mathrm{abs} }_{k,i} . \end{split} \end{aligned} $$(34)

The non-linear nature of the equation arises from the expression of the coefficients A and RHS in Eq. (33). They implicitly depend on Jν, through the diffusion coefficient Dν and the radiative equilibrium Eq. (32), respectively. The coefficients A require an estimation of Jν and its gradient (see Eqs. (10) and (7)) at the cell walls, given by

J k , i + 1 2 = 1 2 ( J k , i + 1 + J k , i ) , J ν | k , i + 1 2 = d x d r | i + 1 2 J k , i + 1 J k , i Δ x r ̂ . $$ \begin{aligned} J_{k,i+\frac{1}{2}} = \frac{1}{2}\left( J_{k,i+1} + J_{k,i} \right), \ \left. \nabla J_{\nu }\right|_{k,i+\frac{1}{2}} = \left.\frac{\mathrm{d} x}{\mathrm{d}r}\right|_{i+\frac{1}{2}}\frac{J_{k,i+1} - J_{k,i}}{\Delta x} \ \hat{r}. \end{aligned} $$(35)

4.1.2. Iterative scheme

Several strategies are possible in order to solve the FLD Eq. (33) coupled with Eq. (32). The simplest approach is to use an iterative method to fully solve Eq. (33) and to update the temperature through Eq. (32). Iterating between these two processes until convergence yields the solution of the problem. This procedure, commonly called the Λ-iteration in the literature (see Yorke & Sonnhalter 2002), becomes very slow and does not converge for large optical depths. In analogy with the usual accelerated Λ-iteration (ALI) methods, Yorke & Sonnhalter (2002) found an improved convergence behaviour by splitting the solution of equation Eq. (31) in Eq. (32).

We found a simple method, inspired by the Gauss-Seidel approach, to solve Eqs. (33) and (32) simultaneously instead of repetitively. If we denote by n the iteration of the method, we have

J k , i n + 1 = b k , i B k ( T i n ) + A k , i + 1 2 n J k , i + 1 n + A k , i 1 2 n J k , i 1 n + 1 A k , i n , $$ \begin{aligned} J_{k,i}^{n+1} = \frac{b_{k,i} B_k(T_i^n) + A_{k,i+\frac{1}{2}}^n J_{k,i+1}^n + A_{k,i-\frac{1}{2}}^n J_{k,i-1}^{n+1}}{A_{k,i}^n}, \end{aligned} $$(36)

and the temperature is updated after only one Gauss-Seidel spatial sweep at each frequency through Eq. (32), which we rewrite as

k = 0 n ν 1 W k κ k , i abs B k ( T i n + 1 ) = k = 0 n ν 1 W k κ k , i abs J k , i n + 1 . $$ \begin{aligned} \sum _{k=0}^{n_\nu -1 } W_k\ \kappa ^{\mathrm{abs} }_{k,i} B_k(T_i^{n+1}) = \sum _{k=0}^{n_\nu -1 } W_k\ \kappa ^{\mathrm{abs} }_{k,i} J_{k,i}^{n+1} . \end{aligned} $$(37)

We replaced the frequency integration by a quadrature formula with the associated weights Wk. The left-hand side (LHS) of Eq. (37) was pre-computed and stored in a table, for a wide range of temperatures, allowing the RHS to be linearly interpolated in this table (in the logarithm of the integral for better accuracy). By doing so, we avoided using a Newton-Raphson procedure to determine the new temperature, which reduces the computational time.

Our procedure consisted of repeatedly updating Jν and T with the help of Eqs. (36) and (37) until we reached convergence. The coefficients A Eq. (34) and the BCs Eq. (40) were immediately updated for each frequency k after one Gauss-Seidel spatial sweep. We note that this procedure is different from the usual Λ-iteration presented above because the temperature is updated simultaneously with Jν, within the same iteration n.

4.2. Update of the stellar temperature

The radiative equilibrium inside the inner cavity requires updating the stellar temperature (see Sect. 3.4). Following Eq. (30), we updated the stellar temperature at the end of each iteration n of the numerical scheme,

T n + 1 = ( T eff 4 1 σ ( R in R ) 2 k = 0 n ν 1 W k F k fall , n + 1 ) 1 4 . $$ \begin{aligned} T_{\star }^{n+1} = \left( T_{\mathrm{eff} }^4 - \frac{1}{\sigma } \left(\frac{R_{\mathrm{in} }}{R_{\star }}\right)^2 \sum _{k=0}^{n_\nu -1} W_k \ F_k^{\mathrm{fall} ,n+1} \right)^{\frac{1}{4}} . \end{aligned} $$(38)

Here again, we replaced the frequency integration by a quadrature formula with the associated weights Wk. F k fall,n+1 $ F_k^{\mathrm{fall},n+1} $ is given by Eq. (29) and computed with the freshly updated values of J k , 1 2 n + 1 $ J_{k,\frac{1}{2}}^{n+1} $ and R k , 1 2 n + 1 $ R_{k,\frac{1}{2}}^{n+1} $.

4.3. Boundary conditions

We used two ghosts cells (one at each boundary of the domain) in order to simplify the implementation of our BCs. In doing so, the inner BC was imposed at the wall between the first (i = 0) and second cell (i = 1), and at the outer BC between the last (i = nx − 1) and penultimate cell (i = nx − 2). As indicated by Eqs. (20) and (27), we need to specify Jν and Jν at these interfaces. For this, we used Eq. (35) and write

J ν ( R in | R out ) J k , 0 | n x 2 + J k , 1 | n x 1 2 , s ̂ . J ν | R in | R out dx dr | 1 2 | n x 3 2 J k , 1 | n x 1 J k , 0 | n x 2 Δ x . $$ \begin{aligned} J_{\nu }(R_{\mathrm{in} }|R_{\mathrm{out} })&\approx \frac{J_{k,0|n_x-2} + J_{k,1|n_x-1}}{2} , \nonumber \\ \hat{s}.\boldsymbol{\nabla } J_{\nu }|_{R_{\mathrm{in} }|R_{\mathrm{out} }}&\approx \left.\frac{dx}{dr}\right|_{\frac{1}{2}|n_x -\frac{3}{2}}\ \frac{J_{k,1|n_x-1} - J_{k,0|n_x-2} }{\Delta x}. \end{aligned} $$(39)

Accordingly, the values of Jν in the ghosts cells were updated immediately after one Gauss-Seidel sweep Eq. (36) to ensure the BCs,

J k , 0 = 2 Δ x ( R R in ) 2 B k ( T ) [ Δ x ( α k γ k ) 2 d x d r | 1 2 β k ] J k , 1 Δ x ( α k γ k ) + 2 d x d r | 1 2 β k , J k , n x 1 = [ 2 d x d r | n x 3 2 ζ ( R k e ) D k ( R k e ) Δ x ] J k , n x 2 2 d x d r | n x 3 2 ζ ( R k e ) D k ( R k e ) + Δ x , $$ \begin{aligned} J_{k,0}&= \frac{ 2 \Delta x \left(\frac{R_{\star }}{R_{\mathrm{in} }}\right)^2 B_k(T_{\star }) - \left[ \Delta x \left(\alpha _{k} - \gamma _{k} \right) - 2 \frac{\ dx}{\ dr}|_{\frac{1}{2}} \beta _{k} \right] J_{k,1} }{\Delta x \left(\alpha _{k} - \gamma _{k} \right) + 2 \frac{\mathrm{d} x}{\mathrm{d} r}|_{\frac{1}{2}} \beta _{k}}, \nonumber \\ J_{k,n_x-1}&= \frac{ \left[ 2 \frac{\mathrm{d} x}{\mathrm{d} r}|_{n_x -\frac{3}{2}} \zeta (R_k^\mathrm{e} ) D_k(R_k^\mathrm{e} ) - \Delta x \right] J_{k,n_x - 2} }{2 \frac{\mathrm{d} x}{\mathrm{d} r}|_{n_x -\frac{3}{2}} \zeta (R_k^\mathrm{e} ) D_k(R_k^\mathrm{e} ) + \Delta x}, \end{aligned} $$(40)

with αk, βk and γk being defined by Eqs. (13) and (19). For the extrapolated value R k e $ R_k^\mathrm{e} $ in ζ( R k e ) $ \zeta(R_k^\mathrm{e}) $ Eq. (26) and D k ( R k e ) $ D_k(R_k^\mathrm{e}) $, we used a second-order Lagrange extrapolation,

R k e = 3 ( R k , n x 5 2 R k , n x 7 2 ) + R k , n x 9 2 . $$ \begin{aligned} R_k^\mathrm{e} = 3 \left( R_{k,n_x -\frac{5}{2}} - R_{k,n_x -\frac{7}{2}} \right) + R_{k,n_x -\frac{9}{2}}. \end{aligned} $$(41)

4.4. Initial conditions

Initial conditions for both Jν and T must be provided in order to solve Eq. (33). It is clear that the overall convergence speed strongly depends on the initial setup of the solution, but there is also a trade-off with the stability, that is, the ability of the solution to converge, for a wide variety of cases. As an initial guess, we used the analytic solution of the FLD in the optically thin limit Eq. (23), and we write

J k , i 0 = 1 4 ( R r i ) 2 B k ( T ) , $$ \begin{aligned} J_{k,i}^0 = \frac{1}{4}\left(\frac{R_{\star }}{r_i}\right)^2 B_k(T_{\star }), \end{aligned} $$(42)

from which we deduce the corresponding temperature profile T0 with the help of Eq. (37).

5. Numerical tests: spherically symmetric envelopes

5.1. Benchmarks from Ivezic et al. (1997)

We tested the accuracy of our FLD code with our Robin-type mixed boundary conditions in a general and realistic case, by comparing it with the 1D benchmark problems realised by Ivezic et al. (1997). We recall the conditions of the test and refer to the original paper for further information.

A point source surrounded by a spherically symmetric envelope of matter at radiative equilibrium irradiates as a black body at the temperature T = 2500 K. This envelope extends from the inner radius Rin to the outer radius Rout = 1000 Rin. The inner radius is set so that the temperature at the inner radius is always Tin = T(Rin) = 800 K. The density profile n(r) is assumed to be a power law of the form n(r) = n0(Rin/r)p. The radial optical depth τν of the envelope is linked to the density profile by

τ ν = R in R out κ ν ext d r = R in R out C ν ext n ( r ) d r , $$ \begin{aligned} \tau _{\nu } = \int \limits _{R_{\mathrm{in} }}^{R_{\mathrm{out} }} \kappa ^{\mathrm{ext} }_{\nu }\ \mathrm{d} r = \int \limits _{R_{\mathrm{in} }}^{R_{\mathrm{out} }} C^{\mathrm{ext} }_{\nu }\ n(r) \ \mathrm{d} r , \end{aligned} $$(43)

where C ν ext $ {C^{\mathrm{ext}}_{\nu}} $ is the extinction cross-section coefficient. It is defined by

C ν abs = C ν 0 abs , C ν sca = C ν 0 sca if ν ν 0 , C ν abs = C ν 0 abs ( ν ν 0 ) , C ν sca = C ν 0 sca ( ν ν 0 ) 4 if ν ν 0 , C ν ext = C ν sca + C ν abs , $$ \begin{aligned} \begin{array}{ll} C^{\mathrm{abs} }_{\nu }= C_{\nu _0}^{\mathrm{abs} },C^{\mathrm{sca} }_{\nu }= C_{\nu _0}^{\mathrm{sca} }&\mathrm{if} \ \ \nu \ge \nu _0, \\ C^{\mathrm{abs} }_{\nu }= C_{\nu _0}^{\mathrm{abs} } \left(\frac{\nu }{\nu _0}\right), C^{\mathrm{sca} }_{\nu }= C_{\nu _0}^{\mathrm{sca} } \left(\frac{\nu }{\nu _0}\right)^4&\mathrm{if} \ \ \nu \le \nu _0 , \\ C^{\mathrm{ext} }_{\nu }= C^{\mathrm{sca} }_{\nu }+ C^{\mathrm{abs} }_{\nu }, \end{array} \end{aligned} $$(44)

with C ν 0 abs =(1η) C ν 0 ext $ C_{\nu_0}^{\mathrm{abs}} = (1-\eta) \, C_{\nu_0}^{\mathrm{ext}} $, C ν 0 sca =η C ν 0 ext $ C_{\nu_0}^{\mathrm{sca}} = \eta \, C_{\nu_0}^{\mathrm{ext}} $, ν0 the frequency corresponding to λ = 1 μm and η the albedo, set to 1/2 for these tests. The benchmark problems are thus completely defined by two parameters: (i) the exponent in the density power law p = 0, 2, and (ii) the radial optical depth of the envelope at ν0, τν0 = 1, 10, 100,  and 1000. This created eight different cases to test the accuracy of our code. The coefficient n0 in the density profile is derived with the help of τν0 and p,

n 0 = ( p 1 ) τ ν 0 C ν 0 ext R out ( R out R in ) p [ ( R out R in ) p 1 1 ] 1 . $$ \begin{aligned} n_0 = \frac{\left(p-1\right) \tau _{\nu _0}}{C^{\mathrm{ext} }_{\nu _0} R_{\mathrm{out} }} \left( \frac{R_{\mathrm{out} }}{R_{\mathrm{in} }}\right)^p \left[ \left(\frac{R_{\mathrm{out} }}{R_{\mathrm{in} }}\right)^{p-1} -1 \right]^{-1}. \end{aligned} $$(45)

The normalised temperature profile T/Tin and the normalised SED λFλ/F ( F= 0 F λ  dλ $ F = \int\nolimits_0^\infty F_\lambda\ \mathrm{d}\lambda $) of the envelope are shown in Fig. 2 for each case.

The Ivezic benchmarks were produced with version 2 of DUSTY3 (Ivezic & Elitzur 1997). Because our code is of different nature, the spatial and frequency grids are different. We then compared the results by linearly interpolating our profiles (in log − log scale) on the DUSTY grids. We used 128 points for space and frequency, with a logarithmic sampling. The corresponding relative differences are displayed in Table 1. We also point out that we restricted the comparison, for the normalised SEDs, to the frequency domain where λFλ/F ≥ 10−6 because of non-physical results of the DUSTY code below this threshold, for the smallest wavelengths.

Table 1.

Results from the comparison with DUSTY.

The FLD results and the benchmarks agree well. The average relative differences in the temperature profiles mean(ϵ(T)) is of the order of 1%, with a maximum value of approximately 4%, achieved by the most optically thick envelopes (τν0 = 1000). The average of the relatives differences in the normalised SEDs mean(ϵ(λFλ/F)) always stays below 3%, with the exception of the optically thick envelope with constant density profile, where this difference reaches 6%.

5.2. Grey spherical shell with the Monte Carlo code from Niccolini & Alcolea (2006)

We compared the FLD code with a 3D MC radiative transfer code (Niccolini & Alcolea 2006). We wished to test the new BCs in the less realistic but more extreme case of a spatially small spherically symmetric grey envelope. We expect the boundary effects to play a major role for this type of problems. The inner radius was set to Rin = 10 R and the outer radius Rout = 20 R. We assumed a constant density profile (p = 0) in the envelope. Our test cases consisted of determining the normalised temperature profiles T/Tin and the emerging fluxes Fλ for several cases, ranging from optically thin (τ = 0.01) up to the optically thick envelopes (τ = 100). The corresponding profiles are shown in Fig. 3.

Because the codes are different, we interpolated our results linearly (in log − log scale) on the MC grids. The relative differences between the two codes, are displayed in Table 2. As an additional feature, the MC code also provides an estimation of the errors on the temperature σ(T) and on the emerging flux σ(Fλ), computed from the MC noise (Niccolini & Alcolea 2006). We used this information to compute a more relevant mean value for ϵ(T) and ϵ(Fλ),

mean ( ϵ ( T ) ) = i = 0 N x W i ϵ ( T i ) i = 0 N x W i , mean ( ϵ ( F λ ) ) = k = 0 N λ W k ϵ ( F k ) k = 0 N λ W k $$ \begin{aligned} \text{ mean}(\epsilon (T)) = \frac{\sum \limits _{i=0}^{N_x} W_i \ \epsilon (T_i) }{\sum \limits _{i=0}^{N_x} W_i}, \text{ mean}(\epsilon (F_\lambda )) = \frac{\sum \limits _{k=0}^{N_\lambda } W_k \ \epsilon (F_k) }{\sum \limits _{k=0}^{N_\lambda } W_k} \end{aligned} $$(46)

Table 2.

Results from the comparison with the MC code.

where Nx (Nλ) is the number of spatial (wavelength) points of the MC grid, ϵ(Ti) (ϵ(Fk)) is the relative error (in %) on the temperature (emerging flux) between our results and the MC results, and Wi (Wk) is the inverse square of the MC relative errors, defined as

W i = ( σ ( T i ) T i ) 2 , W k = ( σ ( F k ) F k ) 2 $$ \begin{aligned} W_i = \left( \frac{\sigma (T_i)}{T_i} \right)^{-2},W_k = \left( \frac{\sigma (F_k)}{F_k} \right)^{-2} \end{aligned} $$(47)

The two results agree well. The average of the relative differences of the temperature profile mean(ϵ(T)), remains of the order of 1% for all the cases we tested. The largest differences are reached for the intermediate cases (τ = 1, 10) and are located on the external edge of the envelope. This is expected because the FLD approximation is known to perform well in the optically thin and thick regimes, but it is less well suited to describe these intermediate cases. Nevertheless, the temperature profile is still quite well reproduced and the emerging flux is not affected by the small errors on the temperature close to the outer edge. We point out that the BCs derived in this paper allow us to successfully reproduce the correct behaviour of the temperature profile for the optically thick envelope where it shows a quite steep decrease at the outer surface, as shown by Fig. 3. The emerging fluxes Fλ agree within 1% on average, except for the optically thick case (τ = 100), where mean(ϵ(Fλ)) reaches about 5%.

We conclude this section with a comparison of the outer BC from this study Eq. (27) and the original BC Eq. (56) from L&P, given by,

J ν ( R out ) + 2 D ν s ̂ . J ν | r = R out = 0 . $$ \begin{aligned} J_{\nu }(R_{\mathrm{out} }) + 2 D_{\nu }\hat{s}. \boldsymbol{\nabla } J_{\nu }|_{r = R_{\mathrm{out} }} = 0. \end{aligned} $$(48)

We previously mentioned in Sect. 3.1 that the inner BC Eq. (20) is analytically identical to that of L&P in spherical symmetry, so we restrict the comparison to the outer edge of the envelope. It is important to notice that the BC of L&P was not originally intended to describe this class of problems, but the comparison still remains instructive for studying the importance of the BCs for the accuracy of the solution. In Eq. (48), the factor 2 (Eq. (58) in L&P) was originally used to give the correct ratio of the energy density over the emerging radiative flux in plane-parallel geometry for an optically thin slab illuminated by an isotropic incident radiation field. However, for the special case of a spherical envelope surrounding a black-body star, this ratio becomes

μ 0 1 B ν ( T ) d μ μ 0 1 μ B ν ( T ) d μ = 2 ( 1 μ 0 ) 1 μ 0 2 = 2 1 + μ 0 $$ \begin{aligned} \frac{\int _{\mu _0}^1 B_\nu (T_{\star })\mathrm{d} \mu }{\int _{\mu _0}^1 \mu B_\nu (T_{\star })\mathrm{d} \mu } = \frac{2\left(1-\mu _0\right)}{1-\mu _0^2} = \frac{2}{1 + \mu _0} \end{aligned} $$(49)

with μ 0 = 1 ( R R out ) 2 $ \mu_0 = \sqrt{1 - \left(\frac{{R_{\star}}}{{R_{\text{out}}}}\right)^2} $, the cosine of the stellar angular size at Rout. As μ0 → 0 or equivalently R/Rout → 1, this ratio increases to 2, as expressed by L&P, because we recover the case of a plane-parallel geometry with an isotropic incident radiation field. Far from the star (μ0 → 1 or R/Rout → 0), the ratio tends to 1, associated with an incoming sharp-peaked radiation. Hence, the L&P BC that set the ratio to 2 will strongly deviate from the analytic limit 1, in the optically thin regime. In Fig. 4 we display the relative differences in the temperature profiles ϵ(T) and in the emerging fluxes ϵ(Fλ) for the same test case as presented at the beginning of this section. We note that this test case is not realistic, however, it allows to compare different optical regimes, in contrast to a more realistic problem in which the radiation is free in the external regions most of the time, such as for the test case presented in Sect. 5.1. We recall that the BC from L&P is a limiting case of the BC derived in this study, in the case R ≪ 1, where the emerging radiation is almost isotropic (see Sect. 3.2), hence it is not surprising that the results converge to the same profile, for a optically thick grey envelope (τ = 100). On the other-hand, in the optically thin case (τ = 0.01) where we would expect the ζ coefficient Eq. (26) to be close to unity, the BC from L&P performs poorly as expected. For intermediates regimes (τ = 1, 10), the entanglement of the error of the BC and FLD method itself makes any comparison very hard. We note that although the temperature profile is closer to the benchmark result for τ = 10 with the BC of L&P, this is not the case for the associated emerging flux. We also note that the BC, although defined locally, can have a global effect on the whole solution, as shown by the temperature profile of the test case τ = 1. To conclude, we also point out that we tried to implement the L&P BC in the non-grey cases (Sect. 5.1) but we were unable to reach a satisfying convergence of the computations.

thumbnail Fig. 4.

Comparison of the outer boundary conditions presented here (solid lines) and from Levermore & Pomraning (1981) (dashed lines) for the test case presented in Sect. 5.2. The colour code is the same as in Fig. 3. The emerging fluxes are displayed in semi-log scale to highlight the differences between the BCs. The lower panels show the relative differences profiles with respect to the MC code from Niccolini & Alcolea (2006) in temperature (left) and in emerging flux (right).

6. Conclusion

The FLD approximation together with the new BCs, yields promising results in correctly describing the radiation transport inside spherically symmetric circumstellar envelopes. These conditions, derived in Sect. 3 from physically consistent constraints on the behaviour of the radiation field at the inner and outer surfaces, allow us to compute with a good accuracy the temperature profile and the SED for a wide range of configurations, from very small to very large optical thicknesses. As shown in Sect. 5, it reproduces the correct temperature profile within ≤ 2%, and the SED or emerging flux at less than ≤6% on average, with respect to the solution of the full radiative transfer equation under radiative equilibrium.

The numerical solution of the 1D non-linear diffusion equation Eq. (31) coupled with the radiative equilibrium Eq. (32) was performed with a Gauss-Seidel method-based iterative scheme, in which the temperature is updated at each iteration step. Furthermore, we point out that the FLD approximation implemented with the proposed outer-boundary condition provides a simple approximation for the flux emitted by the envelope. This allows computing the SED or emerging flux without using any ray-tracing module, which is a significant gain in computational time.

The next step, which will be our main concern for our future work, is the generalisation of these boundary conditions to non-spherically symmetric media, in particular for circumstellar discs, where the BCs will take a more complex form. In this regard, the extension to 2D will require numerical optimisations. Several directions of improvements are already being studied, such as the use of multi-frequency adaptive spatial grids, or acceleration procedures for efficiently solving the FLD equation under the radiative equilibrium condition. The last point is also crucial for solving extreme optically thick envelopes.


Acknowledgments

This study has been supported by the Lagrange laboratory of Astrophysics and funded under a 3-year PhD grant from Ecole Doctorale Sciences Fondamentales et Appliquées (EDSFA) of the Université Côte-d’Azur (UCA). The benchmark profiles were generated with the radiative transfer code DUSTY, available at http://faculty.washington.edu/ivezic/dusty_web. Part of the computations were carried out with the help of OPAL-Meso computing facilities. The authors are grateful to the OPAL infrastructure from Observatoire de la Côte d’Azur (CRIMSON) for providing resources and support.

References

  1. Ivezic, Z., & Elitzur, M. 1997, MNRAS, 287, 799 [Google Scholar]
  2. Ivezic, Z., Groenewegen, M. A. T., Men’shchikov, A., & Szczerba, R. 1997, MNRAS, 291, 121 [NASA ADS] [CrossRef] [Google Scholar]
  3. Kuiper, R., Klahr, H., Dullemond, C., Kley, W., & Henning, T. 2010, A&A, 511, A81 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
  4. Levermore, C. D., & Pomraning, G. C. 1981, ApJ, 248, 321 [NASA ADS] [CrossRef] [Google Scholar]
  5. Mignon-Risse, R., González, M., Commerçon, B., & Rosdahl, J. 2020, A&A, 635, A42 [CrossRef] [EDP Sciences] [Google Scholar]
  6. Niccolini, G., & Alcolea, J. 2006, A&A, 456, 1 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
  7. Niccolini, G., Woitke, P., & Lopez, B. 2003, A&A, 399, 703 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
  8. Pomraning, G. C. 1986, J. Quant. Spectr. Rad. Transf., 36, 325 [NASA ADS] [CrossRef] [Google Scholar]
  9. Pomraning, G. C. 1988, J. Comput. Phys., 75, 73 [NASA ADS] [CrossRef] [Google Scholar]
  10. Sonnhalter, C., Preibisch, T., & Yorke, H. W. 1995, A&A, 299, 545 [NASA ADS] [Google Scholar]
  11. Steinacker, J., Baes, M., & Gordon, K. D. 2013, ARA&A, 51, 63 [NASA ADS] [CrossRef] [Google Scholar]
  12. Yorke, H. W., & Sonnhalter, C. 2002, ApJ, 569, 846 [NASA ADS] [CrossRef] [Google Scholar]

All Tables

Table 1.

Results from the comparison with DUSTY.

Table 2.

Results from the comparison with the MC code.

All Figures

thumbnail Fig. 1.

Geometry of an inner spherical cavity (solid black line) illuminated by a central star (grey disc).

In the text
thumbnail Fig. 2.

Non-grey case: normalised temperature profiles (upper panels) and SEDs (lower panels) for four different opacities τν0 = 1, 10, 100, and 1000 (blue, orange, green and red, respectively) and two density power laws: p = 0 (left panels) and p = 2 (right panels). The solid lines represent the FLD curves, and the black dots indicate the benchmark profiles from Ivezic et al. (1997).

In the text
thumbnail Fig. 3.

Grey case: normalised temperature profiles (left panel) and emerging fluxes (right panel) for four different opacities τ = 0.01, 1, 10, and 100 (blue, orange, green and red, respectively) with a constant density profile (p = 0). The solid lines represent the FLD curves, and the black dots with the error bars σ indicate the MC profiles from Niccolini & Alcolea (2006).

In the text
thumbnail Fig. 4.

Comparison of the outer boundary conditions presented here (solid lines) and from Levermore & Pomraning (1981) (dashed lines) for the test case presented in Sect. 5.2. The colour code is the same as in Fig. 3. The emerging fluxes are displayed in semi-log scale to highlight the differences between the BCs. The lower panels show the relative differences profiles with respect to the MC code from Niccolini & Alcolea (2006) in temperature (left) and in emerging flux (right).

In the text

Current usage metrics show cumulative count of Article Views (full-text article views including HTML views, PDF and ePub downloads, according to the available data) and Abstracts Views on Vision4Press platform.

Data correspond to usage on the plateform after 2015. The current usage metrics is available 48-96 hours after online publication and is updated daily on week days.

Initial download of the metrics may take a while.