Skip to content

ConnectionLV ​

Low-voltage customer connection with comprehensive prosumer modeling.

Supports residential and commercial connection analysis including load profiles, distributed generation (PV, wind), battery storage, heat pumps, and detailed earthing configurations for asymmetrical LV network studies.

Inherits from: ExtrasNotesMixin, HasPresentationsMixin

Import ​

python
from pyptp.elements.lv import ConnectionLV

Properties ​

PropertyTypeRequiredDefaultDescription
generalGeneralYes-
presentationslist[ElementPresentation]Yes-
gmslist[GM]Yes-
connection_cableCableType | NoneNoNone
connection_geographyGeography | NoneNoNone
fuse_typeFuseType | NoneNoNone
current_protectionCurrentType | NoneNoNone
loadLoad | NoneNoNone
public_lightingPL | NoneNoNone
public_lighting_typePLType | NoneNoNone
heat_pumpHeatpump | NoneNoNone
generationGeneration | NoneNoNone
pvPV | NoneNoNone
pv_efficiencyEfficiencyType | NoneNoNone
windturbineWindTurbine | NoneNoNone
windturbine_efficiencyEfficiencyType | NoneNoNone
batteryBattery | NoneNoNone
battery_charge_efficiencyEfficiencyType | NoneNoNone
battery_discharge_efficiencyEfficiencyType | NoneNoNone
hemsHEMS | NoneNoNone
extraslist[Extra]No[]
noteslist[Note]No[]

Battery ​

Battery of a connection.

