Documentation

# CCCV Battery Charger

Constant-current constant-voltage battery charger

• Library:
• Simscape / Electrical / Specialized Power Systems / Electric Drives / Extra Sources ## Description

The CCCV Battery Charger block implements a generic dynamic model battery charger. This model supports three-phase wye or delta AC, one-phase AC, or DC voltage input. The model also provides an optional ambient temperature input for charging voltage temperature compensation.

The figure shows the equivalent circuit for the CCCV Battery Charger block. ### Equations

#### Output characteristics

The output current of the battery charger is

`${I}_{out}={f}_{1}\left({I}_{out}^{\text{'}},{k}_{p},{k}_{i},{k}_{d},{I}_{ou{t}_{r}%},{f}_{ou{t}_{ir}},t\right)={I}_{out}^{\text{'}}\frac{{k}_{i}}{{k}_{d}{s}^{2}+{k}_{p}s+{k}_{i}}+\frac{{I}_{ou{t}_{r}%}}{100}\text{sin}\left(2\pi {f}_{ou{t}_{ir}}t\right)$`

Variables for the output current and related equations are:

• Iout is the output current command, in A.

• I'out is the pre-filtered current command, in A.

• kp is the PID filter proportional gain.

• ki is the PID filter integral gain.

• kd is the PID filter differential gain.

• Ioutr% is the current output ripple, in %.

• foutir is the current output ripple frequency, in Hz.

• t is the time, in s.

• ξ is the dampening factor, which is limited to values between `0` and `0.9`.

• d% is the overshoot, in %.

• ts is the settling time, in s.

• ICC is the pre-filtered current regulated current command, in A.

• Ibulk is the constant current command, in A.

• ICV is the pre-filtered voltage regulated current command, in A.

• V'out is the voltage command, in V.

• V'tc is the voltage command, in V.

• Vout is the temperature compensated voltage effect, in V.

• $\overline{{V}_{out}}$ is the mean measured output voltage, in V.

• Ta is the ambient temperature, in °C .

• Tnom is the nominal ambient temperature, in °C.

• Vtc is the voltage compensation ratio, in V/°C.

• Vabs is the absorption voltage, in V.

• Vfloat is the float voltage, in V.

• P is the output power, in W.

• $\overline{{I}_{out}}$ is the mean measured output current, in A.

The control gains are:

`${k}_{d}=1$`
`${k}_{p}=2\xi {\omega }_{n}$`
`${k}_{i}={\omega }_{n}^{2}$`

The dampening factor is

`$\xi =-\frac{\mathrm{ln}\left(\frac{{d}_{%}}{100}\right)}{\sqrt{{\pi }^{2}+\mathrm{ln}{\left(\frac{{d}_{%}}{100}\right)}^{2}}}$`

When the output control is current regulated the radian frequency is

`${\omega }_{n}=\frac{-\text{log}\left(0.02\right)}{{t}_{s}\xi }$`

When the output control is voltage regulated the radian frequency is

`${\omega }_{n}=\frac{-\text{log}\left(0.001\right)}{\xi }$`

The pre-filtered current command, I'out, is provided either from the pre-filtered current regulated current command, ICC, or from the pre-filtered voltage regulated current command, ICV. The graphs show the different charging cycle phases. If the Output control mode is set to `Constant Current only (CC)` or `Constant Current - Constant Voltage (CCCV)` and Vout is lower than Float voltage or Absorption voltage, while the Absorption end condition isn’t met

`${I}_{out}^{\text{'}}={I}_{CC}={I}_{bulk}$`

If the Output control mode is set to `Constant Current only (CC)` or `Constant Current - Constant Voltage (CCCV)` and Vout is equal to the Float voltage or Absorption voltage, while the Absorption end condition isn’t met

`${I}_{out}^{\text{'}}={I}_{CV}=\frac{\left({V}_{out}^{\text{'}}+{V}_{tc}^{\text{'}}\right){I}_{out}}{\overline{{V}_{out}}}$`

When the Enable absorption phase option is selected and the battery charger switches from constant current to constant voltage control, if the Absorption end condition is not met, the ambient temperature voltage compensation, V'tc is defined as

`${V}_{tc}^{\text{'}}=\left({T}_{a}-{T}_{nom}\right){V}_{tc}$`

Otherwise, the ambient temperature voltage compensation, V'tc is defined as

`${V}_{tc}^{\text{'}}=0$`

