IEEE Circuits and Systems Magazine - Q1 2023 - 43
variety of solutions trespassing the said coverage, the
D2I translation must be re-done each time. This can
be effort-heavy, and apparently requires knowledge of
both the modeling principles to apply, and how to solve
the obtained equations numerically.
Figure 3. D2I example 2-the modeled system.
where T1,2 are the resistor temperatures, α1,2 their temperature
coefficients, and R01,2 the resistance values at
the reference temperatures T01,2. We neglect heat storage
in the air, assume the duct walls to be adiabatic,
and indicate with wa(t) and Tai(t) the air mass flow rate
and inlet temperature, respectively. This said, we can
express the time derivatives of T1 and T2 and then obtain
the imperative model by approximating these with
incremental ratios as we did above.
For this example, however, we do not really need to
perform the D2I translation. It is enough to look at the
expressions of T˙1 (t) and T˙2 (t), that respectively read
2
.
Tt =
1()
1
C ()01 11
vt
t1 RT tT(( ))
()
+
cw tR 1 α (( ))Tt T+− 01
and
.
Tt =
2()
1
C ()02 22
vt
t2 RT tT(( ))
()
+
cw tR +−01 11
2
+
cw tR
aa
aa() ()
()−Tt T202
02
1
1
+ 2
α
α ((( ))
(( ))Tt T
01
() ()
()
()
vt
,
(11)
to make two immediate considerations. First, the obtained
expressions are nonlinear, hence the path to the
imperative code will be inherently more complicated
and error-prone than it was in Example 1 above. Second,
and again most relevant, changing the number of
cascaded " resistor in duct " elements changes the form
of the equations, not only the size of some matrix: one
just needs to observe (10) and (11) to conclude that the
derivative of each temperature depends on that temperature
and on all the upstream ones in the air duct.
Also, the derivative expressions would change significantly
should one for example insert a resistance in
the electric supply line between R1 and R2 instead of
assuming them perfectly in parallel or place them side
by side (instead of downstream one another) in the air
duct. Summing up, then, one could still get to an algorithm
that can be used by just compiling configuration
files, but this would entail accepting a coverage that is
narrow indeed. If the analyst has to experiment with a
FIRST QUARTER 2023
1+− 02
2
α
vt
2
()
+−
GT tT t
tai() ()
22
1
1
aa() ()01 11
()
1+− 01
2
α
vt
()
+−
GT tT t
tai() ()
11
1
1
(10)
C. Examples 1 and 2 the declarative way
1) Example 1: As shown in Listing 2, making the rod
a Modelica component and using it to assemble
an example model is quite straightforward once
the HP (heat port) connector is defined; notice the
similarity to the electric pin. Notice also the natural
separation between the models of the rod and
of the boundary conditions, incidentally.
2) Example 2: Besides nonlinearity, the presence of a
moving fluid gives rise in example 2 to the transport
of thermal properties with the fluid itself.
This requires some equations to be conditional
with respect to the direction (i.e., the sign) of flow
Listing 2. D2I example 1, the declarative way.
IEEE CIRCUITS AND SYSTEMS MAGAZINE
43
IEEE Circuits and Systems Magazine - Q1 2023
Table of Contents for the Digital Edition of IEEE Circuits and Systems Magazine - Q1 2023
Contents
IEEE Circuits and Systems Magazine - Q1 2023 - Cover1
IEEE Circuits and Systems Magazine - Q1 2023 - Cover2
IEEE Circuits and Systems Magazine - Q1 2023 - Contents
IEEE Circuits and Systems Magazine - Q1 2023 - 2
IEEE Circuits and Systems Magazine - Q1 2023 - 3
IEEE Circuits and Systems Magazine - Q1 2023 - 4
IEEE Circuits and Systems Magazine - Q1 2023 - 5
IEEE Circuits and Systems Magazine - Q1 2023 - 6
IEEE Circuits and Systems Magazine - Q1 2023 - 7
IEEE Circuits and Systems Magazine - Q1 2023 - 8
IEEE Circuits and Systems Magazine - Q1 2023 - 9
IEEE Circuits and Systems Magazine - Q1 2023 - 10
IEEE Circuits and Systems Magazine - Q1 2023 - 11
IEEE Circuits and Systems Magazine - Q1 2023 - 12
IEEE Circuits and Systems Magazine - Q1 2023 - 13
IEEE Circuits and Systems Magazine - Q1 2023 - 14
IEEE Circuits and Systems Magazine - Q1 2023 - 15
IEEE Circuits and Systems Magazine - Q1 2023 - 16
IEEE Circuits and Systems Magazine - Q1 2023 - 17
IEEE Circuits and Systems Magazine - Q1 2023 - 18
IEEE Circuits and Systems Magazine - Q1 2023 - 19
IEEE Circuits and Systems Magazine - Q1 2023 - 20
IEEE Circuits and Systems Magazine - Q1 2023 - 21
IEEE Circuits and Systems Magazine - Q1 2023 - 22
IEEE Circuits and Systems Magazine - Q1 2023 - 23
IEEE Circuits and Systems Magazine - Q1 2023 - 24
IEEE Circuits and Systems Magazine - Q1 2023 - 25
IEEE Circuits and Systems Magazine - Q1 2023 - 26
IEEE Circuits and Systems Magazine - Q1 2023 - 27
IEEE Circuits and Systems Magazine - Q1 2023 - 28
IEEE Circuits and Systems Magazine - Q1 2023 - 29
IEEE Circuits and Systems Magazine - Q1 2023 - 30
IEEE Circuits and Systems Magazine - Q1 2023 - 31
IEEE Circuits and Systems Magazine - Q1 2023 - 32
IEEE Circuits and Systems Magazine - Q1 2023 - 33
IEEE Circuits and Systems Magazine - Q1 2023 - 34
IEEE Circuits and Systems Magazine - Q1 2023 - 35
IEEE Circuits and Systems Magazine - Q1 2023 - 36
IEEE Circuits and Systems Magazine - Q1 2023 - 37
IEEE Circuits and Systems Magazine - Q1 2023 - 38
IEEE Circuits and Systems Magazine - Q1 2023 - 39
IEEE Circuits and Systems Magazine - Q1 2023 - 40
IEEE Circuits and Systems Magazine - Q1 2023 - 41
IEEE Circuits and Systems Magazine - Q1 2023 - 42
IEEE Circuits and Systems Magazine - Q1 2023 - 43
IEEE Circuits and Systems Magazine - Q1 2023 - 44
IEEE Circuits and Systems Magazine - Q1 2023 - 45
IEEE Circuits and Systems Magazine - Q1 2023 - 46
IEEE Circuits and Systems Magazine - Q1 2023 - 47
IEEE Circuits and Systems Magazine - Q1 2023 - 48
IEEE Circuits and Systems Magazine - Q1 2023 - 49
IEEE Circuits and Systems Magazine - Q1 2023 - 50
IEEE Circuits and Systems Magazine - Q1 2023 - 51
IEEE Circuits and Systems Magazine - Q1 2023 - 52
IEEE Circuits and Systems Magazine - Q1 2023 - 53
IEEE Circuits and Systems Magazine - Q1 2023 - 54
IEEE Circuits and Systems Magazine - Q1 2023 - 55
IEEE Circuits and Systems Magazine - Q1 2023 - 56
IEEE Circuits and Systems Magazine - Q1 2023 - 57
IEEE Circuits and Systems Magazine - Q1 2023 - 58
IEEE Circuits and Systems Magazine - Q1 2023 - 59
IEEE Circuits and Systems Magazine - Q1 2023 - 60
IEEE Circuits and Systems Magazine - Q1 2023 - 61
IEEE Circuits and Systems Magazine - Q1 2023 - 62
IEEE Circuits and Systems Magazine - Q1 2023 - 63
IEEE Circuits and Systems Magazine - Q1 2023 - 64
IEEE Circuits and Systems Magazine - Q1 2023 - 65
IEEE Circuits and Systems Magazine - Q1 2023 - 66
IEEE Circuits and Systems Magazine - Q1 2023 - 67
IEEE Circuits and Systems Magazine - Q1 2023 - 68
IEEE Circuits and Systems Magazine - Q1 2023 - 69
IEEE Circuits and Systems Magazine - Q1 2023 - 70
IEEE Circuits and Systems Magazine - Q1 2023 - 71
IEEE Circuits and Systems Magazine - Q1 2023 - 72
IEEE Circuits and Systems Magazine - Q1 2023 - 73
IEEE Circuits and Systems Magazine - Q1 2023 - 74
IEEE Circuits and Systems Magazine - Q1 2023 - 75
IEEE Circuits and Systems Magazine - Q1 2023 - 76
IEEE Circuits and Systems Magazine - Q1 2023 - 77
IEEE Circuits and Systems Magazine - Q1 2023 - 78
IEEE Circuits and Systems Magazine - Q1 2023 - 79
IEEE Circuits and Systems Magazine - Q1 2023 - 80
IEEE Circuits and Systems Magazine - Q1 2023 - 81
IEEE Circuits and Systems Magazine - Q1 2023 - 82
IEEE Circuits and Systems Magazine - Q1 2023 - 83
IEEE Circuits and Systems Magazine - Q1 2023 - 84
IEEE Circuits and Systems Magazine - Q1 2023 - 85
IEEE Circuits and Systems Magazine - Q1 2023 - 86
IEEE Circuits and Systems Magazine - Q1 2023 - 87
IEEE Circuits and Systems Magazine - Q1 2023 - 88
IEEE Circuits and Systems Magazine - Q1 2023 - Cover3
IEEE Circuits and Systems Magazine - Q1 2023 - Cover4
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2023Q3
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2023Q2
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2023Q1
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2022Q4
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2022Q3
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2022Q2
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2022Q1
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2021Q4
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2021q3
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2021q2
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2021q1
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2020q4
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2020q3
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2020q2
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2020q1
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2019q4
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2019q3
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2019q2
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2019q1
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2018q4
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2018q3
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2018q2
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2018q1
https://www.nxtbookmedia.com