IscUMachine
The IscUMachine
class provides access to an IPSA universal machine, to set and get data values and to retrieve load flow results.
Field Values
Type |
Field Name |
Description |
---|---|---|
Integer |
FromUID |
Gets the unique ID for busbar. |
String |
BusName |
Gets the busbar name. |
String |
Name |
Gets the universal machine name. |
Integer |
Status |
Status:
|
Float |
RealMW |
Gets and sets the real power output in MW. |
Float |
ReactiveMVAr |
Gets and sets the reactive power output in MVAr. |
Float |
RatingMVA |
Gets and sets the apparent power generated by the machine. |
Integer |
ProfileUID |
Gets and sets the UID of the profile applied to the universal machine. Set to 0 to not use any profiles. |
Integer |
PluginID |
Gets and sets the ID of the plugin applied to the universal machine. Set to 0 to not use any profiles. |
Boolean |
ConverterDrivenPlant |
|
Integer |
CDPMethodType |
The CDP current-output mode
|
Integer |
CDPVoltageInterpolation |
The CDP voltage interpolation scheme
|
Float |
CDPKFactor |
The K factor co-efficient that determines the strength of the current injection contributions (only valid between 0 and 10). |
Float |
CDPMaxISync |
Maximum synchronous value for the current injected given the time domains. |
Float |
CDPMaxITrans |
Maximum transient value for the current injected given the time domains. |
Float |
CDPMaxISubTrans |
Maximum subtransient value for the current injected given the time domains. |
Float |
CDPTimeConstantTransientMs |
Time constant value in ms for the transient window duration. |
Float |
CDPTimeConstantSubTransientMs |
Time constant value in ms for the subtransient window duration. |
Boolean |
CDPPhaseCorrections |
Switch for the CDP functionality of the universal machine that forces the phase correction of the injected current to be in quadrature with the pre-fault voltage. This ‘prioritises’ reactive power injection at the CDP injection site. In advanced mode, when this is disabled it will adopt the phase of the active-reactive current phasor. In simple mode, when this is disabled it will be in phase with the retained voltage. |
IscUMachine Class
- class ipsa.IscUMachine
Provides access to an IPSA universal machine.
- SetIValue(nFieldIndex: int, nValue: int) bool
Sets the value for the enumerated field from an integer.
- SetDValue(nFieldIndex: int, dValue: float) bool
Sets the value for the enumerated field from a double.
- SetSValue(nFieldIndex: int, strValue: int) bool
Sets the value for the enumerated field from a string.
- SetBValue(nFieldIndex: int, bValue: bool) bool
Sets the value for the enumerated field from boolean.
- GetRealPowerMW() float
Returns the universal machine output in MW.
- Returns:
The universal machine output in MW.
- Return type:
- GetReactivePowerMVAr() float
Returns the universal machine output in MVAr.
- Returns:
The universal machine output in MVAr.
- Return type:
- GetRealPowerkW() float
Returns the universal machine output in kW.
- Returns:
The universal machine output in kW.
- Return type:
- GetReactivePowerkVAr() float
Returns the universal machine output in kVAr.
- Returns:
The universal machine output in kVAr.
- Return type:
- GetTotalPowerMVA() float
Returns the universal machine produced total power in MVA.
- Returns:
The universal machine produced total power in MVA.
- Return type:
- GetTotalPowerkVA() float
Returns the universal machine produced total power in kVA.
- Returns:
The universal machine produced total power in kVA.
- Return type:
- GetPowerFactor() float
Returns the universal machine power factor.
- Returns:
The universal machine power factor.
- Return type:
- GetCurrentkA() float
Returns the universal machine injected current in kA.
- Returns:
The universal machine injected current in kA.
- Return type:
- GetDCLFRealPowerMW() float
Returns the universal machine output in MW.
- Returns:
The universal machine output in MW.
- Return type:
- GetDCLFRealPowerkW() float
Returns the universal machine output in kW.
- Returns:
The universal machine output in kW.
- Return type:
- GetDCLFTotalPowerMVA() float
Returns the universal machine produced total power in MVA.
- Returns:
The universal machine produced total power in MVA.
- Return type:
- GetDCLFTotalPowerkVA() float
Returns the universal machine produced total power in kVA.
- Returns:
The universal machine produced total power in kVA.
- Return type:
- GetDCLFCurrentkA() float
Returns the universal machine injected current in kA.
- Returns:
The universal machine injected current in kA.
- Return type:
- TransformCDPParameters(dMachineMVA: float) bool
Transforms the given CDP parametrisation based on the ratio between the machine and system base. Note this function should only be used if the user has the CDP parameters in machine base.
- ActivateCDP() bool
Switches the CDP functionality for the given Universal Machine on
- Returns:
True if successful.
- Return type:
- DeactivateCDP() bool
Switches the CDP functionality for the given Universal Machine off
- Returns:
True if successful.
- Return type:
- GetCDPVoltageTransientPU() List[float]
Returns the transient region voltages for the CDP advanced mode
- GetCDPVoltageSubTransientPU() List[float]
Returns the subtransient region voltages for the CDP advanced mode
- GetCDPRealCurrentPU() List[float]
Returns the synchronous real current values for the CDP advanced mode
- GetCDPRealCurrentTransientPU() List[float]
Returns the transient real current values for the CDP advanced mode
- GetCDPRealCurrentSubTransientPU() List[float]
Returns the subtransient real current values for the CDP advanced mode
- GetCDPReactiveCurrentPU() List[float]
Returns the synchronous reactive current values for the CDP advanced mode
- GetCDPReactiveCurrentTransientPU() List[float]
Returns the transient reactive current values for the CDP advanced mode
- GetCDPReactiveCurrentSubTransientPU() List[float]
Returns the subtransient reactive current values for the CDP advanced mode
- SetCDPVoltagePU(lVoltage: List[float]) bool
Sets the synchronous region voltages for the CDP advanced mode
- SetCDPVoltageTransientPU(lVoltage: List[float]) bool
Sets the transient region voltages for the CDP advanced mode
- SetCDPVoltageSubTransientPU(lVoltage: List[float]) bool
Sets the subtransient region voltages for the CDP advanced mode
- SetCDPRealCurrentPU(lRealCurrent: List[float]) bool
Sets the synchronous real current values for the CDP advanced mode
- SetCDPRealCurrentTransientPU(lRealCurrent: List[float]) bool
Sets the transient real current values for the CDP advanced mode
- SetCDPRealCurrentSubTransientPU(lRealCurrent: List[float]) bool
Sets the subtransient real current values for the CDP advanced mode
- SetCDPReactiveCurrentPU(lReactiveCurrent: List[float]) bool
Sets the synchronous reactive current values for the CDP advanced mode