TypSwitch attributesPowerFactory Switch Type

Every attribute of the PowerFactory Switch Type (TypSwitch): 48 input parameters, with units and meaning. Copy a name into GetAttribute or SetAttribute.

What TypSwitch is

A switch type: the ratings of a breaker or switch, such as rated current, breaking current and opening time.

Class
TypSwitch, type class
PowerFactory name
Switch Type
Used by
ElmCoup
Attributes
48 input parameters

Most used TypSwitch attributes

AttributeUnitDescriptionWhere
InomkARated Currentinput data
IbnomkARated Breaking Currentrated breaking currentinput data
IpnomkAPeak Short-Circuit Currentinput data
t_opensBreaker opening timeinput data

Read and write TypSwitch in Python

import powerfactory

app = powerfactory.GetApplication()          # GetApplicationExt() from outside PowerFactory

# Types live in the equipment library of the project.
types = app.GetProjectFolder("equip").GetContents("*.TypSwitch", 1)
for typ in types:
    print(typ.loc_name, typ.GetAttribute("Inom")) # Rated Current, kA

# An element points to its type with typ_id; t: reads a type value through the element.
for breaker in app.GetCalcRelevantObjects("*.ElmCoup"):
    print(breaker.loc_name, breaker.typ_id.loc_name, breaker.GetAttribute("t:Inom"))

types[0].SetAttribute("Ibnom", 40)            # rated breaking current 40 kA: every element of this type changes
  • An input parameter is read and written with or without its e: prefix: GetAttribute("outserv") and GetAttribute("e:outserv") give the same value.
  • A type is shared: a change to it changes every element that uses it. Read a type value through an element with the t: prefix.

TypSwitch input parameters

The element data, as typed in GetAttribute and SetAttribute (the e: prefix is optional). Setting one changes the model.

AttributeUnitDescription
loc_name·Name
chr_name·Characteristic Name
for_name·Foreign Key
dat_src·Data source
manuf·Manufacturer
appr_modby·Modified by
appr_status·Status
iType·Type
iStdTest·Testing Standard
ioptclose·Close & Latch Current
iComplRat·Complete Ratings
iInterPol·Interpolation
InomkARated Current
IbnomkARated Breaking Current
IpnomkAPeak Short-Circuit Current
R_onOhmOn-Resistance
X_onOhmOn-Reactance
t_opensBreaker opening time
IshcansikARated Short-Circuit Current (at max. Voltage)
Kfactor·Voltage Range Factor, K
ImaxclosekAMax. Close & Latch Current
ImaxclosepkAMax. Close & Latch Current (peak)
TestXtoR·Test X/R Ratio
TcyclescyclesInterrupting Time
UmaxkVMax. Voltage
ipnom3pkAThree Phase Initial Peak
ipnom1pkASingle Phase Initial Peak
ibpnom3pkAThree Phase Peak Break
ibpnom1pkASingle Phase Peak Break
Ibnom3pkAThree Phase RMS Break
Ibnom1pkASingle Phase RMS Break
DCTimeConstmsDC Time Constant
smoothfac%Smoothing Factor
CcdcuFCc
LcdcmHLc
RcdcOhmRc
UcinitkVInitial Voltage, C
appr_modif·Modified
time_EnvusTime
v_EnvkVVoltage
ImkACurrent
Vmp.u.Voltage
desc·Description
typemetadata_version·Version
typemetadata_key·Type Key
typemetadata_changeLog·Change Log
doc_id·Additional Data
ImaxintkAMax. Interrupting Current

Related

← TypLodlv LV Load Type · TypSym Synchronous Machine Type →