modelBEVBattery
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
| Type | Name | Default | Description |
|---|---|---|---|
| Real | SOC_th | 0.95 | If SOC > thr. reduce power linearly |
| Battery | |||
| Modelica.Units.SI.Energy | Capacity | 90e3*3600 | Battery capacity in Joule |
| Real | SOC_initial | 0.5 | Battery Charge at start |
| Modelica.Units.SI.Power | P_nominal | 11000 | Nominal charge and discharge power |
| Modelica.Units.SI.Voltage | V_nominal | 400 | Nominal voltage |
| Real | lambda_Pmin | 0.02 | Minimum relative power at SOC limits (0 or 1) |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| TransiEnt.Basics.Interfaces.Electrical.ComplexPowerPort | epp | ||
| TransiEnt.Basics.Interfaces.Electrical.ElectricPowerIn | P_set | Set power for charging and discharging | |
| Modelica.Blocks.Interfaces.RealOutput | SOC_out | ||
| TransiEnt.Basics.Interfaces.Electrical.ElectricPowerOut | P_request_out |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| TransiEnt.Components.Boundaries.Electrical.ComplexPower.PQBoundary | pq_boundary | ||
| Modelica.Blocks.Sources.RealExpression | P_request_ | ||
| Modelica.Blocks.Math.Min | min | ||
| Modelica.Units.SI.Energy | E | ||
| Modelica.Units.SI.ReactivePower | Q | ||
| Modelica.Units.SI.Power | P_request | ||
| Real | SOC | ||
| Modelica.Blocks.Sources.RealExpression | SOC_ |