IscNetwork
This object provides the main access to an IPSA network. It is generally created as the result to a call to IscInterface().ReadFile(strName)
. This class provides functions to retrieve, create and delete network components, perform analysis and get network results.
Network Component Functions
Various functions are provided to allow the creation, deletion and editing of network components. The Get
… functions return instances of the component objects, for example GetBusbar
returns an IscBusbar
instance. Once an IscBusbar
instance is retrieved the busbar data can then be accessed as described in the IscBusbar
section.
Component Access
The dictionary keys are the Python script names of components whilst the values are the instances of components. The Python script name can be used to access individual components.
The example code below details how it is possible to iterate through all the components of a particular type in a network:
# retrieve the busbar collection
busbars = net.GetBusbars()
# cycle each busbar, retrieve its name and voltage
for bus in busbars.values():
# do something with the bus
name = bus.GetName()
Two functions are also provided to return dictionaries of the unique component IDs. The dictionary keys are the Python script names while the dictionary values are the integer IDs.
Setting bFetchFromSystem
to True
forces IPSA to rebuild its internal component data maps. Setting bFetchFromSystem
to False
will only rebuild the internal component data maps if components have been added or deleted since the last Get
… function call. If the script creates new data components during its execution then the internal component data maps will always be rebuilt and bFetchFromSystem
can be True
or False
.
Component Ratings
Rating sets determine the thermal limits that branches and transformers can tolerate. Each component can be given a set of MVA or kA values which are checked after a load flow calculation to identify if the component is overloaded. In IPSA 1.x four rating sets were provided, namely Standard, Summer, Winter and Short. In IPSA 2 these rating sets are provided by default but users can add additional rating sets. The ratings sets defined by the user, either through the IPSA interface or via scripting, are stored with the network model.
The functions used to access the rating data have therefore been changed from IPSA 1.x in order to address the user-defined rating sets.
Profiles
Profiles represent a set of categories with associated MW and MVAr values. Profiles can be assigned to loads, synchronous machines and universal machines. Each network can have any number of profiles which can used to provide absolute or scaled MW and MVAr values. Every load, generator and universal machine in the network can be assigned one of the profiles and load flow analysis or profile analysis can then be performed. Scaling profiles cannot be assigned to universal machines.
Refer to section 0 for the function to run a profile study.
Different types of profiles are represented by different classes as follows;
Actual load profile class -
IscLoadProfilePQActual
Scaled load profile class -
IscLoadProfilePQScale
Actual generator profile class -
IscGeneratorProfilePQActual
Scaled generator profile class -
IscGeneratorProfilePQScale
Actual universal machine profile class -
IscUMachineProfilePQActual
Add Profile Categories
Profiles comprise a number of categories and associated MW and MVAr values. Each category is simply a string which identifies the category name. Examples of profile categories could be:
Spring, Summer, Autumn, Winter
Normal, Max Load, Min Load, Emergency
00:00hrs, 01:00hrs, 02:00hrs, 03:00hrs etc.
The category names are only for user interaction and do not relate to other network components or analysis settings such as equipment ratings.
Add Profile Data
Each profile category can be assigned a specific MW and MVAr load for the various profile types. The MW or MVAr value assigned to each category is either an actual value or a per unit scaling value depending on the profile type.
Add Profiles to Components
Once a profile has been created it can then be assigned to any number of individual loads, generators and universal machines in the network. The field index ProfileUID
is set to assign a profile to a network load, generator or universal machine. This is detailed in the corresponding component sections and the code below illustrates the use of all the load profile functions.
# define the categories and loads
categories = {0:"00:00",
1:"06:00",
2:"12:00",
3:"18:00"}
mw = {0: 0.8,
1: 0.775,
2: 0.75,
3: 0.712}
mvar = {0: 0.48,
1: 0.465,
2: 0.45,
3: 0.4272}
# create a load profile
profileUID = ipsanetwork.CreateLoadProfilePQActual('Test Profile')
# get the profile ID
profile = ipsanetwork.GetLoadProfilePQActual(profileUID)
# add the categories to the profile and set the data
profile.SetCategoryNames(categories)
profile.SetPMW(mw)
profile.SetQMVAr(mvar)
# finally assign the profile to all network loads
loads = ipsa_network.GetLoads()
for load in loads.values():
load.SetIValue(ipsa.IscLoad.ProfileUID)
Running Profile Studies
All categories in the selected profiles are run and the results are obtained from the functions provided in each component class. All profiles must have the same set of category names. The load flow solution parameters are set using the IscAnalysisLF
class.
IscNetwork Class
- class ipsa.IscNetwork
Class providing the main access to an IPSA network.
- SetBusbarSlack(strBusbar: str) None
Sets the busbar as the slack busbar for a particular part of the network.
- Parameters:
strBusbar (str) – The Python busbar name which is returned by IscNetComponent.GetName().
- RefreshSystem() None
Forces IPSA to rebuild its internal component data maps. This function can be used if the network has been modified outside of scripting while a script is running.
- WriteArea(nAreaUID: int, strName: str) bool
Saves the area group UID as a new IPSA i2f network file. The file is saved in the current working directory. The file name should include the .i2f extension.
- ValidatedMergeFile(strMergeName: str) bool
Performs a consistency check to determine if the IPSA I2F file can be merged into the current network. Use the GetFilingErrors() function to get details of the merge errors.
- CommitVersion(strVersionName: str) int
Creates a new network version which includes all non-versioned network changes.
- GetVersionUuid(nVersion: int) str
Returns a unique string (UUID) representing the version name for the given version.
- CreateChangeFile(nVersion: int, strMergeName: str) bool
Creates an IPSA merge file based on the network differences between the given version and the current version.
- GetCurrentVersion() int
Returns the current working version. Any changes to the network are made to this version.
- Returns:
The current version.
- Return type:
- GetVersionDiffAdded(nVersion: int) List[int]
Returns a list of component UIDs which have been added to the network in the current selected version and that were not in the selected version.
- GetVersionDiffChanged(nVersion: int) List[int]
Returns a list of component UIDs which have been edited in the current selected version compared to the selected version.
- GetVersionDiffDeleted(nVersion: int) List[int]
Returns a list of component UIDs which have been deleted from the network in the current selected version and that were in the selected version.
- GetSystemBaseMVA() float
Returns the current system MVA defined for the IPSA network Default: 100 MVA
- Returns:
Network system MVA value
- Return type:
- GetNumberOfIslands() int
Returns the number of islands.
- Returns:
The number of islands.
- Return type:
- GetIslandsUIDs() Dict[str, List[int]]
Returns a dictionary of integer busbar nUIDs belonging to the islands. The keys are the island slack busbar names or the first busbar names if no slack busbar is set for that island.
- GetNoSlackIslandsUIDs() Dict[str, List[int]]
Returns a dictionary of integer busbar UIDs belonging to islands with no slack busbars. The keys are the first busbar names.
- GetNoGeneratorIslandsUIDs() Dict[str, List[int]]
Returns a dictionary of integer busbar UIDs belonging to the islands with no generators or grid infeeds. The keys are the island slack busbar names or the first busbar names if no slack busbar is set for that island.
- GetBusbarsOrderedByVoltage(bFetchFromSystem: bool) Tuple[int]
Returns a tuple of busbar UIDs, sorted in ascending order of voltage and then by busbar name.
- GetBusbarAttachedBranches(nBusbarUID: int, bFetchFromSystem: bool) Tuple[int]
Returns a tuple of branch UIDs attached to the busbar specified by busbar UID. Only branches are returned, not transformers.
- GetBusbarAttachedTransformers(nBusbarUID: int, bFetchFromSystem: bool) Tuple[int]
Returns a tuple of transformer UIDs attached to the busbar specified by busbar UID. Only transformers are returned, not branches or 3W transformers.
- GetBusbarAttached3WTransformers(nBusbarUID: int, bFetchFromSystem: bool) Tuple[int]
Returns a tuple of 3-winding transformer UIDs attached to the busbar specified by busbar UID. Only 3-winding transformers are returned, not 2-winding transformers or branches.
- GetBusbarAttachedUnbalancedBranches(nBusbarUID: int, bFetchFromSystem: bool) Tuple[int]
Returns a tuple of unbalanced branch UIDs attached to the busbar specified by busbar UID. Only unbalanced branches are returned, not unbalanced transformers.
- GetBusbarAttachedUnbalancedTransformers(nBusbarUID: int, bFetchFromSystem: bool) Tuple[int]
Returns a tuple of unbalanced transformer UIDs attached to the busbar specified by busbar UID. Only unbalanced transformers are returned, not unbalanced branches.
- GetBranches(bFetchFromSystem: bool)
Returns a dictionary of IscBranch instances. Key values (sPyName) are the Python names and the associated values are IscBranch instances.
- GetTransformers(bFetchFromSystem: bool)
Returns a dictionary of IscTransformer instances. Keys (sPyName) are the Python names and the associated values are IscTransformer instances.
- Parameters:
bFetchFromSystem (bool) – If set to True, IPSA rebuilds the data maps. If set to False, it only rebuilds if a new component has been built since last Get() function.
- Returns:
Dictionary of transformers.
- Return type:
- Get3WTransformers(bFetchFromSystem: bool)
Returns a dictionary of Isc3WTransformer instances. Keys (sPyName) are the Python names and the associated values are Isc3WTransformer instances.
- Parameters:
bFetchFromSystem (bool) – If set to True, IPSA rebuilds the data maps. If set to False, it only rebuilds if a new component has been built since last Get() function.
- Returns:
Dictionary of 3WTransformers.
- Return type:
- GetLoads(bFetchFromSystem: bool)
Returns a dictionary of IscLoad instances. Keys (sPyName) are the Python names and the associated values are IscLoad instances.
- GetSynMachines(bFetchFromSystem: bool)
Returns a dictionary of IscSynMachine instances. Keys (sPyName) are the Python names and the associated values are IscSynMachine instances.
- Parameters:
bFetchFromSystem (bool) – If set to True, IPSA rebuilds the data maps. If set to False, it only rebuilds if a new component has been built since last Get() function.
- Returns:
Dictionary of synchronous machines.
- Return type:
- GetGridInfeeds(bFetchFromSystem: bool)
Returns a dictionary of IscGridInfeed instances. Keys (sPyName) are the Python names and the associated values are IscGridInfeed instances.
- Parameters:
bFetchFromSystem (bool) – If set to True, IPSA rebuilds the data maps. If set to False, it only rebuilds if a new component has been built since last Get() function.
- Returns:
Dictionary of grid infeeds.
- Return type:
- GetFilters(bFetchFromSystem: bool)
Returns a dictionary of IscFilter instances. Keys (sPyName) are the Python names and the associated values are IscFilter instances.
- GetIndMachines(bFetchFromSystem: bool)
Returns a dictionary of IscIndMachine instances. Keys (sPyName) are the Python names and the associated values are IscIndMachine instances.
- Parameters:
bFetchFromSystem (bool) – If set to True, IPSA rebuilds the data maps. If set to False, it only rebuilds if a new component has been built since last Get() function.
- Returns:
Dictionary of induction machines.
- Return type:
- GetMechSwCapacitors(bFetchFromSystem: bool)
Returns a dictionary of IscMechSwCapacitor instances. Keys (sPyName) are the Python names and the associated values are IscMechSwCapacitor instances.
- Parameters:
bFetchFromSystem (bool) – If set to True, IPSA rebuilds the data maps. If set to False, it only rebuilds if a new component has been built since last Get() function.
- Returns:
Dictionary of mechanical switch capacitors.
- Return type:
- GetStaticVCs(bFetchFromSystem: bool)
Returns a dictionary of IscStaticVC instances. Keys (sPyName) are the Python names and the associated values are IscStaticVC instances.
- Parameters:
bFetchFromSystem (bool) – If set to True, IPSA rebuilds the data maps. If set to False, it only rebuilds if a new component has been built since last Get() function.
- Returns:
Dictionary of static var compensators.
- Return type:
- GetUMachines(bFetchFromSystem: bool)
Returns a dictionary of IscUMachine instances. Keys (sPyName) are the Python names and the associated values are IscUMachine instances.
- Parameters:
bFetchFromSystem (bool) – If set to True, IPSA rebuilds the data maps. If set to False, it only rebuilds if a new component has been built since last Get() function.
- Returns:
Dictionary of universal machines.
- Return type:
- GetHarmonics(bFetchFromSystem: bool)
Returns a dictionary of IscHarmonic instances. Keys (sPyName) are the Python names and the associated values are IscHarmonic instances.
- Parameters:
bFetchFromSystem (bool) – If set to True, IPSA rebuilds the data maps. If set to False, it only rebuilds if a new component has been built since last Get() function.
- Returns:
Dictionary of harmonics.
- Return type:
- GetCircuitBreakers(bFetchFromSystem: bool)
Returns a dictionary of IscCircuitBreaker instances. Keys (sPyName) are the Python names and the associated values are IscCircuitBreaker instances.
- Parameters:
bFetchFromSystem (bool) – If set to True, IPSA rebuilds the data maps. If set to False, it only rebuilds if a new component has been built since last Get() function.
- Returns:
Dictionary of circuit breakers.
- Return type:
- GetBatteries(bFetchFromSystem: bool)
Returns a dictionary of IscBattery instances. Keys (sPyName) are the Python names and the associated values are IscBattery instances.
- Parameters:
bFetchFromSystem (bool) – If set to True, IPSA rebuilds the data maps. If set to False, it only rebuilds if a new component has been built since last Get() function.
- Returns:
Dictionary of batteries.
- Return type:
- GetDCMachines(bFetchFromSystem: bool)
Returns a dictionary of IscDCMachine instances. Keys (sPyName) are the Python names and the associated values are IscDCMachine instances.
- Parameters:
bFetchFromSystem (bool) – If set to True, IPSA rebuilds the data maps. If set to False, it only rebuilds if a new component has been built since last Get() function.
- Returns:
Dictionary of DC machines.
- Return type:
- GetConverters(bFetchFromSystem: bool)
Returns a dictionary of IscConverter instances. Keys (sPyName) are the Python names and the associated values are IscConverter instances.
- Parameters:
bFetchFromSystem (bool) – If set to True, IPSA rebuilds the data maps. If set to False, it only rebuilds if a new component has been built since last Get() function.
- Returns:
Dictionary of converters.
- Return type:
- GetChoppers(bFetchFromSystem: bool)
Returns a dictionary of IscChopper instances. Keys (sPyName) are the Python names and the associated values are IscChopper instances.
- Parameters:
bFetchFromSystem (bool) – If set to True, IPSA rebuilds the data maps. If set to False, it only rebuilds if a new component has been built since last Get() function.
- Returns:
Dictionary of choppers.
- Return type:
- GetMGSets(bFetchFromSystem: bool)
Returns a dictionary of IscMGSet instances. Keys (sPyName) are the Python names and the associated values are IscMGSet instances.
- GetProtectionDevices(bFetchFromSystem: bool)
Returns a dictionary of IscProtectionDevice instances. Keys (sPyName) are the Python names and the associated values are IscProtectionDevice instances.
- Parameters:
bFetchFromSystem (bool) – If set to True, IPSA rebuilds the data maps. If set to False, it only rebuilds if a new component has been built since last Get() function.
- Returns:
Dictionary of protection devices.
- Return type:
- GetUnbalancedLoads(bFetchFromSystem: bool)
Returns a dictionary of IscUnbalancedLoad instances. Keys (sPyName) are the Python names and the associated values are IscUnbalancedLoad instances.
- Parameters:
bFetchFromSystem (bool) – If set to True, IPSA rebuilds the data maps. If set to False, it only rebuilds if a new component has been built since last Get() function.
- Returns:
Dictionary of unbalanced loads.
- Return type:
- GetUnbalancedLines(bFetchFromSystem: bool)
Returns a dictionary of IscUnbalancedLine instances. Keys (sPyName) are the Python names and the associated values are IscUnbalancedLine instances.
- Parameters:
bFetchFromSystem (bool) – If set to True, IPSA rebuilds the data maps. If set to False, it only rebuilds if a new component has been built since last Get() function.
- Returns:
Dictionary of unbalanced lines.
- Return type:
- GetUnbalancedTransformers(bFetchFromSystem: bool)
Returns a dictionary of IscUnbalancedTransformer instances. Keys (sPyName) are the Python names and the associated values are IscUnbalancedTransformer instances.
- Parameters:
bFetchFromSystem (bool) – If set to True, IPSA rebuilds the data maps. If set to False, it only rebuilds if a new component has been built since last Get() function.
- Returns:
Dictionary of unbalanced transformers.
- Return type:
- GetVoltageRegulators(bFetchFromSystem: bool)
Returns a dictionary of IscVoltageRegulator instances. Keys (sPyName) are the Python names and the associated values are IscVoltageRegulator instances.
- Parameters:
bFetchFromSystem (bool) – If set to True, IPSA rebuilds the data maps. If set to False, it only rebuilds if a new component has been built since last Get() function.
- Returns:
Dictionary of voltage regulators.
- Return type:
- GetAnnotations(bFetchFromSystem: bool)
Returns a dictionary of IscAnnotation instances. Keys (sPyName) are the Python names and the associated values are IscAnnotation instances.
- Parameters:
bFetchFromSystem (bool) – If set to True, IPSA rebuilds the data maps. If set to False, it only rebuilds if a new component has been built since last Get() function.
- Returns:
Dictionary of annotations.
- Return type:
- GetGroups()
Returns a dictionary of IscGroup instances. Keys (sPyName) are the Python names and the associated values are IscGroup instances.
- GetGroupsForItem(nUID: int) Tuple[int]
Returns a tuple containing the group UIDs for each group that the component UID is a member of.
- GetPlugins()
Returns a dictionary of IscPlugin instances. Keys (sPyName) are the Python names and the associated values are IscPlugin instances.
- GetBusbarUIDs(bFetchFromSystem: bool)
Returns a dictionary of all busbar UIDs in the network. The keys are the integer UIDs and the values are the IscBusbar instances.
- GetProtectionDeviceUIDs(bFetchFromSystem: bool)
Returns a dictionary of all protection device UIDs in the network. The keys are the integer UIDs and the values are the IscProtectionDevice instances.
- Parameters:
bFetchFromSystem (bool) – If set to True, IPSA rebuilds the data maps. If set to False, it only rebuilds if a new component has been built since last Get() function.
- Returns:
Dictionary of all protection devices UIDs.
- Return type:
- TraceBusbarUIDs(nBranchUID: int, bOpenBreakers: bool, nGroupUID: int) List[int]
Performs a network trace to identify all busbars that are connected to the selected branch. The network trace stops when it reaches any busbar that is a member of the group of the selected group UID or when it reaches a transformer.
- GetBusbarSlacks() List[str]
Returns a list of all the busbar names contained in the network busbar slack list.
- GetBusbar(nUID: int)
- GetBusbar(strPythonName: str)
Returns an IscBusbar instance for the busbar identified by the UID or the Python name.
You can use either nUID specifying the busbar UID, or strPythonName specifying its name.
- GetBranch(nUID: int)
- GetBranch(strPythonName: str)
Returns an IscBranch instance for the branch identified by the UID or the Python name.
You can use either nUID specifying the branch UID, or strPythonName specifying its name.
- GetTransformer(nUID: int)
- GetTransformer(strPythonName: str)
Returns an IscTransformer instance for the transformer identified by the UID or the Python name.
You can use either nUID specifying the transformer UID, or strPythonName specifying its name.
- Parameters:
- Returns:
The transformer instance or None if such is not found.
- Return type:
- Get3WTransformer(nUID: int)
- Get3WTransformer(strPythonName: str)
Returns an Isc3WTransformer instance for the three winding transformer identified by the UID or the Python name.
You can use either nUID specifying the three winding transformer UID, or strPythonName specifying its name.
- Parameters:
- Returns:
The three winding transformer instance or None if such is not found.
- Return type:
- GetLoad(nUID: int)
- GetLoad(strPythonName: str)
Returns an IscLoad instance for the load identified by the UID or the Python name.
You can use either nUID specifying the load UID, or strPythonName specifying its name.
- GetSynMachine(nUID: int)
- GetSynMachine(strPythonName: str)
Returns an IscSynMachine instance for the synchronous machine identified by the UID or the Python name.
You can use either nUID specifying the synchronous machine UID, or strPythonName specifying its name.
- Parameters:
- Returns:
The synchronous machine instance or None if such is not found.
- Return type:
- GetGridInfeed(nUID: int)
- GetGridInfeed(strPythonName: str)
Returns an IscGridInfeed instance for the grid infeed identified by the UID or the Python name.
You can use either nUID specifying the grid infeed UID, or strPythonName specifying its name.
- Parameters:
- Returns:
The grid infeed instance or None if such is not found.
- Return type:
- GetIndMachine(nUID: int)
- GetIndMachine(strPythonName: str)
Returns an IscIndMachine instance for the induction motor identified by the UID or the Python name.
You can use either nUID specifying the induction motor UID, or strPythonName specifying its name.
- Parameters:
- Returns:
The induction motor instance or None if such is not found.
- Return type:
- GetFilter(nUID: int)
- GetFilter(strPythonName: str)
Returns an IscFilter instance for the harmonic filter identified by the UID or the Python name.
You can use either nUID specifying the harmonic filter UID, or strPythonName specifying its name.
- GetMechSwCapacitor(nUID: int)
- GetMechSwCapacitor(strPythonName: str)
Returns an IscMechSwCapacitor instance for the mechanically switched capacitor identified by the UID or the Python name.
You can use either nUID specifying the mechanically switched capacitor UID, or strPythonName specifying its name.
- Parameters:
- Returns:
The mechanically switched capacitor instance or None if such is not found.
- Return type:
- GetStaticVC(nUID: int)
- GetStaticVC(strPythonName: str)
Returns an IscStaticVC instance for the static VAR compensator identified by the UID or the Python name.
You can use either nUID specifying the static VAR compensator UID, or strPythonName specifying its name.
- Parameters:
- Returns:
The static VAR compensator instance or None if such is not found.
- Return type:
- GetUMachine(nUID: int)
- GetUMachine(strPythonName: str)
Returns an IscUMachine instance for the universal machine identified by the UID or the Python name.
You can use either nUID specifying the universal machine UID, or strPythonName specifying its name.
- Parameters:
- Returns:
The universal machine instance or None if such is not found.
- Return type:
- GetHarmonic(nUID: int)
- GetHarmonic(strPythonName: str)
Returns an IscHarmonic instance for the harmonic source identified by the UID or the Python name.
You can use either nUID specifying the harmonic source UID, or strPythonName specifying its name.
- Parameters:
- Returns:
The harmonic source instance or None if such is not found.
- Return type:
- GetCircuitBreaker(nUID: int)
- GetCircuitBreaker(strPythonName: str)
Returns an IscCircuitBreaker instance for the circuit breaker identified by the UID or the Python name.
You can use either nUID specifying the circuit breaker UID, or strPythonName specifying its name.
- Parameters:
- Returns:
The circuit breaker instance or None if such is not found.
- Return type:
- GetBattery(nUID: int)
- GetBattery(strPythonName: str)
Returns an IscBattery instance for the DC battery identified by the UID or the Python name.
You can use either nUID specifying the DC battery UID, or strPythonName specifying its name.
- Parameters:
- Returns:
The DC battery instance or None if such is not found.
- Return type:
- GetDCMachine(nUID: int)
- GetDCMachine(strPythonName: str)
Returns an IscDCMachine instance for the DC machine identified by the UID or the Python name.
You can use either nUID specifying the DC machine UID, or strPythonName specifying its name.
- Parameters:
- Returns:
The DC machine instance or None if such is not found.
- Return type:
- GetConverter(nUID: int)
- GetConverter(strPythonName: str)
Returns an IscConverter instance for the AC/DC convertor identified by the UID or the Python name.
You can use either nUID specifying the AC/DC convertor UID, or strPythonName specifying its name.
- Parameters:
- Returns:
The AC/DC convertor instance or None if such is not found.
- Return type:
- GetChopper(nUID: int)
- GetChopper(strPythonName: str)
Returns an IscChopper instance for the AC/DC convertor identified by the UID or the Python name.
You can use either nUID specifying the AC/DC convertor UID, or strPythonName specifying its name.
- Parameters:
- Returns:
The AC/DC chopper instance or None if such is not found.
- Return type:
- GetMGSet(nUID: int)
- GetMGSet(strPythonName: str)
Returns an IscMGSet instance for the motor generator set identified by the UID or the Python name.
You can use either nUID specifying the motor generator set UID, or strPythonName specifying its name.
- GetVoltageRegulator(nUID: int)
- GetVoltageRegulator(strPythonName: str)
Returns an IscVoltageRegulator instance for the voltage regulator identified by the UID or the Python name.
You can use either nUID specifying the voltage regulator UID, or strPythonName specifying its name.
- Parameters:
- Returns:
The voltage regulator instance or None if such is not found.
- Return type:
- GetProtectionDevice(nUID: int)
- GetProtectionDevice(strPythonName: str)
Returns an IscProtectionDevice instance for the protection device identified by the UID or the Python name.
You can use either nUID specifying the protection device UID, or strPythonName specifying its name.
- Parameters:
- Returns:
The protection device instance or None if such is not found.
- Return type:
- GetAnnotation(nUID: int)
- GetAnnotation(strPythonName: str)
Returns an IscAnnotation instance for the diagram annotation identified by the UID or the Python name.
You can use either nUID specifying the diagram annotation UID, or strPythonName specifying its name.
- Parameters:
- Returns:
The diagram annotation instance or None if such is not found.
- Return type:
- GetGroup(nUID: int)
- GetGroup(strPythonName: str)
Returns an IscGroup instance for the group identified by the UID or the Python name.
You can use either nUID specifying the group UID, or strPythonName specifying its name.
- GetPlugin(nUID: int)
- GetPlugin(strPythonName: str)
Returns an IscPlugin instance for the plugin identified by the UID or the Python name.
You can use either nUID specifying the plugin UID, or strPythonName specifying its name.
- GetUnbalancedLoad(nUID: int)
- GetUnbalancedLoad(strPythonName: str)
Returns an IscUnbalancedLoad instance for the unbalanced load identified by the UID or the Python name.
- Parameters:
- Returns:
The unbalanced load instance or None if such is not found.
- Return type:
- GetUnbalancedLine(nUID: int)
- GetUnbalancedLine(strPythonName: str)
Returns an IscUnbalancedLine instance for the unbalanced line identified by the UID or the Python name.
- Parameters:
- Returns:
The unbalanced line instance or None if such is not found.
- Return type:
- GetUnbalancedTransformer(nUID: int)
- GetUnbalancedTransformer(strPythonName: str)
Returns an IscUnbalancedTransformer instance for the unbalanced transformer identified by the UID or the Python name.
- Parameters:
- Returns:
The unbalanced transformer instance or None if such is not found.
- Return type:
- GetNetworkData()
Returns an IscNetworkData instance of the network. The IscNetworkData object provides access to network wide properties such as the base MVA.
- Returns:
A network data instance of the network.
- Return type:
- GetBranchUID(nFromID: int, nToID: int, strName: str) int
Returns the UID of a branch with the given name between two busbars that are specified by their UIDs.
- GetBranchUIDs(bFetchFromSystem: bool)
Returns a dictionary of all branch UIDs in the network. The keys are the integer UIDs and the values are the IscBranch instances.
- GetTransformerUID(nFromID: int, nToID: int, strName: str) int
Returns the UID of a transformer with the given name between two busbars that are specified by their UIDs.
- GetTransformerUIDs(bFetchFromSystem: bool)
Returns a dictionary of all transformer UIDs in the network. The keys are the integer UIDs and the values are the IscTransformer instances.
- Parameters:
bFetchFromSystem (bool) – If set to True, IPSA rebuilds the data maps. If set to False, it only rebuilds if a new component has been built since last Get() function.
- Returns:
Dictionary of all transformer UIDs.
- Return type:
- Get3WTransformerUID(nFromID: int, nToID: int, nTeritaryID: int, strName: str) int
Returns the UID of a 3 winding transformer with the given name between three busbars that are specified by their UIDs.
- Parameters:
- Returns:
The 3 winding transformer UID, 0 if no matches or -N if we have N matches.
- Return type:
- Get3WTransformerUIDs(bFetchFromSystem: bool)
Returns a dictionary of all busbar UIDs in the network. The keys are the integer UIDs and the values are the IscBusbar instances.
- Parameters:
bFetchFromSystem (bool) – If set to True, IPSA rebuilds the data maps. If set to False, it only rebuilds if a new component has been built since last Get() function.
- Returns:
Dictionary of all 3WTransformers.
- Return type:
- GetLoadUID(nBusID: int, strName: str) int
Returns the UID of a load with specified name at busbar specified by its UID.
- GetLoadUIDs(nBusID: int) List[int]
Returns all loads connected to the busbars specified by the given UID.
- GetSynMachineUID(nBusID: int, strName: str) int
Returns the UID of a synchronous machine with specified name at busbar specified by its UID.
- GetSynMachineUIDs(nBusID: int) List[int]
Returns all synchronous machines connected to the busbars specified by the given UID.
- GetGridInfeedUID(nBusID: int, strName: str) int
Returns the UID of a grid infeed with specified name at busbar specified by its UID.
- GetGridInfeedUIDs(nBusID: int) List[int]
Returns all grid infeeds connected to the busbars specified by the given UID.
- GetIndMachineUID(nBusID: int, strName: str) int
Returns the UID of an induction machine with specified name at busbar specified by its UID.
- GetIndMachineUIDs(nBusID: int) List[int]
Returns all induction machines connected to the busbars specified by the given UID.
- GetFilterUID(nBusID: int, strName: str) int
Returns the UID of a filter with specified name at busbar specified by its UID.
- GetFilterUIDs(nBusID: int) List[int]
Returns all filters connected to the busbars specified by the given UID.
- GetMechSwCapacitorUID(nBusID: int, strName: str) int
Returns the UID of a mechanically switched capacitor with specified name at busbar specified by its UID.
- GetMechSwCapacitorUIDs(nBusID: int) List[int]
Returns all mechanically switched capacitors connected to the busbars specified by the given UID.
- GetStaticVCUID(nBusID: int, strName: str) int
Returns the UID of a static VAr compensator with specified name at busbar specified by its UID.
- GetStaticVCUIDs(nBusID: int) List[int]
Returns all static VAr compensators connected to the busbars specified by the given UID.
- GetUMachineUID(nBusID: int, strName: str) int
Returns the UID of a universal machine with specified name at busbar specified by its UID.
- GetUMachineUIDs(nBusID: int) List[int]
Returns all universal machines connected to the busbars specified by the given UID.
- GetHarmonicUID(nBusID: int, strName: str) int
Returns the UID of a harmonic source with specified name at busbar specified by its UID.
- GetHarmonicUIDs(nBusID: int) List[int]
Returns all harmonic sources connected to the busbars specified by the given UID.
- GetCircuitBreakerUID(nBranchOrTxID: int, nClosestBusbarUID: int) int
Returns the UID of a circuit breaker located on the branch or transformer specified by its UID. The From or To end of the branch is specified by the nClosestBusbarUID parameter.
- GetFromCircuitBreakerUID(nBranchOrTxID: int) int
Returns the UID of a circuit breaker located on the “From” end of the branch or transformer specified by its UID.
- GetToCircuitBreakerUID(nBranchOrTxID: int) int
Returns the UID of a circuit breaker located on the “To” end of the branch or transformer specified by its UID.
- GetBatteryUID(nBusID: int, strName: str) int
Returns the UID of a battery with specified name at busbar specified by its UID.
- GetBatteryUIDs(nBusID: int) List[int]
Returns all batteries connected to the busbars specified by the given UID.
- GetDCMachineUID(nBusID: int, strName: str) int
Returns the UID of a DC Machine with specified name at busbar specified by its UID.
- GetDCMachineUIDs(nBusID: int) List[int]
Returns all DC Machines connected to the busbars specified by the given UID.
- GetConverterUID(nFromID: int, nToID: int, strName: str) int
Returns the UID of a converter with the given name between two busbars that are specified by their UIDs.
- GetConverterUIDs(nFromID: int, nToID: int) List[int]
Returns all converters connected between two busbars that are specified by their UIDs.
- GetChopperUID(nFromID: int, nToID: int, strName: str) int
Returns the UID of a chopper with the given name between two busbars that are specified by their UIDs.
- GetChopperUIDs(nFromID: int, nToID: int) List[int]
Returns all choppers connected between two busbars that are specified by their UIDs.
- GetMGSetUID(nFromID: int, nToID: int, strName: str) int
Returns the UID of a motor/generator with the given name between two busbars that are specified by their UIDs.
- GetMGSetUIDs(nFromID: int, nToID: int) List[int]
Returns all motors/generators connected between two busbars that are specified by their UIDs.
- GetUnbalancedLoadUID(nBusID: int, strName: str) int
Returns the UID of an unbalanced load with specified name at busbar specified by its UID.
- GetUnbalancedLineUID(nFromID: int, nToID: int, strName: str) int
Returns the UID of an unbalanced line with the given name between two busbars that are specified by their UIDs.
- GetUnbalancedTransformerUID(nFromID: int, nToID: int, strName: str) int
Returns the UID of an unbalanced transformer with the given name between two busbars that are specified by their UIDs.
- GetVoltageRegulatorUID(nBranchID: int) int
Returns the UID of a voltage regulator at branch specified by its UID.
- GetProfileUID(nUID: int) int
Returns the integer UID of the profile for the component UID.
- Parameters:
nUID (int) – The UID of component. nUID may be the UID of a load, generator, grid infeed or Universal Machine.
- Returns:
The profile for the component UID, 0 if the component nUID does not have a profile assigned to it, or if nUID is not a load, generator, grid infeed or universal machine.
- Return type:
- CreateBusbar(strName: str) int
Returns the UID for the newly created busbar.
Warning: It is up to the script to ensure that the busbar name is unique.
- CreateBusbarNoGraphics(strName: str)
Returns an IscBusbar object for the newly created busbar.
Warning: It is up to the script to ensure that the busbar name is unique.
- CreateBranch(nFromBusbarUID: int, nToBusbarUID: int, strName: str) int
- CreateBranch(pFromBusbar, pToBusbar, strName: str)
Returns the UID or an IscBranch object for the newly created branch.
- Parameters:
- Returns:
The UID for the newly created branch, 0 on failure.
- Return type:
- Returns:
The IscBranch object for the newly created branch.
- Return type:
- CreateTransformer(nFromBusbarUID: int, nToBusbarUID: int, strName: str) int
- CreateTransformer(pFromBusbar, pToBusbar, strName: str)
Returns the UID or an IscTransformer object for the newly created transformer.
- Parameters:
- Returns:
The UID for the newly created transformer, 0 on failure.
- Return type:
- Returns:
The IscTransformer object for the newly created transformer.
- Return type:
- Create3WTransformer(nFromBusbarUID: int, nToBusbarUID: int, nTeritaryBusUID: int, strName: str) int
- Create3WTransformer(pFromBusbar, pToBusbar, pTeritaryBus, strName: str)
Returns the UID or an Isc3WTransformer object for the newly created 3-winding transformer.
- Parameters:
nFromBusbarUID (int) – The “From” busbar UID.
nToBusbarUID (int) – The “To” busbar UID.
nTeritaryBusUID (int) – The “Teritary” busbar UID.
pFromBusbar (IscBusbar) – The “From” busbar.
pToBusbar (IscBusbar) – The “To” busbar.
pTeritaryBus (IscBusbar) – The “Teritary” busbar.
strName (str) – The 3-winding transformer name string if required.
- Returns:
The UID for the newly created 3-winding transformer, 0 on failure.
- Return type:
- Returns:
The Isc3WTransformer object for the newly created 3-winding transformer.
- Return type:
- CreateLoad(nAtBusbarUID: int, strName: str) int
- CreateLoad(pAtBusbar, strName: str)
Returns the UID or an IscLoad object for the newly created load.
- CreateIndMachine(nAtBusbarUID: int, strName: str) int
- CreateIndMachine(pAtBusbar, strName: str)
Returns the UID or an IscIndMachine object for the newly created induction machine.
- Parameters:
- Returns:
The UID for the newly created induction machine, 0 on failure.
- Return type:
- Returns:
The IscIndMachine object for the newly created induction machine.
- Return type:
- CreateSynMachine(nAtBusbarUID: int, strName: str) int
- CreateSynMachine(pAtBusbar, strName: str)
Returns the UID or an IscSynMachine object for the newly created synchronous machine.
- Parameters:
- Returns:
The UID for the newly created synchronous machine, 0 on failure.
- Return type:
- Returns:
The IscSynMachine object for the newly created synchronous machine.
- Return type:
- CreateGridInfeed(nAtBusbarUID: int, strName: str) int
- CreateGridInfeed(pAtBusbar, strName: str)
Returns the UID or an IscGridInfeed object for the newly created grid infeed.
- Parameters:
- Returns:
The UID for the newly created grid infeed, 0 on failure.
- Return type:
- Returns:
The IscGridInfeed object for the newly created grid infeed.
- Return type:
- CreateFilter(nAtBusbarUID: int, strName: str) int
- CreateFilter(pAtBusbar, strName: str)
Returns the UID or an IscFilter object for the newly created filter.
- CreateHarmonic(nAtBusbarUID: int, strName: str) int
- CreateHarmonic(pAtBusbar, strName: str)
Returns the UID or an IscHarmonic object for the newly created harmonic source.
- Parameters:
- Returns:
The UID for the newly created harmonic source, 0 on failure.
- Return type:
- Returns:
The IscHarmonic object for the newly created harmonic source.
- Return type:
- CreateMechSwCapacitor(nAtBusbarUID: int, strName: str) int
- CreateMechSwCapacitor(pAtBusbar, strName: str)
Returns the UID or an IscMechSwCapacitor object for the newly created mechanically switched capacitor.
- Parameters:
- Returns:
The UID for the newly created mechanically switched capacitor, 0 on failure.
- Return type:
- Returns:
The IscMechSwCapacitor object for the newly created mechanically switched capacitor.
- Return type:
- CreateCircuitBreaker(nBranchOrTxUID: int, bAtFromEnd: bool, strName: str) int
- CreateCircuitBreaker(pBranchOrTx, bAtFromEnd: bool, strName: str)
Returns the UID or an IscCircuitBreaker object for the newly created circuit breaker. In order to draw this component, the function IscDiagram.DrawUndrawnItemsAttachedToBusbar needs to be called before IscDiagram.DrawLine.
- Parameters:
nBranchOrTxUID (int) – The UID of the branch or the transformer where the circuit breaker is located.
pBranchOrTx (IscBranch or IscTransformer) – The IscBranch or IscTransformer object of the branch or transformer where the circuit breaker is located.
bAtFromEnd (bool) – Adds the circuit breaker to the “From” end of the component, if True.
strName (str) – The circuit breaker name string if required.
- Returns:
The UID for the newly created circuit breaker, 0 on failure.
- Return type:
- Returns:
The IscCircuitBreaker object for the newly created circuit breaker.
- Return type:
- CreateStaticVC(nAtBusbarUID: int, strName: str) int
- CreateStaticVC(pAtBusbar, strName: str)
Returns the UID or an IscStaticVC object for the newly created static VAr compensator.
- Parameters:
- Returns:
The UID for the newly created static VAr compensator, 0 on failure.
- Return type:
- Returns:
The IscStaticVC object for the newly created static VAr compensator.
- Return type:
- CreateUMachine(nAtBusbarUID: int, strName: str) int
- CreateUMachine(pAtBusbar, strName: str)
Returns the UID or an IscUMachine object for the newly created universal machine.
- Parameters:
- Returns:
The UID for the newly created universal machine, 0 on failure.
- Return type:
- Returns:
The IscUMachine object for the newly created universal machine.
- Return type:
- CreateBattery(nAtBusbarUID: int, strName: str) int
- CreateBattery(pAtBusbar, strName: str)
Returns the UID or an IscBattery object for the newly created battery.
- Parameters:
- Returns:
The UID for the newly created battery, 0 on failure.
- Return type:
- Returns:
The IscBattery object for the newly created battery.
- Return type:
- CreateDCMachine(nAtBusbarUID: int, strName: str) int
- CreateDCMachine(pAtBusbar, strName: str)
Returns the UID or an IscDCMachine object for the newly created DC machine.
- Parameters:
- Returns:
The UID for the newly created DC machine, 0 on failure.
- Return type:
- Returns:
The IscDCMachine object for the newly created DC machine.
- Return type:
- CreateConverter(nFromBusbarUID: int, nToBusbarUID: int, strName: str) int
- CreateConverter(pFromBusbar, pToBusbar, strName: str)
Returns the UID or an IscConverter object for the newly created AC/DC converter.
- Parameters:
- Returns:
The UID for the newly created AC/DC converter, 0 on failure.
- Return type:
- Returns:
The IscConverter object for the newly created AC/DC converter.
- Return type:
- CreateChopper(nFromBusbarUID: int, nToBusbarUID: int, strName: str) int
- CreateChopper(pFromBusbar, pToBusbar, strName: str)
Returns the UID or an IscChopper object for the newly created chopper.
- Parameters:
- Returns:
The UID for the newly created chopper, 0 on failure.
- Return type:
- Returns:
The IscChopper object for the newly created chopper.
- Return type:
- CreateMGSet(nFromBusbarUID: int, nToBusbarUID: int, strName: str) int
- CreateMGSet(pFromBusbar, pToBusbar, strName: str)
Returns the UID or an IscMGSet object for the newly created motor/generator set.
- Parameters:
- Returns:
The UID for the newly created motor/generator set, 0 on failure.
- Return type:
- Returns:
The IscMGSet object for the newly created motor/generator set.
- Return type:
- CreateVoltageRegulator(nBranchUID: int, strName: str) int
- CreateVoltageRegulator(pBranch, strName: str)
Returns the UID or an IscVoltageRegulator object for the newly created voltage regulator.
- Parameters:
- Returns:
The UID for the newly created voltage regulator, 0 on failure.
- Return type:
- Returns:
The IscVoltageRegulator object for the newly created voltage regulator.
- Return type:
- CreateUnbalancedLoad(nAtBusbarUID: int, strName: str) int
- CreateUnbalancedLoad(pAtBusbar, strName: str)
Returns the UID or an IscUnbalancedLoad object for the newly created unbalanced load.
- Parameters:
- Returns:
The UID for the newly created unbalanced load, 0 on failure.
- Return type:
- Returns:
The IscUnbalancedLoad object for the newly created unbalanced load.
- Return type:
- CreateUnbalancedLine(nFromBusbarUID: int, nToBusbarUID: int, strName: str) int
- CreateUnbalancedLine(pFromBusbar, pToBusbar, strName: str)
Returns the UID or an IscUnbalancedLine object for the newly created unbalanced line.
- Parameters:
- Returns:
The UID for the newly created unbalanced line, 0 on failure.
- Return type:
- Returns:
The IscUnbalancedLine object for the newly created unbalanced line.
- Return type:
- CreateUnbalancedTransformer(nFromBusbarUID: int, nToBusbarUID: int, strName: str) int
- CreateUnbalancedTransformer(pFromBusbar, pToBusbar, strName: str)
Returns the UID or an IscUnbalancedTransformer object for the newly created unbalanced transformer.
- Parameters:
- Returns:
The UID for the newly created unbalanced transformer, 0 on failure.
- Return type:
- Returns:
The IscUnbalancedTransformer object for the newly created unbalanced transformer.
- Return type:
- CreateGroup(strName: str, nGroupType: int) int
Create a new empty group of components and returns the group UID. Group types:
0 = No group type
1 = Area type group (contains all busbars in an area)
2 = Mixed item group
3 = Load scaling group
4 = Load transfer group
5 = Protection device group
- CreateGroupNoGraphics(strName: str, nGroupType: int)
Create a new empty group of components and returns the group object. Group types:
0 = No group type
1 = Area type group (contains all busbars in an area)
2 = Mixed item group
3 = Load scaling group
4 = Load transfer group
5 = Protection device group
- CreatePlugin(nCompUID: int, sPluginName: str, sName: str) int
Returns the UID for the newly created plugin. A different plugin UID is required for each component with a plugin, therefore this function should be used every time a plugin is assigned to a component, even if the same type of plugin is being assigned.
- DeleteBranch(pBranch) bool
Deletes a branch by passing the IscBranch object for deletion and all the circuit breakers attached to it.
- DeleteTransformer(pTransformer) bool
Deletes a transformer by passing the IscTransformer object for deletion.
- Parameters:
pTransformer (IscTransformer) – The IscTransformer object for deletion.
- Returns:
True if successful.
- Return type:
- Delete3WTransformer(p3WTransformer) bool
Deletes a 3-winding transformer by passing the Isc3WTransformer object for deletion.
- Parameters:
p3WTransformer (Isc3WTransformer) – The Isc3WTransformer object for deletion.
- Returns:
True if successful.
- Return type:
- DeleteSynMachine(pSynMachine) bool
Deletes a synchronous machine by passing the IscSynMachine object for deletion.
- Parameters:
pSynMachine (IscSynMachine) – The IscSynMachine object for deletion.
- Returns:
True if successful.
- Return type:
- DeleteIndMachine(pIndMachine) bool
Deletes an induction machine by passing the IscIndMachine object for deletion.
- Parameters:
pIndMachine (IscIndMachine) – The IscIndMachine object for deletion.
- Returns:
True if successful.
- Return type:
- DeleteGridInfeed(pGridInfeed) bool
Deletes a grid infeed by passing the IscSynMachine object for deletion.
- Parameters:
pGridInfeed (IscSynMachine) – The IscSynMachine object for deletion.
- Returns:
True if successful.
- Return type:
- DeleteMechSwCapacitor(pMechSwCapacitor) bool
Deletes a mechanical switched capacitor by passing the IscMechSwCapacitor object for deletion.
- Parameters:
pMechSwCapacitor (IscMechSwCapacitor) – The IscMechSwCapacitor object for deletion.
- Returns:
True if successful.
- Return type:
- DeleteStaticVC(pStaticVC) bool
Deletes a synchronous machine by passing the IscStaticVC object for deletion.
- Parameters:
pStaticVC (IscStaticVC) – The IscStaticVC object for deletion.
- Returns:
True if successful.
- Return type:
- DeleteUMachine(pUMachine) bool
Deletes an universal machine by passing the IscUMachine object for deletion.
- Parameters:
pUMachine (IscUMachine) – The IscUMachine object for deletion.
- Returns:
True if successful.
- Return type:
- DeleteHarmonic(pHarmonic) bool
Deletes a harmonic source by passing the IscHarmonic object for deletion.
- Parameters:
pHarmonic (IscHarmonic) – The IscHarmonic object for deletion.
- Returns:
True if successful.
- Return type:
- DeleteCircuitBreaker(pCircuitBreaker) bool
Deletes a circuit breaker by passing the IscCircuitBreaker object for deletion.
- Parameters:
pCircuitBreaker (IscCircuitBreaker) – The IscCircuitBreaker object for deletion.
- Returns:
True if successful.
- Return type:
- DeleteBattery(pBattery) bool
Deletes a battery by passing the IscBattery object for deletion.
- Parameters:
pBattery (IscBattery) – The IscBattery object for deletion.
- Returns:
True if successful.
- Return type:
- DeleteDCMachine(pDCMachine) bool
Deletes a DC machine by passing the IscDCMachine object for deletion.
- Parameters:
pDCMachine (IscDCMachine) – The IscDCMachine object for deletion.
- Returns:
True if successful.
- Return type:
- DeleteConverter(pConverter) bool
Deletes a converter by passing the IscConverter object for deletion.
- Parameters:
pConverter (IscConverter) – The IscConverter object for deletion.
- Returns:
True if successful.
- Return type:
- DeleteChopper(pChopper) bool
Deletes a chopper by passing the IscChopper object for deletion.
- Parameters:
pChopper (IscChopper) – The IscChopper object for deletion.
- Returns:
True if successful.
- Return type:
- DeleteMGSet(pMGSet) bool
Deletes a motor/generator set by passing the IscMGSet object for deletion.
- DeleteVoltageRegulator(pVoltageRegulator) bool
Deletes a voltage regulator by passing the IscVoltageRegulator object for deletion.
- Parameters:
pVoltageRegulator (IscVoltageRegulator) – The IscVoltageRegulator object for deletion.
- Returns:
True if successful.
- Return type:
- DeleteAnnotation(pAnnotation) bool
Deletes an annotation by passing the IscAnnotation object for deletion.
- Parameters:
pAnnotation (IscAnnotation) – The IscAnnotation object for deletion.
- Returns:
True if successful.
- Return type:
- DeleteUnbalancedLoad(pUnbalancedLoad) bool
Deletes an unbalanced load by passing the IscUnbalancedLoad object for deletion.
- Parameters:
pUnbalancedLoad (IscUnbalancedLoad) – The IscUnbalancedLoad object for deletion.
- Returns:
True if successful.
- Return type:
- DeleteUnbalancedLine(pUnbalancedLine) bool
Deletes an unbalanced line by passing the IscUnbalancedLine object for deletion.
- Parameters:
pUnbalancedLine (IscUnbalancedLine) – The IscUnbalancedLine object for deletion.
- Returns:
True if successful.
- Return type:
- DeleteUnbalancedTransformer(pUnbalancedTransformer) bool
Deletes an unbalanced transformer by passing the IscUnbalancedTransformer object for deletion.
- Parameters:
pUnbalancedTransformer (IscUnbalancedTransformer) – The IscUnbalancedTransformer object for deletion.
- Returns:
True if successful.
- Return type:
- DeleteBusBarSlack(strBusbar: str) bool
Deletes a slack busbar from the network busbar slack list. It does not delete the busbar in the same way as DeleteBusbar(pBusbar), instead it uses the busbar name for deletion.
- GetRatingIndex(strName: str) int
Returns an integer representing the rating set for a specified name.
- GetBranchRatingName(nIndex: int) str
Returns the name representing the rating set identified by an index.
- SetRatingName(nIndex: int, strName: str) None
Sets the name of the rating set identified by an index to specified name. If the rating set name does not exist it will be created by the function.
- SetLimitsForOverloadChecks(dMaxVoltsPU: float, dMinVoltsPU: float, nRatingIndex: int, strDiagram: str) None
Sets the limits for overload checking on diagrams.
- CreateLoadProfilePQActual(strName: str) int
Returns the load profile UID representing a load profile which uses actual MW and MVAr values. No checking is made on duplicate profile names.
- CreateLoadProfilePQActualNoGraphics(strName: str)
Returns an IscLoadProfilePQActual object representing a load profile which uses actual MW and MVAr values. No checking is made on duplicate profile names.
- Parameters:
strName (str) – The profile name.
- Returns:
IscLoadProfilePQActual object.
- Return type:
IscLoadProfilePQActual
- CreateGeneratorProfilePQActual(strName: str) int
Returns the generator profile UID representing a generator profile which uses actual MW and MVAr values. No checking is made on duplicate profile names.
- CreateGeneratorProfilePQActualNoGraphics(strName: str)
Returns an IscGeneratorProfilePQActual object representing a generator profile which uses actual MW and MVAr values. No checking is made on duplicate profile names.
- Parameters:
strName (str) – The profile name.
- Returns:
IscGeneratorProfilePQActual object.
- Return type:
IscGeneratorProfilePQActual
- CreateUMachineProfilePQActual(strName: str) int
Returns the universal machine profile UID representing a universal machine profile which uses actual MW and MVAr values. No checking is made on duplicate profile names.
- CreateUMachineProfilePQActualNoGraphics(strName: str)
Returns an IscUMachineProfilePQActual object representing a universal machine profile which uses actual MW and MVAr values. No checking is made on duplicate profile names.
- Parameters:
strName (str) – The profile name.
- Returns:
IscUMachineProfilePQActual object.
- Return type:
IscUMachineProfilePQActual
- CreateLoadProfilePQScale(strName: str) int
Returns the load profile UID representing a load which scales the existing MW and MVAr values. No checking is made on duplicate profile names.
- CreateLoadProfilePQScaleNoGraphics(strName: str)
Returns an IscLoadProfilePQScale object representing a load profile which scales the existing MW and MVAr values. No checking is made on duplicate profile names.
- Parameters:
strName (str) – The profile name.
- Returns:
IscLoadProfilePQScale object.
- Return type:
IscLoadProfilePQScale
- CreateGeneratorProfilePQScale(strName: str) int
Returns the generator profile UID representing a generator which scales the existing MW and MVAr values. No checking is made on duplicate profile names.
- CreateGeneratorProfilePQScaleNoGraphics(strName: str)
Returns an IscGeneratorProfilePQScale object representing a generator profile which scales the existing MW and MVAr values. No checking is made on duplicate profile names.
- Parameters:
strName (str) – The profile name.
- Returns:
IscGeneratorProfilePQScale object.
- Return type:
IscGeneratorProfilePQScale
- GetLoadProfilePQActuals()
Returns a dictionary of all IscLoadProfilePQActual objects in the network for actual load profiles. The keys are the profile UIDs and the values are the IscLoadProfilePQActual objects.
- GetGeneratorProfilePQActuals()
Returns a dictionary of all IscGeneratorProfilePQActual objects in the network for actual generator profiles. The keys are the profile UIDs and the values are the IscGeneratorProfilePQActual objects.
- GetUMachineProfilePQActuals()
Returns a dictionary of all IscUMachineProfilePQActual objects in the network for actual universal machine profiles. The keys are the profile UIDs and the values are the IscUMachineProfilePQActual objects.
- GetLoadProfilePQScales()
Returns a dictionary of all IscLoadProfilePQScale objects in the network for scaled load profiles. The keys are the profile UIDs and the values are the IscLoadProfilePQScale objects.
- GetGeneratorProfilePQScales()
Returns a dictionary of all IscGeneratorProfilePQScale objects in the network for scaled generator profiles. The keys are the profile UIDs and the values are the IscGeneratorProfilePQScale objects.
- GetLoadProfilePQActual(nUID: int)
- GetLoadProfilePQActual(strPythonName: str)
Returns an IscLoadProfilePQActual object for the actual MW/MVAr load profile with a specified UID or python name.
- GetGeneratorProfilePQActual(nUID: int)
- GetGeneratorProfilePQActual(strPythonName: str)
Returns an IscGeneratorProfilePQActual object for the actual MW/MVAr generator profile with a specified UID or python name.
- GetUMachineProfilePQActual(nUID: int)
- GetUMachineProfilePQActual(strPythonName: str)
Returns an IscUMachineProfilePQActual object for the actual MW/MVAr universal machine profile with a specified UID or python name.
- GetLoadProfilePQScale(nUID: int)
- GetLoadProfilePQScale(strPythonName: str)
Returns an IscLoadProfilePQScale object for the scaled MW/MVAr load profile with a specified UID or python name.
- GetGeneratorProfilePQScale(nUID: int)
- GetGeneratorProfilePQScale(strPythonName: str)
Returns an IscGeneratorProfilePQScale object for the scaled MW/MVAr generator profile with a specified UID or python name.
- Parameters:
strPythonName (str) – The profile name.
- Returns:
IscGeneratorProfilePQScale object for the scaled MW/MVAr generator profile. Returns None if a profile cannot be found.
- Return type:
IscGeneratorProfilePQScale
- DeleteLoadProfilePQActual(pProfile) bool
Deletes the actual load profile from the network by passing an IscLoadProfilePQActual object.
- Parameters:
pProfile (IscLoadProfilePQActual) – The profile to be deleted.
- Returns:
True if successful.
- Return type:
- DeleteLoadProfilePQScale(pProfile) bool
Deletes the scaled load profile from the network by passing an IscLoadProfilePQScale object.
- Parameters:
pProfile (IscLoadProfilePQScale) – The profile to be deleted.
- Returns:
True if successful.
- Return type:
- DeleteGeneratorProfilePQActual(pProfile) bool
Deletes the actual generator profile from the network by passing an IscGeneratorProfilePQActual object.
- Parameters:
pProfile (IscGeneratorProfilePQActual) – The profile to be deleted.
- Returns:
True if successful.
- Return type:
- DeleteGeneratorProfilePQScale(pProfile) bool
Deletes the scaled generator profile from the network by passing an IscGeneratorProfilePQScale object.
- Parameters:
pProfile (IscGeneratorProfilePQScale) – The profile to be deleted.
- Returns:
True if successful.
- Return type:
- DeleteUMachineProfilePQActual(pProfile) bool
Deletes the actual universal machine profile from the network by passing an IscUMachineProfilePQActual object.
- Parameters:
pProfile (IscUMachineProfilePQActual) – The profile to be deleted.
- Returns:
True if successful.
- Return type:
- RunProfile() int
Runs the profile study. Returns the number of profile categories which have been run.
- Returns:
The number of profile categories which have been run.
- Return type:
- GetDiagram(strName: str)
Returns an IscDiagram instance for the diagram with given name contained in the network.
- Parameters:
strName (str) – The name of the diagram.
- Returns:
The diagram of the IPSA network.
- Return type:
- GetAllDiagrams()
Returns a list of IscDiagram objects for the network.
- Returns:
List of IscDiagram objects for the network.
- Return type:
- GetAnalysisLF()
Returns an IscAnalysisLF object which can be used to get and set the load flow analysis parameters.
- Returns:
IscAnalysisLF object.
- Return type:
- SetResultsForTheseUIDs(nUIDs: int) None
This function restricts the number of results that are returned from the load flow calculation engine to Python in order to reduce the execution time. Call this function before DoLoadFlow() or DoSimpleLoadFlow().
- Parameters:
nUIDs (int) – The component UIDs.
- DoLoadFlow(bNoEngineLoad: bool, bDontUpdateData: bool, bUseDC: bool = False) bool
Performs a load flow calculation.
- Parameters:
bNoEngineLoad (bool) – If False (default), loads the engine from the IPSA model before doing a load flow calculation. If True, skips the load from the IPSA model and uses whatever network is currently loaded in the engine.
bDontUpdateData (bool) – If False (default), allows the load flow results being written back to the network model data (e.g. Busbar voltages and angles). If True, skips this stage, so the network model remains the same as it was loaded. Note that calling the function with no arguments is allowed and works as if it has been called with bNoEngineLoad and bDontUpdateData set to False.
bUseDC (bool) – Tells the user that they can run a DC load flow instead of a normal load flow. If True, the program will run a DC load flow instead of an AC load flow. Default value of bUseDC is False.
- Returns:
True if the load flow converges, False on a non-convergence.
- Return type:
- DoSimpleLoadFlow()
Performs a load flow calculation without prompting the user to confirm analysis options. Identical to the DoLoadFlow(False, False) call with no user interaction.
- Returns:
True if the load flow converges, False on a non-convergence.
- Return type:
- GetAnalysisDCLF()
Returns an IscAnalysisDCLF object which can be used to get and set the DC load flow analysis parameters.
- Returns:
IscAnalysisDCLF object.
- Return type:
- DoDCLoadFlow()
Performs a DC load flow calculation while assuming you do not want to update the engines or results.
- Returns:
True if the load flow converges, False on a non-convergence.
- Return type:
- SetBranchStatus(nUID: int, nStatus: int) None
Changes the status of the branch or transformer UID in the calculation engine. This is a convenience function which can be used when performance is important and the branch status does not need to be stored with the network. Note: If the nUID is not a branch or transformer UID, it does nothing!
- SetLoadStatus(nUID: int, nStatus: int) None
Changes the status of the load UID in the calculation engine. This is a convenience function which can be used when performance is important and the load status does not need to be stored with the network.
- SetLoadPower(nUID: int, dMW: float, dMVAr: float) None
Changes the power of the load UID in the calculation engine. This is a convenience function which can be used when performance is important and the load power does not need to be stored with the network.
- SetGeneratorStatus(nUID: int, nStatus: int) None
Changes the status of the generator UID in the calculation engine. This is a convenience function which can be used when performance is important and the generator status does not need to be stored with the network.
- SetGeneratorPower(nUID: int, dMW: float, dMVAr: float) None
Changes the power of the generator UID in the calculation engine. This is a convenience function which can be used when performance is important and the generator power does not need to be stored with the network.
- GetLoadFlowMessage() str
Returns the last load flow engine message.
- Returns:
The last load flow engine message.
- Return type:
- SetEngineMessageSuppression(nLevel: int) None
Sets the verbosity of the load flow messages that are generated in the IPSA progress window. This can provide a speed improvement for complex scripts
0 = Displays all messages
1 = Shows only error messages
2 = Shows no engine error messages
- Parameters:
nLevel (int) – The verbosity of the load flow messages.
- GetHighestBusbarVoltagePU() float
Returns the highest busbar voltage in per unit.
- Returns:
The highest busbar voltage in per unit.
- Return type:
- GetLowestBusbarVoltagePU() float
Returns the lowest busbar voltage in per unit. GetLFSummaryResults()must be called first.
- Returns:
The lowest busbar voltage in per unit.
- Return type:
- GetTotalGenerationOutputMW() float
Returns the total network generation real power, excluding slack generators, in MW. GetLFSummaryResults() must be called first.
- Returns:
The total network generation real power, excluding slack generators, in MW.
- Return type:
- GetTotalGenerationOutputMVAr() float
Returns the total network generation reactive power, excluding slack generators, in MVAr. GetLFSummaryResults() must be called first.
- Returns:
The total network generation reactive power, excluding slack generators, in MVAr.
- Return type:
- GetTotalLoadInputMW() float
Returns the total network load real power in MW. GetLFSummaryResults() must be called first.
- Returns:
The total network load real power in MW.
- Return type:
- GetTotalLoadInputMVAr() float
Returns the total network load reactive power in MVAr. GetLFSummaryResults() must be called first.
- Returns:
The total network load reactive power in MVAr.
- Return type:
- GetTotalInductionInputMW() float
Returns the total network induction motor real power in MW. GetLFSummaryResults() must be called first.
- Returns:
The total network induction motor real power in MW.
- Return type:
- GetTotalInductionInputMVAr() float
Returns the total network induction motor load in MVAr. GetLFSummaryResults() must be called first.
- Returns:
The total network induction motor load in MVAr.
- Return type:
- GetTotalUniMachineOutputMW() float
Returns the total network universal machine generation real power in MW. GetLFSummaryResults() must be called first.
- Returns:
The total network universal machine generation real power in MW.
- Return type:
- GetTotalUniMachineOutputMVAr() float
Returns the total network universal machine generation reactive power in MVAr. GetLFSummaryResults() must be called first.
- Returns:
The total network universal machine generation reactive power in MVAr.
- Return type:
- GetSlackOutputMW() float
Returns the total network slack generation real power in MW. GetLFSummaryResults() must be called first.
- Returns:
The total network slack generation real power in MW.
- Return type:
- GetSlackOutputMVAr() float
Returns the total network slack generation reactive power in MVAr. GetLFSummaryResults() must be called first.
- Returns:
The total network slack generation reactive power in MVAr.
- Return type:
- GetNumberOutsideLimits() int
Returns the number of busbars outside voltage limits plus the number of overloaded branches and transformers.
- Returns:
The number of busbars outside voltage limits plus the number of overloaded branches and transformers.
- Return type:
- GetOutsideLimitText() str
Returns a string detailing the busbar, branch or transformer with the most excessive overload/overvoltage in percentage terms. GetNumberOutsideLimits() must be called first. The name returned is the Python name of the component, e.g. Busbar1.Busbar2.Transformer
- Returns:
A string detailing the busbar, branch or transformer with the most excessive overload/overvoltage in percentage terms.
- Return type:
- AreLFLimitsIdentical() bool
Returns True if the LF limits are identical.
- Returns:
True if the LF limits are identical.
- Return type:
- SaveLFState() int
Saves the current LF state and returns a state handle to restore it with.
- Returns:
State handle to restore the current LF state.
- Return type:
- RestoreLFState(nStateIndex: int) bool
Restore the LF state. This function can fail if the number of items in a network is different from when the state was saved, which can happen in a subtle way if zero impedance branches are switched in or out.
- GetBusbarsOutsideLimits() Dict[int, bool]
Returns a dictionary of busbar UIDs that are outside voltage limits for the previous load flow study.
- GetBranchesOutsideLimits() Dict[int, bool]
Returns a dictionary of branch UIDs that are above their ratings for the previous load flow study.
- GetTransformersOutsideLimits() Dict[int, bool]
Returns a dictionary of transformer UIDs that are above their ratings for the previous load flow study.
- RunArcFlashForBusbar(nBusbarUID: int, dBusFaultCurrentkA: float, dOperatingTimeSec: float) bool
Performs an ArcFlash calculation for a single busbar using the fault current in kA and the operating time. The default reduction for comparison is 15% less for the current and 2.5x the arc duration given.
- RunTotalArcFlash(bRunIPSAFaultLevel: bool, dOperatingTimeSec: float, dReducedOperatingTimeSec: float) List[Dict[int, bool]]
Runs a thorough arc flash calculation for the whole network. Note that here either the analysis class default for the fault current calculation is used or IPSA can run a fault level to calculate the fault current at each busbar. Returns a list of pairs that map the UID to a boolean of whether the code ran correctly or not.
- Parameters:
- Returns:
A a list of pairs that map the UID to a boolean of whether the code ran correctly or not.
- Return type:
- DoFlatStart(bSetBuses: bool, bSetTransformerTaps: bool, bSetIMSlips: bool) None
Runs a flatstart preparation for load flow depending on whether the user wants to flat start the busbar voltages, transformer tap positions, induction machine rotor slips or a combination of all 3.
- GetAnalysisFL()
Returns an IscAnlaysisFL object which can be used to get and set the fault level analysis parameters.
- Returns:
IscAnlaysisFL object.
- Return type:
IscAnlaysisFL
- DoIECFaultLevel() bool
Performs an IEC 60909 fault calculation.
- Returns:
True if successful.
- Return type:
- GetAnalysisHM()
Returns an IscAnlaysisHM object which can be used to get and set the load flow analysis parameters.
- Returns:
IscAnlaysisHM object.
- Return type:
IscAnlaysisHM
- DoHarmPenetration() bool
Performs a harmonic penetration calculation.
- Returns:
True if successful.
- Return type:
- DoHarmSensitivity() bool
Performs a harmonic voltage sensitivity calculation.
- Returns:
True if successful.
- Return type:
- DoStorageFlip(lGeneratorsUID: List[int]) None
Flips the storage of all defined Energy Storage units in the given list of UIDs.
- DoSingleStorageFlip(nGeneratorUID: int) None
Flips the storage of the Energy Storage unit defined by its UID.
- Parameters:
nGeneratorUID (int) – The generator UID.
- DoGlobalStorageFlip(bFlipsImports: bool, bFlipExports: bool) None
Flips all the storage units defined in the network depending on whether you want to flip imports to exports or vice versa.
- RunContingency(nUID: int, bUseProfiles: bool) None
Performs the contingency study identified by the integer UID.
- Parameters:
nUID (int) – The contingency study UID.
bUseProfiles (bool) – If False then the contingency study is performed using the standard load and generator data. If True then the contingency study is performed using load and generator profiles assigned in the network. In this instance the switching operation is performed first followed by a load flow calculation for all of the profile categories.
- CreateContingency(nDepth: int, bExtendToBreakers: bool) int
Creates a new contingency study and returns the UID of the study created. The depth of the study is configured as follows:
1 = N - 1
2 = N - 2
3 = N - 3
4 = N - 1 - 1
- Parameters:
- Returns:
The UID of the contingency created.
- Return type:
- CreateSpecificContingency(nDepth: int, bExtendToBreakers: bool, lBusbarsRequired) int
Will design and create a specific contingency of given depth with only the busbars defined by the given list.
- Parameters:
nDepth (int) – The depth of the study.
bExtendToBreakers (bool) – If False then individual branches and transfers are switched out during the study. If True then the nearest circuit breakers are switched out allowing multiple components to be switched for each study.
lBusbarsRequired (list(IscBusbar)) – The specified list of busbars.
- Returns:
The UID of the contingency created.
- Return type:
- GetStudies(nReportType: int) List[str]
Returns a list of strings containing the individual automation or contingency study titles.
- Automation studies:
100 = All studies in the order run
101 = All solved studies in the order run
102 = All solved studies listed by severity of overload
103 = All solved studies listed by the number of items exceeding limits
104 = All studies that failed to solve
- Contingency studies:
120 = All studies in the order run
121 = All solved studies in the order run
122 = All solved studies listed by severity of overload
123 = All solved studies listed by the number of items exceeding limits
124 = All studies that failed to solve
- GetStudyRowTitles(nReportType: int) str
Returns a string in html format for the table header row associated with the automation or contingency results.
- Automation studies:
100 = All studies in the order run
101 = All solved studies in the order run
102 = All solved studies listed by severity of overload
103 = All solved studies listed by the number of items exceeding limits
104 = All studies that failed to solve
- Contingency studies:
120 = All studies in the order run
121 = All solved studies in the order run
122 = All solved studies listed by severity of overload
123 = All solved studies listed by the number of items exceeding limits
124 = All studies that failed to solve
- GetStudyRowOutput(nReportType: int, strStudyTitle: str) str
Returns a string in html format for the table rows associated with the specified automation or contingency study.
- Automation studies:
100 = All studies in the order run
101 = All solved studies in the order run
102 = All solved studies listed by severity of overload
103 = All solved studies listed by the number of items exceeding limits
104 = All studies that failed to solve
- Contingency studies:
120 = All studies in the order run
121 = All solved studies in the order run
122 = All solved studies listed by severity of overload
123 = All solved studies listed by the number of items exceeding limits
124 = All studies that failed to solve
- GetStudyIDs(nReportType: int) List[int]
Returns a list containing the individual automation or contingency study IDs.
- Automation studies:
100 = All studies in the order run
101 = All solved studies in the order run
102 = All solved studies listed by severity of overload
103 = All solved studies listed by the number of items exceeding limits
104 = All studies that failed to solve
- Contingency studies:
120 = All studies in the order run
121 = All solved studies in the order run
122 = All solved studies listed by severity of overload
123 = All solved studies listed by the number of items exceeding limits
124 = All studies that failed to solve
- GetContingencyStudyItemResults(nStudyID: int) Dict[int, int]
Returns a dict of the component UIDs to the result ID for each component for the study with the given ID. The result IDs can be understood as followed:
1 = Busbar over voltage (balanced or unbalanced)
2 = Busbar under voltage (balanced or unbalanced)
3 = Branch over rating (balanced or unbalanced)
4 = Transformer over rating (2- or 3- winding, or unbalanced)
0 = Otherwise
- GetAutomationStudyItemResults(nStudyID: int) Dict[int, int]
Returns a dict of the component UIDs to the result ID for each component for the study with the given ID. The result IDs can be understood as followed:
1 = Busbar over voltage (balanced or unbalanced)
2 = Busbar under voltage (balanced or unbalanced)
3 = Branch over rating (balanced or unbalanced)
4 = Transformer over rating (2- or 3- winding, or unbalanced)
0 = Otherwise
- GetStudyProfileIndex(nStudyID: int) int
Returns the profile category index associated with the contingency or automation study. This is used to identify which profile category is associated with the study ID.
- GetStudyItemsSwitchedOutUIDs(nStudyID: int) List[int]
Returns a list of integers containing the component UIDs for switched out components in contingency study ID.
- GetContingencyStudyResultMagnitude(nStudyID: int, nResultID: int) float
Returns the result magnitude for the result ID in contingency study ID. The nResultID is obtained from the GetContingencyStudyItemResults function. For busbars the return value is the per unit busbar voltage. For branches and transformers the return value is the largest power flow in MVA.
- GetContingencyStudyDynamicallyOverloadedUIDs(nStudyID: int) List[int]
Returns a list of integers which represent lines which are overloaded due to the action of a dynamic rating plugin. Dynamic rating plugins can be used to model the thermal response of OHLs, transformers and cables and provide ratings which are based on these models. The normal IPSA rating of a component is overridden if it has a dynamic rating plugin applied. In this case this function returns the UIDs of all such overloaded components in contingency study ID.
- GetContingencyBranchRatingIndex() int
Returns the IPSA rating index of the rating set used during the contingency study.
- Returns:
The IPSA rating index.
- Return type:
- RunReliability() bool
Performs the reliability study on the current network.
- Returns:
True if successful.
- Return type:
- GetReliabilityCI() float
Returns the customer interruptions (CI) for the full network.
- Returns:
The customer interruptions (CI) for the full network.
- Return type:
- GetReliabilityCML() float
Returns the customer minutes lost (CMLs) for the full network.
- Returns:
The customer minutes lost (CMLs) for the full network.
- Return type:
- GetReliabilitySAIFI() float
Returns the system average interruption frequency index (SAIFI) for the full network.
- Returns:
The system average interruption frequency index (SAIFI) for the full network.
- Return type:
- GetReliabilityASIFI() float
Returns the average service interruption frequency index (ASIFI) for the full network.
- Returns:
The average service interruption frequency index (ASIFI) for the full network.
- Return type:
- GetReliabilitySAIDI() float
Returns the system average interruption duration index (SAIDI) for the full network.
- Returns:
The system average interruption duration index (SAIDI) for the full network.
- Return type:
- GetReliabilityCAIDI() float
Returns the customer average interruption duration index (CAIDI) for the full network.
- Returns:
The customer average interruption duration index (CAIDI) for the full network.
- Return type:
- GetReliabilityASIDI() float
Returns the average system interruption duration index (ASIDI) for the full network.
- Returns:
The average system interruption duration index (ASIDI) for the full network.
- Return type:
- GetReliabilityASAI() float
Returns the average service availability index (ASAI) for the full network.
- Returns:
The average service availability index (ASAI) for the full network.
- Return type:
- GetReliabilityASUI() float
Returns the average service unavailability index (ASUI) for the full network.
- Returns:
The average service unavailability index (ASUI) for the full network.
- Return type:
- GetBusbarsWithArcFlashResults() List[int]
Returns a list of busbar UIDs which have arc flash results. This is then used to get arc flash results for individual busbars.
- GetArcFlashCSV(nBusbarUID: int, bUseLegacyStandard: bool) str
Creates a CSV result for a given busbar arcflash calculation and uses the 2018 standard if bUseLegacyStandard is set to False.
- GetTotalArcFlashCSV() str
Returns total CSV formatted function for ArcFlash results from all busbars.
- Returns:
The total CSV formatted function for ArcFlash results from all busbars.
- Return type:
- GetArcFlashReportText(nUID: int) str
Returns a string containing the arc flash result for the busbar identified by the UID.
- GetAnalysisAF()
Returns an IscAnalysisAF object which can be used to get and set the ArcFlash analysis parameters.
- Returns:
IscAnlaysisAF object.
- Return type:
IscAnlaysisAF
- SetBusbarOverloadLimits(dBusVoltHighPU: float, dBusVoltlowPU: float) None
Sets the network global high and low limits for busbar overloads.
Profile Class Functions
The functions for the 5 profile classes (IscLoadProfilePQActual
, IscLoadProfilePQScale
,
IscGeneratorProfilePQActual
, IscGeneratorProfilePQScale
, IscUMachineProfilePQActual
) are as follows:
- class ipsa.Isc__ProfilePQ__
Provides access to the actual given profile class.
- SetCategoryNames(dictCategories: Dict[int, str]) None
Sets up the profile categories for the profile instance. The dictionary should comprise a set of integer keys and string values. The string values are used as the individual category labels whilst the integer keys are only used internally. It is recommended that the keys are numbered sequentially starting from 0.
For example, passing the following dictionary would add 3 categories to the profile with the strings as the categories:
categories = {0: “00:00”, 1: “00:30”, 2: “01:00”}
- GetCategoryNames() Dict[int, str]
Returns the profile categories for the profile instance. The string values are used as the individual category labels whilst the integer keys are only used internally.
- SetPMW(dictCategoryToMW: Dict[int, float]) None
Assigns MW values to the profile categories. The dictionary should comprise a set of integer keys and float values. The float values are the MW data values whilst the integer keys should be identical to those being used when defining the categories. For scaling profiles the values are the per unit scaling values. For example, passing the following dictionary would set the MW data:
dictCategoryToMW = {0: 1.23, 1: 3.73, 2: 5.67}
- GetPMW() Dict[int, float]
Returns the MW values assigned to the profile categories. The float values are the MW data values whilst the integer keys should be identical to those used defining the categories. For scaling profiles the values are the per unit scaling values.
- SetQMVAr(dictCategoryToMVAr: Dict[int, float]) None
Assigns MVAr values to the profile categories. The dictionary should comprise a set of integer keys and float values. The float values are the MVAr data values whilst the integer keys should be identical to those being used when defining the categories. For scaling profiles the values are the per unit scaling values. For example, passing the following dictionary would set the MVAr data:
dictCategoryToMVAr = {0: 1.23, 1: 3.73, 2: 5.67}
- GetQMVAr(dictCategoryToMVAr: Dict[int, float]) None
Returns the MVAr values assigned to the profile categories. The float values are the MVAr data values whilst the integer keys should be identical to those used defining the categories. For scaling profiles the values are the per unit scaling values.