IscBoundary
The IscBoundary class provides access to the IPSA Boundary class, to set and get data values which
are important for interfacing with Network Reduction.
Field Values
Type |
Field Name |
Description |
|---|---|---|
String |
Name |
The name of the boundary. |
String |
Description |
The description of the boundary. |
Boolean |
UseBoundaryConfigMode |
True if using directions method, False if using reduced area method. |
List[int] |
BoundaryBusbarUIDs |
The list of boundary busbars. |
List[int] |
BoundaryBranchUIDs |
The list of branches that are connected from the boundary busbars. |
List[int] |
ReducedBusbarUIDs |
The list of reduced (that is equivalenced) busbars. |
Boolean |
ShowBoundaryBranchMessages |
If True, the boundary branch messages will be shown. |
Boolean |
ShowBoundaryBusMessages |
If True, the boundary bus messages will be shown. |
IscBoundary Class
- class ipsa.IscBoundary
Provides access to a network boundary.
- SetName(strName: str) bool
Sets the name as a string. If the boundary name is not unique, the name will not be set.
- IsBoundaryValidated() bool
Returns whether the boundary is validated.
- Returns:
True if validated.
- Return type:
- IsBoundaryStale() bool
Returns whether the boundary is stale. That is whether the topology of the network has been changed since the boundary busbars were set.
- Returns:
True if stale.
- Return type:
- IsDirectionsActivated() bool
Returns whether the boundary direction mode is activated. This will be True when using the direction method and False when using the reduced area method.
- Returns:
True if using directions method, False if using reduced area method.
- Return type:
- SetDirectionsActivated(bDirections: bool) bool
Sets whether the boundary direction mode is activated. bDirections should be true to use the direction method and False to use the reduced area method.
- GetBoundaryBranchDirections() dict[int, int]
Returns a dict of the boundary branch UIDs and their associated directions. The directions will be one of:
0 = ipsa.IscBoundary.BoundaryIn : The branch is in the intact direction
1 = ipsa.IscBoundary.BoundaryOut : The branch is in the reduced direction
- SetReducedBusbars(lBusbarUIDs: list[int]) bool
Sets the reduced busbars to be the list provided. This will fail if the boundary is not in reduced area mode.
- SetBoundaryBusbars(lBusbarUIDs: list[int], bForceReloadBranches: bool = False) bool
Sets the boundary busbars to be the list provided. This will fail if the boundary is not in directions mode.
If the network topology has changed but the list of boundary busbars has not changed, setting bForceReloadBranches to True will ensure that the boundary branches are consistent with the current topology.
- SetBoundaryBranchDirections(mBranchDirections: dict[int, int]) bool
Set the boundary branch directions from a dict of the boundary branch UIDs and their associated directions. This will fail if the boundary is not in directions mode, or if any keys are not recognised boundary branches.
The directions must be one of:
0 = ipsa.IscBoundary.BoundaryIn : The branch is in the intact direction
1 = ipsa.IscBoundary.BoundaryOut : The branch is in the reduced direction
- SetBoundaryBranchDirection(nBranchUID: int, nDirection: int) bool
Set the boundary branch direction to nDirection for a specific branch specified by nBranchUID. This will fail if the boundary is not in directions mode, or if the branch is not a recognised boundary branch.
The direction, nDirection, must be one of:
0 = ipsa.IscBoundary.BoundaryIn : The branch is in the intact direction
1 = ipsa.IscBoundary.BoundaryOut : The branch is in the reduced direction
- GetListIValue(nFieldIndex: int) List[int]
Returns a list of integer values for the enumerated field.