propagate_fluxes
propagate_fluxes¶
- frei.propagate_fluxes(lam, F_1_up, F_2_down, T_1, T_2, delta_tau, omega_0=0, g_0=0, eps=0.5)[source]¶
Compute fluxes up and down using the improved two-stream equations.
The transmission function is taken from Deitrick et al. (2020) Equation B2.
The two stream equations are taken from Malik et al. (2017) (see Equation 15), with corrections from Dietrick et al. (2022) (see Appendix B).
- Parameters
lam (Quantity) – Wavelength grid
F_1_up (Quantity) – Flux up into layer 1
F_2_down (Quantity) – Flux down into layer 2
T_1 (Quantity) – Temperature in layer 1
T_2 (Quantity) – Temperature in layer 2
delta_tau (ndarray) – Change in optical depth
eps (float) – First Eddington coefficient (Heng et al. 2014)
- Returns
F_2_up, F_1_down – Fluxes outgoing to layer 2, and incoming to layer 1
- Return type