You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At each triangular DEM facet $i$, the surface temperature $T_s$ is governed by a radiative–conductive energy balance at the regolith–vacuum interface ($z = 0$):
The incidence angle $\theta_i$ is the angle between the face normal $\hat{n}i$ and the sun direction vector $\hat{s}$. When $\cos\theta_i < 0$, the facet is self-shadowed (facing away from the sun) and $Q{\text{solar}} = 0$.
The illumination fraction $f_i$ captures topographic shadowing:
Point source mode: $f_i \in {0, 1}$ (binary shadow)
Extended source mode: $f_i \in [0, 1]$ (fractional penumbra from solar disk sampling)
Term 2: Outgoing Thermal Radiation
$$
Q_{\text{rad}} = \varepsilon \sigma T_s^4
$$
Symbol
Meaning
Value
Source
$\varepsilon$
Broadband thermal emissivity
0.95
Bandfield et al. (2015)
$\sigma$
Stefan-Boltzmann constant
$5.670374 \times 10^{-8}$ W/m²/K⁴
CODATA 2018
Term 3: Geothermal Heat Flux
$$
Q_{\text{geo}} = 0.018 \text{ W/m²}
$$
Source: Apollo 15/17 heat flow measurements (Langseth et al., 1976). This equatorial measurement is applied uniformly to the south pole region — a known assumption documented in the model registry.
This couples the surface energy balance to the subsurface heat equation (Section 4).
Note
Current simplification: $Q_{\text{IR},i} = 0$ (no multi-bounce infrared scattering between terrain facets). This is a planned Milestone 4 feature. PSR temperatures may be underestimated by ~10–20 K due to this omission (Paige et al., 2010).
2. Extended Solar Source Model
Solar Disk Geometry
The Sun is not a point source. From the Moon's surface, it subtends a finite angular diameter:
To approximate the integral over the solar disk, we distribute $N$ sample directions uniformly across the disk using a Fibonacci spiral pattern on a spherical cap.
where $V(\hat{d}_k) = 1$ if the ray is unoccluded, and $V(\hat{d}_k) = 0$ if blocked. This provides a Monte Carlo estimate of the visible fraction of the solar disk as seen from facet $i$.
3. BVH-Accelerated Raytracing
Möller-Trumbore Ray-Triangle Intersection
For a ray $\mathbf{R}(t) = \mathbf{O} + t\hat{\mathbf{d}}$ and triangle with vertices $\mathbf{v}_0, \mathbf{v}_1, \mathbf{v}_2$:
$$
u = f \cdot (\mathbf{s} \cdot \mathbf{h}), \qquad \mathbf{q} = \mathbf{s} \times \mathbf{e}_1
$$
$$
v = f \cdot (\hat{\mathbf{d}} \cdot \mathbf{q}), \qquad t = f \cdot (\mathbf{e}_2 \cdot \mathbf{q})
$$
The intersection is valid if $u \geq 0$, $v \geq 0$, $u + v \leq 1$, and $t > 0$.
Important
The epsilon value ($\epsilon = 10^{-10}$) is critical. Too large → misses grazing rays near shadow boundaries. Too small → floating-point cancellation causes ray leakage at triangle edges, fatal for PSR accuracy.
BVH Construction (SAH)
The Bounding Volume Hierarchy uses the Surface Area Heuristic (SAH) for optimal spatial partitioning:
Configuration: 16 SAH bins per axis, 4 triangles maximum per leaf node.
Shadow Ray Query
For shadow testing, we use early exit: the traversal terminates as soon as ANY occlusion is found (no need for closest-hit). This provides significant speedup since most rays in crater interiors will be occluded quickly by nearby rim geometry.
Traversal is stack-based (iterative, no recursion) for Numba JIT compatibility.
4. Subsurface Heat Equation
Governing PDE
The 1D heat equation in a semi-infinite regolith column with depth $z$ (positive downward):
Diagonal dominance is guaranteed: $|b_j| = C_j + \frac{1}{2}(\alpha_j + \gamma_j) > \frac{1}{2}\alpha_j + \frac{1}{2}\gamma_j = |a_j| + |c_j|$, since $C_j = \rho c_p / \Delta t > 0$. This ensures stability and uniqueness of the Thomas algorithm (Section 7).
Surface Node ($j = 0$) — with Newton-linearized Radiation
The surface half-cell integrates the energy balance:
The $\varepsilon\sigma T_s^4$ term in the surface energy balance makes the boundary condition nonlinear. We linearize it using a Taylor expansion around the current guess $\tilde{T}$:
This rearrangement places the $4\varepsilon\sigma\tilde{T}^3 \cdot T$ term on the left-hand side (into $b_0$) and the remaining $-3\varepsilon\sigma\tilde{T}^4$ contributes to $d_0$ as $+3\varepsilon\sigma\tilde{T}^4$.
If $|\tilde{T}_0^{\text{new}} - \tilde{T}0^{\text{old}}| < \epsilon{\text{Newton}}$, converge; else repeat from step 2
Parameter
Default
Description
max_iterations
20
Maximum Newton iterations per time step
tolerance_K
$10^{-4}$ K
Surface temperature convergence criterion
relaxation
1.0
Under-relaxation factor ($\omega$)
Note
Convergence is typically achieved in 2–4 iterations for realistic temperature ranges. The relaxation factor can be reduced below 1.0 if convergence issues arise at extreme temperature gradients.
7. Thomas Algorithm
The Thomas algorithm (TDMA) solves the tridiagonal system $\mathbf{A}\mathbf{x} = \mathbf{d}$ in $O(N)$ time and $O(1)$ extra space.
The simulation target is specified in selenographic coordinates:
Latitude: $-89.54°$ (Shackleton Crater, Zuber et al., 2012)
Longitude: $129.78°$
Local Cartesian Frame
For the DEM, we use a local tangent plane with:
x: East
y: North
z: Radial (up)
Origin at the mean elevation of the DEM grid. The polar stereographic projection is used for coordinate transforms between selenographic and local Cartesian coordinates.
Sun Direction Vector
The sun direction $\hat{s}$ is computed via the Skyfield ephemeris library using JPL DE421 planetary ephemerides. The computation chain:
Skyfield computes geocentric sun position
Transform to selenocentric coordinates
Apply polar stereographic projection to get $\hat{s}$ in the local DEM frame
10. References
Bandfield, J.L., et al. (2015). "Lunar surface roughness derived from LRO Diviner Radiometer observations." Icarus, 248, 357-372.
Crank, J. & Nicolson, P. (1947). "A practical method for numerical evaluation of solutions of partial differential equations of the heat-conduction type." Proc. Cambridge Phil. Soc., 43, 50-67.
Hayne, P.O., et al. (2017). "Global regolith thermophysical properties of the Moon from the Diviner Lunar Radiometer Experiment." JGR Planets, 122, 2371-2400.
Kopp, G. & Lean, J.L. (2011). "A new, lower value of total solar irradiance." Geophys. Res. Lett., 38, L01706.
Langseth, M.G., Keihm, S.J. & Peters, K. (1976). "Revised lunar heat-flow values." Proc. 7th Lunar Science Conf., 3143-3171.
Mazarico, E., et al. (2011). "Illumination conditions of the lunar polar regions using LOLA topography." Icarus, 211, 1066-1081.
Möller, T. & Trumbore, B. (1997). "Fast, minimum storage ray-triangle intersection." J. Graphics Tools, 2(1), 21-28.
Paige, D.A., et al. (2010). "Diviner Lunar Radiometer observations of cold traps in the Moon's south polar region." Science, 330, 479-482.