When the Enable absorption phase option is selected and the battery charger switches from constant current to constant voltage control, if the Absorption end condition is not met, the ambient temperature voltage compensation, V'out is defined as

`${V}_{out}^{\text{'}}={V}_{abs}$`

Otherwise, the ambient temperature voltage compensation, V'out is defined as

`${V}_{out}^{\text{'}}={V}_{float}$`

The output power is defined as

`$P=\overline{{V}_{out}}\overline{{I}_{out}}$`

#### Input characteristics

The input current of the battery charger is

`${I}_{in}={f}_{2}\left({P}^{\text{'}},{f}_{eff}\left({P}^{\text{'}}\right),{f}_{THD}\left({P}^{\text{'}}\right),{f}_{PF}\left({P}^{\text{'}}\right),{f}_{HARMS}\right)$`

Variables for the input current and related equations are:

• Iin is the input current command, in A.

• P' is the normalized output power.

• P is the output power, in W.

• Pnom is the nominal output power, in W.

• I'n is the normalized harmonic amplitude.

• fin is the input voltage frequency, in Hz.

• fn is the harmonic frequency, in Hz.

• t is the time, in s.

• VinA is the input voltage delayed by the fifth of its period, in V.

• Vin is the input voltage of phase A delayed by the fifth of its period, in V.

• Iinr% is the input current ripple, in %.

• finir is the input current ripple frequency, in Hz.

• θVin is the input voltage angle, in rad.

• θVinA is the input voltage angle of phase A, in rad.

`${P}^{\text{'}}=\frac{P}{{P}_{nom}}$`

Where, feff, is a polynomial function following the parameters Charger efficiency and Efficiency usage factor. This polynomial order is half of the number of data pairs entered. For input values of, P', between 0 and 1, the polynomial must return values between 0 and 1. Otherwise, the polynomial order is reduced until this condition is met. If the order reaches 0, the output will remain constant for the mean value of the dataset.

Where, fTHD, is a polynomial function following the parameters Total harmonic distortion and THD usage factor. This polynomial order is half of the number of data pairs entered. For input values of, P', between 0 and 1, the polynomial must return values between 0 and 1. Otherwise, the polynomial order is reduced until this condition is met. If the order reaches 0, the output will remain constant for the mean value of the dataset.

Where, fPF, is a polynomial function following the parameters Power factor and PF usage factor. This polynomial order is half of the number of data pairs entered. For input values of, P', between 0 and 1, the polynomial must return values between 0 and 1. Otherwise, the polynomial order is reduced until this condition is met. If the order reaches 0, the output will remain constant for the mean value of the dataset.

Where, fHARMS, is the sum of sine waves specified with the parameters Harmonics amplitude and Harmonics frequency following the expression

`${f}_{HARMS}={\sum }^{\text{​}}{I}_{n}^{\text{'}}\text{sin}\left(2\pi {f}_{in}{f}_{n}t\right)$`

When the Type parameter is set to `DC`,

`${I}_{in}=\frac{{P}^{\text{'}}}{{f}_{eff}{V}_{in}}+{I}_{in_r%}\text{sin}\left(2\pi {f}_{i{n}_{ir}}t\right)$`

When the Type parameter is set to ```1-phase AC ```,

`${I}_{in}=\frac{\sqrt{2}{P}^{\text{'}}}{{f}_{eff}{f}_{PF}{V}_{in}}\left({f}_{THD}{f}_{HARMS}+\mathrm{sin}\left({\theta }_{{V}_{in}}-\text{acos}\left({f}_{PF}\right)\right)\right)$`

When the Type parameter is set to ```3-phase AC (wye) ```:

`${I}_{inA}=\frac{\sqrt{2}{P}^{\text{'}}}{3{f}_{eff}{f}_{PF}{V}_{inA}}\left({f}_{THD}{f}_{HARMS}+\mathrm{sin}\left({\theta }_{{V}_{inA}}-\text{acos}\left({f}_{PF}\right)\right)\right)$`
`${I}_{inB}=\frac{\sqrt{2}{P}^{\text{'}}}{3{f}_{eff}{f}_{PF}{V}_{inA}}\left({f}_{THD}{f}_{HARMS}+\mathrm{sin}\left({\theta }_{{V}_{inA}}-\text{acos}\left({f}_{PF}\right)+\frac{1}{3{f}_{in}}\right)\right)$`
`${I}_{inC}=\frac{\sqrt{2}{P}^{\text{'}}}{3{f}_{eff}{f}_{PF}{V}_{inA}}\left({f}_{THD}{f}_{HARMS}+\mathrm{sin}\left({\theta }_{{V}_{inA}}-\text{acos}\left({f}_{PF}\right)+\frac{2}{3{f}_{in}}\right)\right)$`

