OneSimulation docs Website Free books Plans on Gumroad

Docs › Exposed operator and service namespaces › onesim.physics.heat_transfer.configuration

C.5 onesim.physics.heat_transfer.configuration

from onesim.physics.heat_transfer import configuration

THERMAL_CONFIGURATION_SCHEMA value

Identifier of the thermal configuration schema.

THERMAL_MODEL_ALIASES value

Model-name mapping used by the thermal configuration parser.

ThermalConfiguration class

ThermalConfiguration(provider: str, model: str, mesh: str, discretization: ThermalSpatialFamily | str, time_integration: str = 'classical_rk4', solver: str = 'explicit_block', boundary_conditions: tuple[str, ...] = (), material_id: str = 'default', parameters: Mapping[str, object] = <factory>, version: int = 1, dimension: int = 3, coordinate_system: str = 'cartesian', material: Mapping[str, object] = <factory>, source_terms: tuple[str, ...] = (), source_data: Mapping[str, object] = <factory>, boundary_data: Mapping[str, object] = <factory>, time_model: str = 'transient', coupling: str | None = None, output_options: Mapping[str, object] = <factory>, units: Mapping[str, str] = <factory>, provenance: Mapping[str, str] = <factory>, capability_ids: tuple[str, ...] = ()) -> None

Select thermal physics separately from shared numerical providers.

Selected methods.

from_mapping(values: Mapping[str, object], *, unknown_fields: UnknownFieldPolicy | str = <UnknownFieldPolicy.REJECT: reject>) -> "'ThermalConfiguration'"

Build a configuration from the versioned public mapping schema.

to_numerical_configuration() -> NumericalConfiguration
to_simulation_configuration() -> SimulationConfiguration

Convert to the legacy problem-first envelope without data loss.

to_mapping() -> dict[str, object]

UnknownFieldPolicy class

UnknownFieldPolicy(*values)

Policy applied when a public Thermal mapping contains extra keys.