ThermalConductor
Lumped thermal element transporting heat without storing it
This component extends from Element1D
Usage
ThermalConductor(G)
Parameters:
Name | Description | Units | Default value |
---|---|---|---|
G | Constant thermal conductance of the material | W/K |
Connectors
Variables
Name | Description | Units |
---|---|---|
ΔT | K | |
Q | W |
Behavior
Source
dyad
# Lumped thermal element transporting heat without storing it
component ThermalConductor
extends Element1D
# Constant thermal conductance of the material
parameter G::ThermalConductance
relations
Q = G*ΔT
end
Flattened Source
dyad
# Lumped thermal element transporting heat without storing it
component ThermalConductor
node_a = Node() [{
"Dyad": {
"placement": {"icon": {"iconName": "node_a", "x1": -100, "y1": 400, "x2": 100, "y2": 600}}
}
}]
node_b = Node() [{
"Dyad": {
"placement": {"icon": {"iconName": "node_b", "x1": 900, "y1": 400, "x2": 1100, "y2": 600}}
}
}]
variable ΔT::Temperature
variable Q::HeatFlowRate
# Constant thermal conductance of the material
parameter G::ThermalConductance
relations
ΔT = node_a.T-node_b.T
node_a.Q = Q
node_a.Q+node_b.Q = 0
Q = G*ΔT
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"
Related
Examples
Experiments
Analyses