PHYSICS / ENGINEERING / COMPUTING
Ray tracing for optics and radiation heat transfer
Follow a ray from geometric intersection through optical reflection and refraction, then from view factors to multiple-reflection absorption, Gebhart factors, RadK, and thermal-network heat flow.
Matter pathway: atom → solid → liquid → gas → plasma. Quantum mechanics and quantum field theory provide foundations across the pathway; they are not additional phases. This is a connected modeling route, not a universal heating curve. Actual phases depend on pressure, composition, and kinetics.
1. Geometry: intersect, select the nearest surface, reflect or refract
Definitions & inputs. o is a ray origin, d a unit propagation vector, t a forward distance, n a unit surface normal, p a point on a plane. θ is measured from the interface normal; n1 and n2 are refractive indices.
Parameterize the ray in world coordinates.
Insert the ray into the plane equation and solve. Among all valid surface hits use the nearest positive t.
Reverse the normal component and preserve the tangential component for specular reflection.
Continuity of tangential wavevector gives Snell’s law; there is no propagating transmitted ray when the required sine exceeds one.
At normal incidence between nonabsorbing dielectric media this Fresnel result gives reflected power fraction. Oblique rays need polarization-dependent Fresnel coefficients.
Interpretation. Lens barrels, mirrors, imaging systems and solar concentrators need direction plus power accounting. Pure ray geometry does not reproduce interference or diffraction; use wave optics when those effects determine performance.
↑ Return to definitions and contents2. Radiometry and Monte Carlo path weights
Definitions & inputs. L radiance [W/(m² sr)], E irradiation [W/m²], J radiosity [W/m²], fr BRDF [sr⁻¹], ω direction, n normal. Φ is power [W]. A probability density pω is per steradian.
Projected area connects radiance to irradiance. Radiance is directional; it is not interchangeable with heat flux.
Outgoing light is emitted plus reflected incident light, with the BRDF distributing directions.
Importance sampling turns the integral into an estimator; omitting its probability-density denominator biases energy.
For a Lambertian surface, cosine-weighted sampling leaves a simple reflectance factor per bounce.
A homogeneous absorbing medium attenuates a ray by Beer–Lambert. Scattering also redirects energy and requires a volume-transport model.
Interpretation. Use optical solar absorptance for sunlight and thermal infrared emissivity for emitted heat; they are generally different band averages. Kirchhoff’s equality applies at matched wavelength, direction and thermodynamic conditions.
↑ Return to definitions and contents3. View factors: geometric probability before absorption
Definitions & inputs. Fij is the fraction of diffuse power leaving area Ai that first reaches Aj. Rij is point separation, θi and θj use inward-facing normals, V is binary visibility. ε is emissivity and does not enter a geometric view factor.
Convert a receiving area to solid angle and integrate cosine-weighted diffuse emission over the source.
Swapping the two differential areas proves reciprocity. Closure holds for a complete enclosure, including any environment surface.
Sample each source point uniformly by area and each launch direction with a cosine-weighted hemisphere density.
Count first-hit rays. The standard-error expression is an independent-ray binomial approximation, not a systematic mesh-error estimate.
Interpretation. Check nonnegativity, row sums, reciprocity and convergence. Independent noisy rows do not satisfy reciprocity exactly; any correction must preserve nonnegativity and closure jointly. A convex isolated surface has Fii=0, while a concave patch can see itself.
↑ Return to definitions and contents4. Gebhart absorption factors: sum every reflection path
Definitions & inputs. Bij is the fraction of radiation originally emitted by patch i that is ultimately absorbed by patch j, including reflections. Standard spelling is Gebhart (sometimes entered as “Gebhard”). E=diag(εj), R=diag(1−εj), F is the row-source view-factor matrix.
First paths hit j and are absorbed directly. All other contributions first hit k, reflect, and eventually end at j.
The reflection probability belongs to the surface first hit, hence R multiplies F on its right. Matrix order matters.
Expand into direct absorption, one prior reflection, two prior reflections, and so on when the series converges.
Eventual absorption conserves energy; reciprocal diffuse-gray exchange has an emissivity-weighted reciprocity relation.
Worked closed two-surface example: B12=0.8/(1−0.2²)=5/6 and B11=0.2B21=1/6. Self-absorption can be nonzero even though F11=0.
Interpretation. Solve the linear system rather than explicitly forming a matrix inverse. Direct path tracing can instead count final absorption events (or accumulated absorbed weights). Its Bij must converge to this solve for the same diffuse-gray geometry.
↑ Return to definitions and contents5. RadK: from absorption to a symmetric thermal network
Definitions & inputs. Qi is net power leaving node i. σ=5.670374419×10⁻⁸ W/(m² K⁴). Here Cij=Ai εi Bij has units m² and Kij=σCij has units W/K⁴. All temperatures in fourth powers are absolute kelvin.
Subtract incoming absorbed emissions from patch i’s own emitted power; its reflected self-return is included in the sum.
Use absorption closure and weighted reciprocity to obtain pairwise exchange. The self term cancels.
Continue the two-surface example. The extra ε1 belongs to original emission; do not multiply again by ε2, already contained in B12.
Evaluate the nonlinear exchange; the opposite node receives equal and opposite power.
Factor the difference of fourth powers. This exact secant conductance is in W/K, not W/K⁴.
A small-signal conductance is valid near a common reference temperature. The full Newton Jacobian uses ∂Qij/∂Ti=4KijTi³ and ∂Qij/∂Tj=−4KijTj³.
Interpretation. Never enter Celsius into T⁴ or multiply by the Stefan–Boltzmann constant twice. In a thermal energy balance, outward Qi is a loss: Ci dTi/dt=Pi−Qi plus conductive and other exchanges. External collimated solar heating is a source term, not automatically a symmetric thermal RadK.
↑ Return to definitions and contents6. Independent radiosity check and practical workflow
Definitions & inputs. Ji is outgoing radiosity and Hi incident irradiation, both W/m². b denotes a spectral band. Thermal Desktop/RadCAD is a practical example of software calculating form factors, radiation conductors and environmental heating.
Outgoing flux contains emitted and reflected incident flux.
Assemble a second linear system. Note RF here versus FR in the Gebhart solve: the unknown radiosity and its source convention differ.
This independent route must agree with the Gebhart heat balance for identical inputs.
Check enclosure energy conservation and zero exchange at uniform temperature.
For suitable reciprocal bandwise models, integrate blackbody emissive power over each band and use its consistent exchange coefficient; a single constant gray coefficient cannot represent arbitrary spectral properties.
Interpretation. Workflow: mesh and orient surfaces; assign measured band properties; trace and converge geometric or full absorption transport; enforce/check physical invariants; solve B or radiosity; export clearly labeled coefficient units; couple the energy balance; compare with black-body and two-plate benchmarks. RadCAD supports Monte Carlo ray tracing and radiosity; pbrt provides inspectable optical light-transport implementations.
↑ Return to definitions and contentsGraphical worked example
Twenty worked examples
Open a problem to see its defined inputs, assumptions, equation, numerical substitution, result, and interpretation. Values are illustrative analytical exercises.
Example 01. Ray-plane intersection
Definitions & inputs. Plane z=2 m, ray o=(0,0,0),d=(0,0,1).
Choose the governing model and isolate the requested quantity.
Insert the stated inputs in consistent units or the explicitly defined normalized units.
Evaluate the expression; the result uses the units shown.
Interpretation. Nearest positive valid intersection must be selected.
↑ Return to definitions and contentsExample 02. Reflected normal component
Definitions & inputs. Incident dz=−0.6, unit normal along +z.
Choose the governing model and isolate the requested quantity.
Insert the stated inputs in consistent units or the explicitly defined normalized units.
Evaluate the expression; the result uses the units shown.
Interpretation. Tangential components are preserved by a flat mirror.
↑ Return to definitions and contentsExample 03. Snell refraction
Definitions & inputs. Air n1=1, glass n2=1.5, incidence30°.
Choose the governing model and isolate the requested quantity.
Insert the stated inputs in consistent units or the explicitly defined normalized units.
Evaluate the expression; the result uses the units shown.
Interpretation. Angles use the normal rather than the surface plane.
↑ Return to definitions and contentsExample 04. Critical angle
Definitions & inputs. Glass n1=1.5 into air n2=1.
Choose the governing model and isolate the requested quantity.
Insert the stated inputs in consistent units or the explicitly defined normalized units.
Evaluate the expression; the result uses the units shown.
Interpretation. Higher incident angles produce total internal reflection in ideal lossless media.
↑ Return to definitions and contentsExample 05. Normal Fresnel reflectance
Definitions & inputs. Air1 to glass1.5.
Choose the governing model and isolate the requested quantity.
Insert the stated inputs in consistent units or the explicitly defined normalized units.
Evaluate the expression; the result uses the units shown.
Interpretation. Four percent reflected power at a single ideal interface.
↑ Return to definitions and contentsExample 06. Diffuse irradiation
Definitions & inputs. Uniform hemisphere radiance L=10 W/(m² sr).
Choose the governing model and isolate the requested quantity.
Insert the stated inputs in consistent units or the explicitly defined normalized units.
Evaluate the expression; the result uses the units shown.
Interpretation. Integrating cosine over a hemisphere gives π, not 2π.
↑ Return to definitions and contentsExample 07. Lambertian BRDF
Definitions & inputs. Reflectanceρ=.6.
Choose the governing model and isolate the requested quantity.
Insert the stated inputs in consistent units or the explicitly defined normalized units.
Evaluate the expression; the result uses the units shown.
Interpretation. A BRDF is a density with angular units, not a reflectance fraction.
↑ Return to definitions and contentsExample 08. Absorbing path
Definitions & inputs. κ=.2/m,L=3m,I0=100W/m².
Choose the governing model and isolate the requested quantity.
Insert the stated inputs in consistent units or the explicitly defined normalized units.
Evaluate the expression; the result uses the units shown.
Interpretation. Scattering into the ray is excluded.
↑ Return to definitions and contentsExample 09. First-hit view factor
Definitions & inputs. 2500 first hits among10000 independent equal-weight rays.
Choose the governing model and isolate the requested quantity.
Insert the stated inputs in consistent units or the explicitly defined normalized units.
Evaluate the expression; the result uses the units shown.
Interpretation. Cosine launch directions and uniform source-area sampling are assumed.
↑ Return to definitions and contentsExample 10. Sampling standard error
Definitions & inputs. Fhat=.25,N=10000.
Choose the governing model and isolate the requested quantity.
Insert the stated inputs in consistent units or the explicitly defined normalized units.
Evaluate the expression; the result uses the units shown.
Interpretation. Approximate one-standard-error uncertainty excludes geometry bias.
↑ Return to definitions and contentsExample 11. Reciprocal view factor
Definitions & inputs. A1=2m²,A2=4m²,F12=.3.
Choose the governing model and isolate the requested quantity.
Insert the stated inputs in consistent units or the explicitly defined normalized units.
Evaluate the expression; the result uses the units shown.
Interpretation. Reciprocity fixes the reverse geometry factor.
↑ Return to definitions and contentsExample 12. Two-surface Gebhart factor
Definitions & inputs. Equal-area closed surfaces,F12=F21=1,ε1=ε2=.8.
Choose the governing model and isolate the requested quantity.
Insert the stated inputs in consistent units or the explicitly defined normalized units.
Evaluate the expression; the result uses the units shown.
Interpretation. This includes every reflected path.
↑ Return to definitions and contentsExample 13. Self-absorption
Definitions & inputs. Same two-surface enclosure.
Choose the governing model and isolate the requested quantity.
Insert the stated inputs in consistent units or the explicitly defined normalized units.
Evaluate the expression; the result uses the units shown.
Interpretation. Self view is zero but returning reflected emission can be absorbed.
↑ Return to definitions and contentsExample 14. Area-form exchange coefficient
Definitions & inputs. A1=1m²,ε1=.8,B12=5/6.
Choose the governing model and isolate the requested quantity.
Insert the stated inputs in consistent units or the explicitly defined normalized units.
Evaluate the expression; the result uses the units shown.
Interpretation. This coefficient does not yet include σ.
↑ Return to definitions and contentsExample 15. Fourth-power RadK
Definitions & inputs. C12=2/3m²,σ=5.670374419×10⁻⁸SI.
Choose the governing model and isolate the requested quantity.
Insert the stated inputs in consistent units or the explicitly defined normalized units.
Evaluate the expression; the result uses the units shown.
Interpretation. This page uses K including σ.
↑ Return to definitions and contentsExample 16. Net radiative power
Definitions & inputs. SameK,T1=400K,T2=300K.
Choose the governing model and isolate the requested quantity.
Insert the stated inputs in consistent units or the explicitly defined normalized units.
Evaluate the expression; the result uses the units shown.
Interpretation. Positive heat flow leaves the hotter surface.
↑ Return to definitions and contentsExample 17. Secant conductance
Definitions & inputs. Same pair400K and300K.
Choose the governing model and isolate the requested quantity.
Insert the stated inputs in consistent units or the explicitly defined normalized units.
Evaluate the expression; the result uses the units shown.
Interpretation. This exactly reproduces Q for the stated temperatures.
↑ Return to definitions and contentsExample 18. Linearized conductance
Definitions & inputs. SameK near commonT0=350K.
Choose the governing model and isolate the requested quantity.
Insert the stated inputs in consistent units or the explicitly defined normalized units.
Evaluate the expression; the result uses the units shown.
Interpretation. A local derivative differs from the finite-temperature secant.
↑ Return to definitions and contentsExample 19. Solar absorption
Definitions & inputs. αsolar=.3,irradiance1361W/m²,area2m²,normal incidence.
Choose the governing model and isolate the requested quantity.
Insert the stated inputs in consistent units or the explicitly defined normalized units.
Evaluate the expression; the result uses the units shown.
Interpretation. No shadow, atmosphere or reflected sunlight in this illustrative source term.
↑ Return to definitions and contentsExample 20. Radiator equilibrium
Definitions & inputs. P=100W,ε=.8,A=1m²,black surroundings at0K.
Choose the governing model and isolate the requested quantity.
Insert the stated inputs in consistent units or the explicitly defined normalized units.
Evaluate the expression; the result uses the units shown.
Interpretation. No conduction, convection or external irradiation; use a real environment for design.
↑ Return to definitions and contentsSymbols and units
Each derivation and problem defines its own symbols and inputs. Symbols may be reused with different meanings in other subjects. Keep units consistent, retain sufficient precision during calculation, and apply the stated validity limits.