Battery#

block

Block appearance in REPEAT VISION#

 The block implements a basic unsteady battery model.

 For lead-acid battery type, the model uses the following equations:

  • Discharge model \(\left(\mathrm{i}\mathrm{ }^{*} > 0\right)\) (1):

(1)#\[ \mathrm{U}_{\mathrm{б}\mathrm{а}\mathrm{т}\mathrm{р}\mathrm{а}\mathrm{з}}=\mathrm{ }\mathrm{E}_{0} -\mathrm{ }\mathrm{K}\cdot  \frac{Q}{Q-\mathrm{ }\mathrm{i}\mathrm{t}}\cdot \mathrm{ }\mathrm{i}\mathrm{ }^{\cdot} -\mathrm{ }\mathrm{K}\cdot  \frac{Q}{Q-\mathrm{ }\mathrm{i}\mathrm{t}}\cdot \mathrm{ }\mathrm{i}\mathrm{t}\mathrm{ }+\mathrm{L}\mathrm{a}\mathrm{p}\mathrm{l}\mathrm{a}\mathrm{c}\mathrm{e}^{-1}(\frac{\mathrm{E}\mathrm{x}\mathrm{p}\left(s\right)}{\mathrm{S}\mathrm{e}\mathrm{l}\left(s\right)}\cdot 0) \]
  • Charge model \( \left(\mathrm{i}\mathrm{ }^{*} < 0\right) \) (2) :

(2)#\[ \mathrm{U}_{\mathrm{б}\mathrm{а}\mathrm{т}\mathrm{з}\mathrm{а}\mathrm{р}}=\mathrm{ }\mathrm{E}_{0} -\mathrm{ }\mathrm{K}\cdot  \frac{Q}{\mathrm{i}\mathrm{t}+0.1\cdot \mathrm{Q}\mathrm{ }}\cdot \mathrm{ }\mathrm{i}\mathrm{ }^{\cdot} -\mathrm{ }\mathrm{K}\cdot  \frac{Q}{Q-\mathrm{ }\mathrm{i}\mathrm{t}}\cdot \mathrm{ }\mathrm{i}\mathrm{t}\mathrm{ }+\mathrm{L}\mathrm{a}\mathrm{p}\mathrm{l}\mathrm{a}\mathrm{c}\mathrm{e}^{-1}(\frac{\mathrm{E}\mathrm{x}\mathrm{p}\left(s\right)}{\mathrm{S}\mathrm{e}\mathrm{l}\left(s\right)}\cdot \frac{1}{s}) \]

 For lithium-ion battery type, the model uses the following equations:

  • Discharge model \( \left(\mathrm{i}\mathrm{ }^{*}> 0\right)\) (3) :

(3)#\[ U_{\mathrm{б}\mathrm{а}\mathrm{т}\mathrm{р}\mathrm{а}\mathrm{з}}=\mathrm{ }\mathrm{E}_{0} -\mathrm{ }\mathrm{K}\cdot  \frac{Q}{Q-\mathrm{ }\mathrm{i}\mathrm{t}}\cdot \mathrm{ }\mathrm{i}\mathrm{ }^{\cdot} -\mathrm{ }\mathrm{K}\cdot  \frac{Q}{Q-\mathrm{ }\mathrm{i}\mathrm{t}}\cdot \mathrm{ }\mathrm{i}\mathrm{t}\mathrm{ }+A\cdot \mathrm{e}\mathrm{x}\mathrm{p}(-B\cdot \mathrm{ }\mathrm{i}\mathrm{t}) \]
  • Charge model \(\left(\mathrm{i}\mathrm{ }^{*} < 0\right)\) (4) :

(4)#\[ U_{\mathrm{б}\mathrm{а}\mathrm{т}\mathrm{з}\mathrm{а}\mathrm{р}}=\mathrm{ }\mathrm{E}_{0} -\mathrm{ }\mathrm{K}\cdot \mathrm{ }\mathrm{ }\frac{Q}{\mathrm{i}\mathrm{t}+0.1\cdot \mathrm{Q}\mathrm{ }}\cdot \mathrm{ }\mathrm{i}\mathrm{ }^{\cdot} -\mathrm{ }\mathrm{K}\cdot  \frac{Q}{Q-\mathrm{ }\mathrm{i}\mathrm{t}}\cdot \mathrm{ }\mathrm{i}\mathrm{t}\mathrm{ }+A\cdot \mathrm{e}\mathrm{x}\mathrm{p}(-B\cdot \mathrm{ }\mathrm{i}\mathrm{t}) \]

 For nickel-cadmium and nickel-metal-hybrid battery type, the modeluses the following equations:

  • Discharge model \(\left(\mathrm{i}\mathrm{ }^{*}> 0\right)\) (5) :

