diff --git a/Buildings/Electrical/DC/Loads/Resistor.mo b/Buildings/Electrical/DC/Loads/Resistor.mo index f7800eedc39..a45ffe14a11 100644 --- a/Buildings/Electrical/DC/Loads/Resistor.mo +++ b/Buildings/Electrical/DC/Loads/Resistor.mo @@ -4,7 +4,7 @@ model Resistor "Ideal linear electrical resistor" redeclare package PhaseSystem = PhaseSystems.TwoConductor, redeclare Interfaces.Terminal_n terminal, final mode=Buildings.Electrical.Types.Load.FixedZ_steady_state, - final P_nominal=V_nominal^2/max(R, Modelica.Constants.small)); + final P_nominal=V_nominal^2/max(R, sqrt(Modelica.Constants.small))); extends Modelica.Electrical.Analog.Interfaces.ConditionalHeatPort(T = T_ref); parameter Modelica.Units.SI.Resistance R(start=1) "Resistance at temperature T_ref"; @@ -44,6 +44,11 @@ The temperature T is the temperature of the heat port if useHeatPor ", revisions="