Replies: 2 comments
-
The square term was added here:
The purpose of this model is to suppress a temperature inversion in the tank, and it does so with a differentiable term. This should not be considered as heat conduction, because the effect if there is a temperature inversion would be much more complicated. This model just brings this (physically unstable) configuration back to the point where there is no temperature inversion. |
Beta Was this translation helpful? Give feedback.
-
Thank you for your reply, @mwetter! I had seen that in the documentation and understood that it was introduced to make the equation differentiable (I made the mistake of forgetting that
I would assume the Regardless, I am confused that the unit checking does not throw a unit mismatch error - are |
Beta Was this translation helpful? Give feedback.
-
Dear all,
while delving into storage models I stumbled upon line 33 in the Buoyancy-Model.$\left [Q_{flow}[i] \right] = W$ , $[k] = \frac{W}{K}$ and $[dT] = K$ , so that the units seem to not check out here as $W \neq W\cdot K$ . Am I overlooking something here, shouldn't there be a
Here,
Q_flow[i]
is defined asQ_flow[i] = k*noEvent(smooth(1, if dT[i]>0 then dT[i]^2 else 0));
.However,
sqrt
around the wholenoEvent(...)
? If there is indeed something missing, why does this not lead to an error while compiling?As a side note: Could
k
be declared as aModelica.Units.SI.ThermalConductance
for readability purpose?I am looking forward to your reply - have a nice day!
Cheers
Rouven
Beta Was this translation helpful? Give feedback.
All reactions