When the Type parameter is set to ```3-phase AC (delta) ```:

`${I}_{inA}=\frac{\sqrt{2}{P}^{\text{'}}}{3{f}_{eff}{f}_{PF}{V}_{inA}}\left(\frac{1}{3}{f}_{THD}{f}_{HARMS}\text{'}+\frac{1}{\sqrt{3}}\mathrm{sin}\left({\theta }_{{V}_{inA}}+\frac{\pi }{6}-\text{acos}\left({f}_{PF}\right)\right)\right)$`
`${I}_{inB}=\frac{\sqrt{2}{P}^{\text{'}}}{3{f}_{eff}{f}_{PF}{V}_{inA}}\left(\frac{1}{3}{f}_{THD}{f}_{HARMS}\text{'}\text{'}+\frac{1}{\sqrt{3}}\mathrm{sin}\left({\theta }_{{V}_{inA}}+\frac{\pi }{6}-\text{acos}\left({f}_{PF}\right)+\frac{1}{3{f}_{in}}\right)\right)$`

Where:

`${f}_{THD}{f}_{HARMS}\text{'}={f}_{THD}{f}_{HARMS}\left(\omega t\right)-{f}_{THD}{f}_{HARMS}\left(\omega t+\frac{1}{3{f}_{in}}\right)$`
`${f}_{THD}{f}_{HARMS}\text{'}\text{'}={f}_{THD}{f}_{HARMS}\left(\omega t+\frac{1}{3{f}_{in}}\right)-{f}_{THD}{f}_{HARMS}\left(\omega t+\frac{2}{3{f}_{in}}\right)$`

## Assumptions and Limitations

Model Assumptions

• Three-phase alternative current inputs are balanced, synchronized, and without jitter.

• The ambient temperature does not affect the charger’s parameters.

Limitations

• The output power is independent from the input power.

## Ports

### Input

expand all

Ambient temperature supplied to the model. To enable this port, select the Simulate voltage compensation check box.

Signal that defines the current threshold.

This port is visible only when the Dynamic input thresholds parameter is selected, and when the Output control mode parameter is set to `Constant Current - Constant Voltage` or to `Constant Current` only.

Signal that defines the voltage threshold.

This port is visible only when the Dynamic input thresholds parameter is selected, and when the Output control mode parameter is set to `Constant Current - Constant Voltage` or to `Constant Voltage` only.

### Output

expand all

Simulink® output of the block specified as a vector containing eight signals. You can demultiplex these signals by using the Bus Selector block from the Simulink library.

SignalDefinitionUnits
Input VoltageThe battery charger’s input voltageV
Input CurrentThe battery charger’s input currentA
Output VoltageThe battery charger’s output voltageV
Output CurrentThe battery charger’s output currentA
Output Ah

The battery charger’s output Ah. The Ah is calculated as:

`$Ah=\frac{\overline{{I}_{out}}{t}_{s}}{3600}\left(n\right)+Ah\left(n-1\right)$`

Ah
Output kWh

The battery charger’s output kWh

`$kWh=\frac{\overline{{V}_{out}{I}_{out}}{t}_{s}}{3600}\left(n\right)+Ah\left(n-1\right)$`
kWh
Voltage LimitThe battery charger’s output voltage limitV
Current LimitThe battery charger’s output current limitA

### Conserving

expand all

A-phase voltage.

B-phase voltage.

C-phase voltage.

Positive DC voltage.

Negative DC voltage.

## Parameters

expand all

### General

The parameter contains a list of two predetermined battery chargers. The parameters in the CCCV Battery Charger block are not enabled when a preset is selected.

The nominal power, Pnom, of the battery charger in W. The nominal power is used for normalized parameters Charger efficiency, Total harmonic distortion and Power factor. This parameter must be greater or equal to the product of Bulk current and Float voltage or Absorption voltage if Enable absorption phase is selected.

### Input

Input voltage type:

• `3-phases AC (wye)` — The A, B, and C ports become visible to supply the balanced three-phase alternating current power.

• `3-phases AC (delta)` — The A, B, and C ports become visible to supply the balanced three-phase alternating current power.

• `1-phases AC` — The A and B ports become visible to supply the balanced single-phase alternating current power.

