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
| Attribute | Unit | Description | Where |
|---|---|---|---|
Inom | kA | Rated Current | input data |
Ibnom | kA | Rated Breaking Currentrated breaking current | input data |
Ipnom | kA | Peak Short-Circuit Current | input data |
t_open | s | Breaker opening time | input 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")andGetAttribute("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.
| Attribute | Unit | Description |
|---|---|---|
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 |
Inom | kA | Rated Current |
Ibnom | kA | Rated Breaking Current |
Ipnom | kA | Peak Short-Circuit Current |
R_on | Ohm | On-Resistance |
X_on | Ohm | On-Reactance |
t_open | s | Breaker opening time |
Ishcansi | kA | Rated Short-Circuit Current (at max. Voltage) |
Kfactor | · | Voltage Range Factor, K |
Imaxclose | kA | Max. Close & Latch Current |
Imaxclosep | kA | Max. Close & Latch Current (peak) |
TestXtoR | · | Test X/R Ratio |
Tcycles | cycles | Interrupting Time |
Umax | kV | Max. Voltage |
ipnom3p | kA | Three Phase Initial Peak |
ipnom1p | kA | Single Phase Initial Peak |
ibpnom3p | kA | Three Phase Peak Break |
ibpnom1p | kA | Single Phase Peak Break |
Ibnom3p | kA | Three Phase RMS Break |
Ibnom1p | kA | Single Phase RMS Break |
DCTimeConst | ms | DC Time Constant |
smoothfac | % | Smoothing Factor |
Ccdc | uF | Cc |
Lcdc | mH | Lc |
Rcdc | Ohm | Rc |
Ucinit | kV | Initial Voltage, C |
appr_modif | · | Modified |
time_Env | us | Time |
v_Env | kV | Voltage |
Im | kA | Current |
Vm | p.u. | Voltage |
desc | · | Description |
typemetadata_version | · | Version |
typemetadata_key | · | Type Key |
typemetadata_changeLog | · | Change Log |
doc_id | · | Additional Data |
Imaxint | kA | Max. Interrupting Current |