Skip to content

Commit

Permalink
Close modelica#4101: Fix unit error in a single PR
Browse files Browse the repository at this point in the history
  • Loading branch information
christiankral committed Oct 18, 2023
1 parent 82208e4 commit 8450a8e
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -9,11 +9,12 @@ model BatteryDischargeCharge "Discharge and charge idealized battery"
Tp=60,
startTime=60)
annotation (Placement(transformation(extent={{-80,-10},{-60,10}})));
parameter Modelica.Units.SI.Current Isc = 1200 "Short-circuit current of cell at OCVmax";
parameter Modelica.Electrical.Batteries.ParameterRecords.CellData cellData1(
Qnom=18000,
OCVmax=4.2,
OCVmin=2.5,
Ri=cellData1.OCVmax/1200)
Ri=cellData1.OCVmax/Isc)
annotation (Placement(transformation(extent={{60,20},{80,40}})));
Modelica.Electrical.Batteries.BatteryStacks.CellStack battery1(
Ns=10,
Expand All @@ -38,7 +39,7 @@ model BatteryDischargeCharge "Discharge and charge idealized battery"
parameter Modelica.Electrical.Batteries.ParameterRecords.TransientData.ExampleData cellData2(
Qnom=18000,
useLinearSOCDependency=false,
Ri=cellData2.OCVmax/1200,
Ri=cellData2.OCVmax/Isc,
Idis=0.1,
nRC=2,
rcData={Modelica.Electrical.Batteries.ParameterRecords.TransientData.RCData(
Expand Down

0 comments on commit 8450a8e

Please sign in to comment.