PropertyTypeRequiredDefaultDescription
preffloatNo0.0
state_of_chargefloatNo50
capacityfloatNo0
sortintNo0
inverter_snomfloatNo0
charge_efficiency_typestrNo""
discharge_efficiency_typestrNo""
profileGuidNoGuid('a4d813df-1ee1-4153-80...
inverter_cosreffloatNo1.0

GM ​

Gaussian Mixture properties.

PropertyTypeRequiredDefaultDescription
gm_type_numberintNo0
pfloatNo0.0Active power in MW.
cosfloatNo1.0
small_appliance_phasesintNo0
net_aware_chargingboolNoFalse
adjustableboolNoFalse

General ​

Core electrical and operational properties for LV customer connections.

Encompasses connection node, service cable parameters, phase configuration, earthing setup, protection settings, and geographic information.

PropertyTypeRequiredDefaultDescription
nodeGuidNoGuid('00000000-0000-0000-00...
guidGuidNo(auto UUID)
creation_timefloat | intNo0
mutation_dateintNo0
revision_datefloat | intNo0.0
namestrNo""
s_L1boolNoTrue
s_L2boolNoTrue
s_L3boolNoTrue
s_NboolNoTrue
field_namestrNo""
s_PEboolNoTrue
k_L1intNo1
k_L2intNo2
k_L3intNo3
lengthfloat | intNo0.0Length of the service cable in metres.
cable_typestrNo""
earthing_configurationstrNo""
s_Nh_PEhboolNoFalse
s_PEh_PEhboolNoTrue
s_PEh_eboolNoFalse
refloat | intNo0.0Earthing resistance in ohm.
s_HhboolNoTrue
protection_typestrNo""
s_h1_h3boolNoFalse
s_h2_h4boolNoFalse
phasesintNo40 single-phase on any phase, 1 to 3 single-phase on L1 to L3, 4 three-phase.
sortstrNo""See ConnectionSort. Empty means COMBI.
connection_valuestrNo""
i_earthleakint | floatNo0.0
riskboolNoFalse
geo_x_coordfloat | intNo0.0
geo_y_coordfloat | intNo0.0
addressstrNo""
postal_codestrNo""
citystrNo""

Generation ​

Generating properties of a connection.

PropertyTypeRequiredDefaultDescription
p1floatNo0.0
q1floatNo0.0
pafloatNo0.0
qafloatNo0.0
pbfloatNo0.0
qbfloatNo0.0
pcfloatNo0.0
qcfloatNo0.0
pabfloatNo0.0
qabfloatNo0.0
pacfloatNo0.0
qacfloatNo0.0
pbcfloatNo0.0
qbcfloatNo0.0
behaviour_sortstrNo""
profileGuidNoGuid('a4d813df-1ee1-4153-80...

Geography ​

Connection geographical information.

PropertyTypeRequiredDefaultDescription
coordinateslist[tuple]No[]

HEMS ​

Home Energy Management System.

PropertyTypeRequiredDefaultDescription
regimestrNo""
parameter1floatNo60.0
parameter2floatNo0.0
parameter3floatNo0.0

Heatpump ​

Heatpump properties of a connection.

PropertyTypeRequiredDefaultDescription
number_ofintNo0
sortstrNoAIR
house_typestrNoUNKNOWN
house_areafloatNo125.0
house_yearintNo0
cosnomfloatNo1.0
profileGuidNoGuid('a4d813df-1ee1-4153-80...

Load ​

Load of a connection.

Powers in MW and Mvar. p1 and q1 apply to a single-phase connection, the other fields to a three-phase connection.

PropertyTypeRequiredDefaultDescription
p1floatNo0.0Active power of a single-phase connection in MW.
q1floatNo0.0Reactive power of a single-phase connection in Mvar.
pafloatNo0.0Active power between L1 and neutral in MW.
qafloatNo0.0Reactive power between L1 and neutral in Mvar.
pbfloatNo0.0Active power between L2 and neutral in MW.
qbfloatNo0.0Reactive power between L2 and neutral in Mvar.
pcfloatNo0.0Active power between L3 and neutral in MW.
qcfloatNo0.0Reactive power between L3 and neutral in Mvar.
pabfloatNo0.0Active power between L1 and L2 in MW.
qabfloatNo0.0Reactive power between L1 and L2 in Mvar.
pacfloatNo0.0Active power between L1 and L3 in MW.
qacfloatNo0.0Reactive power between L1 and L3 in Mvar.
pbcfloatNo0.0Active power between L2 and L3 in MW.
qbcfloatNo0.0Reactive power between L2 and L3 in Mvar.
behaviour_sortstrNo""See BehaviourSort. Empty means CONSTANT_CURRENT.
switch_on_frequencyfloatNo0.0Switch-on events per minute.
profileGuidNoGuid('a4d813df-1ee1-4153-80...

PL ​

PL.

PropertyTypeRequiredDefaultDescription
number_ofintNo0
phasesintNo0
pl_typestrNo""

PLType ​

PL type.

PropertyTypeRequiredDefaultDescription
unomfloatNo0.0
inomfloatNo0.0
cosnomfloatNo0.0

PV ​

PV properties of a connection.

PropertyTypeRequiredDefaultDescription
scalingfloatNo1000
panel1_pnomfloatNo0
panel1_orientationfloatNo180
panel1_slopefloatNo30
panel2_pnomfloatNo0
panel2_orientationfloatNo180
panel2_slopefloatNo30
panel3_pnomfloatNo0
panel3_orientationfloatNo180
panel3_slopefloatNo30
inverter_snomfloatNo0
efficiency_typestrNo""
phasesintNo0
u_outfloatNo0
p_controlsortintNo0
p_control_input1floatNo0.9
p_control_output1floatNo1.0
q_control_input1floatNo1.0
q_control_output1floatNo0.0
p_control_input2floatNo1.1
p_control_output2floatNo1.0
q_control_input2floatNo0.0
q_control_output2floatNo0.0
p_control_input3floatNo0.0
p_control_output3floatNo0.0
q_control_input3floatNo0.0
q_control_output3floatNo0.0
p_control_input4floatNo0.0
p_control_output4floatNo0.0
q_control_input4floatNo0.0
q_control_output4floatNo0.0
p_control_input5floatNo0.0
p_control_output5floatNo0.0
q_control_input5floatNo0.0
q_control_output5floatNo0.0
q_controlsortintNo0
q_control_cosreffloatNo1.0
q_control_no_p_no_qboolNoTrue
intersectionfloatNo1.5
lengthfloatNo0.0
profileGuidNoGuid('a4d813df-1ee1-4153-80...

WindTurbine ​

Windturbine of a connection.

PropertyTypeRequiredDefaultDescription
windspeedfloatNo11
profileGuidNoGuid('a4d813df-1ee1-4153-80...
pnomfloatNo0.0
sortintNo0
inverter_snomfloatNo0.0
efficiency_typestrNo""
phasesintNo0
u_outfloatNo0.0
q_controlsortintNo0
q_control_cosreffloatNo1.0
q_control_no_p_no_qboolNoTrue
q_control_input1floatNo1.0
q_control_output1floatNo0.0
q_control_input2floatNo0.0
q_control_output2floatNo0.0
q_control_input3floatNo0.0
q_control_output3floatNo0.0
q_control_input4floatNo0.0
q_control_output4floatNo0.0
q_control_input5floatNo0.0
q_control_output5floatNo0.0
intersectionfloatNo1.5
lengthfloatNo0.0

Referenced Types ​

EfficiencyType ​

Efficiency Type.

Defined in pyptp.elements.lv.shared

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