When I check Modelica.Thermal.HeatTransfer.Components.HeatCapacitor using OpenModelica, it tells me that HeatCapacitor has 4 equations and 4 variables. But I can only find 3 equations in the model listed below for 4 variables(i.e, T, port.T, der_T, port.Q_flow):
T = port.T;
der_T = der(T);
C*der(T) = port.Q_flow;
I created a new model named MyHeatCapacitor by deleting der_T and the second equation listed above. The tool indicates that MyHeatCapacitor has 3 equations for 3 variables.
The two heat-capacitor models can give me the correct answers. I was just wondering where I can find the equation which does not appear in the equation section.
Thanks!!!