• `DC` — The + and - ports become visible to supply the direct current power.

Option to enable access to a neutral connection externally through the N port. Otherwise, the neutral is internally connected.

#### Dependencies

This option is enabled when the Type is set to ```3-phases AC (wye)```.

Effective voltage, Veff, of the battery charger power input in V. When Type is either `3-phases AC (wye)` or `3-phases AC (delta)`, the effective voltage must the rms line voltage.

Frequency, fin, of the battery charger power input in Hz.

#### Dependencies

This parameter is accessible when Type is set to ```3-phases AC (wye)```, ``` 3-phases AC (delta)```, or ```1-phase AC```.

Current ripple, I(inr%), of the battery charger input current.

#### Dependencies

This parameter is accessible when Type is set to ```DC (wye)```.

Ripple frequency of the battery charger input current.

#### Dependencies

This parameter is accessible when Type is set to ```DC (wye)```.

— Click to plot input parameter and input current harmonics curves for the battery charger. Option to simulate efficiency.

#### Dependencies

When this parameter is selected, the parameters Charger efficiency and Efficiency usage factor become visible. Otherwise, the battery charger efficiency factor is set to a constant value of `1`.

Efficiency factor, ηy, of the battery charger. This parameter is used with the Efficiency usage factor to approximate a polynomial function corresponding to the full operation range efficiency normalized on the Nominal Power.

Efficiency usage factor of the battery charger. This parameter is used with the Charger efficiency to approximate a polynomial function corresponding to the full operation range efficiency normalized on the Nominal Power.

Total harmonic distortion (THD) simulation option.

#### Dependencies

When this parameter is selected, the parameters Total harmonic distortion, THD usage factor, Harmonics amplitude, and Harmonics frequency become visible. Otherwise, the battery charger THD factor is set to a constant value of `0`.

The total harmonic distortion factor, THDy, of the battery charger. This parameter is used with the THD usage factor (pu) to approximate a polynomial function corresponding to the full operation range THD normalized on the Nominal Power.

The total harmonic distortion usage factor, THDy, of the battery charger. This parameter is used with the Total harmonic distortion [0-1] to approximate a polynomial function corresponding to the full operation range THD normalized on the Nominal Power.

Harmonics amplitude, In, of the battery charger input current in A. This parameter is used with the Harmonics frequency to generate the battery charger’s input current harmonics signature. The harmonics amplitude parameter’s values are normalized to `1` using this:

`${I}_{n}^{\text{'}}=\frac{{I}_{n}}{\sqrt{{\sum }^{\text{​}}{I}_{n}^{2}}}$`

#### Dependencies

This parameter is accessible when the Type is set to `3-phases AC (wye)`, `3-phases AC (delta)`, or `1-phase AC`.

The harmonics frequency, fn, of the battery charger’s input current in n multiples of Frequency. This parameter is used with the Harmonics amplitude to generate the battery charger’s input current harmonics signature.

#### Dependencies

This parameter is accessible when the Type is either `3-phases AC (wye)`, `3-phases AC (delta)`, or `1-phase AC`.

Option to simulate power factor. Otherwise, the battery charger’s PF is set to a constant equal to `1`.

#### Dependencies

This parameter is accessible when the Type is set to ```3-phases AC (wye)```, ```3-phases AC (delta)```, or ```1-phase AC```. When this parameter is selected, the parameters Power factor and PF usage factor become visible.

Total harmonic distortion factor, or power factor, PFy, of the battery charger. This parameter is used with the PF usage factor to approximate a polynomial function corresponding to the full operation range’s PF normalized on the Nominal Power.

#### Dependencies

This parameter is accessible when the Type is set to ```3-phases AC (wye)```, ```3-phases AC (delta)```, or ```1-phase AC```.

The PF usage factor, PFy, of the battery charger. This parameter is used with the Power factor to approximate a polynomial function corresponding to the full operation range PF normalized on the Nominal Power

### Charging Mode

Methods for output control are:

• ```Constant Current - Constant Voltage (CCCV)``` — This charging mode regulates the output current and voltage.

• ```Constant Current only (CC)``` — This charging mode regulates the output current.

• ```Constant Voltage only (CV)``` — This charging mode regulates the output voltage.

#### Dependencies

Different options expose different parameters.

Option to enable dynamic access to the output current and voltage thresholds. Otherwise, these thresholds are set withBulk current and Float voltage or Absorption voltage.

#### Dependencies