(5)#\[ \mathrm{U}_{\mathrm{б}\mathrm{а}\mathrm{т}\mathrm{р}\mathrm{а}\mathrm{з}}=\mathrm{ }\mathrm{E}_{0} -\mathrm{ }\mathrm{K}\cdot  \frac{Q}{Q-\mathrm{ }\mathrm{i}\mathrm{t}}\cdot \mathrm{ }\mathrm{i}\mathrm{ }^{\cdot} -\mathrm{ }\mathrm{K}\cdot  \frac{Q}{Q-\mathrm{ }\mathrm{i}\mathrm{t}}\cdot \mathrm{ }\mathrm{i}\mathrm{t}\mathrm{ }+\mathrm{L}\mathrm{a}\mathrm{p}\mathrm{l}\mathrm{a}\mathrm{c}\mathrm{e}^{-1}(\frac{\mathrm{E}\mathrm{x}\mathrm{p}\left(s\right)}{\mathrm{S}\mathrm{e}\mathrm{l}\left(s\right)}\cdot 0) \]
  • Charge model \(\left(\mathrm{i}\mathrm{ }^{*} < 0\right)\) (6) :

(6)#\[ \mathrm{U}_{\mathrm{б}\mathrm{а}\mathrm{т}\mathrm{з}\mathrm{а}\mathrm{р}}=\mathrm{ }\mathrm{E}_{0} -\mathrm{ }\mathrm{K}\cdot  \frac{Q}{\left|\mathrm{i}\mathrm{t}\right|+0.1\cdot Q}\cdot \mathrm{ }\mathrm{i}\mathrm{ }^{\cdot} -\mathrm{ }\mathrm{K}\cdot  \frac{Q}{Q-\mathrm{ }\mathrm{i}\mathrm{t}}\cdot \mathrm{ }\mathrm{i}\mathrm{t}\mathrm{ }+\mathrm{L}\mathrm{a}\mathrm{p}\mathrm{l}\mathrm{a}\mathrm{c}\mathrm{e}^{-1}(\frac{\mathrm{E}\mathrm{x}\mathrm{p}\left(s\right)}{\mathrm{S}\mathrm{e}\mathrm{l}\left(s\right)}\cdot \frac{1}{s}) \]

where:

 \(E_0\) - battery voltage constant, [V];

 \(K\) - polarization constant, [\(\frac{V}{A \cdot hr}\)];

 \(Q\) - battery capacity, [A \(\cdot\) h];

 \(it\) - actual battery charge, [A \(\cdot\) h];

 \(A\) - amplitude of the exponential form, [V];

 \(B\) - inverse time constant of exponential form, [\(\frac{1}{A \cdot hr}\)];

 \(i\) - battery current, [A];

 \(i^{*}\) - filtered battery current, [A].

1.  Properties#

Property

Default value

Description

Units of measurement

Battery type:
Li-ion;
Lead-acid;
NiCd;
NiMH

Li-ion

–

–

Open-circuit voltage

3.366

–

V

Capacity

2.3

–

A\(\cdot\)h

Polarization constant

0.0076

–

\(\frac{В}{A \cdot h}\)

Internal resistance

0.01

–

Ohm

Exponential Voltage Amplitude Constant

0.26422

–

V

Exponential time constant

26.5487

–

\(\frac{1}{A \cdot h}\)

Initial state of charge

100

–

%

Time constant of the filtered current

30

The value reflects the dynamics of change in battery voltage when its current changes

s

2.  Inputs and outputs#

Parameters

Input/Output

Description

Units of measurement

Port type

–

Input

–

V

Electronics

+

Output

–

V

Electronics

In order to see the connection capabilities of the block, you need to go to page Description of block ports

3.  Examples of use#

 Examples of using this block can be found in the following sections:

How-to guides

Section

Guide name

Electrical equipment

Creating a battery management system