IEEE Circuits and Systems Magazine - Q1 2023 - 42

ratios over h. We can do this explicitly or implicitly, that
is, assuming either of the two approximations
xkhx kh
h
−−1
Figure 2. D2I example 1-the modeled system.
and
−
A =
G
C







11 00
12 10 0
01 21
−
−
 



  

−
00 12 1
00 13



− 





,.B
C
1
=







 (6)
00
02





10
00

G
A possible way to translate (4) into imperative code
(there are many but in this example we stick to one for
simplicity) is to decide a time step h for computing the
evolution of the state variables (those under time derivative)
and replace all time derivatives with incremental
Algorithm 1.
D2I example 1 - imperative model.
/* Problem acquisition & setup */
1 read L, S, N, ρ, c, λ, h, explicit from config file;
2 read initial values for Ti from init file;
3 compute matrices A and B as per (6);
4 if explicit then
5
6
Adiscrete_time ← I + hA;
Bdiscrete_time ← hB;
7 else
8
9
Adiscrete_time ← (I − hA)−1;
Bdiscrete_time ← (I − hA)−1 hB;
10 end
/* Initialisation */
11 k ← 0;
12 Tprevious ← initial values for Ti;
/* Simulation */
13 while simulation not finished do
14
15
16
17
18
19
20
t ← kh;
acquire or compute u(k);
T ← Adiscrete_timeTprevious+Bdiscrete_timeu(k);
write t to output file as t(k);
write T to output file as T(k);
Tprevious ← T ;
k ← k + 1;
21 end
42
IEEE CIRCUITS AND SYSTEMS MAGAZINE
() (( )) (( ))
()
≈
{
−+
xk h
xkh


−1
explicit
implicit
(7)
whatever x is, where the integer k counts the time steps
at which the solution is computed. Writing for compactness
x(k) to mean x(kh), again whatever x is, the two approximations
in (7) respectively transform (4) into
Tk IhAT khBu k
Tk IhATkI hA h
() () () ()
−+ −
=−
() () () ()
=+
−−
1
111
expl.
BuB k() impl.
(8)
Based on this, a possible imperative model is provided
by Algorithm 1. Observe that in this example it is reasonably
easy to carry out the translation once and leave the
task of specializing the model for a specific rod to a configuration
file with physical parameters and the explicit/
implicit choice. Analogously, initial conditions for a particular
run can reside in the configuration file as well, and
the inputs u(k) can be acquired either from a file or by
running some other simulation algorithm synchronously.
Summing up, as long as the problem to study concerns
a rod under the stated conditions-we shall
call this the coverage of the dynamic model we just
wrote-the analyst can use that model by (i) compiling
configuration, initialization and possibly input files,
and if needed (ii) writing another algorithm to suitably
govern some inputs (for example, modulate Tp so that
none of the Ti ever exceeds a threshold in the face of a
time-varying Pp). Said otherwise, the analyst needs no
knowledge of the internals of the model, nor of the underlying
principles. Also, and most relevant for the following
discussion, the introduced matrix compact form
makes the D2I translation just parametric in the number
of lumps: the matrices change in size, but their form is
still the same.
B. D2I-Example 2
We now consider two resistors R1,2 in parallel subjected
to a prescribed voltage v(t), that dissipate heat by Joule
effect toward an air duct where R2 comes downstream,
hence receiving air already heated by R1. The modeled
system is illustrated in Fig. 3.
We denote by Ct1,2 the thermal capacities of the two
resistors, by ca the specific heat of air, and by Gt1,2 the
resistors-to-air thermal conductances; for simplicity we
assume all these physical parameters constant, but we
account for resistance variations due to temperature,
i.e., we write
RT RT T
,, ,, ,,
0121212012
1 α
12 12 () (9)
() ()=+ −
FIRST QUARTER 2023

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