Skip to content
ConvectiveResistance.md

ConvectiveResistance

Lumped thermal element for heat convection with resistance as an input.

This component extends from ConvectiveElement1D

Usage

ConvectiveResistance()

Connectors

  • solid - (Node)

  • fluid - (Node)

  • Rc - This connector represents a real signal as an input to a component (RealInput)

Variables

NameDescriptionUnits
ΔTK
QW

Behavior

ΔT(t)=solid.T(t)fluid.T(t)solid.Q(t)=Q(t)fluid.Q(t)=Q(t)ΔT(t)=Q(t)Rc(t)

Source

dyad
# Lumped thermal element for heat convection with resistance as an input.
component ConvectiveResistance
  extends ConvectiveElement1D
  # Signal representing the convective thermal resistance
  Rc = RealInput() [{"Dyad": {"placement": {"icon": {"x1": 400, "y1": -100, "x2": 600, "y2": 100}}}}]
relations
  ΔT = Rc*Q
end
Flattened Source
dyad
# Lumped thermal element for heat convection with resistance as an input.
component ConvectiveResistance
  solid = Node() [{
    "Dyad": {
      "placement": {"icon": {"iconName": "node_a", "x1": -100, "y1": 400, "x2": 100, "y2": 600}}
    }
  }]
  fluid = Node() [{
    "Dyad": {
      "placement": {"icon": {"iconName": "node_b", "x1": 900, "y1": 400, "x2": 1100, "y2": 600}}
    }
  }]
  variable ΔT::Temperature
  variable Q::HeatFlowRate
  # Signal representing the convective thermal resistance
  Rc = RealInput() [{"Dyad": {"placement": {"icon": {"x1": 400, "y1": -100, "x2": 600, "y2": 100}}}}]
relations
  ΔT = solid.T-fluid.T
  solid.Q = Q
  fluid.Q = -Q
  ΔT = Rc*Q
metadata {}
end


Test Cases

This is setup code, that must be run before each test case.

julia
using ThermalComponents
using ModelingToolkit, OrdinaryDiffEqDefault
using Plots
using CSV, DataFrames

snapshotsdir = joinpath(dirname(dirname(pathof(ThermalComponents))), "test", "snapshots")
"/home/actions-runner-10/.julia/packages/ThermalComponents/uOuoD/test/snapshots"
  • Examples

  • Experiments

  • Analyses