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 |
List[Float] |
Orders |
Gets the list of orders of the harmonic injection to be modelled. |
List[Float] |
Magnitudes |
Gets the list of magnitudes associated with each order of harmonic injection. |
List[Float] |
Angles |
Gets the list of angles associated with each order of harmonic injection. |
List[Float] |
VImpedanceRList |
Gets the list of resistances for the harmonic impedance if |
List[Float] |
VImpedanceXList |
Gets the list of reactances for the harmonic impedance if |
String |
DbType |
Gets and sets the database type. |
IscHarmonic Class
- class ipsa.IscHarmonic
Provides access to an IPSA harmonic source.
- GetListDValue(nFieldIndex: int) List[float]
Returns a list of double values for the enumerated field.
- 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.
- SetListDValue(nFieldIndex: int, lDValue: List[float]) bool
Sets the value for the enumerated field from a list of doubles.
- SetOrder(nOrderIndex: int, dOrderValue: float) None
Sets the harmonic order index to 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[float, float]
Returns a dictionary of harmonic resistances. The dictionary key values are the orders and the values are the harmonic resistances in per unit.
- GetHarmonicX() Dict[float, float]
Returns a dictionary of harmonic reactances. The dictionary key values are the orders and the values are the harmonic reactances in per unit.
- SetHarmonicR(dicHarmonic: Dict[float, float]) None
Sets the harmonic resistances from a dictionary. The dictionary key values are the orders and the values are the harmonic resistances in per unit.