Skip to content

BatteryMV ​

Battery energy storage system for medium-voltage network modeling.

Integrates large-scale battery storage with symmetrical power system modeling for grid stabilization, peak shaving, and renewable energy balancing in MV distribution networks.

Inherits from: ExtrasNotesMixin, HasPresentationsMixin, IconMixin

Import ​

python
from pyptp.elements.mv import BatteryMV

Properties ​

PropertyTypeRequiredDefaultDescription
generalGeneralYes-
inverterInverterYes-
presentationslist[ElementPresentation]Yes-
charge_efficiency_typeEfficiencyType | NoneNoNoneType of the charging efficiency, as function of the input power.
discharge_efficiency_typeEfficiencyType | NoneNoNoneType of the discharging efficiency, as function of the output power.
q_controlQControl | NoneNoNone
pu_controlPUControl | NoneNoNone
pi_controlPIControl | NoneNoNone
harmonics_typeHarmonicsType | NoneNoNone
iconpyptp.elements.mixins.Icon | NoneNoNone
extraslist[Extra]No[]
noteslist[Note]No[]

General ​

General properties for a battery.

PropertyTypeRequiredDefaultDescription
nodeGuidNoGuid('00000000-0000-0000-00...
guidGuidNo(auto UUID)
creation_timefloat | intNo0.0
mutation_dateintNo0
revision_dateintNo0
variantboolNoFalse
namestrNo""
switch_stateboolNoTrue
field_namestrNo""Name of the connection field.
failure_frequencyfloatNo0.0
repair_durationfloatNo0.0
maintenance_frequencyfloatNo0.0
maintenance_durationfloatNo0.0
maintenance_cancel_durationfloatNo0.0
not_preferredboolNoFalse
preffloatNo0.0Generation of active power in MW (positive = charging from network).
state_of_chargefloatNo50.0Initial State of Charge in %.
profileGuidNoGuid('a4d813df-1ee1-4153-80...
capacityfloatNo0.01 hour nominal discharge rate in /h.
harmonics_typestrNo""

Inverter ​

Battery inverter properties.

PropertyTypeRequiredDefaultDescription
snomfloatNo0.0Nominal power of the inverter in MVA.
unomfloatNo0.0Nominal voltage of the inverter in kV.
ik_inomfloatNo1.0Relation between the short circuit current and the nominal current.
kfloatNo0.0
charge_efficiency_typestrNo""Type of the charging efficiency, as function of the input power.
discharge_efficiency_typestrNo""Type of the discharging efficiency, as function of the output power.

PIControl ​

Power(current) control of the battery inverter.

PropertyTypeRequiredDefaultDescription
sortintNo0
input1floatNo1.0
output1floatNo0.0
input2floatNo0.0
output2floatNo0.0
input3floatNo0.0
output3floatNo0.0
input4floatNo0.0
output4floatNo0.0
input5floatNo0.0
output5floatNo0.0
measure_field1pyptp.elements.element_utils.Guid | NoneNoNone
measure_field2pyptp.elements.element_utils.Guid | NoneNoNone
measure_field3pyptp.elements.element_utils.Guid | NoneNoNone

PUControl ​

Power(voltage) control of the battery inverter.

PropertyTypeRequiredDefaultDescription
sortintNo0
input1floatNo1.0
output1floatNo0.0
input2floatNo0.0
output2floatNo0.0
input3floatNo0.0
output3floatNo0.0
input4floatNo0.0
output4floatNo0.0
input5floatNo0.0
output5floatNo0.0

QControl ​

Reactive power control of the battery inverter.

PropertyTypeRequiredDefaultDescription
sortintNo0
cos_reffloatNo1.0
directionintNo0
no_p_no_qboolNoTrue
input1floatNo1.0
output1floatNo0.0
input2floatNo0.0
output2floatNo0.0
input3floatNo0.0
output3floatNo0.0
input4floatNo0.0
output4floatNo0.0
input5floatNo0.0
output5floatNo0.0

Referenced Types ​

Icon ​

Optional icon displayed near a network element in diagrams.

A short text in a shaped background (configurable color, shape, size).

Defined in pyptp.elements.mixins

PropertyTypeRequiredDefaultDescription
textstrNo""
text_colorDelphiColorNo"$000000"
background_colorDelphiColorNo"$000000"
shapeintNo0
sizeintNo0

HarmonicsType ​

Shared Harmonics type for LV and MV elements.

Defined in pyptp.elements.lv.shared

PropertyTypeRequiredDefaultDescription
hlist[float] | NoneNo(factory)
anglelist[float] | NoneNo(factory)