PrescribedTemperature
This model represents a variable temperature boundary condition.
The temperature in kelvin is given as input signal to the RealInput
T
. The effect is that an instance of this model acts as an infinite reservoir, able to absorb or generate as much energy as required to keep the temperature at the specified value.
Usage
PrescribedTemperature()
Connectors
Behavior
Source
dyad
# This model represents a variable temperature boundary condition.
#
# The temperature in kelvin is given as input signal to the `RealInput` `T`. The
# effect is that an instance of this model acts as an infinite reservoir, able to
# absorb or generate as much energy as required to keep the temperature at the
# specified value.
component PrescribedTemperature
node = Node() [{
"Dyad": {
"placement": {"icon": {"iconName": "node_b", "x1": 900, "y1": 400, "x2": 1100, "y2": 600}}
}
}]
T = RealInput() [{"Dyad": {"placement": {"icon": {"x1": -100, "y1": 400, "x2": 100, "y2": 600}}}}]
relations
node.T = T
end
Flattened Source
dyad
# This model represents a variable temperature boundary condition.
#
# The temperature in kelvin is given as input signal to the `RealInput` `T`. The
# effect is that an instance of this model acts as an infinite reservoir, able to
# absorb or generate as much energy as required to keep the temperature at the
# specified value.
component PrescribedTemperature
node = Node() [{
"Dyad": {
"placement": {"icon": {"iconName": "node_b", "x1": 900, "y1": 400, "x2": 1100, "y2": 600}}
}
}]
T = RealInput() [{"Dyad": {"placement": {"icon": {"x1": -100, "y1": 400, "x2": 100, "y2": 600}}}}]
relations
node.T = 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