nodes
p = foundation.electrical.electrical;
n = foundation.electrical.electrical;
Th = foundation.thermal.thermal;
Tc = foundation.thermal.thermal;
Tm = foundation.thermal.thermal;
end
parameters
dTmax = {63, 'K'};
Km = {0 , 'W/K'};
Rm = {0 , 'Ohm'};
end
function setup
qE = {value={0,'J/s'},priority=priority.low};
qR = {value={0,'J/s'},priority=priority.low};
qS1 = {value={0,'J/s'},priority=priority.low};
qS2 = {value={0,'J/s'},priority=priority.low};
Th.T = {value={0,'K'},priority=priority.low};
Tc.T = {value={0,'K'},priority=priority.low};
Tm.T = {value={0,'K'},priority=priority.low};
end
branches
i : p.i -> n.i;
qR : * -> Tm.Q;
qS1 : Tc.Q -> Tm.Q;
qS2 : Tm.Q -> Th.Q;
qE : Tc.Q -> Th.Q;
end
equations
qR == Rm * i * i;
qS1 == (Tc.T - Tm.T)*Km/2;
qS2 == (Tm.T - Th.T)*Km/2;
end