OpenModelica


Forgot password? | Forgot username? | Register

StaticResistance.Battery.Pack

StaticResistance.Battery.Pack

Hi,
I build up below model. I am connection BatteryPack to BatteryManagement,Cycling unit  via BusConnection.
If i choose BatteryPack only one cell and Cycling only 1 cell, everything is work as i expect.

But; if i change batterPack like 8 cell serial and also change Cycling object 8 serial cell, there is equation error.
Do you have any idea  what's going on?

Thnaks
Oki



model x
  Modelica_EnergyStorages.BatteryManagement.VoltageCycling BM(ns = 1, np = 1, Ifinal = 2, Vmax = 3.55, Vmin = 2.8, delayAfterCharging = 100, delayAfterDischarging = 100) annotation(Placement(visible = true, transformation(origin = {-40, -60}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
  Modelica.Electrical.Analog.Basic.Ground GND annotation(Placement(visible = true, transformation(origin = {0, -60}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
  Modelica.Electrical.Analog.Sensors.VoltageSensor VMeter annotation(Placement(visible = true, transformation(origin = {0, 0}, extent = {{-10, -10}, {10, 10}}, rotation = -90)));
  Modelica_EnergyStorages.Sources.Loads.CCCV LOAD(Vmin = 2.8, Imax = 40) annotation(Placement(visible = true, transformation(origin = {40, 0}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
  Modelica_EnergyStorages.Batteries.Stacks.WithMeasurement.StaticResistanceScaled BPack(ns = 1, np = 1, SOCini = 0.9, cellParameters = Modelica_EnergyStorages.CellRecords.StaticResistance.Test1Parameters()) annotation(Placement(visible = true, transformation(origin = {-40, 0}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
  Modelica.Electrical.Analog.Sensors.CurrentSensor IMeter annotation(Placement(visible = true, transformation(origin = {0, 40}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
equation
  connect(VMeter.v, LOAD.v) annotation(Line(points = {{-10, -6.12303e-16}, {-10, 0}, {-18.0602, 0}, {-18.0602, -22.7425}, {27.0903, -22.7425}, {27.0903, -6.35452}, {31.1037, -6.35452}, {31.1037, -6.35452}}, color = {0, 0, 127}));
  connect(IMeter.n, LOAD.pin_p) annotation(Line(points = {{10, 40}, {40.4682, 40}, {40.4682, 10.0334}, {40.4682, 10.0334}}, color = {0, 0, 255}));
  connect(BPack.pin_pStack, IMeter.p) annotation(Line(points = {{-40, 9.4}, {-39.7993, 9.4}, {-39.7993, 40.4682}, {-9.36455, 40.4682}, {-9.36455, 40.4682}}, color = {0, 0, 255}));
  connect(BPack.cellBus, BM.singleCellBus[1, 1]) annotation(Line(points = {{-49.6, 0}, {-60.2007, 0}, {-60.2007, -59.8662}, {-50.1672, -59.8662}, {-50.1672, -59.8662}}, color = {255, 204, 51}));
  connect(BM.Discharging, LOAD.on) annotation(Line(points = {{-29, -54}, {-16.0535, -54}, {-16.0535, -29.097}, {23.0769, -29.097}, {23.0769, 0}, {31.1037, 0}, {31.1037, 0}}, color = {255, 0, 255}));
  connect(VMeter.n, BPack.pin_nStack) annotation(Line(points = {{6.12303e-16, -10}, {6.12303e-16, -20.7358}, {-39.7993, -20.7358}, {-39.7993, -9.699}, {-39.7993, -9.699}}, color = {0, 0, 255}));
  connect(VMeter.p, BPack.pin_pStack) annotation(Line(points = {{-6.12303e-16, 10}, {-6.12303e-16, 22.0736}, {-39.7993, 22.0736}, {-39.7993, 9.36455}, {-39.7993, 9.36455}}, color = {0, 0, 255}));
  connect(LOAD.pin_n, GND.p) annotation(Line(points = {{40, -10}, {40.4682, -10}, {40.4682, -34.7826}, {0, -34.7826}, {0, -51.505}, {0, -51.505}}, color = {0, 0, 255}));
  connect(BPack.pin_nStack, GND.p) annotation(Line(points = {{-40, -9.4}, {-39.7993, -9.4}, {-39.7993, -34.7826}, {0, -34.7826}, {0, -50.1672}, {0, -50.1672}}, color = {0, 0, 255}));
  annotation(Icon(coordinateSystem(extent = {{-100, -100}, {100, 100}}, preserveAspectRatio = true, initialScale = 0.1, grid = {2, 2})), Diagram(coordinateSystem(extent = {{-100, -100}, {100, 100}}, preserveAspectRatio = true, initialScale = 0.1, grid = {2, 2})));
  annotation(experiment(StopTime = 5000, Interval = 1), Diagram(graphics));
end x;

Administrator has disabled public posting. Please login or register in order to proceed.
There are 0 guests and 0 other users also viewing this topic
You are here: