Skip to content
TemperatureSensor.md

TemperatureSensor

Absolute temperature sensor

Usage

TemperatureSensor()

Connectors

  • node - (Node)

  • T - This connector represents a real signal as an output from a component (RealOutput)

Behavior

T(t)=node.T(t)node.Q(t)=0

Source

dyad
# Absolute temperature sensor
component TemperatureSensor
  node = Node() [{
    "Dyad": {
      "placement": {"icon": {"iconName": "node_a", "x1": -100, "y1": 400, "x2": 100, "y2": 600}}
    }
  }]
  # Absolute temperature as output signal
  T = RealOutput() [{"Dyad": {"placement": {"icon": {"x1": 900, "y1": 400, "x2": 1100, "y2": 600}}}}]
relations
  T = node.T
  node.Q = 0
end
Flattened Source
dyad
# Absolute temperature sensor
component TemperatureSensor
  node = Node() [{
    "Dyad": {
      "placement": {"icon": {"iconName": "node_a", "x1": -100, "y1": 400, "x2": 100, "y2": 600}}
    }
  }]
  # Absolute temperature as output signal
  T = RealOutput() [{"Dyad": {"placement": {"icon": {"x1": 900, "y1": 400, "x2": 1100, "y2": 600}}}}]
relations
  T = node.T
  node.Q = 0
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