master:l2g_imp parametersPSCAD Line to Ground Impedance

Every parameter of the PSCAD Line to Ground Impedance (master:l2g_imp): 7 names, with the unit, the default and the meaning PSCAD gives each one. Copy a name into parameters().

What master:l2g_imp is

Line to Ground Impedance, a component of PSCAD's Master Library, filed under passive branches, loads and filters.

Definition
master:l2g_imp
PSCAD name
Line to Ground Impedance
Category
Passive branches, loads and filters
Parameters
7, in 2 groups; 4 carry a unit
Read from
PSCAD 5.0.0, 2026-11-07

Read and write master:l2g_imp 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:l2g_imp"):   # the exact definition, namespace first
    params = comp.parameters()           # every parameter, as PSCAD holds it
    print(str(params["ConstKa"]))        # K Constant Angle for Ground Impedance, in deg

comp = project.find_all("master:l2g_imp")[0]
comp.parameters(ConstKa="1 [deg]")       # 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 without master: comes back empty; the Builder's px_find walks the pages for those.

The Builder's runtime does the same with the unit handled for you: px_get(comp, "ConstKa") and px_set(...), which also records the old value so the case is put back at the end. Getting started shows them.

Main Data

ParameterUnitDefaultDescription
AngTypChoice·RADIANSInput Phase Angles are Given inSelet Radians or DegreesWritten as RADIANS (Radians), DEGREES (Degrees)
ConstKReal·1.2K Constant Magnitude for Ground ImpedanceAt least 0
ConstKaRealdeg0.0K Constant Angle for Ground ImpedanceRange -360 to 360
NameText··Name for IdentificationEnter a name for identification

Initialization

ParameterUnitDefaultDescription
HoldTReals0.02Initialization TimeAt least 0
RIRealohm1.0E6Output R During Initilaization
XIRealohm1.0E6Output X During Initilaization

Related

← master:inductor Inductor · master:Line_Ground Line|Cable Ground Properties →