The CC or CV input ports become visible to supply the current and voltage thresholds depending on the Output control mode selected.

The bulk current, Ibulk, of the battery charger maximum output current in A. While the output voltage is lower than Float voltage or Absorption voltage, the battery charger limits the output current to maintain a constant current.

#### Dependencies

This parameter is accessible when the Output control mode is either ```Constant Current - Constant Voltage (CCCV)``` or `Constant Current only (CC)`.

Float voltage, Vfloat, of the battery charger steady-state output voltage in V. When the output voltage reaches this value, the battery charger reduces the output current to maintain a constant voltage.

#### Dependencies

This parameter is accessible when the Output control modeis either ```Constant Current - Constant Voltage (CCCV)``` or `Constant Voltage only (CV)`.

Option to enable the battery charging absorption phase. The charging phase allows the battery charger to maintain a higher Absorption voltage than Float voltage for a specified Absorption end condition when switching from constant current to constant voltage charging.

#### Dependencies

This parameter is accessible when the Output control mode is ```Constant Current - Constant Voltage (CCCV)``` and the Dynamic input thresholds is cleared.

Absorption voltage, Vabs, of the battery charger transition voltage when switching from constant current to constant voltage charging. The battery charger’s absorption voltage will be maintained while the Absorption end condition isn’t met. This parameter must be greater than the float voltage.

#### Dependencies

This parameter is accessible when the Enable absorption phase is selected.

Choose between two absorption end conditions:

• `Time based` — This end condition requires a specified Absorption time while maintaining the Absorption voltage before lowering the battery charger’s output voltage to Float voltage.

• `Current based` — This end condition requires a specified Absorption current while maintaining the Absorption voltage before lowering the battery charger’s output voltage to Float voltage.

#### Dependencies

This parameter is accessible when Enable absorption phase is selected.

Absorption time, tabs, of the time-based end condition of the absorption phase in s. When the Absorption voltage has been maintained for the specified time, the output voltage is lowered to the Float voltage.

#### Dependencies

This parameter is accessible when the Absorption end condition is ```Time based```.

Absorption current, Iabs%, of the absorption phase’s current-based end condition in %. When the output current reaches the specified percentage of the Bulk current, the output voltage lowers from the Absorption voltage to the Float voltage. This parameter is accessible when the Absorption end condition is `Current based`.

#### Dependencies

This parameter is accessible when the Absorption end condition is ```Current based```.

— Click to plot input parameter and input current harmonics curves for the battery charger. ### Output

The output ripple, Ioutr%, of the battery charger current specified as a %.

foutir

Ripple frequency, foutir, of the battery charger output current in Hz.

The overshoot, d%, of the battery charger’s output control dynamic in %. This parameter is applied to the Bulk current, Float voltage and Absorption voltage depending on charging phase.

Settling time, ts, at which the battery charger’s output control dynamic reaches 2% of its steady-state value in s. This parameter is applied to the Bulk current, Float voltage and Absorption voltage depending on charging phase.

#### Dependencies

Option to enable output voltage temperature compensation. When enabled, the Float voltage and Absorption voltage will vary depending on the ambient temperature, Voltage compensation and Nominal temperature.

Voltage compensation, Vtc, of the battery charger output in V/°C.

#### Dependencies

This parameter is accessible when the Simulate voltage compensation is selected.

Nominal temperature, Tnom, of the required battery float voltage in °C.

#### Dependencies

This parameter is accessible when the Simulate voltage compensation is selected.

 Cope, R.C., and Y. Podrazhansky. The Art of Battery Charging. Proc. 14th Annual Battery Conference on Applications and Advances, pp. 233-235. Long Beach, CA: 1999.

 Dubey, A., Santoso, S., and M.P. Cloud. Average-Value Model of Electric Vehicle Chargers. IEEE Transactions on Smart Grid Vol. 4 No. 3. Pp. 1549-1557. Argonne, IL: IEEE Power & Energy Society, 2013.

 Elias, M., Nor, K., and A. Arof. Design of Smart Charger for Series Lithium-Ion Batteries. Proceedings from IEEE International Conference on Power Electronics and Drive Systems, pp. 1485-1490. Kuala Lumpur: PEDS, 2005.

 Hussein A.A.-H., and I. Batarseh. A Review of Charging Algorithms for Nickel and Lithium Battery Chargers. IEEE Transactions on Vehicular Technology. Sendai, Japan: IEEE Vehicular Technology Society, 2011.