Radiation
Scalar primitives. No grid, no solver. The caller owns the quadrature and the transport step.
Planck
vm_is the integrated blackbodyplanck_ b σ T⁴ / πvm_is the spectralplanck_ bnu B_νvm_integrates a frequency group.planck_ group nu_hi <= 0returns the analytic full integral.vm_is the temperature derivativeplanck_ db_ dt
Angular
Level-symmetric S_N tables for S2, S4, S6, and S8. Weights sum to 4π.
vm_andangular_ count vm_fill nodes and weightsangular_ sn vm_is the constant phaseangular_ isotropic vm_is the Henyey–Greenstein phase.angular_ hg g = 0matches isotropic.vm_is the scatter sourceangular_ scatter
Ray
vm_isray_ tau κ svm_sums a segmentray_ tau_ sum vm_isray_ transmit exp(−τ). A cutoff of 80 returns 0.vm_isray_ emit (1 − exp(−τ)) B
Rosseland diffusion
vm_israddiff_ d D = 1 / (3 κ_R)vm_is the Levermore–Pomraning limiter.raddiff_ limiter λ(0) = 1/3, andλstays in(0, 1/3].vm_israddiff_ ratio R = |∇E| / (κ E)vm_is the gray emission–absorption residualraddiff_ residual κ_a (E − a T⁴)vm_fills a caller-owned CSR withraddiff_ laplacian −∇·(D ∇). ConstantD = 1matches the assembled grid Laplacian.
The limited coefficient is D λ(R). The solve stays vm_.