IscHarmonic
The IscHarmonic
class provides access to an IPSA harmonic source. Individual harmonic orders are indexed using an integer number. This corresponds to a specific harmonic order which is a float, meaning that harmonic orders may be any value as shown below:
Order Index |
Harmonic Order |
---|---|
1 |
2 |
2 |
2.5 |
3 |
3.75 |
4 |
15 |
Field Values
Type |
Field Name |
Description |
---|---|---|
Integer |
FromUID |
Gets the unique ID for busbar. |
String |
BusName |
Gets the busbar name. |
String |
Name |
Gets the harmonic source name. |
Integer |
Status |
Status:
|
Integer |
InjectionType |
Sets and gets the harmonic injection type which is defined as follows:
|
Integer |
ImpedanceType |
Sets and gets the harmonic impedance type which is defined as follows:
|
String |
VoltageImpedanceR |
Sets and gets the resistance for the harmonic impedance if |
String |
VoltageImpedanceX |
Sets and gets the reactance for the harmonic impedance if |
IscHarmonic Class
- class ipsa.IscHarmonic
Provides access to an IPSA harmonic source.
- 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.
- SetOrder(nOrderIndex: int, h: float) None
Sets the harmonic order index to the selected harmonic order.
- Parameters:
nOrderIndex (float) – The order index.
nOrderIndex – The selected harmonic order.
- SetMagnitudePU(nOrderIndex: int, dMagnitude: float) None
Sets the current or voltage magnitude for the order index.
- GetAngleDeg(nOrderIndex: int) float
Gets the current or voltage angle in degrees for the order index.
- SetAngleDeg(nOrderIndex: int, dAngleDeg: float) None
Sets the current or voltage angle in degrees for the order index.
- GetAngleRad(nOrderIndex: int) float
Gets the current or voltage angle in radians for the order index.
- SetAngleRad(nOrderIndex: int, dAngleRad: float) None
Sets the current or voltage angle in radians for the order index.
- GetHarmonicR() Dict[int, float]
Returns a dictionary of harmonic resistances. The dictionary key values are the order indexes and the values are the harmonic resistances in per unit.
- GetHarmonicX() Dict[int, float]
Returns a dictionary of harmonic reactances. The dictionary key values are the order indexes and the values are the harmonic reactances in per unit.