modelBEVBattery

Storage for BatteryElectricVehicle model

Extends from TransiEnt.Basics.Icons.Model (Icon for models).

Information

1. Purpose of model

This model implements a simple electric storage for the integration in an Battery Electric Vehicle model.

2. Level of detail, physical effects considered, and physical insight

Model is based on the energy conservation equation for a storage device.

3. Limits of validity

No implementation of Battery Management System (BMS) included.

4. Interfaces

Input:

P_set for the setpoint of the active power consumption/generation.

Output:

SOC for the state of charge.

P_request for the nominal power consumption in this moment dependent on the SOC.

epp for the PQ boundary and connection to the complex root mean square simulation.

5. Nomenclature

See parameter and variable descriptions in the code.

6. Governing Equations

The equations 6.3 - 6.6 are calculated first before 6.1 and 6.2 are calculated due to the sequential structure of the model.

6.1. Energy conservation equation

dE/dt = P_set;

6.2. State of Charge

SOC = E / Capacity;


6.3. Reactive Power

Q = 0;

6.4. Request Power

if noEvent(SOC >= 1) then

P_request = 0;

elseif noEvent(SOC >= SOC_th) then

P_request = P_nominal*max(0, 1 - (1 - lambda_Pmin)/(1 - SOC_th)*(SOC - SOC_th));


elseif noEvent(SOC <= (1 - SOC_th)) then

P_request = -P_nominal*max(0, (1 - lambda_Pmin)/(1 - SOC_th)*SOC * lambda_Pmin);


else

P_request = P_nominal;

  

end if;


7. Remarks for Usage

(no remarks)

8. Validation

(no remarks)

9. References

(no remarks)


10. Version History

BEVBattery by Tom Steffen, Techische Universität Hamburg, Institut für Elektrische Energietechnik, 2025

Parameters

TypeNameDefaultDescription
RealSOC_th0.95If SOC > thr. reduce power linearly
Battery
Modelica.Units.SI.EnergyCapacity90e3*3600Battery capacity in Joule
RealSOC_initial0.5Battery Charge at start
Modelica.Units.SI.PowerP_nominal11000Nominal charge and discharge power
Modelica.Units.SI.VoltageV_nominal400Nominal voltage
Reallambda_Pmin0.02Minimum relative power at SOC limits (0 or 1)

Connectors

TypeNameDefaultDescription
TransiEnt.Basics.Interfaces.Electrical.ComplexPowerPortepp
TransiEnt.Basics.Interfaces.Electrical.ElectricPowerInP_setSet power for charging and discharging
Modelica.Blocks.Interfaces.RealOutputSOC_out
TransiEnt.Basics.Interfaces.Electrical.ElectricPowerOutP_request_out

Components

TypeNameDefaultDescription
TransiEnt.Components.Boundaries.Electrical.ComplexPower.PQBoundarypq_boundary
Modelica.Blocks.Sources.RealExpressionP_request_
Modelica.Blocks.Math.Minmin
Modelica.Units.SI.EnergyE
Modelica.Units.SI.ReactivePowerQ
Modelica.Units.SI.PowerP_request
RealSOC
Modelica.Blocks.Sources.RealExpressionSOC_