Skip to content
FixedTemperature.md

FixedTemperature

Fixed temperature boundary condition in kelvin.

This model defines a fixed temperature T at its port in kelvin, i.e., it defines a fixed temperature as a boundary condition.

Usage

FixedTemperature(T)

Parameters:

NameDescriptionUnitsDefault value
TFixed temperature boundary conditionK

Connectors

Behavior

node.T(t)=T

Source

dyad
# Fixed temperature boundary condition in kelvin.
#
# This model defines a fixed temperature `T` at its port in kelvin, i.e., it
# defines a fixed temperature as a boundary condition.
component FixedTemperature
  node = Node() [{
    "Dyad": {
      "placement": {"icon": {"iconName": "node_b", "x1": 900, "y1": 400, "x2": 1100, "y2": 600}}
    }
  }]
  # Fixed temperature boundary condition
  parameter T::Temperature
relations
  node.T = T
end
Flattened Source
dyad
# Fixed temperature boundary condition in kelvin.
#
# This model defines a fixed temperature `T` at its port in kelvin, i.e., it
# defines a fixed temperature as a boundary condition.
component FixedTemperature
  node = Node() [{
    "Dyad": {
      "placement": {"icon": {"iconName": "node_b", "x1": 900, "y1": 400, "x2": 1100, "y2": 600}}
    }
  }]
  # Fixed temperature boundary condition
  parameter T::Temperature
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"
  • Examples

  • Experiments

  • Analyses