VeraGridEngine.Compilers.Gslv.Devices packageο
Submodulesο
VeraGridEngine.Compilers.Gslv.Devices.areas moduleο
- VeraGridEngine.Compilers.Gslv.Devices.areas.add_areas(circuit: MultiCircuit, gslv_grid: MultiCircuit) Dict[Area, Area][source]ο
Add GSLV Areas :param circuit: VeraGrid circuit :param gslv_grid: GSLV Circuit :return: Dictionary [VeraGrid area] -> GSLV Area
VeraGridEngine.Compilers.Gslv.Devices.associations moduleο
- VeraGridEngine.Compilers.Gslv.Devices.associations.add_emission_gases(circuit: MultiCircuit, gslv_grid: MultiCircuit) Dict[EmissionGas, EmissionGas][source]ο
Add every VeraGrid emission gas to the target GSLV grid.
- Parameters:
circuit β VeraGrid circuit.
gslv_grid β GSLV circuit.
- Returns:
VeraGrid-to-GSLV emission gas lookup.
- VeraGridEngine.Compilers.Gslv.Devices.associations.add_fuels(circuit: MultiCircuit, gslv_grid: MultiCircuit) Dict[Fuel, Fuel][source]ο
Add every VeraGrid fuel to the target GSLV grid.
- Parameters:
circuit β VeraGrid circuit.
gslv_grid β GSLV circuit.
- Returns:
VeraGrid-to-GSLV fuel lookup.
- VeraGridEngine.Compilers.Gslv.Devices.associations.add_technologies(circuit: MultiCircuit, gslv_grid: MultiCircuit) Dict[Technology, Technology][source]ο
Add every VeraGrid technology to the target GSLV grid.
- Parameters:
circuit β VeraGrid circuit.
gslv_grid β GSLV circuit.
- Returns:
VeraGrid-to-GSLV technology lookup.
- VeraGridEngine.Compilers.Gslv.Devices.associations.convert_emission_gas(elm: EmissionGas) EmissionGas[source]ο
Convert one VeraGrid emission gas into one GSLV emission gas.
- Parameters:
elm β VeraGrid emission gas.
- Returns:
GSLV emission gas.
- VeraGridEngine.Compilers.Gslv.Devices.associations.convert_fuel(elm: Fuel) Fuel[source]ο
Convert one VeraGrid fuel into one GSLV fuel.
- Parameters:
elm β VeraGrid fuel.
- Returns:
GSLV fuel.
- VeraGridEngine.Compilers.Gslv.Devices.associations.convert_technology(elm: Technology) Technology[source]ο
Convert one VeraGrid technology into one GSLV technology.
- Parameters:
elm β VeraGrid technology.
- Returns:
GSLV technology.
VeraGridEngine.Compilers.Gslv.Devices.batteries moduleο
- VeraGridEngine.Compilers.Gslv.Devices.batteries.add_battery_data(circuit: MultiCircuit, gslv_grid: pg.MultiCircuit, bus_dict: Dict[str, 'pg.Bus'], facility_dict: Dict[Facility, 'pg.Facility'], market_unit_dict: Dict[MarketUnit, 'pg.MarketUnit'], technology_dict: Dict[Technology, 'pg.Technology'], fuel_dict: Dict[Fuel, 'pg.Fuel'], emission_gas_dict: Dict[EmissionGas, 'pg.EmissionGas'], time_series: bool, n_time: int = 1, time_indices: IntVec | None = None, opf_results: OptimalPowerFlowResults | None = None, add_three_phase_data: bool = False) None[source]ο
Add every VeraGrid battery to the target GSLV grid.
- Parameters:
circuit β VeraGrid circuit.
gslv_grid β GSLV circuit.
bus_dict β Bus lookup by VeraGrid id tag.
facility_dict β VeraGrid-to-GSLV facility lookup.
market_unit_dict β VeraGrid-to-GSLV market-unit lookup.
technology_dict β VeraGrid-to-GSLV technology lookup.
fuel_dict β VeraGrid-to-GSLV fuel lookup.
emission_gas_dict β VeraGrid-to-GSLV emission gas lookup.
time_series β Whether the export is time-series based.
n_time β Number of exported time steps.
time_indices β Optional time-series selection.
opf_results β Optional OPF results.
add_three_phase_data β Export sequence impedances needed by three-phase studies.
- Returns:
None.
- VeraGridEngine.Compilers.Gslv.Devices.batteries.battery_control_mode(elm: Battery) GeneratorControlMode[source]ο
Convert one VeraGrid battery control mode to pygslv.
- Parameters:
elm β VeraGrid battery.
- Returns:
Equivalent pygslv control mode.
- VeraGridEngine.Compilers.Gslv.Devices.batteries.convert_battery(k: int, elm: Battery, bus_dict: Dict[str, 'pg.Bus'], facility_dict: Dict[Facility, 'pg.Facility'], market_unit_dict: Dict[MarketUnit, 'pg.MarketUnit'], technology_dict: Dict[Technology, 'pg.Technology'], fuel_dict: Dict[Fuel, 'pg.Fuel'], emission_gas_dict: Dict[EmissionGas, 'pg.EmissionGas'], n_time: int, use_time_series: bool, time_indices: IntVec | None = None, opf_results: OptimalPowerFlowResults | None = None, add_three_phase_data: bool = False) pg.Battery[source]ο
Convert one VeraGrid battery into one GSLV battery.
- Parameters:
k β Battery index.
elm β VeraGrid battery.
bus_dict β Bus lookup by VeraGrid id tag.
facility_dict β VeraGrid-to-GSLV facility lookup.
market_unit_dict β VeraGrid-to-GSLV market-unit lookup.
technology_dict β VeraGrid-to-GSLV technology lookup.
fuel_dict β VeraGrid-to-GSLV fuel lookup.
emission_gas_dict β VeraGrid-to-GSLV emission gas lookup.
n_time β Number of exported time steps.
use_time_series β Whether the export is time-series based.
time_indices β Optional time-series selection.
opf_results β Optional OPF results.
add_three_phase_data β Export sequence impedances needed by three-phase studies.
- Returns:
GSLV battery.
VeraGridEngine.Compilers.Gslv.Devices.branch_groups moduleο
- VeraGridEngine.Compilers.Gslv.Devices.branch_groups.add_branch_groups(circuit: MultiCircuit, gslv_grid: MultiCircuit) Dict[BranchGroup, BranchGroup][source]ο
Add GSLV countries :param circuit: VeraGrid circuit :param gslv_grid: GSLV Circuit :return: Dictionary [VeraGrid country] -> GSLV country
- VeraGridEngine.Compilers.Gslv.Devices.branch_groups.convert_branch_group(country: BranchGroup) BranchGroup[source]ο
- Parameters:
country
- Returns:
VeraGridEngine.Compilers.Gslv.Devices.buses moduleο
- VeraGridEngine.Compilers.Gslv.Devices.buses.add_buses(circuit: MultiCircuit, gslv_grid: MultiCircuit, area_dict: Dict[Area, Area], zone_dict: Dict[Zone, Zone], substation_dict: Dict[Substation, Substation], voltage_level_dict: Dict[VoltageLevel, VoltageLevel], country_dict: Dict[Country, Country], use_time_series: bool, n_time: int = 1, time_indices: ndarray[tuple[Any, ...], dtype[int64]] | None = None) Dict[str, Bus][source]ο
Convert the buses to GSLV buses :param circuit: VeraGrid circuit :param gslv_grid: GSLV circuit :param use_time_series: compile the time series from VeraGrid? otherwise, just the snapshot :param n_time: number of time steps :param time_indices: Array of time indices :param area_dict: Area object translation dictionary :param zone_dict: Zone object translation dictionary :param substation_dict: Substation object translation dictionary :param voltage_level_dict: Voltage level object translation dictionary :param country_dict: Country object translation dictionary :return: bus dictionary buses[uuid] -> Bus
- VeraGridEngine.Compilers.Gslv.Devices.buses.convert_bus(elm: Bus, n_time: int, area_dict: Dict[Area, Area], zone_dict: Dict[Zone, Zone], substation_dict: Dict[Substation, Substation], voltage_level_dict: Dict[VoltageLevel, VoltageLevel], country_dict: Dict[Country, Country], time_indices: ndarray[tuple[Any, ...], dtype[int64]], use_time_series: bool) Bus[source]ο
- Parameters:
elm
n_time
area_dict
zone_dict
substation_dict
voltage_level_dict
country_dict
time_indices
use_time_series
- Returns:
VeraGridEngine.Compilers.Gslv.Devices.contingencies moduleο
- VeraGridEngine.Compilers.Gslv.Devices.contingencies.add_contingencies(circuit: MultiCircuit, gslv_grid: MultiCircuit, n_time: int, groups_dict: Dict[ContingencyGroup, ContingencyGroup])[source]ο
Add GSLV ContingenciesGroup :param circuit: VeraGrid circuit :param gslv_grid: GSLV Circuit :param n_time: number of time steps :param groups_dict: Contingency groups dictionary :return: Dictionary [VeraGrid ContingenciesGroup] -> GSLV ContingenciesGroup
- VeraGridEngine.Compilers.Gslv.Devices.contingencies.add_contingency_groups(circuit: MultiCircuit, gslv_grid: MultiCircuit) Dict[ContingencyGroup, ContingencyGroup][source]ο
Add GSLV ContingenciesGroup :param circuit: VeraGrid circuit :param gslv_grid: GSLV Circuit :return: Dictionary [VeraGrid ContingenciesGroup] -> GSLV ContingenciesGroup
- VeraGridEngine.Compilers.Gslv.Devices.contingencies.convert_contingencies(elm: Contingency, n_time: int, groups_dict: Dict[ContingencyGroup, ContingencyGroup]) Contingency[source]ο
- Parameters:
elm
n_time
groups_dict
- Returns:
- VeraGridEngine.Compilers.Gslv.Devices.contingencies.convert_contingency_groups(elm: ContingencyGroup) ContingencyGroup[source]ο
- Parameters:
elm
- Returns:
VeraGridEngine.Compilers.Gslv.Devices.controllable_shunts moduleο
- VeraGridEngine.Compilers.Gslv.Devices.controllable_shunts.add_controllable_shunts(circuit: MultiCircuit, gslv_grid: MultiCircuit, bus_dict: Dict[str, Bus], facility_dict: Dict[Facility, Facility], technology_dict: Dict[Technology, Technology], time_series: bool, n_time: int = 1, time_indices: ndarray[tuple[Any, ...], dtype[int64]] | None = None, add_three_phase_data: bool = False) None[source]ο
Add every VeraGrid controllable shunt to the target GSLV grid.
- Parameters:
circuit β VeraGrid circuit.
gslv_grid β GSLV circuit.
bus_dict β Bus lookup by VeraGrid id tag.
facility_dict β VeraGrid-to-GSLV facility lookup.
technology_dict β VeraGrid-to-GSLV technology lookup.
time_series β Whether the export is time-series based.
n_time β Number of exported time steps.
time_indices β Optional time-series selection.
add_three_phase_data β Export explicit three-phase fields when available.
- Returns:
None.
- VeraGridEngine.Compilers.Gslv.Devices.controllable_shunts.convert_controllable_shunt(elm: ControllableShunt, bus_dict: Dict[str, Bus], facility_dict: Dict[Facility, Facility], technology_dict: Dict[Technology, Technology], n_time: int, use_time_series: bool, shunt_control_mode_dict: Dict[ShuntControlMode, ShuntControlMode], time_indices: ndarray[tuple[Any, ...], dtype[int64]] | None = None, add_three_phase_data: bool = False) ControllableShunt[source]ο
Convert one VeraGrid controllable shunt into one GSLV controllable shunt.
- Parameters:
elm β VeraGrid controllable shunt.
bus_dict β Bus lookup by VeraGrid id tag.
facility_dict β VeraGrid-to-GSLV facility lookup.
technology_dict β VeraGrid-to-GSLV technology lookup.
n_time β Number of exported time steps.
use_time_series β Whether the export is time-series based.
shunt_control_mode_dict β Shunt-control enum translator.
time_indices β Optional time-series selection.
add_three_phase_data β Export explicit three-phase fields when available.
- Returns:
GSLV controllable shunt.
VeraGridEngine.Compilers.Gslv.Devices.countries moduleο
- VeraGridEngine.Compilers.Gslv.Devices.countries.add_countries(circuit: MultiCircuit, gslv_grid: MultiCircuit) Dict[Country, Country][source]ο
Add GSLV countries :param circuit: VeraGrid circuit :param gslv_grid: GSLV Circuit :return: Dictionary [VeraGrid country] -> GSLV country
VeraGridEngine.Compilers.Gslv.Devices.dc_lines moduleο
- VeraGridEngine.Compilers.Gslv.Devices.dc_lines.add_dc_lines(circuit: MultiCircuit, gslv_grid: MultiCircuit, bus_dict: Dict[str, Bus], time_series: bool, n_time: int = 1, time_indices: ndarray[tuple[Any, ...], dtype[int64]] | None = None)[source]ο
- Parameters:
circuit β VeraGrid circuit
gslv_grid β GSLV circuit
time_series β compile the time series from VeraGrid? otherwise just the snapshot
bus_dict β dictionary of bus id to GSLV bus object
n_time β number of time steps
time_indices β Array of time indices
VeraGridEngine.Compilers.Gslv.Devices.facilities moduleο
- VeraGridEngine.Compilers.Gslv.Devices.facilities.add_facilities(circuit: MultiCircuit, gslv_grid: MultiCircuit) Dict[Facility, Facility][source]ο
- Parameters:
circuit
gslv_grid
- Returns:
VeraGridEngine.Compilers.Gslv.Devices.generators moduleο
- VeraGridEngine.Compilers.Gslv.Devices.generators.add_generators(circuit: MultiCircuit, gslv_grid: pg.MultiCircuit, bus_dict: Dict[str, 'pg.Bus'], facility_dict: Dict[Facility, 'pg.Facility'], market_unit_dict: Dict[MarketUnit, 'pg.MarketUnit'], technology_dict: Dict[Technology, 'pg.Technology'], fuel_dict: Dict[Fuel, 'pg.Fuel'], emission_gas_dict: Dict[EmissionGas, 'pg.EmissionGas'], time_series: bool, n_time: int = 1, time_indices: IntVec | None = None, opf_results: OptimalPowerFlowResults | None = None, add_three_phase_data: bool = False) None[source]ο
Add every VeraGrid generator to the target GSLV grid.
- Parameters:
circuit β VeraGrid circuit.
gslv_grid β GSLV circuit.
bus_dict β Bus lookup by VeraGrid id tag.
facility_dict β VeraGrid-to-GSLV facility lookup.
market_unit_dict β VeraGrid-to-GSLV market-unit lookup.
technology_dict β VeraGrid-to-GSLV technology lookup.
fuel_dict β VeraGrid-to-GSLV fuel lookup.
emission_gas_dict β VeraGrid-to-GSLV emission gas lookup.
time_series β Whether the export is time-series based.
n_time β Number of exported time steps.
time_indices β Optional time-series selection.
opf_results β Optional OPF results.
add_three_phase_data β Export sequence impedances needed by three-phase studies.
- Returns:
None.
- VeraGridEngine.Compilers.Gslv.Devices.generators.convert_generator(k: int, elm: Generator, bus_dict: Dict[str, 'pg.Bus'], facility_dict: Dict[Facility, 'pg.Facility'], market_unit_dict: Dict[MarketUnit, 'pg.MarketUnit'], technology_dict: Dict[Technology, 'pg.Technology'], fuel_dict: Dict[Fuel, 'pg.Fuel'], emission_gas_dict: Dict[EmissionGas, 'pg.EmissionGas'], n_time: int, use_time_series: bool, time_indices: IntVec | None = None, opf_results: OptimalPowerFlowResults | None = None, add_three_phase_data: bool = False) pg.Generator[source]ο
Convert one VeraGrid generator into one GSLV generator.
- Parameters:
k β Generator index.
elm β VeraGrid generator.
bus_dict β Bus lookup by VeraGrid id tag.
facility_dict β VeraGrid-to-GSLV facility lookup.
market_unit_dict β VeraGrid-to-GSLV market-unit lookup.
technology_dict β VeraGrid-to-GSLV technology lookup.
fuel_dict β VeraGrid-to-GSLV fuel lookup.
emission_gas_dict β VeraGrid-to-GSLV emission gas lookup.
n_time β Number of exported time steps.
use_time_series β Whether the export is time-series based.
time_indices β Optional time-series selection.
opf_results β Optional OPF results.
add_three_phase_data β Export sequence impedances needed by three-phase studies.
- Returns:
GSLV generator.
VeraGridEngine.Compilers.Gslv.Devices.hvdc_line moduleο
- VeraGridEngine.Compilers.Gslv.Devices.hvdc_line.add_hvdcs(circuit: MultiCircuit, gslv_grid: MultiCircuit, bus_dict: Dict[str, Bus], time_series: bool, n_time: int = 1, time_indices: ndarray[tuple[Any, ...], dtype[int64]] | None = None) None[source]ο
Add every VeraGrid HVDC line to the target GSLV grid.
- Parameters:
circuit β VeraGrid circuit.
gslv_grid β GSLV circuit.
bus_dict β Bus lookup by VeraGrid id tag.
time_series β Whether the export is time-series based.
n_time β Number of exported time steps.
time_indices β Optional time-series selection.
- Returns:
None.
- VeraGridEngine.Compilers.Gslv.Devices.hvdc_line.convert_hvdc_line(elm: HvdcLine, bus_dict: Dict[str, Bus], n_time: int, use_time_series: bool, time_indices: ndarray[tuple[Any, ...], dtype[int64]] | None) HvdcLine[source]ο
Convert one VeraGrid HVDC line into one GSLV HVDC line.
- Parameters:
elm β VeraGrid HVDC line.
bus_dict β Bus lookup by VeraGrid id tag.
n_time β Number of exported time steps.
use_time_series β Whether the export is time-series based.
time_indices β Optional time-series selection.
- Returns:
GSLV HVDC line.
VeraGridEngine.Compilers.Gslv.Devices.investments moduleο
- VeraGridEngine.Compilers.Gslv.Devices.investments.add_investment_groups(circuit: MultiCircuit, gslv_grid: MultiCircuit) Dict[InvestmentsGroup, InvestmentGroup][source]ο
- Parameters:
circuit
gslv_grid
- Returns:
- VeraGridEngine.Compilers.Gslv.Devices.investments.add_investments(circuit: MultiCircuit, gslv_grid: MultiCircuit, groups_dict: Dict[InvestmentsGroup, InvestmentGroup])[source]ο
- Parameters:
circuit
gslv_grid
groups_dict
- Returns:
- VeraGridEngine.Compilers.Gslv.Devices.investments.convert_investment(elm: Investment, groups_dict: Dict[InvestmentsGroup, InvestmentGroup]) Investment[source]ο
- Parameters:
elm
groups_dict
- Returns:
- VeraGridEngine.Compilers.Gslv.Devices.investments.convert_investment_group(elm: InvestmentsGroup) InvestmentGroup[source]ο
- Parameters:
elm
- Returns:
VeraGridEngine.Compilers.Gslv.Devices.lines moduleο
- VeraGridEngine.Compilers.Gslv.Devices.lines.add_lines(circuit: MultiCircuit, gslv_grid: MultiCircuit, bus_dict: Dict[str, Bus], branch_groups_dict: Dict[BranchGroup, BranchGroup], time_series: bool, n_time: int = 1, time_indices: ndarray[tuple[Any, ...], dtype[int64]] | None = None, add_three_phase_data: bool = False) None[source]ο
- Parameters:
circuit β VeraGrid circuit
gslv_grid β GSLV circuit
time_series β compile the time series from VeraGrid? otherwise just the snapshot
bus_dict β dictionary of bus id to GSLV bus object
branch_groups_dict β dictionary of converted branch groups
n_time β number of time steps
time_indices β Array of time indices
add_three_phase_data β Export sequence parameters needed by three-phase studies.
- Returns:
None.
- VeraGridEngine.Compilers.Gslv.Devices.lines.convert_line(elm: Line, n_time: int, bus_dict: Dict[str, Bus], branch_groups_dict: Dict[BranchGroup, BranchGroup], use_time_series: bool, time_indices: ndarray[tuple[Any, ...], dtype[int64]] | None = None, add_three_phase_data: bool = False) Line[source]ο
Convert one VeraGrid line into one GSLV line.
- Parameters:
elm β VeraGrid line.
n_time β Number of exported time steps.
bus_dict β Bus lookup by VeraGrid id tag.
branch_groups_dict β Branch-group lookup.
use_time_series β Whether the export is time-series based.
time_indices β Optional time-series selection.
add_three_phase_data β Export sequence parameters needed by three-phase studies.
- Returns:
GSLV line.
VeraGridEngine.Compilers.Gslv.Devices.loads moduleο
- VeraGridEngine.Compilers.Gslv.Devices.loads.add_loads(circuit: MultiCircuit, gslv_grid: pg.MultiCircuit, bus_dict: Dict[str, 'pg.Bus'], facility_dict: Dict[Facility, 'pg.Facility'], technology_dict: Dict[Technology, 'pg.Technology'], use_time_series: bool, n_time: int = 1, time_indices: IntVec | None = None, opf_results: OptimalPowerFlowResults | None = None, add_three_phase_data: bool = False) None[source]ο
Add every VeraGrid load to the target GSLV grid.
- Parameters:
circuit β VeraGrid circuit.
gslv_grid β GSLV circuit.
bus_dict β Bus lookup by VeraGrid id tag.
facility_dict β VeraGrid-to-GSLV facility lookup.
technology_dict β VeraGrid-to-GSLV technology lookup.
use_time_series β Whether the export is time-series based.
n_time β Number of exported time steps.
time_indices β Optional time-series selection.
opf_results β Optional OPF results.
add_three_phase_data β Export explicit three-phase fields when available.
- Returns:
None.
- VeraGridEngine.Compilers.Gslv.Devices.loads.convert_load(k: int, elm: Load, bus_dict: Dict[str, 'pg.Bus'], facility_dict: Dict[Facility, 'pg.Facility'], technology_dict: Dict[Technology, 'pg.Technology'], n_time: int, use_time_series: bool, time_indices: IntVec | None = None, opf_results: OptimalPowerFlowResults | None = None, add_three_phase_data: bool = False) pg.Load[source]ο
Convert one VeraGrid load into one GSLV load.
- Parameters:
k β Load index.
elm β VeraGrid load.
bus_dict β Bus lookup by VeraGrid id tag.
facility_dict β VeraGrid-to-GSLV facility lookup.
technology_dict β VeraGrid-to-GSLV technology lookup.
n_time β Number of exported time steps.
use_time_series β Whether the export is time-series based.
time_indices β Optional time-series selection.
opf_results β Optional OPF results.
add_three_phase_data β Export explicit three-phase fields when available.
- Returns:
GSLV load.
VeraGridEngine.Compilers.Gslv.Devices.market_units moduleο
- VeraGridEngine.Compilers.Gslv.Devices.market_units.add_market_units(circuit: MultiCircuit) Dict[MarketUnit, MarketUnit][source]ο
Add every VeraGrid market unit to the target GSLV grid.
- Parameters:
circuit β VeraGrid circuit.
- Returns:
VeraGrid-to-GSLV market-unit lookup.
- VeraGridEngine.Compilers.Gslv.Devices.market_units.convert_market_unit(elm: MarketUnit) MarketUnit[source]ο
Convert one VeraGrid market unit into one GSLV market unit.
- Parameters:
elm β VeraGrid market unit.
- Returns:
GSLV market unit.
VeraGridEngine.Compilers.Gslv.Devices.municipalities moduleο
- VeraGridEngine.Compilers.Gslv.Devices.municipalities.add_municipalities(circuit: MultiCircuit, gslv_grid: MultiCircuit) Dict[Country, Country][source]ο
Add GSLV countries :param circuit: VeraGrid circuit :param gslv_grid: GSLV Circuit :return: Dictionary [VeraGrid country] -> GSLV country
- VeraGridEngine.Compilers.Gslv.Devices.municipalities.convert_municipality(country: Municipality) Municipality[source]ο
- Parameters:
country
- Returns:
VeraGridEngine.Compilers.Gslv.Devices.regions moduleο
- VeraGridEngine.Compilers.Gslv.Devices.regions.add_regions(circuit: MultiCircuit, gslv_grid: MultiCircuit) Dict[Country, Country][source]ο
Add GSLV countries :param circuit: VeraGrid circuit :param gslv_grid: GSLV Circuit :return: Dictionary [VeraGrid country] -> GSLV country
VeraGridEngine.Compilers.Gslv.Devices.shunts moduleο
- VeraGridEngine.Compilers.Gslv.Devices.shunts.add_shunts(circuit: MultiCircuit, gslv_grid: MultiCircuit, bus_dict: Dict[str, Bus], facility_dict: Dict[Facility, Facility], technology_dict: Dict[Technology, Technology], time_series: bool, n_time: int = 1, time_indices: ndarray[tuple[Any, ...], dtype[int64]] | None = None, add_three_phase_data: bool = False) None[source]ο
Add every VeraGrid shunt to the target GSLV grid.
- Parameters:
circuit β VeraGrid circuit.
gslv_grid β GSLV circuit.
bus_dict β Bus lookup by VeraGrid id tag.
facility_dict β VeraGrid-to-GSLV facility lookup.
technology_dict β VeraGrid-to-GSLV technology lookup.
time_series β Whether the export is time-series based.
n_time β Number of exported time steps.
time_indices β Optional time-series selection.
add_three_phase_data β Export explicit three-phase fields when available.
- Returns:
None.
- VeraGridEngine.Compilers.Gslv.Devices.shunts.convert_shunt(elm: Shunt, bus_dict: Dict[str, Bus], facility_dict: Dict[Facility, Facility], technology_dict: Dict[Technology, Technology], n_time: int, use_time_series: bool, time_indices: ndarray[tuple[Any, ...], dtype[int64]] | None = None, add_three_phase_data: bool = False) Shunt[source]ο
Convert one VeraGrid shunt into one GSLV shunt.
- Parameters:
elm β VeraGrid shunt.
bus_dict β Bus lookup by VeraGrid id tag.
facility_dict β VeraGrid-to-GSLV facility lookup.
technology_dict β VeraGrid-to-GSLV technology lookup.
n_time β Number of exported time steps.
use_time_series β Whether the export is time-series based.
time_indices β Optional time-series selection.
add_three_phase_data β Export explicit three-phase fields when available.
- Returns:
GSLV shunt.
VeraGridEngine.Compilers.Gslv.Devices.static_generators moduleο
- VeraGridEngine.Compilers.Gslv.Devices.static_generators.add_static_generators(circuit: MultiCircuit, gslv_grid: MultiCircuit, bus_dict: Dict[str, Bus], facility_dict: Dict[Facility, Facility], technology_dict: Dict[Technology, Technology], time_series: bool, n_time: int = 1, time_indices: ndarray[tuple[Any, ...], dtype[int64]] | None = None) None[source]ο
Add every VeraGrid static generator to the target GSLV grid.
- Parameters:
circuit β VeraGrid circuit.
gslv_grid β GSLV circuit.
bus_dict β Bus lookup by VeraGrid id tag.
facility_dict β VeraGrid-to-GSLV facility lookup.
technology_dict β VeraGrid-to-GSLV technology lookup.
time_series β Whether the export is time-series based.
n_time β Number of exported time steps.
time_indices β Optional time-series selection.
- Returns:
None.
- VeraGridEngine.Compilers.Gslv.Devices.static_generators.convert_static_generator(elm: StaticGenerator, bus_dict: Dict[str, Bus], facility_dict: Dict[Facility, Facility], technology_dict: Dict[Technology, Technology], n_time: int, use_time_series: bool, time_indices: ndarray[tuple[Any, ...], dtype[int64]] | None = None) StaticGenerator[source]ο
Convert one VeraGrid static generator into one GSLV static generator.
- Parameters:
elm β VeraGrid static generator.
bus_dict β Bus lookup by VeraGrid id tag.
facility_dict β VeraGrid-to-GSLV facility lookup.
technology_dict β VeraGrid-to-GSLV technology lookup.
n_time β Number of exported time steps.
use_time_series β Whether the export is time-series based.
time_indices β Optional time-series selection.
- Returns:
GSLV static generator.
VeraGridEngine.Compilers.Gslv.Devices.substations moduleο
- VeraGridEngine.Compilers.Gslv.Devices.substations.add_substations(circuit: MultiCircuit, gslv_grid: MultiCircuit, n_time: int) Dict[Substation, Substation][source]ο
Add GSLV substations :param circuit: VeraGrid circuit :param gslv_grid: GSLV Circuit :param n_time: number of time steps :return: Dictionary [VeraGrid Zone] -> GSLV Zone
- VeraGridEngine.Compilers.Gslv.Devices.substations.convert_substation(se: Substation, n_time: int) Substation[source]ο
- Parameters:
se
n_time
- Returns:
VeraGridEngine.Compilers.Gslv.Devices.transformers moduleο
- VeraGridEngine.Compilers.Gslv.Devices.transformers.add_transformers(circuit: MultiCircuit, gslv_grid: MultiCircuit, bus_dict: Dict[str, Bus], branch_groups_dict: Dict[BranchGroup, BranchGroup], time_series: bool, n_time: int = 1, time_indices: ndarray[tuple[Any, ...], dtype[int64]] | None = None, override_controls: bool = False, add_three_phase_data: bool = False) None[source]ο
- Parameters:
circuit β VeraGrid circuit
gslv_grid β GSLV circuit
time_series β compile the time series from VeraGrid? otherwise just the snapshot
bus_dict β dictionary of bus id to GSLV bus object
branch_groups_dict β dictionary of branch grous converetd
n_time β number of time steps
time_indices β Array of time indices
override_controls β If true the controls are set to Fix
add_three_phase_data β Export sequence parameters and winding connections.
- Returns:
None.
- VeraGridEngine.Compilers.Gslv.Devices.transformers.convert_transformer(elm: Transformer2W, bus_dict: Dict[str, Bus], branch_groups_dict: Dict[BranchGroup, BranchGroup], n_time: int, use_time_series: bool, time_indices: ndarray[tuple[Any, ...], dtype[int64]] | None, override_controls: bool, add_three_phase_data: bool = False) Transformer2W[source]ο
Convert one VeraGrid two-winding transformer into one GSLV transformer.
- Parameters:
elm β VeraGrid transformer.
bus_dict β Bus lookup by VeraGrid id tag.
branch_groups_dict β Branch-group lookup.
n_time β Number of exported time steps.
use_time_series β Whether the export is time-series based.
time_indices β Optional time-series selection.
override_controls β Whether transformer control modes must be forced to fixed.
add_three_phase_data β Export sequence parameters and winding connections.
- Returns:
GSLV transformer.
VeraGridEngine.Compilers.Gslv.Devices.transformers3w moduleο
- VeraGridEngine.Compilers.Gslv.Devices.transformers3w.add_transformers3w(circuit: MultiCircuit, gslv_grid: MultiCircuit, bus_dict: Dict[str, Bus], time_series: bool, n_time=1, time_indices: ndarray[tuple[Any, ...], dtype[int64]] | None = None, override_controls=False)[source]ο
- Parameters:
circuit β VeraGrid circuit
gslv_grid β GSLV circuit
time_series β compile the time series from VeraGrid? otherwise just the snapshot
bus_dict β dictionary of bus id to GSLV bus object
n_time β number of time steps
time_indices β Array of time indices
override_controls β If true the controls are set to Fix
- VeraGridEngine.Compilers.Gslv.Devices.transformers3w.convert_transformer3w(elm: Transformer3W, bus_dict: Dict[str, Bus], n_time: int, use_time_series: bool, time_indices: ndarray[tuple[Any, ...], dtype[int64]] | None, override_controls: bool) Transformer3W[source]ο
- Parameters:
elm
bus_dict
n_time
use_time_series
time_indices
override_controls
- Returns:
VeraGridEngine.Compilers.Gslv.Devices.voltage_levels moduleο
- VeraGridEngine.Compilers.Gslv.Devices.voltage_levels.add_voltage_levels(circuit: MultiCircuit, gslv_grid: MultiCircuit, substations_dict: Dict[Substation, Substation]) Dict[VoltageLevel, VoltageLevel][source]ο
Add GSLV substations :param circuit: VeraGrid circuit :param gslv_grid: GSLV Circuit :param substations_dict: substations mapping dictionary :return: Dictionary [VeraGrid Zone] -> GSLV Zone
- VeraGridEngine.Compilers.Gslv.Devices.voltage_levels.convert_voltage_level(elm: VoltageLevel, substations_dict: Dict[Substation, Substation]) VoltageLevel[source]ο
- Parameters:
elm
substations_dict
- Returns:
VeraGridEngine.Compilers.Gslv.Devices.vsc moduleο
- VeraGridEngine.Compilers.Gslv.Devices.vsc.add_vscs(circuit: MultiCircuit, gslv_grid: MultiCircuit, bus_dict: Dict[str, Bus], time_series: bool, n_time: int = 1, time_indices: ndarray[tuple[Any, ...], dtype[int64]] | None = None) None[source]ο
Add every VeraGrid VSC to the target GSLV grid.
- Parameters:
circuit β VeraGrid circuit.
gslv_grid β GSLV circuit.
bus_dict β Bus lookup by VeraGrid id tag.
time_series β Whether the export is time-series based.
n_time β Number of exported time steps.
time_indices β Optional time-series selection.
- Returns:
None.
- VeraGridEngine.Compilers.Gslv.Devices.vsc.convert_vsc(elm: VSC, bus_dict: Dict[str, Bus], n_time: int, use_time_series: bool, time_indices: ndarray[tuple[Any, ...], dtype[int64]] | None) Vsc[source]ο
Convert one VeraGrid VSC into one GSLV VSC.
- Parameters:
elm β VeraGrid VSC.
bus_dict β Bus lookup by VeraGrid id tag.
n_time β Number of exported time steps.
use_time_series β Whether the export is time-series based.
time_indices β Optional time-series selection.
- Returns:
GSLV VSC.
- VeraGridEngine.Compilers.Gslv.Devices.vsc.convert_vsc_bus_reference(elm: Bus | BranchParent | None, bus_dict: Dict[str, Bus]) Bus | None[source]ο
Convert an optional VeraGrid bus reference to a GSLV bus reference.
- Parameters:
elm β VeraGrid bus reference.
bus_dict β GSLV bus lookup by VeraGrid idtag.
- Returns:
Matching GSLV bus or
None.
VeraGridEngine.Compilers.Gslv.Devices.zones moduleο
- VeraGridEngine.Compilers.Gslv.Devices.zones.add_zones(circuit: MultiCircuit, gslv_grid: MultiCircuit) Dict[Zone, Zone][source]ο
Add GSLV Zones :param circuit: VeraGrid circuit :param gslv_grid: GSLV Circuit :return: Dictionary [VeraGrid Zone] -> GSLV Zone