master:trv parametersPSCAD TRV Envelope Generator
Every parameter of the PSCAD TRV Envelope Generator (master:trv): 48 names, with the unit, the default and the meaning PSCAD gives each one. Copy a name into parameters().
What master:trv is
TRV Envelope Generator (TRV envelope generator and failure detection), a component of PSCAD's Master Library, filed under control blocks.
- Definition
master:trv- PSCAD name
- TRV Envelope Generator
- Category
- Control blocks
- Parameters
- 48, in 3 groups; 27 carry a unit
- Read from
- PSCAD 5.0.0, 2026-11-07
Read and write master:trv 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:trv"): # the exact definition, namespace first
params = comp.parameters() # every parameter, as PSCAD holds it
print(str(params["pt10x"])) # Curve 3 TRV Peak Time, in us
comp = project.find_all("master:trv")[0]
comp.parameters(pt10x="1 [us]") # 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, "pt10x") and px_set(...), which also records the old value so the case is put back at the end. Getting started shows them.
Source Faults
| Parameter | Unit | Default | Description |
|---|---|---|---|
flt_locChoice | · | SYSTEMSOURCE | Fault LocationSelect from system-source fault or generator-source faultWritten as SYSTEMSOURCE (System-Source Fault), GENERATORSOURCE (Generator-Source Fault) |
tmvaReal | MVA | 100 | Transformer/Generator Three Phase MVA RatingIf the fault is system-source then enter the Transformer MVA, else, enter the Generator MVA.At least 0 |
vrmReal | kV | 33 | Rated Maximum VoltageAt least 0 |
Standard TRV Points
| Parameter | Unit | Default | Description |
|---|---|---|---|
iec1Choice | · | 3.6_KV | IEC S1 Rated VoltageWritten as 3.6_KV (3.6 [kV]), 4.76_KV (4.76 [kV]), 7.2_KV (7.2 [kV]), 8.25_KV (8.25 [kV]), 12_KV (12 [kV]), 15_KV (15 [kV]), 17.5_KV (17.5 [kV]), 24_KV (24 [kV]), 25.8_KV (25.8 [kV]), 36_KV (36 [kV]), 38_KV (38 [kV]), 48.3_KV (48.3 [kV]), 52_KV (52 [kV]), 72.5_KV (72.5 [kV])Used when ((user_standard==2) || (user_standard==4)) && (user_class==1) |
iec2Choice | · | 15_KV | IEC S2 Rated VoltageWritten as 15_KV (15 [kV]), 175_KV (17.5 [kV]), 24_KV (24 [kV]), 258_KV (25.8 [kV]), 36_KV (36 [kV]), 38_KV (38 [kV]), 483_KV (48.3 [kV]), 52_KV (52 [kV]), 725_KV (72.5 [kV])Used when ((user_standard==2) || (user_standard==4)) && (user_class==2) |
iec3Choice | · | 100_KV | IEC EENS Rated VoltageWritten as 100_KV (100 [kV]), 123_KV (123 [kV]), 145_KV (145 [kV]), 170_KV (170 [kV]), 245_KV (245 [kV]), 300_KV (300 [kV]), 362_KV (362 [kV]), 420_KV (420 [kV]), 550_KV (550 [kV]), 800_KV (800 [kV])Used when ((user_standard==2) || (user_standard==4)) && (user_class==3) |
iec4Choice | · | 100_KV | IEC NENS Rated VoltageWritten as 100_KV (100 [kV]), 123_KV (123 [kV]), 145_KV (145 [kV]), 170_KV (170 [kV])Used when ((user_standard==2) || (user_standard==4)) && (user_class==4) |
ieee1Choice | · | 476_KV | IEEE S1 Rated VoltageWritten as 476_KV (4.76 [kV]), 825_KV (8.25 [kV]), 15_KV (15 [kV]), 27_KV (27 [kV]), 38_KV (38 [kV]), 725_KV (72.5 [kV])Used when ((user_standard==3) || (user_standard==5)) && (user_class==1) |
ieee2Choice | · | 155_KV | IEEE S2 Rated VoltageWritten as 155_KV (15.5 [kV]), 258_KV (25.8 [kV]), 38_KV (38 [kV]), 483_KV (48.3 [kV]), 725_KV (72.5 [kV])Used when ((user_standard==3) || (user_standard==5)) && (user_class==2) |
ieee3Choice | · | 123_KV | IEEE EENS Rated VoltageWritten as 123_KV (123 [kV]), 145_KV (145 [kV]), 170_KV (170 [kV]), 245_KV (245 [kV]), 362_KV (362 [kV]), 550_KV (550 [kV]), 800_KV (800 [kV])Used when ((user_standard==3) || (user_standard==5)) && (user_class==3) |
ieee4Choice | · | 123_KV | IEEE NENS Rated VoltageWritten as 123_KV (123 [kV]), 145_KV (145 [kV]), 170_KV (170 [kV]), 245_KV (245 [kV]), 362_KV (362 [kV]), 550_KV (550 [kV]), 800_KV (800 [kV])Used when ((user_standard==3) || (user_standard==5)) && (user_class==4) |
tolReal | kV | 0.5 | Tolerance for failure detectionEnter an additional tolerance for violation detectionAt least 0 |
user_classChoice | · | 1_KV_KV | TRV ClassWritten as 15_KV_KV (15 kv kv), 1_KV_KV (1 kv kv), KV_170_KV (Kv 170 kv), KV_800_KV (Kv 800 kv)Used when (user_standard > 1) && (user_standard < 6) |
user_standardChoice | · | IEEE | TRV StandardSelect from IEEE, IEC with/without additional user defined curvesWritten as USER_DEFINED (User Defined), IEC, IEEE, IEC_USER_DEFINED (IEC + User Defined), IEEE_USER_DEFINED (IEEE + User Defined), SOURCE_FAULT (Source Fault) |
User Defined TRV Points
| Parameter | Unit | Default | Description |
|---|---|---|---|
num2Choice | · | 0 | Number of 2 Parameter CurvesNumber of single point curvesWritten as 0 = 0, 1 = 1, 2 = 2, 3 = 3, 4 = 4 |
num4Choice | · | 0 | Number of 4 Parameter CurvesNumber of 2 point curvesWritten as 0 = 0, 1 = 1, 2 = 2, 3 = 3, 4 = 4 |
pt10xReal | us | 0 | Curve 3 TRV Peak TimeAt least 0Used when num4 > 2 |
pt10yReal | kV | 0 | Curve 3 TRV Peak ValueAt least 0Used when num4 > 2 |
pt11xReal | us | 0 | Curve 4 First TimeAt least 0Used when num4 > 3 |
pt11yReal | kV | 0 | Curve 4 First Reference VoltageAt least 0Used when num4 > 3 |
pt12xReal | us | 0 | Curve 4 TRV Peak TimeAt least 0Used when num4 > 3 |
pt12yReal | kV | 0 | Curve 4 TRV Peak ValueAt least 0Used when num4 > 3 |
pt1xReal | us | 0 | Curve 1 TRV Peak TimeAt least 0Used when num2 > 0 |
pt1yReal | kV | 0 | Curve 1 TRV Peak ValueAt least 0Used when num2 > 0 |
pt2xReal | us | 0 | Curve 2 TRV Peak TimeAt least 0Used when num2 > 1 |
pt2yReal | kV | 0 | Curve 2 TRV Peak ValueAt least 0Used when num2 > 1 |
pt3xReal | us | 0 | Curve 3 TRV Peak TimeAt least 0Used when num2 > 2 |
pt3yReal | kV | 0 | Curve 3 TRV Peak ValueAt least 0Used when num2 > 2 |
pt4xReal | us | 0 | Curve 4 TRV Peak TimeAt least 0Used when num2 > 3 |
pt4yReal | kV | 0 | Curve 4 TRV Peak ValueAt least 0Used when num2 > 3 |
pt5xReal | us | 0 | Curve 1 First TimeAt least 0Used when num4 > 0 |
pt5yReal | kV | 0 | Curve 1 First Reference VoltageAt least 0Used when num4 > 0 |
pt6xReal | us | 0 | Curve 1 TRV Peak TimeAt least 0Used when num4 > 0 |
pt6yReal | kV | 0 | Curve 1 TRV Peak ValueAt least 0Used when num4 > 0 |
pt7xReal | us | 0 | Curve 2 First TimeAt least 0Used when num4 > 1 |
pt7yReal | kV | 0 | Curve 2 First Reference VoltageAt least 0Used when num4 > 1 |
pt8xReal | us | 0 | Curve 2 TRV Peak TimeAt least 0Used when num4 > 1 |
pt8yReal | kV | 0 | Curve 2 TRV Peak ValueAt least 0Used when num4 > 1 |
pt9xReal | us | 0 | Curve 3 First TimeAt least 0Used when num4 > 2 |
pt9yReal | kV | 0 | Curve 3 First Reference VoltageAt least 0Used when num4 > 2 |
textText | · | · | Curve 1 NameOptional name for referenceRange 0 to 0Used when num2 >0 |
text_1Text | · | · | Curve 2 NameOptional name for referenceRange 0 to 0Used when num2 > 1 |
text_2Text | · | · | Curve 3 NameOptional name for referenceRange 0 to 0Used when num2 > 2 |
text_3Text | · | · | Curve 4 NameOptional name for referenceRange 0 to 0Used when num2 > 3 |
text_4Text | · | · | Curve 1 NameOptional name for referenceRange 0 to 0Used when num4 >0 |
text_4_1Text | · | · | Curve 2 NameOptional name for referenceRange 0 to 0Used when num4 >1 |
text_4_2Text | · | · | Curve 3 NameOptional name for referenceRange 0 to 0Used when num4 > 2 |
text_4_3Text | · | · | Curve 4 NameOptional name for referenceRange 0 to 0Used when num4 > 3 |
Related
← master:trip_polygon Trip Polygon · master:compar Two Input Comparator →