The finite difference grid uses geometrically increasing layer thicknesses, following Hayne et al. (2017), Appendix A2.2 (Eqs. A31--A33).
The thermal skin depth
where
For the Moon, z_s ≈ 4–7 cm depending on the H-parameter and temperature-dependent thermal properties (Hayne et al., 2017). The grid is constructed using surface-minimum properties (~3 cm), which ensures adequate resolution near the surface where gradients are steepest.
The grid starts at
where
Layer thickness grows geometrically with depth:
where
The grid extends to a total depth of
| Parameter | Default | Description |
|---|---|---|
| 10 | Layers per skin depth | |
| 5 | Growth factor (dz[i+1] = dz[i]*(1+1/n)) | |
| 20 | Total depth in skin depths |
For the Moon, these defaults produce approximately 45 layers extending to a depth of about 1 m.