master:macdefn parametersPSCAD macdefn
Every parameter of the PSCAD macdefn (master:macdefn): 98 names, with the unit, the default and the meaning PSCAD gives each one. Copy a name into parameters().
What master:macdefn is
macdefn (V2 SNC375 Machine model (Obsolete)), a component of PSCAD's Master Library, filed under machines, exciters and governors.
- Definition
master:macdefn- PSCAD name
- macdefn
- Category
- Machines, exciters and governors
- Parameters
- 98, in 10 groups; 56 carry a unit
- Read from
- PSCAD 5.0.0, 2026-11-07
Read and write master:macdefn 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:macdefn"): # the exact definition, namespace first
params = comp.parameters() # every parameter, as PSCAD holds it
print(str(params["Bfld"])) # D: Imag Transfer Admit (Armat-Field), in pu
comp = project.find_all("master:macdefn")[0]
comp.parameters(Bfld="200 [pu]") # 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, "Bfld") and px_set(...), which also records the old value so the case is put back at the end. Getting started shows them.
- Generator Data Format14
- Saturation Curve20
- Monitoring Internal Variables12
- Output Variable Names8
- Basic And Mechanical Data8
- Configuration12
- Initial Conditions: Currents ( Opt. Use )5
- Initial Conditions: Powers ( Opt. Use )4
- Initialization Constants ( Opt. Use )3
- Equiv. Circuit Data Format12
Generator Data Format
| Parameter | Unit | Default | Description |
|---|---|---|---|
BfldReal | pu | 1.0E+2 | D: Imag Transfer Admit (Armat-Field)Range 0 to 100Used when (itrfa==1)&&(daTyp==1) |
GfldReal | pu | 1.0E+2 | D: Real Transfer Admit (Armat-Field)Range 0 to 100Used when (itrfa==1)&&(daTyp==1) |
RaReal | pu | 0.0 | Stator ResistanceUsed when (daTyp==1) |
Tdo_Real | s | 4.3 | D: Unsat. Transient Time ( Open )Used when (daTyp==1) |
Tdo__Real | s | 0.032 | D: Unsat. Sub-Trans. Time ( Open )Used when (daTyp==1) |
Tqo_Real | s | 0.85 | Q: Unsat. Transient Time ( Open )Range 0.001 to 2Used when (Nqaxw==2)&&(daTyp==1) |
Tqo__Real | s | 0.05 | Q: Unsat. Sub-Trans. Time ( Open )Used when (daTyp==1) |
XaReal | pu | 0.13 | Stator Leakage ReactanceUsed when (daTyp==1) |
XdReal | pu | 1.79 | D: Unsaturated ReactanceUsed when (daTyp==1) |
Xd_Real | pu | 0.169 | D: Unsaturated Transient ReactanceUsed when (daTyp==1) |
Xd__Real | pu | 0.135 | D: Unsat. Sub-Trans. ReactanceUsed when (daTyp==1) |
XqReal | pu | 1.71 | Q: Unsaturated ReactanceUsed when (daTyp==1) |
Xq_Real | pu | 0.228 | Q: Unsaturated Transient ReactanceRange 0.001 to 1Used when (Nqaxw==2)&&(daTyp==1) |
Xq__Real | pu | 0.2 | Q: Unsat. Sub-Trans. ReactanceUsed when (daTyp==1) |
Saturation Curve
| Parameter | Unit | Default | Description |
|---|---|---|---|
C1Real | · | 0.0 | First Point on the SaturationAt least 0 |
C10Real | · | 4.2 | |
C2Real | · | 0.5 | Second Point must be on the |
C3Real | · | 0.8 | Currents can be in any |
C4Real | · | 1.0 | 10 Points Maximum: If less points |
C5Real | · | 1.2 | the current after the last |
C6Real | · | 1.5 | |
C7Real | · | 1.8 | |
C8Real | · | 2.2 | |
C9Real | · | 3.2 | |
V1Real | pu | 0.0 | Curve must be ( 0.0, 0.0 ).At least 0 |
V10Real | pu | 4.2 | |
V2Real | pu | 0.5 | Unsaturated Part of the Curve.Range 0 to 1.01 |
V3Real | pu | 0.8 | consistent Units. |
V4Real | pu | 1.0 | are available, enter -1.0 for |
V5Real | pu | 1.2 | point. |
V6Real | pu | 1.5 | |
V7Real | pu | 1.8 | |
V8Real | pu | 2.2 | |
V9Real | pu | 3.2 |
Monitoring Internal Variables
| Parameter | Unit | Default | Description |
|---|---|---|---|
Chn1Text | · | · | Name for 1st monitored output |
Chn2Text | · | · | Name for 2nd monitored output |
Chn3Text | · | · | Name for 3rd monitored output |
Chn4Text | · | · | Name for 4th monitored output |
Chn5Text | · | · | Name for 5th monitored output |
Chn6Text | · | · | Name for 6th monitored output |
Mon1Integer | · | 1 | Monitor internal storage NEXC +Range 1 to 375 |
Mon2Integer | · | 1 | Monitor internal storage NEXC +Range 1 to 375 |
Mon3Integer | · | 1 | Monitor internal storage NEXC +Range 1 to 375 |
Mon4Integer | · | 1 | Monitor internal storage NEXC +Range 1 to 375 |
Mon5Integer | · | 1 | Monitor internal storage NEXC +Range 1 to 375 |
Mon6Integer | · | 1 | Monitor internal storage NEXC +Range 1 to 375 |
Output Variable Names
| Parameter | Unit | Default | Description |
|---|---|---|---|
CneutText | · | · | Name: Neutral Current to Ground |
LdaglText | · | · | Name: Load Angle; Gen. + |
POutText | · | · | Name: Real Power; Out + |
QOutText | · | · | Name: Reactive Power; Out + |
TesmtText | · | · | Name: Steady Electrical Torque |
ThetaText | · | · | Name: Rotor Mechanical Angle |
TmsmtText | · | · | Name: Steady Elect + Frict Torque |
VneutText | · | · | Name: Neutral Voltage |
Basic And Mechanical Data
| Parameter | Unit | Default | Description |
|---|---|---|---|
HReal | s | 2.0 | Inertia Constant |
IbaseReal | kA | 10.0 | Rated RMS Line CurrentAt least 0.001 |
OmegbReal | rad/s | 376.992 | Base Angular Frequency |
RNeutReal | pu | 1.0E4 | Neutral Series Resistance |
RiReal | pu | 300.0 | Iron Loss ResistanceRange 66.7 to 300 |
TLossReal | pu | 0.0 | Mechanical Friction and Windage |
VbaseReal | kV | 10.0 | Rated RMS Line-to-Neutral VoltageAt least 0.01 |
XNeutReal | pu | 0.0 | Neutral Series Reactance |
Configuration
| Parameter | Unit | Default | Description |
|---|---|---|---|
IcmpChoice | · | NO | Icon input: control mach P out ?Written as NO (No), YES (Yes) |
IcspChoice | · | NO | Icon input: control source P out ?Written as NO (No), YES (Yes) |
IfmltChoice | · | NO | Icon inputs: multiplier for Ef and RrsWritten as NO (No), YES (Yes) |
ImmdChoice | · | NO | Icon inputs: modify mech. dyn. ?Written as NO (No), YES (Yes) |
IsclChoice | · | NO | Icon input: machine scaling factorWritten as NO (No), YES (Yes) |
IshnmChoice | · | NO | Show subroutine argument namesWritten as NO (No), YES (Yes) |
NameText | · | · | Machine name |
NqaxwChoice | · | 1 | No. of Q-axis Dampers:Written as 1 = 1, 2 = 2 |
daTypChoice | · | EQUIV_CIRCUIT | Data Entry FormatWritten as EQUIV_CIRCUIT (Equiv. Circuit), GENERATOR (Generator) |
icTypChoice | · | POWER | Initial ConditionsWritten as NONE (None), POWER (Power), CURRENTS (Currents) |
itrfaChoice | · | NO | D-axis Transfer Admit data available?Written as NO (No), YES (Yes) |
izroChoice | · | NO | Force currents = 0 at time = 0 ?Written as NO (No), YES (Yes) |
Initial Conditions: Currents ( Opt. Use )
| Parameter | Unit | Default | Description |
|---|---|---|---|
IdiReal | pu | 0.0 | D-axis Armature Current; In +Used when (icTyp==2) |
IfiReal | pu | 0.0 | Initial Field CurrentUsed when (icTyp==2) |
IqiReal | pu | 0.0 | Q-axis Armature Current; In +Used when (icTyp==2) |
SpdiReal | pu | 1.0 | Initial Machine SpeedUsed when (icTyp==2) |
ThetiReal | rad | 3.141592 | Initial Rotor Angle ref: StatorUsed when (icTyp==2) |
Initial Conditions: Powers ( Opt. Use )
| Parameter | Unit | Default | Description |
|---|---|---|---|
P0Real | pu | 0.0 | Real Power at Time = 0- ; Out +Used when (icTyp==1) |
Q0Real | pu | 0.0 | React Power at Time = 0- ; Out +Used when (icTyp==1) |
VanglReal | rad | 0.0 | Voltage Phase at Time = 0-Used when (icTyp==1) |
VmagnReal | pu | 1.0 | Voltage Magn. at Time = 0-Used when (icTyp==1) |
Initialization Constants ( Opt. Use )
| Parameter | Unit | Default | Description |
|---|---|---|---|
PtconReal | s | 0.2 | Time Const. for Power CorrectionRange 0.05 to 10Used when (Icsp==1)||(Icmp==1) |
SysflReal | pu | 100.0 | System Fault Level (excl. mach.)Range 0.1 to 1000Used when (Icsp==1)||(Icmp==1) |
TrmpvReal | s | 0.1 | Time to Ramp Source Limit to RatedRange 0 to 5 |
Equiv. Circuit Data Format
| Parameter | Unit | Default | Description |
|---|---|---|---|
RfdReal | pu | 1.4068E-03 | Field ResistanceUsed when (daTyp==0) |
RfqReal | pu | 1.4145E-02 | Q-Axis Damper No. 1 ResistanceUsed when (daTyp==0) |
RkdReal | pu | 4.0699E-03 | D-Axis Damper ResistanceUsed when (daTyp==0) |
RkqReal | pu | 8.1942E-03 | Q-Axis Damper No. 2 ResistanceRange 0.001 to 2Used when (Nqaxw==2)&&(daTyp==0) |
XfdReal | pu | 6.1789E-02 | Field Leakage ReactanceUsed when (daTyp==0) |
XfqReal | pu | 0.32928 | Q-Axis Damper No. 1 Leakage React.Used when (daTyp==0) |
XkdReal | pu | 5.4581E-03 | D-Axis Damper Leakage ReactanceUsed when (daTyp==0) |
XkfdReal | pu | 0.0 | D: Field-Damp Mutual Leak. React.Used when (daTyp==0) |
XkfqReal | pu | 0.0 | Q: Damp-Damp Mutual Leak. React.Range 0 to 2Used when (Nqaxw==2)&&(daTyp==0) |
XkqReal | pu | 9.4199E-02 | Q-Axis Damper No. 2 Leakage React.Range 0.001 to 2Used when (Nqaxw==2)&&(daTyp==0) |
Xmd0Real | pu | 1.66 | D-Axis Unsaturated Magnet. React.Used when (daTyp==0) |
XmqReal | pu | 1.58 | Q-Axis Magnetizing ReactanceUsed when (daTyp==0) |
Related
← master:hy_tur Hydro Turbine · master:pm_machine Permanent Magnet Machine →