master:phasorimp parametersPSCAD Harmonic Impedance
Every parameter of the PSCAD Harmonic Impedance (master:phasorimp): 11 names, with the unit, the default and the meaning PSCAD gives each one. Copy a name into parameters().
What master:phasorimp is
Harmonic Impedance (Interface to Harmonic Impedance Solution), a component of PSCAD's Master Library, filed under meters and output.
- Definition
master:phasorimp- PSCAD name
- Harmonic Impedance
- Category
- Meters and output
- Parameters
- 11, in 1 group; 3 carry a unit
- Read from
- PSCAD 5.0.0, 2026-11-07
Read and write master:phasorimp in Python
import mhi.pscad
pscad = mhi.pscad.connect() # the PSCAD that is open; launch() starts one
project = pscad.project("my_case") # a case loaded in the workspace
for comp in project.find_all("master:phasorimp"): # the exact definition, namespace first
params = comp.parameters() # every parameter, as PSCAD holds it
print(str(params["Finc"])) # Frequency Increment, in Hz
comp = project.find_all("master:phasorimp")[0]
comp.parameters(Finc="20 [Hz]") # a value that carries a unit is written with it
- A parameter is named exactly as in the table, letter case included:
parameters()gives every one of them in a dictionary, and a name the component does not have is refused. - A value that carries a unit comes back as a number whose unit is only in its text, so read it as text first (
str(...)) or the unit is lost. PSCAD keeps a written unit as it is given:"2500 [mohm]"stays in mohm. - A Choice is read and written as its symbol (the capitals in "Written as"), not as the words PSCAD shows in the dialog.
find_all()takes the exact definition only. A wildcard or a bare name withoutmaster:comes back empty; the Builder'spx_findwalks the pages for those.
The Builder's runtime does the same with the unit handled for you: px_get(comp, "Finc") and px_set(...), which also records the old value so the case is put back at the end. Getting started shows them.
Main Configuration
| Parameter | Unit | Default | Description |
|---|---|---|---|
FNameText | · | Harm.out | Output FilenameRange 0 to 0 |
FTypeChoice | · | LINEAR_SCALE | Frequency Increment TypeWritten as LINEAR_SCALE (Linear Scale), LOG_SCALE (Log Scale) |
FUnitsChoice | · | HZ | Frequency Output UnitsWritten as HZ (Hz), RADIANS_SEC (Radians/Sec), LOG10_HZ (LOG10(Hz)), LOG10_RADIANS_SEC (LOG10(Radians/Sec)) |
FincReal | Hz | 10 | Frequency IncrementAt least 0Used when FType==0 |
FmaxReal | Hz | 2000 | Maximum FrequencyAt least 0 |
FminReal | Hz | 0 | Minimum FrequencyAt least 0 |
HTypeChoice | · | SEQUENCE | Impedance Output TypeWritten as SEQUENCE (Sequence Impedances), PHASE (Phase Impedances) |
HUnitsChoice | · | DEG | Impedance Output UnitsWritten as DEG (Magnitude and Phase (Deg)), OHMS (Real, Imaginary (ohms)) |
NameText | · | · | Name for identificationEnter a name for identificationRange 0 to 0 |
NumFInteger | · | 1000 | Number of FrequenciesRange 0 to 2147483647Used when FType==1 |
ViewChoice | · | DEFAULT | ViewSelect the desired graphical displayWritten as DEFAULT (Default), COMPACT (Compact) |
Related
- All 345 definitions in the component reference
- Harmonics and THD from a PSCAD run
- PSCAD automation with Python: getting started
← master:thd Harmonic Distortion Calculator · master:harmdiffmag Harmonics Generator →