We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aafd2dd commit 433d0e0Copy full SHA for 433d0e0
BuildingSystems/Technologies/ElectricalStorages/BatterySimple.mo
@@ -18,8 +18,9 @@ equation
18
PLoad_max,
19
0.001);
20
21
- PGrid = if PNet > 0.0 then PNet - PChargeEff/etaCharge else PNet + PLoadEff*etaLoad;
22
-
+ PGrid = 0.5*(1.0-Modelica.Math.tanh(100000.0*(PNet)))*(PNet + PLoadEff*etaLoad)+
+ 0.5*(1.0+Modelica.Math.tanh(100000.0*(PNet)))*(PNet - PChargeEff/etaCharge);
23
+
24
annotation (Documentation(info="<html>
25
<p>
26
Model for an eletrical battery based on the Kinetic Battery Model (KiBaM) of Manwell and McGowan
0 commit comments