QS

Heat Flow Source

Thermal
Run the live example Free · no sign-up · runs in your browser

The Heat Flow Source block is an ideal through-flow source that injects a prescribed thermal heat flux Q˙\dot{Q} into the network from port B to port A, regardless of the temperature difference across the ports.

When the optional control port in (Ctrl) is connected, it dynamically modulates the injected heat flux, allowing accurate modeling of electrical Joule heating (I2RI^2 R), mechanical friction dissipation (τ⋅ω\tau \cdot \omega), or hydraulic valve throttling (ΔP⋅q\Delta P \cdot q).

Real-World Analog: Represents an electric resistance cartridge heater, CPU thermal dissipation, or solar irradiance injecting heat flux in Watts.

Mathematical Model

The injected thermal heat flux is defined by:

Q={Qctrl(t),if Ctrl is wiredQparam,otherwiseQ = \begin{cases} Q_{ctrl}(t), & \text{if Ctrl is wired} \\ Q_{param}, & \text{otherwise} \end{cases}

Where:

  • Q is the heat flow rate injected from port B to port A in Watts (W).
  • Q_{ctrl} is the incoming control signal in Watts (W).
  • Q_{param} is the static heat flow parameter in Watts (W).

Inputs & Outputs

Direction ID Label Type Status
→ In in Ctrl number Optional
→ In p A number Required
→ In n B number Required

Parameters

Parameters Label Type Default Description
heat_flow Heat Flow (Q) number 100 Prescribed heat flow rate in Watts injected from port B to port A

Usage Examples

Electrical Joule Heating Element

Model an electric heater powered by a step signal:

Step -> HeatFlowSource(Ctrl) -> ThermalMass(water_tank)

Modulated Friction Heat Dissipation

Simulate mechanical brake or bearing friction heating a thermal mass:

Product(torque * speed) -> HeatFlowSource(Ctrl) -> ThermalMass(caliper) -> Convection

Remarks & Best Practices

  • Through-Variable Injection: In MNA, the heat flow directly updates the excitation vector b\mathbf{b} as a nodal heat source.
  • Cross-Domain Coupling: Ideal for receiving dissipated power from electrical, mechanical, or hydraulic domains.
  • Reference Independence: Port B can be wired to ambient or ground reference to simulate single-ended heating.
  • WASM Performance: Stamped and solved in WebAssembly without numerical iterations.

Related Components