Skip to content

Commit

Permalink
Fix unit error in CCCVcharging
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikt-ma committed Apr 6, 2023
1 parent 64b1f57 commit 183fe6d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Modelica/Electrical/Batteries/Examples/CCCVcharging.mo
Expand Up @@ -2,10 +2,13 @@ within Modelica.Electrical.Batteries.Examples;
model CCCVcharging
"Charge a battery with constant current - constant voltage characteristic"
extends Modelica.Icons.Example;
protected
parameter Modelica.Units.SI.Current RiCurrent = 1200 "Current relating OCVmax to Ri in cellData";
public
parameter Modelica.Electrical.Batteries.ParameterRecords.TransientData.ExampleData cellData(
Qnom=18000,
useLinearSOCDependency=false,
Ri=cellData.OCVmax/1200,
Ri=cellData.OCVmax/RiCurrent,
Idis=0.001)
annotation (Placement(transformation(extent={{20,-20},{40,0}})));
Modelica.Electrical.Batteries.BatteryStacks.CellRCStack battery(
Expand Down

0 comments on commit 183fe6d

Please sign in to comment.