OneSimulation docs Website Free books Plans on Gumroad

Docs › Physics API reference › onesim.physics.heat_transfer

A.8 onesim.physics.heat_transfer

advanced_thermal namespace

Central product integration for advanced Thermal features.

configuration namespace

Public thermal configuration built on the shared numerical contract.

ConvectiveHeatFlux class

ConvectiveHeatFlux(*, boundary: object, physics: object, heat_transfer_coefficient: object, ambient_temperature: object) -> None

Use an ambient temperature and transfer coefficient to prescribe convective exchange across a boundary.

ConvectiveHeatTransfer class

ConvectiveHeatTransfer(*, domain, material, velocity, heating=None, heating_source=None, model_id=None)

Solve volume heat transport with a prescribed velocity, thermal material and optional volumetric source.

Declared fields. temperature (K, differential), heat_flux (W/m^2, derived, x/y/z), heating (W/m^3, input), advecting_velocity (m/s, input, x/y/z).

errors namespace

Machine-readable errors at the public Thermal API boundary.

FixedTemperature class

FixedTemperature(*, boundary: object, physics: object, value: object) -> None

Set an absolute temperature trace on a thermal boundary.

heat_conduction namespace

Public execution contract for the executable heat-conduction variant.

heat_transport namespace

Public execution contract for Thermal heat transport.

HeatAdvectionDiffusion class

HeatAdvectionDiffusion(*, domain: object, model_id: str = <factory>, velocity: float, thermal_diffusivity: float, heating_rate: object = 0.0) -> None

Advance the scalar temperature field on a line with prescribed speed, diffusivity and heating rate.

Declared fields. temperature (K, differential), thermal_supply (K/s, input).

HeatConduction class

HeatConduction(*, domain, material, heating=None, heating_source=None, model_id=None)

Solve the Fourier heat balance with a material, volume domain and optional volumetric source.

Declared fields. temperature (K, differential), heat_flux (W/m^2, derived, x/y/z), heating (W/m^3, input).

HeatFlux class

HeatFlux(*, boundary: object, physics: object, value: object) -> None

Prescribed outward Fourier heat flux, positive for heat leaving the body.

Selected methods.

outward_heat_flux(*, points, time)

PhaseChangeHeating class

PhaseChangeHeating(*, domain: object, model_id: str = <factory>, mass: float, heating_power: float | None, phase_law: object) -> None

Evolve a lumped thermal state with a phase-change enthalpy law.

Declared fields. specific_enthalpy (J/kg, differential), temperature (K, derived), liquid_fraction (1, derived), heat_source (W, input).

public_api namespace

API-first thermal facade with explicit shared-numerics planning.

RadiationCooling class

RadiationCooling(*, domain: object, model_id: str = <factory>, heat_capacity: float, radiating_area: float, radiation: object, heating_power: float | None = 0.0) -> None

Evolve a lumped temperature under a radiative power law and optional heating.

Declared fields. temperature (K, differential), heat_source (W, input), radiated_power (W, derived).

RadiativeHeatFlux class

RadiativeHeatFlux(*, boundary: object, physics: object, emissivity: object, ambient_temperature: object, stefan_boltzmann: float = 5.670374419e-08) -> None

Grey diffuse outward radiation to a prescribed thermal enclosure.

Selected methods.

outward_flux(temperature, *, points, time)

ThermalGreyDiffuseRadiationBoundary class

ThermalGreyDiffuseRadiationBoundary(condition_id: str, emissivity: float, ambient_temperature: float, domain_ids: tuple[str, ...] = (), stefan_boltzmann: float = 5.670374419e-08, ad_capability_id: str = 'capability:automatic_differentiation', newton_capability_id: str = 'coupling.newton') -> None

Gray, diffuse, opaque surface radiation to an ambient enclosure.

Selected methods.

flux(surface_temperature: float) -> float

Evaluate the declared physical radiation flux for contract tests.

jacobian(surface_temperature: float) -> float

Return the analytic d(flux)/d(surface_temperature) contract value.

to_boundary_condition() -> ThermalBoundaryCondition
to_nonlinear_contract() -> "'ThermalRadiationNonlinearContract'"
to_optional_ir_block() -> ThermalOptionalIRBlock
to_mapping() -> dict[str, object]

ThermalPhaseChangeLawSet class

ThermalPhaseChangeLawSet(law_set_id: str, solidus_temperature: float, liquidus_temperature: float, latent_heat: float, solid_heat_capacity: float, liquid_heat_capacity: float, version: str = '1.0.0') -> None

Piecewise-smooth enthalpy formulation with a finite mushy interval.

Selected methods.

phase_fraction(temperature: float | np.ndarray) -> float | np.ndarray
enthalpy(temperature: float | np.ndarray) -> float | np.ndarray
effective_heat_capacity(temperature: float | np.ndarray) -> float | np.ndarray
temperature_from_enthalpy(enthalpy: float | np.ndarray) -> float | np.ndarray

Invert this monotone piecewise enthalpy law, relative to solidus.

temperature_enthalpy_derivative(enthalpy)

Branch derivative of the inverse enthalpy law, using its knot convention.

phase_fraction_derivative(temperature)

Interior mushy slope; saturated branches have zero slope.

laws() -> tuple[ThermalPropertyLaw, ...]
register(registry: ThermalPropertyLawRegistry) -> tuple[str, ...]

Register all phase-change laws in the shared material-law registry.

evaluate_registered(registry: ThermalPropertyLawRegistry, temperature: float) -> dict[str, float]
to_optional_ir_block() -> ThermalOptionalIRBlock
to_mapping() -> dict[str, object]

validation_report namespace

Structured public validation report for one Thermal configuration.