GridCal.Engine.Simulations package

GridCal.Engine.Simulations.maketrans()

Return a translation table usable for str.translate().

If there is only one argument, it must be a dictionary mapping Unicode ordinals (integers) or characters to Unicode ordinals, strings or None. Character keys will be then converted to ordinals. If there are two arguments, they must be strings of equal length, and in the resulting dictionary, each character in x will be mapped to the character at the same position in y. If there is a third argument, it must be a string, whose characters will be mapped to None in the result.

Subpackages

Submodules

GridCal.Engine.Simulations.result_types module

class GridCal.Engine.Simulations.result_types.ResultTypes

Bases: enum.Enum

An enumeration.

BatteryEnergy = ('Battery energy', <DeviceType.BatteryDevice: 'Battery'>)
BatteryPower = ('Battery power', <DeviceType.BatteryDevice: 'Battery'>)
BranchAngles = ('Branch voltage angles', <DeviceType.BranchDevice: 'Branch'>)
BranchCurrent = ('Branch current', <DeviceType.BranchDevice: 'Branch'>)
BranchCurrentAverage = ('Branch current avg', <DeviceType.BranchDevice: 'Branch'>)
BranchCurrentCDF = ('Branch current CDF', <DeviceType.BranchDevice: 'Branch'>)
BranchCurrentStd = ('Branch current std', <DeviceType.BranchDevice: 'Branch'>)
BranchLoading = ('Branch loading', <DeviceType.BranchDevice: 'Branch'>)
BranchLoadingAverage = ('Branch loading avg', <DeviceType.BranchDevice: 'Branch'>)
BranchLoadingCDF = ('Branch loading CDF', <DeviceType.BranchDevice: 'Branch'>)
BranchLoadingStd = ('Branch loading std', <DeviceType.BranchDevice: 'Branch'>)
BranchLosses = ('Branch losses', <DeviceType.BranchDevice: 'Branch'>)
BranchLossesAverage = ('Branch losses avg', <DeviceType.BranchDevice: 'Branch'>)
BranchLossesCDF = ('Branch losses CDF', <DeviceType.BranchDevice: 'Branch'>)
BranchLossesStd = ('Branch losses std', <DeviceType.BranchDevice: 'Branch'>)
BranchOverloads = ('Branch overloads', <DeviceType.BranchDevice: 'Branch'>)
BranchPower = ('Branch power', <DeviceType.BranchDevice: 'Branch'>)
BranchVoltage = ('Branch voltage drop', <DeviceType.BranchDevice: 'Branch'>)
BusActivePower = ('Bus active power', <DeviceType.BusDevice: 'Bus'>)
BusPower = ('Bus power', <DeviceType.BusDevice: 'Bus'>)
BusPowerCDF = ('Bus power CDF', <DeviceType.BusDevice: 'Bus'>)
BusReactivePower = ('Bus reactive power', <DeviceType.BusDevice: 'Bus'>)
BusShortCircuitPower = ('Bus short circuit power', <DeviceType.BusDevice: 'Bus'>)
BusVoltage = ('Bus voltage', <DeviceType.BusDevice: 'Bus'>)
BusVoltageAngle = ('Bus voltage angle', <DeviceType.BusDevice: 'Bus'>)
BusVoltageAverage = ('Bus voltage avg', <DeviceType.BusDevice: 'Bus'>)
BusVoltageCDF = ('Bus voltage CDF', <DeviceType.BusDevice: 'Bus'>)
BusVoltageModule = ('Bus voltage module', <DeviceType.BusDevice: 'Bus'>)
BusVoltagePolar = ('Bus voltage (polar)', <DeviceType.BusDevice: 'Bus'>)
BusVoltageStd = ('Bus voltage std', <DeviceType.BusDevice: 'Bus'>)
ControlledGeneratorPower = ('Controlled generator power', <DeviceType.GeneratorDevice: 'Generator'>)
ControlledGeneratorShedding = ('Controlled generator shedding', <DeviceType.GeneratorDevice: 'Generator'>)
LoadShedding = ('Load shedding', <DeviceType.LoadDevice: 'Load'>)
ShadowPrices = ('Bus shadow prices', <DeviceType.BusDevice: 'Bus'>)
SimulationError = ('Error', <DeviceType.BusDevice: 'Bus'>)
class GridCal.Engine.Simulations.result_types.SimulationTypes

Bases: enum.Enum

An enumeration.

Cascade_run = 'Cascade'
LatinHypercube_run = 'Latin Hypercube'
MonteCarlo_run = 'Monte Carlo'
OPFTimeSeries_run = 'OPF Time series'
OPF_run = 'Optimal power flow'
PowerFlow_run = 'power flow'
ShortCircuit_run = 'Short circuit'
TimeSeries_run = 'Time series power flow'
TopologyReduction_run = 'Topology reduction'
TransientStability_run = 'Transient stability'
VoltageCollapse_run = 'Voltage collapse'