LBL logo

Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples

Package with example models

Information

This package contains examples for the use of models that can be found in Buildings.Electrical.AC.ThreePhasesBalanced.Storage.

Extends from Modelica.Icons.ExamplesPackage (Icon for packages containing runnable examples).

Package Content

Name Description
Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery AcBattery This example shows how to use the AC battery model

Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery

This example shows how to use the AC battery model

Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery

Information

This example shows how to use an AC battery model.

The example compares three different batteries. The battery named bat_ideal is ideal and it does not account for any losses. The battery named bat_loss_acdc accounts for conversion losses when converting between AC to DC. The battery named bat accounts for both conversion losses and inefficiencies during the charge and discharge phases.

All the batteries start from the same initial condition that is 50% of their total capacity. The batteries are charged and discharged in the same way. The input signal pow.y is the power that each battery should store or release. The signal has a duty cycle equal to 50%. Hence, if there are no losses, the same amount of power stored into the battery will be released and after one cycle the State Of Charge (SOC) has to be equal.

The image below show the SOC of the three batteries.

alt-image

As expected the red line (ideal battery) maintain the SOC over the time. The other two batteries loose some of the initial energy due to the losses.

Extends from Modelica.Icons.Example (Icon for runnable examples).

Modelica definition

model AcBattery "This example shows how to use the AC battery model" extends Modelica.Icons.Example; ThreePhasesBalanced.Storage.Battery bat_ideal( eta_DCAC=1, etaCha=1, etaDis=1, SOC_start=0.5, EMax=749999.88, V_nominal=480) "Ideal battery without losses"; ThreePhasesBalanced.Sources.FixedVoltage fixVol(f=60, V=480); Modelica.Blocks.Sources.Pulse pow( offset=-500, amplitude=1000, width=50, period=1200) "Signal that indicates how much power should be stored in the battery"; ThreePhasesBalanced.Storage.Battery bat_loss_acdc( etaCha=1, etaDis=1, SOC_start=0.5, eta_DCAC=0.95, EMax=749999.88, V_nominal=480) "Battery with losses for AC/DC conversion"; ThreePhasesBalanced.Storage.Battery bat( SOC_start=0.5, eta_DCAC=0.95, EMax=749999.88, V_nominal=480) "Battery with losses for AC/DC conversion and charge/discharge"; equation connect(fixVol.terminal, bat_ideal.terminal); connect(pow.y, bat_ideal.P); connect(fixVol.terminal, bat_loss_acdc.terminal); connect(fixVol.terminal, bat.terminal); connect(pow.y, bat_loss_acdc.P); connect(pow.y, bat.P); end AcBattery;

Automatically generated Mon May 4 10:18:57 2015.