Docs › Build a first case in each physics package › Heat transfer
5.8 Heat transfer
onesim.physics.heat_transfer
Use HeatConduction for a spatial Fourier balance with material properties and optional volumetric heating in W/m\(^3\). Supply FixedTemperature in K, HeatFlux as positive outward flux in W/m\(^2\), or ConvectiveHeatFlux with an ambient temperature and transfer coefficient. RadiativeHeatFlux applies a nonlinear grey diffuse boundary law to a spatial model. ConvectiveHeatTransfer adds a prescribed velocity field to the volume problem, as in Chapter 3. HeatAdvectionDiffusion is the line model with specified thermal diffusivity and advection speed. RadiationCooling and PhaseChangeHeating use lumped thermal states. Phase change uses ThermalPhaseChangeLawSet and a finite mushy interval. Plot temperature and enthalpy or liquid fraction across the transition to make the latent-heat effect visible.
For a first conduction notebook, prescribe a linear temperature trace on all faces of a box, set zero volumetric source and choose P1 FEM. A linear solution and constant conductive flux give independent verification. See test_public_stationary.py. The source exposes separate thermal service configurations, validation reports and feature entry points for integrations that use the facade instead of Simulation.