VeraGridEngine.Devices packageο
Subpackagesο
- VeraGridEngine.Devices.Aggregation package
- Submodules
- VeraGridEngine.Devices.Aggregation.area module
AreaGenericAreaGroupGenericAreaGroup.CLASS_NON_EDITABLE_PROPERTIESGenericAreaGroup.CLASS_PROPERTIES_WITH_PROFILEGenericAreaGroup.CLASS_PROPERTY_DECLARATIONSGenericAreaGroup.CLASS_PROPERTY_LISTGenericAreaGroup.CLASS_REGISTERED_PROPERTIESGenericAreaGroup.LOCAL_PROPERTY_DECLARATIONSGenericAreaGroup.colorGenericAreaGroup.latitudeGenericAreaGroup.longitude
- VeraGridEngine.Devices.Aggregation.branch_group module
- VeraGridEngine.Devices.Aggregation.community module
- VeraGridEngine.Devices.Aggregation.country module
- VeraGridEngine.Devices.Aggregation.facility module
- VeraGridEngine.Devices.Aggregation.inter_aggregation_info module
InterAggregationInfoInterAggregationInfo.CLASS_NON_EDITABLE_PROPERTIESInterAggregationInfo.CLASS_PROPERTIES_WITH_PROFILEInterAggregationInfo.CLASS_PROPERTY_DECLARATIONSInterAggregationInfo.CLASS_PROPERTY_LISTInterAggregationInfo.CLASS_REGISTERED_PROPERTIESInterAggregationInfo.idx_branchesInterAggregationInfo.idx_bus_fromInterAggregationInfo.idx_bus_toInterAggregationInfo.idx_hvdcInterAggregationInfo.is_from()InterAggregationInfo.is_to()InterAggregationInfo.loggerInterAggregationInfo.lst_brInterAggregationInfo.lst_br_hvdcInterAggregationInfo.lst_fromInterAggregationInfo.lst_toInterAggregationInfo.objects_fromInterAggregationInfo.objects_toInterAggregationInfo.sense_branchesInterAggregationInfo.sense_hvdcInterAggregationInfo.set_bus_idx_fromInterAggregationInfo.set_bus_idx_toInterAggregationInfo.valid
- VeraGridEngine.Devices.Aggregation.investment module
InvestmentInvestment.CAPEXInvestment.CLASS_NON_EDITABLE_PROPERTIESInvestment.CLASS_PROPERTIES_WITH_PROFILEInvestment.CLASS_PROPERTY_DECLARATIONSInvestment.CLASS_PROPERTY_LISTInvestment.CLASS_REGISTERED_PROPERTIESInvestment.LOCAL_PROPERTY_DECLARATIONSInvestment.categoryInvestment.commissioning_dateInvestment.decommissioning_dateInvestment.groupInvestment.propInvestment.statusInvestment.value
- VeraGridEngine.Devices.Aggregation.investments_group module
InvestmentsGroupInvestmentsGroup.CAPEXInvestmentsGroup.CLASS_NON_EDITABLE_PROPERTIESInvestmentsGroup.CLASS_PROPERTIES_WITH_PROFILEInvestmentsGroup.CLASS_PROPERTY_DECLARATIONSInvestmentsGroup.CLASS_PROPERTY_LISTInvestmentsGroup.CLASS_REGISTERED_PROPERTIESInvestmentsGroup.LOCAL_PROPERTY_DECLARATIONSInvestmentsGroup.categoryInvestmentsGroup.colorInvestmentsGroup.discount_rate
- VeraGridEngine.Devices.Aggregation.modelling_authority module
ModellingAuthorityModellingAuthority.CLASS_NON_EDITABLE_PROPERTIESModellingAuthority.CLASS_PROPERTIES_WITH_PROFILEModellingAuthority.CLASS_PROPERTY_DECLARATIONSModellingAuthority.CLASS_PROPERTY_LISTModellingAuthority.CLASS_REGISTERED_PROPERTIESModellingAuthority.actionModellingAuthority.commentModellingAuthority.device_typeModellingAuthority.diff_changesModellingAuthority.selected_to_merge
- VeraGridEngine.Devices.Aggregation.municipality module
- VeraGridEngine.Devices.Aggregation.region module
- VeraGridEngine.Devices.Aggregation.zone module
- Module contents
- VeraGridEngine.Devices.Associations package
- Submodules
- VeraGridEngine.Devices.Associations.association module
AssociationAssociationsAssociations.add()Associations.add_object()Associations.append()Associations.at_key()Associations.clear()Associations.copy()Associations.dataAssociations.device_typeAssociations.parse()Associations.rebind_device_references()Associations.remove()Associations.remove_by_key()Associations.to_dict()Associations.to_list()
- VeraGridEngine.Devices.Associations.emission_gas module
- VeraGridEngine.Devices.Associations.fuel module
- VeraGridEngine.Devices.Associations.owner module
- VeraGridEngine.Devices.Associations.technology module
- Module contents
- VeraGridEngine.Devices.Branches package
- Submodules
- VeraGridEngine.Devices.Branches.branch module
BranchBranch.BBranch.CLASS_NON_EDITABLE_PROPERTIESBranch.CLASS_PROPERTIES_WITH_PROFILEBranch.CLASS_PROPERTY_DECLARATIONSBranch.CLASS_PROPERTY_LISTBranch.CLASS_REGISTERED_PROPERTIESBranch.GBranch.LOCAL_PROPERTY_DECLARATIONSBranch.RBranch.R_correctedBranch.XBranch.angleBranch.apply_tap_changer()Branch.branch_typeBranch.branch_type_converter()Branch.bus_to_regulatedBranch.convBranch.copy()Branch.fault_posBranch.get_coordinates()Branch.get_equivalent_line()Branch.get_equivalent_transformer()Branch.get_save_data()Branch.get_weight()Branch.inv_convBranch.lengthBranch.measurementsBranch.plot_profiles()Branch.r_faultBranch.rate_profBranch.tap_changerBranch.tap_down()Branch.tap_moduleBranch.tap_up()Branch.temp_oper_profBranch.templateBranch.toleranceBranch.vsetBranch.x_fault
BranchTypeSQRT3convert_branch()
- VeraGridEngine.Devices.Branches.dc_line module
DcLineDcLine.CLASS_NON_EDITABLE_PROPERTIESDcLine.CLASS_PROPERTIES_WITH_PROFILEDcLine.CLASS_PROPERTY_DECLARATIONSDcLine.CLASS_PROPERTY_LISTDcLine.CLASS_REGISTERED_PROPERTIESDcLine.LOCAL_PROPERTY_DECLARATIONSDcLine.RDcLine.R_correctedDcLine.change_base()DcLine.copy()DcLine.fault_posDcLine.get_coordinates()DcLine.get_weight()DcLine.lengthDcLine.locationsDcLine.measurementsDcLine.plot_profiles()DcLine.r_faultDcLine.temp_oper_profDcLine.templateDcLine.tolerance
- VeraGridEngine.Devices.Branches.hvdc_line module
HvdcLineHvdcLine.CLASS_NON_EDITABLE_PROPERTIESHvdcLine.CLASS_PROPERTIES_WITH_PROFILEHvdcLine.CLASS_PROPERTY_DECLARATIONSHvdcLine.CLASS_PROPERTY_LISTHvdcLine.CLASS_REGISTERED_PROPERTIESHvdcLine.LOCAL_PROPERTY_DECLARATIONSHvdcLine.PsetHvdcLine.Pset_profHvdcLine.Vset_fHvdcLine.Vset_f_profHvdcLine.Vset_tHvdcLine.Vset_t_profHvdcLine.angle_droopHvdcLine.angle_droop_profHvdcLine.build_statusHvdcLine.capexHvdcLine.control_modeHvdcLine.dc_link_voltageHvdcLine.dispatchableHvdcLine.get_Pset_at()HvdcLine.get_Vset_f_at()HvdcLine.get_Vset_t_at()HvdcLine.get_angle_droop_at()HvdcLine.get_coordinates()HvdcLine.get_from_and_to_power()HvdcLine.get_from_and_to_power_at()HvdcLine.get_max_bus_nominal_voltage()HvdcLine.get_min_bus_nominal_voltage()HvdcLine.get_q_limits()HvdcLine.get_save_data()HvdcLine.lengthHvdcLine.locationsHvdcLine.loss_factorHvdcLine.max_firing_angle_fHvdcLine.max_firing_angle_tHvdcLine.min_firing_angle_fHvdcLine.min_firing_angle_tHvdcLine.mttfHvdcLine.mttrHvdcLine.opexHvdcLine.plot_profiles()HvdcLine.r
firing_angles_to_reactive_limits()getFromAndToPowerAt()
- VeraGridEngine.Devices.Branches.line module
LineLine.BLine.B0Line.B2Line.CLASS_NON_EDITABLE_PROPERTIESLine.CLASS_PROPERTIES_WITH_PROFILELine.CLASS_PROPERTY_DECLARATIONSLine.CLASS_PROPERTY_LISTLine.CLASS_REGISTERED_PROPERTIESLine.LOCAL_PROPERTY_DECLARATIONSLine.PfLine.PtLine.QfLine.QtLine.RLine.R0Line.R2Line.R_correctedLine.VafLine.VatLine.VmfLine.VmtLine.XLine.X0Line.X2Line.alphaLine.apply_template()Line.change_base()Line.circuit_idxLine.fault_posLine.fill_3_phase_from_sequence()Line.fill_design_properties()Line.fix_inconsistencies()Line.get_equivalent_transformer()Line.get_line_type()Line.get_tau()Line.get_weight()Line.lengthLine.locationsLine.possible_sequence_line_typesLine.possible_tower_typesLine.possible_underground_line_typesLine.r_faultLine.set_circuit_idx()Line.set_length()Line.temp_baseLine.temp_operLine.templateLine.toleranceLine.x_faultLine.ysLine.ysh
accept_line_connection()
- VeraGridEngine.Devices.Branches.line_locations module
LineLocationLineLocation.CLASS_NON_EDITABLE_PROPERTIESLineLocation.CLASS_PROPERTIES_WITH_PROFILELineLocation.CLASS_PROPERTY_DECLARATIONSLineLocation.CLASS_PROPERTY_LISTLineLocation.CLASS_REGISTERED_PROPERTIESLineLocation.actionLineLocation.commentLineLocation.copy()LineLocation.device_typeLineLocation.diff_changesLineLocation.selected_to_merge
LineLocationsLineLocations.CLASS_NON_EDITABLE_PROPERTIESLineLocations.CLASS_PROPERTIES_WITH_PROFILELineLocations.CLASS_PROPERTY_DECLARATIONSLineLocations.CLASS_PROPERTY_LISTLineLocations.CLASS_REGISTERED_PROPERTIESLineLocations.add()LineLocations.add_location()LineLocations.copy()LineLocations.dataLineLocations.get_locations()LineLocations.parse()LineLocations.remove()LineLocations.set()LineLocations.to_df()LineLocations.to_list()
- VeraGridEngine.Devices.Branches.overhead_line_type module
ListOfWiresOverheadLineTypeOverheadLineType.CLASS_NON_EDITABLE_PROPERTIESOverheadLineType.CLASS_PROPERTIES_WITH_PROFILEOverheadLineType.CLASS_PROPERTY_DECLARATIONSOverheadLineType.CLASS_PROPERTY_LISTOverheadLineType.CLASS_REGISTERED_PROPERTIESOverheadLineType.ImaxOverheadLineType.LOCAL_PROPERTY_DECLARATIONSOverheadLineType.VnomOverheadLineType.add_wire_relationship()OverheadLineType.capexOverheadLineType.check()OverheadLineType.compute()OverheadLineType.compute_rating()OverheadLineType.earth_resistivityOverheadLineType.frequencyOverheadLineType.get_phA()OverheadLineType.get_phB()OverheadLineType.get_phC()OverheadLineType.get_phN()OverheadLineType.get_sequence_values()OverheadLineType.get_values()OverheadLineType.get_ys()OverheadLineType.get_ysh()OverheadLineType.has_sequence_data()OverheadLineType.is_computed()OverheadLineType.is_used()OverheadLineType.n_circuitsOverheadLineType.opexOverheadLineType.plot()OverheadLineType.wires_in_towerOverheadLineType.y_0123OverheadLineType.y_abcOverheadLineType.y_nabcOverheadLineType.y_phases_abcOverheadLineType.y_phases_nabcOverheadLineType.y_seqOverheadLineType.z_0123OverheadLineType.z_abcOverheadLineType.z_nabcOverheadLineType.z_phases_abcOverheadLineType.z_phases_nabcOverheadLineType.z_seq
WireInTowerabc_2_seq()build_y_4x4()calc_GMR()calc_L_int()calc_y_matrix()calc_z_ii()calc_z_ij()calc_z_matrix()carsons()create_known_abc_overhead_template()get_D_ij()get_d_ij()kron_reduction()n_circuits()phase2circuit()wire_bundling()
- VeraGridEngine.Devices.Branches.sequence_line_type module
SequenceLineTypeSequenceLineType.BSequenceLineType.B0SequenceLineType.CLASS_NON_EDITABLE_PROPERTIESSequenceLineType.CLASS_PROPERTIES_WITH_PROFILESequenceLineType.CLASS_PROPERTY_DECLARATIONSSequenceLineType.CLASS_PROPERTY_LISTSequenceLineType.CLASS_REGISTERED_PROPERTIESSequenceLineType.CnfSequenceLineType.Cnf0SequenceLineType.ImaxSequenceLineType.LOCAL_PROPERTY_DECLARATIONSSequenceLineType.RSequenceLineType.R0SequenceLineType.VnomSequenceLineType.XSequenceLineType.X0SequenceLineType.capexSequenceLineType.get_values()SequenceLineType.get_ys_nabc()SequenceLineType.get_ysh_nabc()SequenceLineType.n_circuitsSequenceLineType.opexSequenceLineType.use_conductance
get_line_impedances_with_b()get_line_impedances_with_c()
- VeraGridEngine.Devices.Branches.series_reactance module
SeriesReactanceSeriesReactance.CLASS_NON_EDITABLE_PROPERTIESSeriesReactance.CLASS_PROPERTIES_WITH_PROFILESeriesReactance.CLASS_PROPERTY_DECLARATIONSSeriesReactance.CLASS_PROPERTY_LISTSeriesReactance.CLASS_REGISTERED_PROPERTIESSeriesReactance.LOCAL_PROPERTY_DECLARATIONSSeriesReactance.RSeriesReactance.R0SeriesReactance.R2SeriesReactance.R_correctedSeriesReactance.XSeriesReactance.X0SeriesReactance.X2SeriesReactance.change_base()SeriesReactance.fault_posSeriesReactance.fill_design_properties()SeriesReactance.fix_inconsistencies()SeriesReactance.get_weight()SeriesReactance.r_faultSeriesReactance.toleranceSeriesReactance.x_fault
- VeraGridEngine.Devices.Branches.switch module
SwitchSwitch.CLASS_NON_EDITABLE_PROPERTIESSwitch.CLASS_PROPERTIES_WITH_PROFILESwitch.CLASS_PROPERTY_DECLARATIONSSwitch.CLASS_PROPERTY_LISTSwitch.CLASS_REGISTERED_PROPERTIESSwitch.LOCAL_PROPERTY_DECLARATIONSSwitch.RSwitch.XSwitch.change_base()Switch.graphic_typeSwitch.normal_openSwitch.rated_currentSwitch.retained
- VeraGridEngine.Devices.Branches.tap_changer module
TapChangerTapChanger.asymmetry_angleTapChanger.copy()TapChanger.dVTapChanger.get_cgmes_values()TapChanger.get_tap_module()TapChanger.get_tap_module2()TapChanger.get_tap_module_max()TapChanger.get_tap_module_min()TapChanger.get_tap_phase()TapChanger.get_tap_phase2()TapChanger.get_tap_phase_max()TapChanger.get_tap_phase_min()TapChanger.impedance_correction_imag_arrayTapChanger.init_from_cgmes()TapChanger.neutral_positionTapChanger.normal_positionTapChanger.parse()TapChanger.recalc()TapChanger.reset()TapChanger.resize()TapChanger.set_tap_module()TapChanger.set_tap_phase()TapChanger.tap_angles_arrayTapChanger.tap_down()TapChanger.tap_modules_arrayTapChanger.tap_positionTapChanger.tap_up()TapChanger.tc_typeTapChanger.to_df()TapChanger.to_dict()TapChanger.total_positions
- VeraGridEngine.Devices.Branches.transformer module
Transformer2WTransformer2W.CLASS_NON_EDITABLE_PROPERTIESTransformer2W.CLASS_PROPERTIES_WITH_PROFILETransformer2W.CLASS_PROPERTY_DECLARATIONSTransformer2W.CLASS_PROPERTY_LISTTransformer2W.CLASS_REGISTERED_PROPERTIESTransformer2W.HVTransformer2W.I0Transformer2W.LOCAL_PROPERTY_DECLARATIONSTransformer2W.LVTransformer2W.PcuTransformer2W.PfeTransformer2W.SnTransformer2W.VscTransformer2W.apply_template()Transformer2W.connTransformer2W.conn_fTransformer2W.conn_tTransformer2W.delete_virtual_taps()Transformer2W.fill_design_properties()Transformer2W.fix_inconsistencies()Transformer2W.get_from_to_nominal_voltages()Transformer2W.get_transformer_type()Transformer2W.get_vcc()Transformer2W.get_virtual_taps()Transformer2W.phasesTransformer2W.possible_transformer_typesTransformer2W.set_hv_and_lv()Transformer2W.templateTransformer2W.transformer_admittance()Transformer2W.transformer_phases()Transformer2W.vector_group_number
- VeraGridEngine.Devices.Branches.transformer3w module
Transformer3WTransformer3W.CLASS_NON_EDITABLE_PROPERTIESTransformer3W.CLASS_PROPERTIES_WITH_PROFILETransformer3W.CLASS_PROPERTY_DECLARATIONSTransformer3W.CLASS_PROPERTY_LISTTransformer3W.CLASS_REGISTERED_PROPERTIESTransformer3W.I0Transformer3W.LOCAL_PROPERTY_DECLARATIONSTransformer3W.Pcu12Transformer3W.Pcu23Transformer3W.Pcu31Transformer3W.PfeTransformer3W.V1Transformer3W.V2Transformer3W.V3Transformer3W.Vsc12Transformer3W.Vsc23Transformer3W.Vsc31Transformer3W.activeTransformer3W.active_profTransformer3W.all_connected()Transformer3W.bus0Transformer3W.bus1Transformer3W.bus2Transformer3W.bus3Transformer3W.cn0Transformer3W.compute_delta_to_star()Transformer3W.fill_from_design_values()Transformer3W.fill_from_star()Transformer3W.get_active_at()Transformer3W.get_winding()Transformer3W.r12Transformer3W.r23Transformer3W.r31Transformer3W.rate1Transformer3W.rate2Transformer3W.rate3Transformer3W.winding1Transformer3W.winding2Transformer3W.winding3Transformer3W.xTransformer3W.x12Transformer3W.x23Transformer3W.x31Transformer3W.y
delta_to_star()star_to_delta()
- VeraGridEngine.Devices.Branches.transformerNw module
TransformerNWTransformerNW.CLASS_NON_EDITABLE_PROPERTIESTransformerNW.CLASS_PROPERTIES_WITH_PROFILETransformerNW.CLASS_PROPERTY_DECLARATIONSTransformerNW.CLASS_PROPERTY_LISTTransformerNW.CLASS_REGISTERED_PROPERTIESTransformerNW.I0TransformerNW.LOCAL_PROPERTY_DECLARATIONSTransformerNW.PfeTransformerNW.activeTransformerNW.active_profTransformerNW.add_winding()TransformerNW.all_connected()TransformerNW.bus0TransformerNW.busesTransformerNW.cn0TransformerNW.delete_winding()TransformerNW.fill_from_design_values()TransformerNW.get_active_at()TransformerNW.get_bus()TransformerNW.get_winding()TransformerNW.initialize_windings()TransformerNW.recalculate_windings_from_definition()TransformerNW.set_bus()TransformerNW.set_winding()TransformerNW.set_winding_count()TransformerNW.winding_countTransformerNW.windingsTransformerNW.xTransformerNW.y
- VeraGridEngine.Devices.Branches.transformer_type module
TransformerTypeTransformerType.CLASS_NON_EDITABLE_PROPERTIESTransformerType.CLASS_PROPERTIES_WITH_PROFILETransformerType.CLASS_PROPERTY_DECLARATIONSTransformerType.CLASS_PROPERTY_LISTTransformerType.CLASS_REGISTERED_PROPERTIESTransformerType.GR_hv1TransformerType.GX_hv1TransformerType.HVTransformerType.I0TransformerType.LOCAL_PROPERTY_DECLARATIONSTransformerType.LVTransformerType.PcuTransformerType.PfeTransformerType.SnTransformerType.VscTransformerType.asymmetry_angleTransformerType.capexTransformerType.conn_hvTransformerType.conn_lvTransformerType.dVTransformerType.get_impedances()TransformerType.get_tap_changer()TransformerType.neutral_positionTransformerType.opexTransformerType.tap_module_maxTransformerType.tap_module_minTransformerType.tap_phase_maxTransformerType.tap_phase_minTransformerType.tc_typeTransformerType.total_positionsTransformerType.vector_group_number
get_impedances()reverse_transformer_short_circuit_study()
- VeraGridEngine.Devices.Branches.underground_line_type module
UndergroundLineTypeUndergroundLineType.BUndergroundLineType.B0UndergroundLineType.CUndergroundLineType.C0UndergroundLineType.CLASS_NON_EDITABLE_PROPERTIESUndergroundLineType.CLASS_PROPERTIES_WITH_PROFILEUndergroundLineType.CLASS_PROPERTY_DECLARATIONSUndergroundLineType.CLASS_PROPERTY_LISTUndergroundLineType.CLASS_REGISTERED_PROPERTIESUndergroundLineType.ImaxUndergroundLineType.LOCAL_PROPERTY_DECLARATIONSUndergroundLineType.RUndergroundLineType.R0UndergroundLineType.VnomUndergroundLineType.XUndergroundLineType.X0UndergroundLineType.capexUndergroundLineType.freqUndergroundLineType.get_values()UndergroundLineType.n_circuitsUndergroundLineType.opexUndergroundLineType.y_shunt()UndergroundLineType.z_series()
- VeraGridEngine.Devices.Branches.upfc module
UPFCUPFC.CLASS_NON_EDITABLE_PROPERTIESUPFC.CLASS_PROPERTIES_WITH_PROFILEUPFC.CLASS_PROPERTY_DECLARATIONSUPFC.CLASS_PROPERTY_LISTUPFC.CLASS_REGISTERED_PROPERTIESUPFC.LOCAL_PROPERTY_DECLARATIONSUPFC.PfsetUPFC.QfsetUPFC.RUPFC.R0UPFC.R2UPFC.RshUPFC.Rsh0UPFC.Rsh2UPFC.VshUPFC.XUPFC.X0UPFC.X2UPFC.XshUPFC.Xsh0UPFC.Xsh2UPFC.change_base()UPFC.get_max_bus_nominal_voltage()UPFC.get_min_bus_nominal_voltage()UPFC.get_ysh0()UPFC.get_ysh1()UPFC.get_ysh2()UPFC.plot_profiles()
- VeraGridEngine.Devices.Branches.vsc module
VSCVSC.CLASS_NON_EDITABLE_PROPERTIESVSC.CLASS_PROPERTIES_WITH_PROFILEVSC.CLASS_PROPERTY_DECLARATIONSVSC.CLASS_PROPERTY_LISTVSC.CLASS_REGISTERED_PROPERTIESVSC.LOCAL_PROPERTY_DECLARATIONSVSC.alpha1VSC.alpha2VSC.alpha3VSC.bus_dc_nVSC.bus_fromVSC.bus_toVSC.control1VSC.control1_devVSC.control1_dev_profVSC.control1_droop_valVSC.control1_droop_val_maxVSC.control1_droop_val_minVSC.control1_droop_val_profVSC.control1_profVSC.control1_valVSC.control1_val_droopVSC.control1_val_droop_profVSC.control1_val_maxVSC.control1_val_minVSC.control1_val_profVSC.control2VSC.control2_devVSC.control2_dev_profVSC.control2_droop_valVSC.control2_droop_val_maxVSC.control2_droop_val_minVSC.control2_droop_val_profVSC.control2_profVSC.control2_valVSC.control2_val_droopVSC.control2_val_droop_profVSC.control2_val_maxVSC.control2_val_minVSC.control2_val_profVSC.fault_controlVSC.fault_control_profVSC.get_control1_at()VSC.get_control1_dev_at()VSC.get_control1_droop_val_at()VSC.get_control1_val_at()VSC.get_control1_val_droop_at()VSC.get_control2_at()VSC.get_control2_dev_at()VSC.get_control2_droop_val_at()VSC.get_control2_val_at()VSC.get_control2_val_droop_at()VSC.get_coordinates()VSC.get_fault_control_at()VSC.is_3term()VSC.min_ac_voltageVSC.plot_profiles()VSC.xVSC.yVSC.ysvs
- VeraGridEngine.Devices.Branches.winding module
- VeraGridEngine.Devices.Branches.wire module
- Module contents
- VeraGridEngine.Devices.Diagrams package
- Submodules
- VeraGridEngine.Devices.Diagrams.base_diagram module
BaseDiagramBaseDiagram.arrow_sizeBaseDiagram.build_graph()BaseDiagram.copy()BaseDiagram.default_bus_voltageBaseDiagram.delete_device()BaseDiagram.get_boundaries()BaseDiagram.get_data_dict()BaseDiagram.max_branch_widthBaseDiagram.max_bus_widthBaseDiagram.min_branch_widthBaseDiagram.min_bus_widthBaseDiagram.paletteBaseDiagram.parse_data()BaseDiagram.query_by_type()BaseDiagram.query_point()BaseDiagram.set_point()BaseDiagram.set_size_constraints()BaseDiagram.use_api_colorsBaseDiagram.use_flow_based_width
PointsGroupadd_branch_layout_edge()add_node_layout_data()copy_diagrams()get_branch_endpoint_voltages()get_layout_anchor()get_layout_is_dc()get_layout_is_slack()get_layout_substation_name()get_layout_voltage_kv()
- VeraGridEngine.Devices.Diagrams.block_diagram module
BlockDiagramBlockDiagramConnectionBlockDiagramNodeBlockDiagramNode.algeb_insBlockDiagramNode.algeb_outsBlockDiagramNode.api_object_nameBlockDiagramNode.colorBlockDiagramNode.copy()BlockDiagramNode.device_uidBlockDiagramNode.get_node_dict()BlockDiagramNode.nameBlockDiagramNode.state_insBlockDiagramNode.state_outsBlockDiagramNode.sub_diagramBlockDiagramNode.tpeBlockDiagramNode.xBlockDiagramNode.y
- VeraGridEngine.Devices.Diagrams.graphic_location module
- VeraGridEngine.Devices.Diagrams.map_diagram module
- VeraGridEngine.Devices.Diagrams.map_location module
- VeraGridEngine.Devices.Diagrams.palettes module
blues_palette_bgr()blues_palette_rgb()blues_to_gray_bgr()blues_to_gray_rgb()green_to_red_bgr()green_to_red_rgb()greens_palette_bgr()greens_palette_rgb()heatmap_palette_bgr()heatmap_palette_rgb()red_to_blue_bgr()red_to_blue_rgb()rgb2bgr()tso2_line_palette_bgr()tso_line_palette_bgr()tso_line_palette_rgb()tso_substation_palette_bgr()tso_substation_palette_rgb()
- VeraGridEngine.Devices.Diagrams.schematic_diagram module
SchematicDiagramSchematicDiagram.copy_layout_state()SchematicDiagram.get_attachment()SchematicDiagram.get_attachment_record()SchematicDiagram.get_branch_auto_route_style()SchematicDiagram.get_branch_route_points()SchematicDiagram.get_branch_route_record()SchematicDiagram.get_dock()SchematicDiagram.get_dock_record()SchematicDiagram.get_layout_metadata()SchematicDiagram.set_attachment()SchematicDiagram.set_attachment_record()SchematicDiagram.set_branch_auto_route_style()SchematicDiagram.set_branch_route_points()SchematicDiagram.set_dock()SchematicDiagram.set_dock_record()SchematicDiagram.should_preserve_branch_route_shape()SchematicDiagram.sync_attachment()SchematicDiagram.sync_attachment_record()SchematicDiagram.sync_branch_attachment_records()SchematicDiagram.sync_branch_attachments()SchematicDiagram.sync_branch_route_points()SchematicDiagram.sync_injection_dock()SchematicDiagram.sync_injection_dock_record()SchematicDiagram.update_graphic_location()SchematicDiagram.update_xy()SchematicDiagram.upgrade_legacy_branch_layout()
build_explicit_attachment_slot()get_attachment_owner_kind()get_default_attachment_side()get_side_from_slot_tuple()
- VeraGridEngine.Devices.Diagrams.schematic_layout module
SchematicAttachmentRecordSchematicAttachmentRecord.anchor_autoSchematicAttachmentRecord.anchor_xSchematicAttachmentRecord.anchor_ySchematicAttachmentRecord.auto_slotSchematicAttachmentRecord.explicit_slotSchematicAttachmentRecord.explicit_terminalSchematicAttachmentRecord.orderSchematicAttachmentRecord.owner_device_idSchematicAttachmentRecord.owner_device_typeSchematicAttachmentRecord.sideSchematicAttachmentRecord.slot_sideSchematicAttachmentRecord.terminal_side
SchematicDockRecordSchematicExplicitAttachmentSlotSchematicRouteRecordbuild_default_branch_route()build_explicit_attachment_slot_key()build_route_stub_point()compress_route_points()copy_layout_metadata()ensure_layout_metadata()get_attachment()get_attachment_record()get_branch_route_points()get_branch_route_record()get_default_route_lane_index()get_dock()get_dock_record()get_layout_section()is_axis_aligned_route_segment()is_canonical_attachment_slot()is_orthogonal_route()parse_explicit_attachment_slot_key()parse_schematic_attachment_owner_kind()parse_schematic_attachment_side()parse_schematic_auto_route_style()parse_schematic_branch_endpoint()parse_schematic_explicit_attachment_slot()parse_schematic_route_kind()serialize_schematic_attachment_side()serialize_schematic_auto_route_style()serialize_schematic_explicit_attachment_slot()serialize_schematic_route_kind()set_attachment()set_attachment_record()set_branch_route_points()set_branch_route_record()set_dock()set_dock_record()set_layout_section()should_preserve_route_shape()
- Module contents
- VeraGridEngine.Devices.Dynamic package
- Submodules
- VeraGridEngine.Devices.Dynamic.emt_template module
EmtLazyTemplateBuilderEmtModelTemplateEmtModelTemplate.CLASS_NON_EDITABLE_PROPERTIESEmtModelTemplate.CLASS_PROPERTIES_WITH_PROFILEEmtModelTemplate.CLASS_PROPERTY_DECLARATIONSEmtModelTemplate.CLASS_PROPERTY_LISTEmtModelTemplate.CLASS_REGISTERED_PROPERTIESEmtModelTemplate.LOCAL_PROPERTY_DECLARATIONSEmtModelTemplate.blockEmtModelTemplate.set_lazy_builder()
- VeraGridEngine.Devices.Dynamic.fmu_template module
FmuTemplateFmuTemplate.CLASS_NON_EDITABLE_PROPERTIESFmuTemplate.CLASS_PROPERTIES_WITH_PROFILEFmuTemplate.CLASS_PROPERTY_DECLARATIONSFmuTemplate.CLASS_PROPERTY_LISTFmuTemplate.CLASS_REGISTERED_PROPERTIESFmuTemplate.LOCAL_PROPERTY_DECLARATIONSFmuTemplate.blockFmuTemplate.domainFmuTemplate.fmu_relative_pathFmuTemplate.modeFmuTemplate.serialized_config
- VeraGridEngine.Devices.Dynamic.rms_template module
- VeraGridEngine.Devices.Dynamic.var_factory module
ConnectionVarFactoryVarFactory.CLASS_NON_EDITABLE_PROPERTIESVarFactory.CLASS_PROPERTIES_WITH_PROFILEVarFactory.CLASS_PROPERTY_DECLARATIONSVarFactory.CLASS_PROPERTY_LISTVarFactory.CLASS_REGISTERED_PROPERTIESVarFactory.add_connection()VarFactory.add_connections()VarFactory.add_const()VarFactory.add_diff_var()VarFactory.add_var()VarFactory.connect_variables_by_uid()VarFactory.create_reference()VarFactory.find_var_or_diff_var()VarFactory.get_connections_dict()VarFactory.get_const()VarFactory.get_const_dict()VarFactory.get_diff_var()VarFactory.get_diff_var_dict()VarFactory.get_references_dict()VarFactory.get_unique_template_name()VarFactory.get_var()VarFactory.get_vars_dict()VarFactory.get_vars_to_save()VarFactory.parse_connections_dict()VarFactory.parse_const_dict()VarFactory.parse_diff_var_dict()VarFactory.parse_references_dict()VarFactory.parse_var_dict()VarFactory.register_var()VarFactory.remove_connection()VarFactory.save_var_in_vars_references_dict()VarFactory.vars_info
- Module contents
- VeraGridEngine.Devices.Events package
- Submodules
- VeraGridEngine.Devices.Events.contingency module
ContingencyContingency.CLASS_NON_EDITABLE_PROPERTIESContingency.CLASS_PROPERTIES_WITH_PROFILEContingency.CLASS_PROPERTY_DECLARATIONSContingency.CLASS_PROPERTY_LISTContingency.CLASS_REGISTERED_PROPERTIESContingency.LOCAL_PROPERTY_DECLARATIONSContingency.categoryContingency.groupContingency.nameContingency.propContingency.value
- VeraGridEngine.Devices.Events.contingency_group module
ContingencyGroupContingencyGroup.CLASS_NON_EDITABLE_PROPERTIESContingencyGroup.CLASS_PROPERTIES_WITH_PROFILEContingencyGroup.CLASS_PROPERTY_DECLARATIONSContingencyGroup.CLASS_PROPERTY_LISTContingencyGroup.CLASS_REGISTERED_PROPERTIESContingencyGroup.LOCAL_PROPERTY_DECLARATIONSContingencyGroup.activeContingencyGroup.category
- VeraGridEngine.Devices.Events.dynamic_plot module
- VeraGridEngine.Devices.Events.dynamic_plot_entry module
DynamicPlotEntryDynamicPlotEntry.CLASS_NON_EDITABLE_PROPERTIESDynamicPlotEntry.CLASS_PROPERTIES_WITH_PROFILEDynamicPlotEntry.CLASS_PROPERTY_DECLARATIONSDynamicPlotEntry.CLASS_PROPERTY_LISTDynamicPlotEntry.CLASS_REGISTERED_PROPERTIESDynamicPlotEntry.LOCAL_PROPERTY_DECLARATIONSDynamicPlotEntry.curve_device_typeDynamicPlotEntry.deviceDynamicPlotEntry.device_idtagDynamicPlotEntry.device_name_hintDynamicPlotEntry.enabledDynamicPlotEntry.entry_kindDynamicPlotEntry.event_group_idtagDynamicPlotEntry.event_group_nameDynamicPlotEntry.groupDynamicPlotEntry.plotDynamicPlotEntry.result_path_kindDynamicPlotEntry.roleDynamicPlotEntry.runtime_series_key_payloadDynamicPlotEntry.simulation_typeDynamicPlotEntry.variableDynamicPlotEntry.variable_custom_nameDynamicPlotEntry.variable_name
compare_dynamic_plot()compare_dynamic_plot_entry()compare_dynamic_plots()
- VeraGridEngine.Devices.Events.emt_event module
EmtEventEmtEvent.CLASS_NON_EDITABLE_PROPERTIESEmtEvent.CLASS_PROPERTIES_WITH_PROFILEEmtEvent.CLASS_PROPERTY_DECLARATIONSEmtEvent.CLASS_PROPERTY_LISTEmtEvent.CLASS_REGISTERED_PROPERTIESEmtEvent.LOCAL_PROPERTY_DECLARATIONSEmtEvent.end_timeEmtEvent.force_step_alignmentEmtEvent.groupEmtEvent.parameterEmtEvent.timeEmtEvent.transition_typeEmtEvent.value
- VeraGridEngine.Devices.Events.emt_events_group module
- VeraGridEngine.Devices.Events.remedial_action module
RemedialActionRemedialAction.CLASS_NON_EDITABLE_PROPERTIESRemedialAction.CLASS_PROPERTIES_WITH_PROFILERemedialAction.CLASS_PROPERTY_DECLARATIONSRemedialAction.CLASS_PROPERTY_LISTRemedialAction.CLASS_REGISTERED_PROPERTIESRemedialAction.LOCAL_PROPERTY_DECLARATIONSRemedialAction.categoryRemedialAction.groupRemedialAction.nameRemedialAction.propRemedialAction.value
- VeraGridEngine.Devices.Events.remedial_action_group module
RemedialActionGroupRemedialActionGroup.CLASS_NON_EDITABLE_PROPERTIESRemedialActionGroup.CLASS_PROPERTIES_WITH_PROFILERemedialActionGroup.CLASS_PROPERTY_DECLARATIONSRemedialActionGroup.CLASS_PROPERTY_LISTRemedialActionGroup.CLASS_REGISTERED_PROPERTIESRemedialActionGroup.LOCAL_PROPERTY_DECLARATIONSRemedialActionGroup.categoryRemedialActionGroup.conn_group
- VeraGridEngine.Devices.Events.rms_event module
RmsEventRmsEvent.CLASS_NON_EDITABLE_PROPERTIESRmsEvent.CLASS_PROPERTIES_WITH_PROFILERmsEvent.CLASS_PROPERTY_DECLARATIONSRmsEvent.CLASS_PROPERTY_LISTRmsEvent.CLASS_REGISTERED_PROPERTIESRmsEvent.LOCAL_PROPERTY_DECLARATIONSRmsEvent.end_timeRmsEvent.force_step_alignmentRmsEvent.groupRmsEvent.parameterRmsEvent.timeRmsEvent.transition_typeRmsEvent.value
- VeraGridEngine.Devices.Events.rms_events_group module
- VeraGridEngine.Devices.Events.short_cirtcuit_event module
ShortCircuitEventShortCircuitEvent.CLASS_NON_EDITABLE_PROPERTIESShortCircuitEvent.CLASS_PROPERTIES_WITH_PROFILEShortCircuitEvent.CLASS_PROPERTY_DECLARATIONSShortCircuitEvent.CLASS_PROPERTY_LISTShortCircuitEvent.CLASS_REGISTERED_PROPERTIESShortCircuitEvent.LOCAL_PROPERTY_DECLARATIONSShortCircuitEvent.activeShortCircuitEvent.fault_typeShortCircuitEvent.get_fault_impedance()ShortCircuitEvent.methodShortCircuitEvent.phasesShortCircuitEvent.r_faultShortCircuitEvent.x_fault
- Module contents
- VeraGridEngine.Devices.Fluid package
- Submodules
- VeraGridEngine.Devices.Fluid.fluid_injection_template module
FluidInjectionTemplateFluidInjectionTemplate.CLASS_NON_EDITABLE_PROPERTIESFluidInjectionTemplate.CLASS_PROPERTIES_WITH_PROFILEFluidInjectionTemplate.CLASS_PROPERTY_DECLARATIONSFluidInjectionTemplate.CLASS_PROPERTY_LISTFluidInjectionTemplate.CLASS_REGISTERED_PROPERTIESFluidInjectionTemplate.LOCAL_PROPERTY_DECLARATIONSFluidInjectionTemplate.activeFluidInjectionTemplate.active_profFluidInjectionTemplate.build_statusFluidInjectionTemplate.efficiencyFluidInjectionTemplate.facilityFluidInjectionTemplate.generatorFluidInjectionTemplate.max_flow_rateFluidInjectionTemplate.plant
- VeraGridEngine.Devices.Fluid.fluid_node module
FluidNodeFluidNode.CLASS_NON_EDITABLE_PROPERTIESFluidNode.CLASS_PROPERTIES_WITH_PROFILEFluidNode.CLASS_PROPERTY_DECLARATIONSFluidNode.CLASS_PROPERTY_LISTFluidNode.CLASS_REGISTERED_PROPERTIESFluidNode.LOCAL_PROPERTY_DECLARATIONSFluidNode.build_statusFluidNode.busFluidNode.colorFluidNode.copy()FluidNode.get_inflow_at()FluidNode.get_max_soc_at()FluidNode.get_min_soc_at()FluidNode.get_spillage_cost_at()FluidNode.inflowFluidNode.inflow_profFluidNode.initial_levelFluidNode.max_levelFluidNode.max_socFluidNode.max_soc_profFluidNode.min_levelFluidNode.min_socFluidNode.min_soc_profFluidNode.spillage_costFluidNode.spillage_cost_prof
- VeraGridEngine.Devices.Fluid.fluid_p2x module
- VeraGridEngine.Devices.Fluid.fluid_path module
FluidPathFluidPath.CLASS_NON_EDITABLE_PROPERTIESFluidPath.CLASS_PROPERTIES_WITH_PROFILEFluidPath.CLASS_PROPERTY_DECLARATIONSFluidPath.CLASS_PROPERTY_LISTFluidPath.CLASS_REGISTERED_PROPERTIESFluidPath.LOCAL_PROPERTY_DECLARATIONSFluidPath.colorFluidPath.copy()FluidPath.get_from_and_to_objects()FluidPath.locationsFluidPath.max_flowFluidPath.min_flowFluidPath.sourceFluidPath.target
- VeraGridEngine.Devices.Fluid.fluid_pump module
- VeraGridEngine.Devices.Fluid.fluid_turbine module
- Module contents
- VeraGridEngine.Devices.Injections package
- Submodules
- VeraGridEngine.Devices.Injections.battery module
BatteryBattery.CLASS_NON_EDITABLE_PROPERTIESBattery.CLASS_PROPERTIES_WITH_PROFILEBattery.CLASS_PROPERTY_DECLARATIONSBattery.CLASS_PROPERTY_LISTBattery.CLASS_REGISTERED_PROPERTIESBattery.EnomBattery.LOCAL_PROPERTY_DECLARATIONSBattery.charge_efficiencyBattery.charge_per_cycleBattery.device_typeBattery.discharge_efficiencyBattery.discharge_per_cycleBattery.energyBattery.max_socBattery.min_energyBattery.min_socBattery.min_soc_chargeBattery.socBattery.soc_0
- VeraGridEngine.Devices.Injections.controllable_shunt module
ControllableShuntControllableShunt.BmaxControllableShunt.BminControllableShunt.CLASS_NON_EDITABLE_PROPERTIESControllableShunt.CLASS_PROPERTIES_WITH_PROFILEControllableShunt.CLASS_PROPERTY_DECLARATIONSControllableShunt.CLASS_PROPERTY_LISTControllableShunt.CLASS_REGISTERED_PROPERTIESControllableShunt.GmaxControllableShunt.GminControllableShunt.LOCAL_PROPERTY_DECLARATIONSControllableShunt.VmaxControllableShunt.VminControllableShunt.VsetControllableShunt.Vset_profControllableShunt.active_stepsControllableShunt.b_per_stepControllableShunt.b_stepsControllableShunt.control_busControllableShunt.control_modeControllableShunt.g_per_stepControllableShunt.g_stepsControllableShunt.get_Vset_at()ControllableShunt.get_block_points()ControllableShunt.get_cumulative_b()ControllableShunt.get_cumulative_g()ControllableShunt.get_linear_b_steps()ControllableShunt.get_linear_g_steps()ControllableShunt.get_step_at()ControllableShunt.set_blocks()ControllableShunt.stepControllableShunt.step_prof
- VeraGridEngine.Devices.Injections.current_injection module
CurrentInjectionCurrentInjection.CLASS_NON_EDITABLE_PROPERTIESCurrentInjection.CLASS_PROPERTIES_WITH_PROFILECurrentInjection.CLASS_PROPERTY_DECLARATIONSCurrentInjection.CLASS_PROPERTY_LISTCurrentInjection.CLASS_REGISTERED_PROPERTIESCurrentInjection.IiCurrentInjection.Ii1CurrentInjection.Ii1_profCurrentInjection.Ii2CurrentInjection.Ii2_profCurrentInjection.Ii3CurrentInjection.Ii3_profCurrentInjection.Ii_profCurrentInjection.IrCurrentInjection.Ir1CurrentInjection.Ir1_profCurrentInjection.Ir2CurrentInjection.Ir2_profCurrentInjection.Ir3CurrentInjection.Ir3_profCurrentInjection.Ir_profCurrentInjection.LOCAL_PROPERTY_DECLARATIONSCurrentInjection.get_I1_at()CurrentInjection.get_I2_at()CurrentInjection.get_I3_at()CurrentInjection.get_I_at()CurrentInjection.get_Ii1_at()CurrentInjection.get_Ii2_at()CurrentInjection.get_Ii3_at()CurrentInjection.get_Ii_at()CurrentInjection.get_Ir1_at()CurrentInjection.get_Ir2_at()CurrentInjection.get_Ir3_at()CurrentInjection.get_Ir_at()CurrentInjection.plot_profiles()
- VeraGridEngine.Devices.Injections.external_grid module
ExternalGridExternalGrid.CLASS_NON_EDITABLE_PROPERTIESExternalGrid.CLASS_PROPERTIES_WITH_PROFILEExternalGrid.CLASS_PROPERTY_DECLARATIONSExternalGrid.CLASS_PROPERTY_LISTExternalGrid.CLASS_REGISTERED_PROPERTIESExternalGrid.LOCAL_PROPERTY_DECLARATIONSExternalGrid.VaExternalGrid.Va_profExternalGrid.VmExternalGrid.Vm_profExternalGrid.get_Va_at()ExternalGrid.get_Vm_at()ExternalGrid.modeExternalGrid.plot_profiles()ExternalGrid.substituted_device_id
- VeraGridEngine.Devices.Injections.generator module
GeneratorGenerator.CLASS_NON_EDITABLE_PROPERTIESGenerator.CLASS_PROPERTIES_WITH_PROFILEGenerator.CLASS_PROPERTY_DECLARATIONSGenerator.CLASS_PROPERTY_LISTGenerator.CLASS_REGISTERED_PROPERTIESGenerator.Cost0Generator.Cost0_profGenerator.Cost2Generator.Cost2_profGenerator.LOCAL_PROPERTY_DECLARATIONSGenerator.PGenerator.P_profGenerator.PfGenerator.Pf_profGenerator.PmaxGenerator.Pmax_profGenerator.PminGenerator.Pmin_profGenerator.QGenerator.Q_profGenerator.QmaxGenerator.Qmax_profGenerator.QminGenerator.Qmin_profGenerator.R0Generator.R1Generator.R2Generator.RrGenerator.RsGenerator.SbaseGenerator.SnomGenerator.VsetGenerator.Vset_profGenerator.X0Generator.X1Generator.X2Generator.XmGenerator.XrGenerator.XsGenerator.control_busGenerator.control_cnGenerator.control_modeGenerator.custom_q_pointsGenerator.dead_bandGenerator.emissionsGenerator.emissions_listGenerator.enabled_dispatchGenerator.enabled_dispatch_profGenerator.fix_inconsistencies()Generator.freqGenerator.fuelsGenerator.fuels_listGenerator.get_Cost0_at()Generator.get_Cost2_at()Generator.get_P_at()Generator.get_Pf_at()Generator.get_Pmax_at()Generator.get_Pmin_at()Generator.get_Q_at()Generator.get_Qmax_at()Generator.get_Qmin_at()Generator.get_S_with_sign()Generator.get_Sprof_with_sign()Generator.get_Vset_at()Generator.get_enabled_dispatch_at()Generator.get_first_emission()Generator.get_first_fuel()Generator.get_must_run_at()Generator.get_srap_enabled_at()Generator.is_controlledGenerator.k_droopGenerator.min_time_downGenerator.min_time_upGenerator.must_runGenerator.must_run_profGenerator.plot_profiles()Generator.q_curveGenerator.qmax_setGenerator.qmin_setGenerator.ramp_downGenerator.ramp_upGenerator.shutdown_costGenerator.srap_enabledGenerator.srap_enabled_profGenerator.startup_costGenerator.tpeGenerator.use_reactive_power_curve
compute_pf()compute_q()
- VeraGridEngine.Devices.Injections.generator_q_curve module
GeneratorQCurveGeneratorQCurve.copy()GeneratorQCurve.get_Pmax()GeneratorQCurve.get_Pmin()GeneratorQCurve.get_Qmax()GeneratorQCurve.get_Qmin()GeneratorQCurve.get_Snom()GeneratorQCurve.get_data()GeneratorQCurve.get_data_by_type()GeneratorQCurve.get_q_limits()GeneratorQCurve.get_qmax()GeneratorQCurve.get_qmin()GeneratorQCurve.make_default_q_curve()GeneratorQCurve.parse()GeneratorQCurve.plot()GeneratorQCurve.set()GeneratorQCurve.str()GeneratorQCurve.to_list()
- VeraGridEngine.Devices.Injections.load module
LoadLoad.BLoad.B1Load.B1_profLoad.B2Load.B2_profLoad.B3Load.B3_profLoad.B_profLoad.CLASS_NON_EDITABLE_PROPERTIESLoad.CLASS_PROPERTIES_WITH_PROFILELoad.CLASS_PROPERTY_DECLARATIONSLoad.CLASS_PROPERTY_LISTLoad.CLASS_REGISTERED_PROPERTIESLoad.GLoad.G1Load.G1_profLoad.G2Load.G2_profLoad.G3Load.G3_profLoad.G_profLoad.IiLoad.Ii1Load.Ii1_profLoad.Ii2Load.Ii2_profLoad.Ii3Load.Ii3_profLoad.Ii_profLoad.IrLoad.Ir1Load.Ir1_profLoad.Ir2Load.Ir2_profLoad.Ir3Load.Ir3_profLoad.Ir_profLoad.LOCAL_PROPERTY_DECLARATIONSLoad.assign_input_vars_and_params()Load.contract_powerLoad.get_B1_at()Load.get_B2_at()Load.get_B3_at()Load.get_B_at()Load.get_G1_at()Load.get_G2_at()Load.get_G3_at()Load.get_G_at()Load.get_I1_at()Load.get_I2_at()Load.get_I3_at()Load.get_I_at()Load.get_Ii1_at()Load.get_Ii2_at()Load.get_Ii3_at()Load.get_Ii_at()Load.get_Ir1_at()Load.get_Ir2_at()Load.get_Ir3_at()Load.get_Ir_at()Load.get_Y1_at()Load.get_Y1_conj_at()Load.get_Y2_at()Load.get_Y2_conj_at()Load.get_Y3_at()Load.get_Y3_conj_at()Load.get_Y_at()Load.get_Y_conj_at()Load.initialize_rms()Load.n_customersLoad.n_customers_profLoad.plot_profiles()
- VeraGridEngine.Devices.Injections.shunt module
- VeraGridEngine.Devices.Injections.static_generator module
- Module contents
- VeraGridEngine.Devices.Parents package
- Submodules
- VeraGridEngine.Devices.Parents.branch_parent module
BranchParentBranchParent.CLASS_NON_EDITABLE_PROPERTIESBranchParent.CLASS_PROPERTIES_WITH_PROFILEBranchParent.CLASS_PROPERTY_DECLARATIONSBranchParent.CLASS_PROPERTY_LISTBranchParent.CLASS_REGISTERED_PROPERTIESBranchParent.CostBranchParent.Cost_profBranchParent.LOCAL_PROPERTY_DECLARATIONSBranchParent.VfBranchParent.VtBranchParent.activeBranchParent.active_profBranchParent.alphaBranchParent.build_statusBranchParent.bus_fromBranchParent.bus_from_posBranchParent.bus_toBranchParent.bus_to_posBranchParent.capexBranchParent.colorBranchParent.contingency_enabledBranchParent.contingency_factorBranchParent.contingency_factor_profBranchParent.convertible_to_vsc()BranchParent.design_rateBranchParent.get_Cost_at()BranchParent.get_active_at()BranchParent.get_bus_pos()BranchParent.get_buses_sorted_by_voltage()BranchParent.get_contingency_factor_at()BranchParent.get_coordinates()BranchParent.get_from_and_to_objects()BranchParent.get_max_bus_nominal_voltage()BranchParent.get_min_bus_nominal_voltage()BranchParent.get_protection_rating_factor_at()BranchParent.get_rate_at()BranchParent.get_sorted_buses_voltages()BranchParent.get_substation_from()BranchParent.get_substation_to()BranchParent.get_temp_oper_at()BranchParent.get_virtual_taps()BranchParent.get_voltage_level_from()BranchParent.get_voltage_level_to()BranchParent.get_weight()BranchParent.groupBranchParent.monitor_loadingBranchParent.mttfBranchParent.mttrBranchParent.opexBranchParent.protection_rating_factorBranchParent.protection_rating_factor_profBranchParent.rateBranchParent.rate_profBranchParent.reassign_bus()BranchParent.reducibleBranchParent.should_this_be_a_transformer()BranchParent.temp_baseBranchParent.temp_operBranchParent.temp_oper_prof
- VeraGridEngine.Devices.Parents.controllable_branch_parent module
ControllableBranchParentControllableBranchParent.BControllableBranchParent.B0ControllableBranchParent.B2ControllableBranchParent.CLASS_NON_EDITABLE_PROPERTIESControllableBranchParent.CLASS_PROPERTIES_WITH_PROFILEControllableBranchParent.CLASS_PROPERTY_DECLARATIONSControllableBranchParent.CLASS_PROPERTY_LISTControllableBranchParent.CLASS_REGISTERED_PROPERTIESControllableBranchParent.GControllableBranchParent.G0ControllableBranchParent.G2ControllableBranchParent.LOCAL_PROPERTY_DECLARATIONSControllableBranchParent.PsetControllableBranchParent.Pset_profControllableBranchParent.QsetControllableBranchParent.Qset_profControllableBranchParent.RControllableBranchParent.R0ControllableBranchParent.R2ControllableBranchParent.R_correctedControllableBranchParent.XControllableBranchParent.X0ControllableBranchParent.X2ControllableBranchParent.apply_tap_changer()ControllableBranchParent.change_base()ControllableBranchParent.flip()ControllableBranchParent.get_Pset_at()ControllableBranchParent.get_Qset_at()ControllableBranchParent.get_tap_module_at()ControllableBranchParent.get_tap_module_control_mode_at()ControllableBranchParent.get_tap_phase_at()ControllableBranchParent.get_tap_phase_control_mode_at()ControllableBranchParent.get_vset_at()ControllableBranchParent.get_weight()ControllableBranchParent.regulation_branchControllableBranchParent.regulation_busControllableBranchParent.regulation_cnControllableBranchParent.set_tap_controls()ControllableBranchParent.tap_changerControllableBranchParent.tap_down()ControllableBranchParent.tap_moduleControllableBranchParent.tap_module_control_modeControllableBranchParent.tap_module_control_mode_profControllableBranchParent.tap_module_maxControllableBranchParent.tap_module_minControllableBranchParent.tap_module_profControllableBranchParent.tap_phaseControllableBranchParent.tap_phase_control_modeControllableBranchParent.tap_phase_control_mode_profControllableBranchParent.tap_phase_maxControllableBranchParent.tap_phase_minControllableBranchParent.tap_phase_profControllableBranchParent.tap_up()ControllableBranchParent.toleranceControllableBranchParent.vsetControllableBranchParent.vset_prof
- VeraGridEngine.Devices.Parents.dynamic_bus_parent module
DynamicBusDeviceDynamicBusDevice.CLASS_NON_EDITABLE_PROPERTIESDynamicBusDevice.CLASS_PROPERTIES_WITH_PROFILEDynamicBusDevice.CLASS_PROPERTY_DECLARATIONSDynamicBusDevice.CLASS_PROPERTY_LISTDynamicBusDevice.CLASS_REGISTERED_PROPERTIESDynamicBusDevice.LOCAL_PROPERTY_DECLARATIONSDynamicBusDevice.add_pending_emt_device()DynamicBusDevice.emt_modelDynamicBusDevice.get_pending_emt_devices()DynamicBusDevice.remove_pending_emt_device()DynamicBusDevice.rms_modelDynamicBusDevice.set_var_factory()
- VeraGridEngine.Devices.Parents.dynamic_parent module
DynamicDeviceDynamicDevice.CLASS_NON_EDITABLE_PROPERTIESDynamicDevice.CLASS_PROPERTIES_WITH_PROFILEDynamicDevice.CLASS_PROPERTY_DECLARATIONSDynamicDevice.CLASS_PROPERTY_LISTDynamicDevice.CLASS_REGISTERED_PROPERTIESDynamicDevice.LOCAL_PROPERTY_DECLARATIONSDynamicDevice.emt_fmu_import_configDynamicDevice.emt_fmu_me_import_configDynamicDevice.emt_fmu_templateDynamicDevice.emt_modelDynamicDevice.emt_templateDynamicDevice.rms_fmu_import_configDynamicDevice.rms_fmu_me_import_configDynamicDevice.rms_fmu_templateDynamicDevice.rms_modelDynamicDevice.rms_templateDynamicDevice.set_var_factory()
- VeraGridEngine.Devices.Parents.editable_device module
EditableDeviceEditableDevice.CLASS_NON_EDITABLE_PROPERTIESEditableDevice.CLASS_PROPERTIES_WITH_PROFILEEditableDevice.CLASS_PROPERTY_DECLARATIONSEditableDevice.CLASS_PROPERTY_LISTEditableDevice.CLASS_REGISTERED_PROPERTIESEditableDevice.LOCAL_PROPERTY_DECLARATIONSEditableDevice.actionEditableDevice.auto_update_enabledEditableDevice.codeEditableDevice.commentEditableDevice.compare()EditableDevice.copy()EditableDevice.create_profile()EditableDevice.create_profiles()EditableDevice.delete_profiles()EditableDevice.device_typeEditableDevice.diff_changesEditableDevice.disable_auto_updates()EditableDevice.enable_auto_updates()EditableDevice.ensure_profiles_exist()EditableDevice.flatten_idtag()EditableDevice.generate_uuid()EditableDevice.get_all_diff_changes_dict()EditableDevice.get_association_properties()EditableDevice.get_diff_change_selected()EditableDevice.get_headers()EditableDevice.get_number_of_properties()EditableDevice.get_profile()EditableDevice.get_profile_by_prop()EditableDevice.get_properties_containing_object()EditableDevice.get_property_by_idx()EditableDevice.get_property_by_name()EditableDevice.get_property_name_replacements_dict()EditableDevice.get_property_value()EditableDevice.get_property_value_by_idx()EditableDevice.get_rdfid()EditableDevice.get_save_data()EditableDevice.get_snapshot_value()EditableDevice.get_snapshot_value_by_name()EditableDevice.get_uuid()EditableDevice.get_value()EditableDevice.hex2rgb()EditableDevice.idtagEditableDevice.iter_properties_selected_to_merge()EditableDevice.nameEditableDevice.new_idtag()EditableDevice.non_editable_propertiesEditableDevice.properties_with_profileEditableDevice.property_listEditableDevice.rdfidEditableDevice.rebind_device_references()EditableDevice.register()EditableDevice.registered_propertiesEditableDevice.replace_objects()EditableDevice.resample_profiles()EditableDevice.resize_profiles()EditableDevice.rgb2hex()EditableDevice.rnd_color()EditableDevice.selected_to_mergeEditableDevice.set_diff_change()EditableDevice.set_profile()EditableDevice.set_profile_array()EditableDevice.set_profile_values()EditableDevice.set_property_value()EditableDevice.set_snapshot_value()EditableDevice.set_value()EditableDevice.type_name
EditableDeviceMetaGCPropPropertyChangesget_action_symbol()get_at()parse_idtag()smart_compare()uuid2idtag()
- VeraGridEngine.Devices.Parents.injection_parent module
InjectionParentInjectionParent.CLASS_NON_EDITABLE_PROPERTIESInjectionParent.CLASS_PROPERTIES_WITH_PROFILEInjectionParent.CLASS_PROPERTY_DECLARATIONSInjectionParent.CLASS_PROPERTY_LISTInjectionParent.CLASS_REGISTERED_PROPERTIESInjectionParent.CostInjectionParent.Cost_profInjectionParent.LOCAL_PROPERTY_DECLARATIONSInjectionParent.activeInjectionParent.active_profInjectionParent.associate_technology()InjectionParent.busInjectionParent.bus_posInjectionParent.capexInjectionParent.colorInjectionParent.color_by_main_owner()InjectionParent.color_by_main_technology()InjectionParent.connInjectionParent.facilityInjectionParent.get_Cost_at()InjectionParent.get_S_with_sign()InjectionParent.get_Sprof_with_sign()InjectionParent.get_active_at()InjectionParent.get_bus_pos()InjectionParent.get_first_technology()InjectionParent.get_shift_key_at()InjectionParent.latitudeInjectionParent.longitudeInjectionParent.mttfInjectionParent.mttrInjectionParent.opexInjectionParent.scalableInjectionParent.shift_keyInjectionParent.shift_key_profInjectionParent.tech_listInjectionParent.technologiesInjectionParent.try_to_find_coordinates()InjectionParent.use_kw
- VeraGridEngine.Devices.Parents.load_parent module
LoadParentLoadParent.CLASS_NON_EDITABLE_PROPERTIESLoadParent.CLASS_PROPERTIES_WITH_PROFILELoadParent.CLASS_PROPERTY_DECLARATIONSLoadParent.CLASS_PROPERTY_LISTLoadParent.CLASS_REGISTERED_PROPERTIESLoadParent.LOCAL_PROPERTY_DECLARATIONSLoadParent.PLoadParent.P_profLoadParent.PaLoadParent.Pa_profLoadParent.PbLoadParent.Pb_profLoadParent.PcLoadParent.Pc_profLoadParent.QLoadParent.Q_profLoadParent.QaLoadParent.Qa_profLoadParent.QbLoadParent.Qb_profLoadParent.QcLoadParent.Qc_profLoadParent.get_P_at()LoadParent.get_Pa_at()LoadParent.get_Pb_at()LoadParent.get_Pc_at()LoadParent.get_Pf_at()LoadParent.get_Q_at()LoadParent.get_Qa_at()LoadParent.get_Qb_at()LoadParent.get_Qc_at()LoadParent.get_S_at()LoadParent.get_S_with_sign()LoadParent.get_Sa_at()LoadParent.get_Sb_at()LoadParent.get_Sc_at()LoadParent.get_Sprof_with_sign()LoadParent.plot_profiles()LoadParent.split_sequence_load_in_3_phase()
- VeraGridEngine.Devices.Parents.physical_device module
PhysicalDevicePhysicalDevice.CLASS_NON_EDITABLE_PROPERTIESPhysicalDevice.CLASS_PROPERTIES_WITH_PROFILEPhysicalDevice.CLASS_PROPERTY_DECLARATIONSPhysicalDevice.CLASS_PROPERTY_LISTPhysicalDevice.CLASS_REGISTERED_PROPERTIESPhysicalDevice.LOCAL_PROPERTY_DECLARATIONSPhysicalDevice.associate_owner()PhysicalDevice.build_statusPhysicalDevice.commissioned_datePhysicalDevice.decommissioned_datePhysicalDevice.get_commissioned_date_as_date()PhysicalDevice.get_decommissioned_date_as_date()PhysicalDevice.modelling_authorityPhysicalDevice.ownersPhysicalDevice.owners_listPhysicalDevice.set_commissioned_year()PhysicalDevice.set_decommissioned_year()
- VeraGridEngine.Devices.Parents.pointer_device_parent module
PointerDeviceParentPointerDeviceParent.CLASS_NON_EDITABLE_PROPERTIESPointerDeviceParent.CLASS_PROPERTIES_WITH_PROFILEPointerDeviceParent.CLASS_PROPERTY_DECLARATIONSPointerDeviceParent.CLASS_PROPERTY_LISTPointerDeviceParent.CLASS_REGISTERED_PROPERTIESPointerDeviceParent.LOCAL_PROPERTY_DECLARATIONSPointerDeviceParent.copy()PointerDeviceParent.devicePointerDeviceParent.device_idtagPointerDeviceParent.device_namePointerDeviceParent.rebind_device_references()PointerDeviceParent.set_device()PointerDeviceParent.tpe
- VeraGridEngine.Devices.Parents.shunt_parent module
ShuntParentShuntParent.BShuntParent.B0ShuntParent.B0_profShuntParent.B_profShuntParent.BaShuntParent.Ba_profShuntParent.BbShuntParent.Bb_profShuntParent.BcShuntParent.Bc_profShuntParent.CLASS_NON_EDITABLE_PROPERTIESShuntParent.CLASS_PROPERTIES_WITH_PROFILEShuntParent.CLASS_PROPERTY_DECLARATIONSShuntParent.CLASS_PROPERTY_LISTShuntParent.CLASS_REGISTERED_PROPERTIESShuntParent.GShuntParent.G0ShuntParent.G0_profShuntParent.G_profShuntParent.GaShuntParent.Ga_profShuntParent.GbShuntParent.Gb_profShuntParent.GcShuntParent.Gc_profShuntParent.LOCAL_PROPERTY_DECLARATIONSShuntParent.fill_3_phase_from_sequence()ShuntParent.get_B0_at()ShuntParent.get_B_at()ShuntParent.get_Ba_at()ShuntParent.get_Bb_at()ShuntParent.get_Bc_at()ShuntParent.get_G0_at()ShuntParent.get_G_at()ShuntParent.get_Ga_at()ShuntParent.get_Gb_at()ShuntParent.get_Gc_at()ShuntParent.get_Y_at()ShuntParent.get_Ya_at()ShuntParent.get_Yb_at()ShuntParent.get_Yc_at()ShuntParent.plot_profiles()ShuntParent.ysh
- Module contents
- VeraGridEngine.Devices.Profiles package
- Submodules
- VeraGridEngine.Devices.Profiles.profile_bool module
ProfileBoolProfileBool.astype()ProfileBool.clear()ProfileBool.convert_sparse_to_dense()ProfileBool.copy()ProfileBool.create_dense()ProfileBool.create_sparse()ProfileBool.default_valueProfileBool.dense_arrayProfileBool.dtypeProfileBool.fill()ProfileBool.fix_nan()ProfileBool.get_sparse_map()ProfileBool.get_sparse_representation()ProfileBool.info()ProfileBool.is_initializedProfileBool.is_sparseProfileBool.resample()ProfileBool.resize()ProfileBool.scale()ProfileBool.set()ProfileBool.set_initialized()ProfileBool.set_sparse_data_from_data()ProfileBool.size()ProfileBool.sparse_arrayProfileBool.sparsityProfileBool.toarray()ProfileBool.tolist()
- VeraGridEngine.Devices.Profiles.profile_device module
ProfileDeviceProfileDevice.astype()ProfileDevice.clear()ProfileDevice.convert_sparse_to_dense()ProfileDevice.copy()ProfileDevice.create_dense()ProfileDevice.create_sparse()ProfileDevice.default_valueProfileDevice.dense_arrayProfileDevice.dtypeProfileDevice.fill()ProfileDevice.fix_nan()ProfileDevice.get_sparse_map()ProfileDevice.get_sparse_representation()ProfileDevice.info()ProfileDevice.is_initializedProfileDevice.is_sparseProfileDevice.rebind_device_references()ProfileDevice.resample()ProfileDevice.resize()ProfileDevice.scale()ProfileDevice.set()ProfileDevice.set_initialized()ProfileDevice.set_sparse_data_from_data()ProfileDevice.size()ProfileDevice.sparse_arrayProfileDevice.sparsityProfileDevice.toarray()ProfileDevice.tolist()
- VeraGridEngine.Devices.Profiles.profile_enum module
ProfileEnumProfileEnum.astype()ProfileEnum.clear()ProfileEnum.convert_sparse_to_dense()ProfileEnum.copy()ProfileEnum.create_dense()ProfileEnum.create_sparse()ProfileEnum.default_valueProfileEnum.dense_arrayProfileEnum.dtypeProfileEnum.fill()ProfileEnum.fix_nan()ProfileEnum.get_sparse_map()ProfileEnum.get_sparse_representation()ProfileEnum.info()ProfileEnum.is_initializedProfileEnum.is_sparseProfileEnum.resample()ProfileEnum.resize()ProfileEnum.scale()ProfileEnum.set()ProfileEnum.set_initialized()ProfileEnum.set_sparse_data_from_data()ProfileEnum.size()ProfileEnum.sparse_arrayProfileEnum.sparsityProfileEnum.toarray()ProfileEnum.tolist()
- VeraGridEngine.Devices.Profiles.profile_float module
ProfileFloatProfileFloat.astype()ProfileFloat.clear()ProfileFloat.convert_sparse_to_dense()ProfileFloat.copy()ProfileFloat.create_dense()ProfileFloat.create_sparse()ProfileFloat.default_valueProfileFloat.dense_arrayProfileFloat.dtypeProfileFloat.fill()ProfileFloat.fix_nan()ProfileFloat.get_sparse_map()ProfileFloat.get_sparse_representation()ProfileFloat.info()ProfileFloat.is_initializedProfileFloat.is_sparseProfileFloat.resample()ProfileFloat.resize()ProfileFloat.scale()ProfileFloat.set()ProfileFloat.set_initialized()ProfileFloat.set_sparse_data_from_data()ProfileFloat.size()ProfileFloat.sparse_arrayProfileFloat.sparsityProfileFloat.toarray()ProfileFloat.tolist()
- VeraGridEngine.Devices.Profiles.profile_int module
ProfileIntProfileInt.astype()ProfileInt.clear()ProfileInt.convert_sparse_to_dense()ProfileInt.copy()ProfileInt.create_dense()ProfileInt.create_sparse()ProfileInt.default_valueProfileInt.dense_arrayProfileInt.dtypeProfileInt.fill()ProfileInt.fix_nan()ProfileInt.get_sparse_map()ProfileInt.get_sparse_representation()ProfileInt.info()ProfileInt.is_initializedProfileInt.is_sparseProfileInt.resample()ProfileInt.resize()ProfileInt.scale()ProfileInt.set()ProfileInt.set_initialized()ProfileInt.set_sparse_data_from_data()ProfileInt.size()ProfileInt.sparse_arrayProfileInt.sparsityProfileInt.toarray()ProfileInt.tolist()
- VeraGridEngine.Devices.Profiles.sparse_array_bool module
SparseArrayBoolSparseArrayBool.at()SparseArrayBool.clear()SparseArrayBool.copy()SparseArrayBool.create()SparseArrayBool.create_from_array()SparseArrayBool.create_from_dict()SparseArrayBool.default_valueSparseArrayBool.dtypeSparseArrayBool.fill()SparseArrayBool.get_map()SparseArrayBool.get_sparse_representation()SparseArrayBool.get_sparsity()SparseArrayBool.info()SparseArrayBool.insert()SparseArrayBool.resample()SparseArrayBool.resize()SparseArrayBool.set_data()SparseArrayBool.set_sparse_data_from_data()SparseArrayBool.size()SparseArrayBool.slice()SparseArrayBool.toarray()
- VeraGridEngine.Devices.Profiles.sparse_array_device module
SparseArrayDeviceSparseArrayDevice.at()SparseArrayDevice.clear()SparseArrayDevice.copy()SparseArrayDevice.create()SparseArrayDevice.create_from_array()SparseArrayDevice.create_from_dict()SparseArrayDevice.default_valueSparseArrayDevice.dtypeSparseArrayDevice.fill()SparseArrayDevice.get_map()SparseArrayDevice.get_sparse_representation()SparseArrayDevice.get_sparsity()SparseArrayDevice.info()SparseArrayDevice.insert()SparseArrayDevice.rebind_device_references()SparseArrayDevice.resample()SparseArrayDevice.resize()SparseArrayDevice.set_data()SparseArrayDevice.set_sparse_data_from_data()SparseArrayDevice.size()SparseArrayDevice.slice()SparseArrayDevice.toarray()
- VeraGridEngine.Devices.Profiles.sparse_array_enum module
SparseArrayEnumSparseArrayEnum.at()SparseArrayEnum.clear()SparseArrayEnum.copy()SparseArrayEnum.create()SparseArrayEnum.create_from_array()SparseArrayEnum.create_from_dict()SparseArrayEnum.default_valueSparseArrayEnum.dtypeSparseArrayEnum.fill()SparseArrayEnum.get_map()SparseArrayEnum.get_sparse_representation()SparseArrayEnum.get_sparsity()SparseArrayEnum.info()SparseArrayEnum.insert()SparseArrayEnum.resample()SparseArrayEnum.resize()SparseArrayEnum.set_data()SparseArrayEnum.set_sparse_data_from_data()SparseArrayEnum.size()SparseArrayEnum.slice()SparseArrayEnum.toarray()
- VeraGridEngine.Devices.Profiles.sparse_array_float module
SparseArrayFloatSparseArrayFloat.at()SparseArrayFloat.clear()SparseArrayFloat.copy()SparseArrayFloat.create()SparseArrayFloat.create_from_array()SparseArrayFloat.create_from_dict()SparseArrayFloat.default_valueSparseArrayFloat.dtypeSparseArrayFloat.fill()SparseArrayFloat.get_map()SparseArrayFloat.get_sparse_representation()SparseArrayFloat.get_sparsity()SparseArrayFloat.info()SparseArrayFloat.insert()SparseArrayFloat.resample()SparseArrayFloat.resize()SparseArrayFloat.set_data()SparseArrayFloat.set_sparse_data_from_data()SparseArrayFloat.size()SparseArrayFloat.slice()SparseArrayFloat.toarray()
- VeraGridEngine.Devices.Profiles.sparse_array_int module
SparseArrayIntSparseArrayInt.at()SparseArrayInt.clear()SparseArrayInt.copy()SparseArrayInt.create()SparseArrayInt.create_from_array()SparseArrayInt.create_from_dict()SparseArrayInt.default_valueSparseArrayInt.dtypeSparseArrayInt.fill()SparseArrayInt.get_map()SparseArrayInt.get_sparse_representation()SparseArrayInt.get_sparsity()SparseArrayInt.info()SparseArrayInt.insert()SparseArrayInt.resample()SparseArrayInt.resize()SparseArrayInt.set_data()SparseArrayInt.set_sparse_data_from_data()SparseArrayInt.size()SparseArrayInt.slice()SparseArrayInt.toarray()
- VeraGridEngine.Devices.Profiles.type_checks module
- Module contents
ProfileBoolProfileBool.astype()ProfileBool.clear()ProfileBool.convert_sparse_to_dense()ProfileBool.copy()ProfileBool.create_dense()ProfileBool.create_sparse()ProfileBool.default_valueProfileBool.dense_arrayProfileBool.dtypeProfileBool.fill()ProfileBool.fix_nan()ProfileBool.get_sparse_map()ProfileBool.get_sparse_representation()ProfileBool.info()ProfileBool.is_initializedProfileBool.is_sparseProfileBool.resample()ProfileBool.resize()ProfileBool.scale()ProfileBool.set()ProfileBool.set_initialized()ProfileBool.set_sparse_data_from_data()ProfileBool.size()ProfileBool.sparse_arrayProfileBool.sparsityProfileBool.toarray()ProfileBool.tolist()
ProfileDeviceProfileDevice.astype()ProfileDevice.clear()ProfileDevice.convert_sparse_to_dense()ProfileDevice.copy()ProfileDevice.create_dense()ProfileDevice.create_sparse()ProfileDevice.default_valueProfileDevice.dense_arrayProfileDevice.dtypeProfileDevice.fill()ProfileDevice.fix_nan()ProfileDevice.get_sparse_map()ProfileDevice.get_sparse_representation()ProfileDevice.info()ProfileDevice.is_initializedProfileDevice.is_sparseProfileDevice.rebind_device_references()ProfileDevice.resample()ProfileDevice.resize()ProfileDevice.scale()ProfileDevice.set()ProfileDevice.set_initialized()ProfileDevice.set_sparse_data_from_data()ProfileDevice.size()ProfileDevice.sparse_arrayProfileDevice.sparsityProfileDevice.toarray()ProfileDevice.tolist()
ProfileEnumProfileEnum.astype()ProfileEnum.clear()ProfileEnum.convert_sparse_to_dense()ProfileEnum.copy()ProfileEnum.create_dense()ProfileEnum.create_sparse()ProfileEnum.default_valueProfileEnum.dense_arrayProfileEnum.dtypeProfileEnum.fill()ProfileEnum.fix_nan()ProfileEnum.get_sparse_map()ProfileEnum.get_sparse_representation()ProfileEnum.info()ProfileEnum.is_initializedProfileEnum.is_sparseProfileEnum.resample()ProfileEnum.resize()ProfileEnum.scale()ProfileEnum.set()ProfileEnum.set_initialized()ProfileEnum.set_sparse_data_from_data()ProfileEnum.size()ProfileEnum.sparse_arrayProfileEnum.sparsityProfileEnum.toarray()ProfileEnum.tolist()
ProfileFloatProfileFloat.astype()ProfileFloat.clear()ProfileFloat.convert_sparse_to_dense()ProfileFloat.copy()ProfileFloat.create_dense()ProfileFloat.create_sparse()ProfileFloat.default_valueProfileFloat.dense_arrayProfileFloat.dtypeProfileFloat.fill()ProfileFloat.fix_nan()ProfileFloat.get_sparse_map()ProfileFloat.get_sparse_representation()ProfileFloat.info()ProfileFloat.is_initializedProfileFloat.is_sparseProfileFloat.resample()ProfileFloat.resize()ProfileFloat.scale()ProfileFloat.set()ProfileFloat.set_initialized()ProfileFloat.set_sparse_data_from_data()ProfileFloat.size()ProfileFloat.sparse_arrayProfileFloat.sparsityProfileFloat.toarray()ProfileFloat.tolist()
ProfileIntProfileInt.astype()ProfileInt.clear()ProfileInt.convert_sparse_to_dense()ProfileInt.copy()ProfileInt.create_dense()ProfileInt.create_sparse()ProfileInt.default_valueProfileInt.dense_arrayProfileInt.dtypeProfileInt.fill()ProfileInt.fix_nan()ProfileInt.get_sparse_map()ProfileInt.get_sparse_representation()ProfileInt.info()ProfileInt.is_initializedProfileInt.is_sparseProfileInt.resample()ProfileInt.resize()ProfileInt.scale()ProfileInt.set()ProfileInt.set_initialized()ProfileInt.set_sparse_data_from_data()ProfileInt.size()ProfileInt.sparse_arrayProfileInt.sparsityProfileInt.toarray()ProfileInt.tolist()
SparseArrayBoolSparseArrayBool.at()SparseArrayBool.clear()SparseArrayBool.copy()SparseArrayBool.create()SparseArrayBool.create_from_array()SparseArrayBool.create_from_dict()SparseArrayBool.default_valueSparseArrayBool.dtypeSparseArrayBool.fill()SparseArrayBool.get_map()SparseArrayBool.get_sparse_representation()SparseArrayBool.get_sparsity()SparseArrayBool.info()SparseArrayBool.insert()SparseArrayBool.resample()SparseArrayBool.resize()SparseArrayBool.set_data()SparseArrayBool.set_sparse_data_from_data()SparseArrayBool.size()SparseArrayBool.slice()SparseArrayBool.toarray()
SparseArrayDeviceSparseArrayDevice.at()SparseArrayDevice.clear()SparseArrayDevice.copy()SparseArrayDevice.create()SparseArrayDevice.create_from_array()SparseArrayDevice.create_from_dict()SparseArrayDevice.default_valueSparseArrayDevice.dtypeSparseArrayDevice.fill()SparseArrayDevice.get_map()SparseArrayDevice.get_sparse_representation()SparseArrayDevice.get_sparsity()SparseArrayDevice.info()SparseArrayDevice.insert()SparseArrayDevice.rebind_device_references()SparseArrayDevice.resample()SparseArrayDevice.resize()SparseArrayDevice.set_data()SparseArrayDevice.set_sparse_data_from_data()SparseArrayDevice.size()SparseArrayDevice.slice()SparseArrayDevice.toarray()
SparseArrayEnumSparseArrayEnum.at()SparseArrayEnum.clear()SparseArrayEnum.copy()SparseArrayEnum.create()SparseArrayEnum.create_from_array()SparseArrayEnum.create_from_dict()SparseArrayEnum.default_valueSparseArrayEnum.dtypeSparseArrayEnum.fill()SparseArrayEnum.get_map()SparseArrayEnum.get_sparse_representation()SparseArrayEnum.get_sparsity()SparseArrayEnum.info()SparseArrayEnum.insert()SparseArrayEnum.resample()SparseArrayEnum.resize()SparseArrayEnum.set_data()SparseArrayEnum.set_sparse_data_from_data()SparseArrayEnum.size()SparseArrayEnum.slice()SparseArrayEnum.toarray()
SparseArrayFloatSparseArrayFloat.at()SparseArrayFloat.clear()SparseArrayFloat.copy()SparseArrayFloat.create()SparseArrayFloat.create_from_array()SparseArrayFloat.create_from_dict()SparseArrayFloat.default_valueSparseArrayFloat.dtypeSparseArrayFloat.fill()SparseArrayFloat.get_map()SparseArrayFloat.get_sparse_representation()SparseArrayFloat.get_sparsity()SparseArrayFloat.info()SparseArrayFloat.insert()SparseArrayFloat.resample()SparseArrayFloat.resize()SparseArrayFloat.set_data()SparseArrayFloat.set_sparse_data_from_data()SparseArrayFloat.size()SparseArrayFloat.slice()SparseArrayFloat.toarray()
SparseArrayIntSparseArrayInt.at()SparseArrayInt.clear()SparseArrayInt.copy()SparseArrayInt.create()SparseArrayInt.create_from_array()SparseArrayInt.create_from_dict()SparseArrayInt.default_valueSparseArrayInt.dtypeSparseArrayInt.fill()SparseArrayInt.get_map()SparseArrayInt.get_sparse_representation()SparseArrayInt.get_sparsity()SparseArrayInt.info()SparseArrayInt.insert()SparseArrayInt.resample()SparseArrayInt.resize()SparseArrayInt.set_data()SparseArrayInt.set_sparse_data_from_data()SparseArrayInt.size()SparseArrayInt.slice()SparseArrayInt.toarray()
check_if_sparse()check_type()
- VeraGridEngine.Devices.Substation package
- Submodules
- VeraGridEngine.Devices.Substation.bus module
BusBus.CLASS_NON_EDITABLE_PROPERTIESBus.CLASS_PROPERTIES_WITH_PROFILEBus.CLASS_PROPERTY_DECLARATIONSBus.CLASS_PROPERTY_LISTBus.CLASS_REGISTERED_PROPERTIESBus.LOCAL_PROPERTY_DECLARATIONSBus.Qmax_sumBus.Qmin_sumBus.Va0Bus.Vm0Bus.Vm_costBus.VmaxBus.Vmax_profBus.VminBus.Vmin_profBus.VnomBus.activeBus.active_profBus.angle_costBus.angle_maxBus.angle_minBus.areaBus.bus_barBus.colorBus.countryBus.determine_bus_type()Bus.get_Vmax_at()Bus.get_Vmin_at()Bus.get_active_at()Bus.get_coordinates()Bus.get_voltage_guess()Bus.graphic_typeBus.hBus.internalBus.is_dcBus.is_groundedBus.is_slackBus.latitudeBus.longitudeBus.plot_profiles()Bus.substationBus.try_to_find_coordinates()Bus.voltage_levelBus.wBus.xBus.yBus.zone
- VeraGridEngine.Devices.Substation.busbar module
- VeraGridEngine.Devices.Substation.substation module
SubstationSubstation.CLASS_NON_EDITABLE_PROPERTIESSubstation.CLASS_PROPERTIES_WITH_PROFILESubstation.CLASS_PROPERTY_DECLARATIONSSubstation.CLASS_PROPERTY_LISTSubstation.CLASS_REGISTERED_PROPERTIESSubstation.LOCAL_PROPERTY_DECLARATIONSSubstation.addressSubstation.areaSubstation.colorSubstation.commissioned_dateSubstation.communitySubstation.countrySubstation.decommissioned_dateSubstation.get_commissioned_date_as_date()Substation.get_decommissioned_date_as_date()Substation.get_irradiation_at()Substation.get_temperature_at()Substation.get_wind_speed_at()Substation.irradiationSubstation.irradiation_profSubstation.latitudeSubstation.longitudeSubstation.modelling_authoritySubstation.municipalitySubstation.regionSubstation.set_commissioned_year()Substation.set_decommissioned_year()Substation.temperatureSubstation.temperature_profSubstation.terrain_roughnessSubstation.wind_speedSubstation.wind_speed_profSubstation.zone
- VeraGridEngine.Devices.Substation.voltage_level module
- VeraGridEngine.Devices.Substation.voltage_level_template module
VoltageLevelTemplateVoltageLevelTemplate.CLASS_NON_EDITABLE_PROPERTIESVoltageLevelTemplate.CLASS_PROPERTIES_WITH_PROFILEVoltageLevelTemplate.CLASS_PROPERTY_DECLARATIONSVoltageLevelTemplate.CLASS_PROPERTY_LISTVoltageLevelTemplate.CLASS_REGISTERED_PROPERTIESVoltageLevelTemplate.LOCAL_PROPERTY_DECLARATIONSVoltageLevelTemplate.actionVoltageLevelTemplate.add_disconnectorsVoltageLevelTemplate.commentVoltageLevelTemplate.device_typeVoltageLevelTemplate.diff_changesVoltageLevelTemplate.n_baysVoltageLevelTemplate.selected_to_mergeVoltageLevelTemplate.voltage
- Module contents
Submodulesο
VeraGridEngine.Devices.admittance_matrix moduleο
- class VeraGridEngine.Devices.admittance_matrix.AdmittanceMatrix(size: int = 0)[source]ο
Bases:
objectThis is the admittance matrix to store the three-phases admittance of a branch
- copy() AdmittanceMatrix[source]ο
Make a copy of the admittance matrix :return:
- parse(data: Dict[str, str | float | int]) None[source]ο
Parse the tap data :param data: dictionary representation of the tap
- property phAο
- Returns:
- property phBο
- property phCο
- property phNο
- Returns:
- property size: intο
- property values: ndarray[tuple[Any, ...], dtype[complex128]]ο
- VeraGridEngine.Devices.admittance_matrix.list_to_matrix(data: List[List[float]] | None, size: int) ndarray[tuple[Any, ...], dtype[float64]] | ndarray[tuple[int, int], dtype[float64]][source]ο
Attempts converting a list of lists to matrix :param data: list of lists of floats representing a matrix :param size: size of the matrix (square) :return: Numpy array representing a matrix
VeraGridEngine.Devices.assets moduleο
- class VeraGridEngine.Devices.assets.Assets[source]ο
Bases:
objectClass to store the assets
- add_battery(bus: None | Bus = None, api_obj: None | Battery = None) Battery[source]ο
Add battery :param bus: :param api_obj: :return:
- add_branch(obj: Line | DcLine | Transformer2W | HvdcLine | VSC | UPFC | Winding | Switch | SeriesReactance | Branch) None[source]ο
Add any branch object (itβs type will be inferred here) :param obj: any class inheriting from ParentBranch
- add_branch_group(obj: BranchGroup)[source]ο
Add a BranchGroup object :param obj: BranchGroup instance
- add_bus(obj: None | Bus = None) Bus[source]ο
Add a Bus object to the grid.
Arguments:
obj (Bus): Bus object
- add_contingency(obj: Contingency)[source]ο
Add a contingency :param obj: Contingency
- add_contingency_group(obj: ContingencyGroup)[source]ο
Add contingency group :param obj: ContingencyGroup
- add_controllable_shunt(bus: None | Bus = None, api_obj: None | ControllableShunt = None) ControllableShunt[source]ο
Add a ControllableShunt object :param bus: Main bus (optional) :param api_obj: ControllableShunt instance :return: ControllableShunt
- add_current_injection(bus: None | Bus = None, api_obj: None | CurrentInjection = None) CurrentInjection[source]ο
Add a CurrentInjection object :param bus: Bus :param api_obj: CurrentInjection instance
- add_diagram(diagram: MapDiagram | SchematicDiagram)[source]ο
Add diagram :param diagram: MapDiagram, SchematicDiagram device :return:
- add_dynamic_plot(obj: DynamicPlot)[source]ο
Add dynamic plot :param obj: DynamicPlot
- add_dynamic_plot_entry(obj: DynamicPlotEntry)[source]ο
Add dynamic plot entry :param obj: DynamicPlotEntry
- add_element(obj: Generator | Battery | Load | ExternalGrid | StaticGenerator | Shunt | ControllableShunt | CurrentInjection | Line | DcLine | Transformer2W | HvdcLine | VSC | UPFC | Winding | Switch | SeriesReactance | FluidNode | FluidPath | FluidP2x | FluidTurbine | FluidPump | Substation | Bus | BusBar | VoltageLevel | Country | Region | Community | Municipality | Area | Zone | Transformer3W | TransformerNW | OverheadLineType | Wire | TransformerType | EmissionGas | BranchGroup | LineLocations | LineLocation | ModellingAuthority | Facility | Fuel | Investment | InvestmentsGroup | Contingency | ContingencyGroup | RemedialAction | RemedialActionGroup | Technology | Owner | UndergroundLineType | SequenceLineType | RmsModelTemplate | EmtModelTemplate | FmuTemplate | RmsEvent | RmsEventsGroup | ShortCircuitEvent | IfMeasurement | ItMeasurement | QfMeasurement | PfMeasurement | QtMeasurement | PtMeasurement | QiMeasurement | PiMeasurement | VmMeasurement | VaMeasurement | PgMeasurement | QgMeasurement) None[source]ο
Add a device in its corresponding list :param obj: device object to add :return: Nothing
- add_emission_gas(obj: EmissionGas)[source]ο
Add EmissionGas :param obj: EmissionGas object
- add_emt_events_group(obj: EmtEventsGroup)[source]ο
Add emt events group :param obj: EmtEventsGroup
- add_emt_model(obj: EmtModelTemplate)[source]ο
Add emt model to the collection :param obj: DynamicModel instance
- add_external_grid(bus: None | Bus = None, api_obj: None | ExternalGrid = None) ExternalGrid[source]ο
Add an external grid :param bus: Bus object :param api_obj: api_obj, if None, create a new one :return: ExternalGrid
- add_fluid_p2x(node: None | FluidNode = None, api_obj: FluidP2x | None = None) FluidP2x[source]ο
Add power to x :param node: Fluid node to add to :param api_obj:FluidP2x
- add_fluid_pump(node: None | FluidNode = None, api_obj: FluidPump | None = None) FluidPump[source]ο
Add fluid pump :param node: Fluid node to add to :param api_obj:FluidPump
- add_fluid_turbine(node: None | FluidNode = None, api_obj: FluidTurbine | None = None) FluidTurbine[source]ο
Add fluid turbine :param node: Fluid node to add to :param api_obj: FluidTurbine
- add_fmu_template(obj: FmuTemplate) None[source]ο
Add one reusable FMU template to the catalogue.
- Parameters:
obj β FMU template instance.
- Returns:
None.
- add_generator(bus: None | Bus = None, api_obj: None | Generator = None) Generator[source]ο
Add a generator :param bus: Main bus (optional) :param api_obj: Generator object (optional) :return: Generator object (created if api_obj is None)
- add_if_measurement(obj: IfMeasurement)[source]ο
Add a IfMeasurement object :param obj: IfMeasurement instance
- add_investment(obj: Investment)[source]ο
Add investment :param obj: Investment
- add_investments_group(obj: InvestmentsGroup)[source]ο
Add investments group :param obj: InvestmentsGroup
- add_it_measurement(obj: ItMeasurement)[source]ο
Add a ItMeasurement object :param obj: ItMeasurement instance
- add_line(obj: Line, logger: Logger | DataLogger = <VeraGridEngine.basic_structures.Logger object>) Line[source]ο
Add a line object :param obj: Line instance :param logger: Logger to record events
- add_load(bus: None | Bus = None, api_obj: None | Load = None) Load[source]ο
Add a load device :param bus: Main bus (optional) :param api_obj: Device to add (optional) :return: Load device passed or created
- add_modelling_authority(obj: ModellingAuthority)[source]ο
Add a ModellingAuthority object :param obj: ModellingAuthority instance
- add_municipality(obj: Municipality)[source]ο
Add a Municipality object :param obj: Municipality instance
- add_overhead_line(obj: OverheadLineType)[source]ο
Add overhead line (tower) template to the collection :param obj: Tower instance
- add_pf_measurement(obj: PfMeasurement)[source]ο
Add a PfMeasurement object :param obj: PfMeasurement instance
- add_pg_measurement(obj: PgMeasurement)[source]ο
Add a PgMeasurement object :param obj: PgMeasurement instance
- add_pi_measurement(obj: PiMeasurement)[source]ο
Add a PiMeasurement object :param obj: PiMeasurement instance
- add_pt_measurement(obj: PtMeasurement)[source]ο
Add a PfMeasurement object :param obj: PfMeasurement instance
- add_qf_measurement(obj: QfMeasurement)[source]ο
Add a QfMeasurement object :param obj: QfMeasurement instance
- add_qg_measurement(obj: QgMeasurement)[source]ο
Add a QiMeasurement object :param obj: QiMeasurement instance
- add_qi_measurement(obj: QiMeasurement)[source]ο
Add a QiMeasurement object :param obj: QiMeasurement instance
- add_qt_measurement(obj: QtMeasurement)[source]ο
Add a QtMeasurement object :param obj: QtMeasurement instance
- add_remedial_action(obj: RemedialAction)[source]ο
Add a remedial actions :param obj: RemedialAction
- add_remedial_action_group(obj: RemedialActionGroup)[source]ο
Add _remedial_action group :param obj: ContingencyGroup
- add_rms_events_group(obj: RmsEventsGroup)[source]ο
Add rms events group :param obj: RmsEventsGroup
- add_rms_model(obj: RmsModelTemplate)[source]ο
Add rms model to the collection :param obj: DynamicModel instance
- add_rms_model_catalogue()[source]ο
Here the list of all rms templates must be returned in a list :return:
- add_sequence_line(obj: SequenceLineType)[source]ο
Add sequence line to the collection :param obj: SequenceLineType instance
- add_series_reactance(obj: SeriesReactance)[source]ο
Add a SeriesReactance object :param obj: SeriesReactance instance
- add_short_circuit_event(obj: ShortCircuitEvent)[source]ο
Add short_circuit_definitions :param obj: ShortCircuitDefinition
- add_shunt(bus: None | Bus = None, api_obj: None | Shunt = None) Shunt[source]ο
Add a Shunt object to a Bus.
Arguments:
bus (Bus): Bus object
api_obj (Shunt): Shunt object
- add_static_generator(bus: None | Bus = None, api_obj: None | StaticGenerator = None) StaticGenerator[source]ο
Add a static generator :param bus: Bus object :param api_obj: StaticGenerator object :return: StaticGenerator object (created if api_obj is None)
- add_substation(obj: Substation)[source]ο
Add Substation :param obj: Substation object
- add_technology(obj: Technology)[source]ο
Add technology :param obj: Technology
- add_transformer2w(obj: Transformer2W) Transformer2W[source]ο
Add a transformer object :param obj: Transformer2W instance
- add_transformer3w(obj: Transformer3W, add_middle_bus: bool = True)[source]ο
Add a transformer object :param obj: Transformer3W instance :param add_middle_bus: Add the TR3 middle bus?
- add_transformer_nw(obj: TransformerNW, add_middle_bus: bool = True)[source]ο
Add an N-winding transformer object :param obj: TransformerNW instance :param add_middle_bus: Add the internal star bus?
- add_transformer_type(obj: TransformerType)[source]ο
Add transformer template :param obj: TransformerType instance
- add_underground_line(obj: UndergroundLineType)[source]ο
Add underground line :param obj: UndergroundLineType instance
- add_va_measurement(obj: VaMeasurement)[source]ο
Add a VaMeasurement object :param obj: VmMeasurement instance
- add_vm_measurement(obj: VmMeasurement)[source]ο
Add a VmMeasurement object :param obj: VmMeasurement instance
- add_voltage_level(obj: VoltageLevel)[source]ο
Add a VoltageLevel object :param obj: VoltageLevel instance
- apply_all_relevant_investments() Logger[source]ο
Apply the investments that shall be in operation at the model date :return: Logger
- apply_investment(investment: Investment, logger: Logger)[source]ο
Apply investment :param investment: :param logger: :return:
- apply_investments_group(inv_group: InvestmentsGroup, inv_groups_dict: Dict[InvestmentsGroup, List[Investment]] | None = None) Logger[source]ο
Apply the investments that shall be in operation at the model date :param inv_group: :param inv_groups_dict: :return: Logger
- property branch_groups: List[BranchGroup]ο
- Returns:
- property contingencies: List[Contingency]ο
Get list of contingencies :return:
- property contingency_groups: List[ContingencyGroup]ο
Get list of contingency groups :return:
- property controllable_shunts: List[ControllableShunt]ο
Get list of controllable shunts :return:
- create_profiles(steps, step_length, step_unit, time_base: datetime = datetime.datetime(2026, 6, 9, 7, 26, 30, 969157))[source]ο
Set the default profiles in all the objects enabled to have profiles. :param steps: Number of time steps :param step_length: Time length (1, 2, 15, β¦) :param step_unit: Unit of the time step (βhβ, βmβ or βsβ) :param time_base: Date to start from
- property current_injections: List[CurrentInjection]ο
Get list of current injection devices :return:
- delete_branch(obj: Line | DcLine | Transformer2W | HvdcLine | VSC | UPFC | Winding | Switch | SeriesReactance)[source]ο
Delete a Branch object from the grid.
Arguments:
obj (Branch): Branch object
- delete_branch_group(obj: BranchGroup) None[source]ο
Add a BranchGroup object :param obj: BranchGroup instance
- delete_branches_with_sets(buses_to_remove: Set[Bus], delete_associated: bool = False)[source]ο
Delete branch objects that may contain contingencies, remedial actions, or investments Used when you delete buses connected to branches :param buses_to_remove: Set of buses to remove :param delete_associated: Delete the associated branches :return: None
- delete_bus(obj: Bus, delete_associated=False)[source]ο
Delete a Bus object from the grid. :param obj: Bus object :param delete_associated: Delete the associated branches and injections
- delete_buses(lst: Sequence[Bus], delete_associated=False)[source]ο
Delete a Bus object from the grid. :param lst: Array of objects to remove :param delete_associated: Delete the associated branches and injections
- delete_community(obj: Community) None[source]ο
Add a Community object :param obj: Community instance
- delete_contingency(obj, del_group: bool = False)[source]ο
Delete zone :param obj: index :param del_group: Delete group if empty?
- delete_contingency_group(obj: ContingencyGroup)[source]ο
Delete contingency group :param obj: ContingencyGroup
- delete_controllable_shunt(obj: ControllableShunt) None[source]ο
Add a LinearShunt object :param obj: LinearShunt instance
- delete_current_injection(obj: CurrentInjection) None[source]ο
Add a CurrentInjection object :param obj: CurrentInjection instance
- delete_dynamic_plot(obj: DynamicPlot)[source]ο
Delete dynamic plot :param obj: index
- delete_dynamic_plot_entry(obj: DynamicPlotEntry)[source]ο
Delete dynamic plot entry :param obj: index
- delete_element(obj: Generator | Battery | Load | ExternalGrid | StaticGenerator | Shunt | ControllableShunt | CurrentInjection | Line | DcLine | Transformer2W | HvdcLine | VSC | UPFC | Winding | Switch | SeriesReactance | FluidNode | FluidPath | FluidP2x | FluidTurbine | FluidPump | Substation | Bus | BusBar | VoltageLevel | Country | Region | Community | Municipality | Area | Zone | Transformer3W | TransformerNW | OverheadLineType | Wire | TransformerType | EmissionGas | BranchGroup | LineLocations | LineLocation | ModellingAuthority | Facility | Fuel | Investment | InvestmentsGroup | Contingency | ContingencyGroup | RemedialAction | RemedialActionGroup | Technology | Owner | UndergroundLineType | SequenceLineType | RmsModelTemplate | EmtModelTemplate | FmuTemplate | RmsEvent | RmsEventsGroup | ShortCircuitEvent | IfMeasurement | ItMeasurement | QfMeasurement | PfMeasurement | QtMeasurement | PtMeasurement | QiMeasurement | PiMeasurement | VmMeasurement | VaMeasurement | PgMeasurement | QgMeasurement) None[source]ο
Get set of elements and their parent nodes :param obj: device object to delete_with_dialogue :return: Nothing
- delete_emission_gas(obj: EmissionGas)[source]ο
Delete Substation :param obj: index
- delete_emt_event(obj: EmtEvent, del_group: bool = False)[source]ο
Delete zone :param obj: index :param del_group: delete_with_dialogue the group?
- delete_emt_events_group(obj: EmtEventsGroup)[source]ο
Delete zone :param obj: index
- delete_emt_model(obj: EmtModelTemplate)[source]ο
Delete EMT model from the collection :param obj: DynamicModel object
- delete_external_grid(obj: ExternalGrid)[source]ο
Delete a external grid :param obj: :return:
- delete_fluid_turbine(obj: FluidTurbine)[source]ο
Delete fuid turbine :param obj: FluidTurbine
- delete_fmu_template(obj: FmuTemplate) None[source]ο
Delete one reusable FMU template from the catalogue.
- Parameters:
obj β FMU template instance.
- Returns:
None.
- delete_groupings_with_object(obj: Line | DcLine | Transformer2W | HvdcLine | VSC | UPFC | Winding | Switch | SeriesReactance, delete_groups: bool = True)[source]ο
Delete the dependencies that may come with a branch :param obj: branch object or any object :param delete_groups: delete_with_dialogue empty groups too? :return:
- delete_if_measurement(obj: IfMeasurement) None[source]ο
Add a IfMeasurement object :param obj: IfMeasurement instance
- delete_injection_device(obj: Generator | Battery | Load | ExternalGrid | StaticGenerator | Shunt | ControllableShunt | CurrentInjection)[source]ο
Delete a Branch object from the grid.
Arguments:
obj (Branch): Branch object
- delete_investment(obj: Investment, del_group: bool = False)[source]ο
Delete zone :param obj: index :param del_group: delete_with_dialogue the group?
- delete_investment_groups(obj: InvestmentsGroup)[source]ο
Delete zone :param obj: index
- delete_it_measurement(obj: ItMeasurement) None[source]ο
Add a ItMeasurement object :param obj: ItMeasurement instance
- delete_line_template_dependency(obj)[source]ο
Search a branch template from lines and transformers and delete_with_dialogue it :param obj: :return:
- delete_modelling_authority(obj: ModellingAuthority) None[source]ο
Add a ModellingAuthority object :param obj: ModellingAuthority instance
- delete_municipality(obj: Municipality) None[source]ο
Add a Municipality object :param obj: Municipality instance
- delete_overhead_line(obj: OverheadLineType)[source]ο
Delete tower from the collection :param obj: OverheadLineType
- delete_pf_measurement(obj: PfMeasurement) None[source]ο
Add a PfMeasurement object :param obj: PfMeasurement instance
- delete_pg_measurement(obj: PgMeasurement) None[source]ο
Add a PiMeasurement object :param obj: PiMeasurement instance
- delete_pi_measurement(obj: PiMeasurement) None[source]ο
Add a PiMeasurement object :param obj: PiMeasurement instance
- delete_pt_measurement(obj: PtMeasurement) None[source]ο
Add a PtMeasurement object :param obj: PtMeasurement instance
- delete_qf_measurement(obj: QfMeasurement) None[source]ο
Add a QfMeasurement object :param obj: QfMeasurement instance
- delete_qg_measurement(obj: QgMeasurement) None[source]ο
Add a QgMeasurement object :param obj: QgMeasurement instance
- delete_qi_measurement(obj: QiMeasurement) None[source]ο
Add a QiMeasurement object :param obj: QiMeasurement instance
- delete_qt_measurement(obj: QtMeasurement) None[source]ο
Add a QtMeasurement object :param obj: QtMeasurement instance
- delete_remedial_action(obj, del_group: bool = False)[source]ο
Delete RemedialAction :param del_group: Delete the group? :param obj: index
- delete_remedial_action_group(obj: RemedialActionGroup)[source]ο
Delete contingency group :param obj: ContingencyGroup
- delete_rms_event(obj: RmsEvent, del_group: bool = False)[source]ο
Delete zone :param obj: index :param del_group: delete_with_dialogue the group?
- delete_rms_events_group(obj: RmsEventsGroup)[source]ο
Delete zone :param obj: index
- delete_rms_model(obj: RmsModelTemplate)[source]ο
Delete RMS model from the collection :param obj: DynamicModel object
- delete_series_reactance(obj: SeriesReactance) None[source]ο
Add a SeriesReactance object :param obj: SeriesReactance instance
- delete_short_circuit_event(obj: ShortCircuitEvent)[source]ο
Delete ShortCircuitDefinition :param obj: index
- delete_static_generator(obj: StaticGenerator)[source]ο
Delete a static generators :param obj: :return:
- delete_substation(obj: Substation)[source]ο
Delete Substation :param obj: Substation object
- delete_technology(obj: Technology)[source]ο
Delete zone :param obj: index
- delete_transformer2w(obj: Transformer2W)[source]ο
Delete transformer :param obj: Transformer2W instance
- delete_transformer3w(obj: Transformer3W)[source]ο
Delete transformer :param obj: Transformer2W instance
- delete_transformer_nw(obj: TransformerNW)[source]ο
Delete N-winding transformer :param obj: TransformerNW instance
- delete_transformer_template_dependency(obj: TransformerType)[source]ο
Search a branch template from lines and transformers and delete_with_dialogue it :param obj: :return:
- delete_transformer_type(obj: TransformerType)[source]ο
Delete transformer type from the collection :param obj
- delete_va_measurement(obj: VaMeasurement) None[source]ο
Add a VaMeasurement object :param obj: VaMeasurement instance
- delete_vm_measurement(obj: VmMeasurement) None[source]ο
Add a VmMeasurement object :param obj: VmMeasurement instance
- delete_voltage_level(obj: VoltageLevel) None[source]ο
Add a VoltageLevel object :param obj: VoltageLevel instance
- device_associations: Dict[str, List[str]]ο
self.type_name = βShuntβ
self.properties_with_profile = [βYβ]
- device_type_name_dict: Dict[str, DeviceType]ο
- property diagrams: List[MapDiagram | SchematicDiagram]ο
Get the list of diagrams :return:
- property dynamic_plot_entries: List[DynamicPlotEntry]ο
- Returns:
- property dynamic_plots: List[DynamicPlot]ο
- Returns:
- property emission_gases: List[EmissionGas]ο
Get list of emission gases :return:
- property emt_events_groups: List[EmtEventsGroup]ο
- Returns:
- property emt_models: List[EmtModelTemplate]ο
list of emt models :return:
- property external_grids: List[ExternalGrid]ο
Get list of external grids :return:
- property fmu_templates: List[FmuTemplate]ο
List of reusable FMU templates.
- Returns:
FMU templates.
- format_profiles(index: DatetimeIndex)[source]ο
Format the profiles in place using a time index. :param index: Time profile
- get_all_elements_dict(use_secondary_key: bool = False, use_rdfid: bool = False, logger=<VeraGridEngine.basic_structures.Logger object>) Tuple[Dict[str, Generator | Battery | Load | ExternalGrid | StaticGenerator | Shunt | ControllableShunt | CurrentInjection | Line | DcLine | Transformer2W | HvdcLine | VSC | UPFC | Winding | Switch | SeriesReactance | FluidNode | FluidPath | FluidP2x | FluidTurbine | FluidPump | Substation | Bus | BusBar | VoltageLevel | Country | Region | Community | Municipality | Area | Zone | Transformer3W | TransformerNW | OverheadLineType | Wire | TransformerType | EmissionGas | BranchGroup | LineLocations | LineLocation | ModellingAuthority | Facility | Fuel | Investment | InvestmentsGroup | Contingency | ContingencyGroup | RemedialAction | RemedialActionGroup | Technology | Owner | UndergroundLineType | SequenceLineType | RmsModelTemplate | EmtModelTemplate | FmuTemplate | RmsEvent | RmsEventsGroup | ShortCircuitEvent | IfMeasurement | ItMeasurement | QfMeasurement | PfMeasurement | QtMeasurement | PtMeasurement | QiMeasurement | PiMeasurement | VmMeasurement | VaMeasurement | PgMeasurement | QgMeasurement], bool][source]ο
Get a dictionary of all elements :param use_secondary_key: if true the code iΛs used as key :param use_rdfid: if true the rdfid is used as key :param logger: Logger :return: Dict[idtag] -> object, ok
- get_all_elements_dict_by_type(add_locations: bool = False, string_keys: bool = True) Dict[str | DeviceType, Dict[str, Generator | Battery | Load | ExternalGrid | StaticGenerator | Shunt | ControllableShunt | CurrentInjection | Line | DcLine | Transformer2W | HvdcLine | VSC | UPFC | Winding | Switch | SeriesReactance | FluidNode | FluidPath | FluidP2x | FluidTurbine | FluidPump | Substation | Bus | BusBar | VoltageLevel | Country | Region | Community | Municipality | Area | Zone | Transformer3W | TransformerNW | OverheadLineType | Wire | TransformerType | EmissionGas | BranchGroup | LineLocations | LineLocation | ModellingAuthority | Facility | Fuel | Investment | InvestmentsGroup | Contingency | ContingencyGroup | RemedialAction | RemedialActionGroup | Technology | Owner | UndergroundLineType | SequenceLineType | RmsModelTemplate | EmtModelTemplate | FmuTemplate | RmsEvent | RmsEventsGroup | ShortCircuitEvent | IfMeasurement | ItMeasurement | QfMeasurement | PfMeasurement | QtMeasurement | PtMeasurement | QiMeasurement | PiMeasurement | VmMeasurement | VaMeasurement | PgMeasurement | QgMeasurement] | Any][source]ο
Get a dictionary of all elements by type :param add_locations: Add locations to dict :param string_keys: make the keys string otherwise use DeviceType :return:
- get_all_elements_iter() Generator[Generator | Battery | Load | ExternalGrid | StaticGenerator | Shunt | ControllableShunt | CurrentInjection | Line | DcLine | Transformer2W | HvdcLine | VSC | UPFC | Winding | Switch | SeriesReactance | FluidNode | FluidPath | FluidP2x | FluidTurbine | FluidPump | Substation | Bus | BusBar | VoltageLevel | Country | Region | Community | Municipality | Area | Zone | Transformer3W | TransformerNW | OverheadLineType | Wire | TransformerType | EmissionGas | BranchGroup | LineLocations | LineLocation | ModellingAuthority | Facility | Fuel | Investment | InvestmentsGroup | Contingency | ContingencyGroup | RemedialAction | RemedialActionGroup | Technology | Owner | UndergroundLineType | SequenceLineType | RmsModelTemplate | EmtModelTemplate | FmuTemplate | RmsEvent | RmsEventsGroup | ShortCircuitEvent | IfMeasurement | ItMeasurement | QfMeasurement | PfMeasurement | QtMeasurement | PtMeasurement | QiMeasurement | PiMeasurement | VmMeasurement | VaMeasurement | PgMeasurement | QgMeasurement, None, None][source]ο
Get all elements :return: ALL_DEV_TYPES
- get_all_time_indices() ndarray[tuple[Any, ...], dtype[int64]][source]ο
Get array with all the time steps :return: IntVec
- get_area_names() ndarray[tuple[Any, ...], dtype[str_]][source]ο
Get array of area names :return: StrVec
- get_batteries_indexing_dict() Dict[str, int][source]ο
Get a dictionary that relates the battery uuidβs with their index :return: Dict[str, int]
- get_battery_names() ndarray[tuple[Any, ...], dtype[str_]][source]ο
Returns a list of Battery names.
- get_branch_FT(add_vsc: bool = True, add_hvdc: bool = True, add_switch: bool = False) Tuple[ndarray[tuple[Any, ...], dtype[int64]], ndarray[tuple[Any, ...], dtype[int64]]][source]ο
get the from and to arrays of indices :param add_vsc: Include the list of VSC? :param add_hvdc: Include the list of HvdcLine? :param add_switch: Include the list of Switch? :return: IntVec, IntVec
- get_branch_actives(t_idx: int | None, add_vsc: bool = True, add_hvdc: bool = True, add_switch: bool = False) ndarray[tuple[Any, ...], dtype[int64]][source]ο
Get array of all branch active states :param t_idx: Index of time step :param add_vsc: Include the list of VSC? :param add_hvdc: Include the list of HvdcLine? :param add_switch: Include the list of Switch? :return: StrVec
- get_branch_group_at(i: int) BranchGroup[source]ο
Get branch_group at i :param i: index :return: BranchGroup
- get_branch_group_names() ndarray[tuple[Any, ...], dtype[str_]][source]ο
Array of branch_group names :return: StrVec
- get_branch_groups() List[BranchGroup][source]ο
List of branch_groups :return: List[dev.BranchGroup]
- get_branch_groups_number() int[source]ο
Size of the list of branch_groups :return: size of branch_groups
- get_branch_lists(add_vsc: bool = True, add_hvdc: bool = True, add_switch: bool = False) List[List[Line | DcLine | Transformer2W | HvdcLine | VSC | UPFC | Winding | Switch | SeriesReactance]][source]ο
Return all the branch objects :param add_vsc: Include the list of VSC? :param add_hvdc: Include the list of HvdcLine? :param add_switch: Include the list of Switch? :return: list of branch devices lists
- get_branch_names(add_vsc: bool = True, add_hvdc: bool = True, add_switch: bool = False) ndarray[tuple[Any, ...], dtype[str_]][source]ο
Get array of all branch names :param add_vsc: Include the list of VSC? :param add_hvdc: Include the list of HvdcLine? :param add_switch: Include the list of Switch? :return: StrVec
- get_branch_number(add_vsc: bool = False, add_hvdc: bool = False, add_switch: bool = True) int[source]ο
return the number of Branches (of all types) :param add_vsc: Include the list of VSC? :param add_hvdc: Include the list of HvdcLine? :param add_switch: Include the list of Switch? :return: number
- get_branches(add_vsc: bool = False, add_hvdc: bool = False, add_switch: bool = True) List[Line | DcLine | Transformer2W | HvdcLine | VSC | UPFC | Winding | Switch | SeriesReactance][source]ο
Return all the branch objects :param add_vsc: Include the list of VSC? :param add_hvdc: Include the list of HvdcLine? :param add_switch: Include the list of Switch? :return: list of branch devices
- get_branches_dict(add_vsc: bool = True, add_hvdc: bool = True, add_switch: bool = False) Dict[str, int][source]ο
Get dictionary of branches (excluding HVDC) the key is the idtag, the value is the branch position :param add_vsc: Include the list of VSC? :param add_hvdc: Include the list of HvdcLine? :param add_switch: Include the list of Switch? :return: Dict[str, int]
- get_branches_idtag_index_dict(add_vsc: bool = True, add_hvdc: bool = True, add_switch: bool = False) Dict[str, int][source]ο
Get the branch to index dictionary :param add_vsc: Include the list of VSC? :param add_hvdc: Include the list of HvdcLine? :param add_switch: Include the list of Switch? :return: Branch object to index
- get_branches_index_dict(add_vsc: bool = True, add_hvdc: bool = True, add_switch: bool = False) Dict[Line | DcLine | Transformer2W | HvdcLine | VSC | UPFC | Winding | Switch | SeriesReactance, int][source]ο
Get the branch to index dictionary :param add_vsc: Include the list of VSC? :param add_hvdc: Include the list of HvdcLine? :param add_switch: Include the list of Switch? :return: Branch object to index
- get_branches_index_dict2(add_vsc: bool = True, add_hvdc: bool = True, add_switch: bool = False) Dict[str, int][source]ο
Get the branch to index dictionary :param add_vsc: Include the list of VSC? :param add_hvdc: Include the list of HvdcLine? :param add_switch: Include the list of Switch? :return: Branch idtag to index
- get_branches_iter(add_vsc: bool = True, add_hvdc: bool = True, add_switch: bool = False) Generator[Line | DcLine | Transformer2W | HvdcLine | VSC | UPFC | Winding | Switch | SeriesReactance, None, None][source]ο
Return all the branch objects :param add_vsc: Include the list of VSC? :param add_hvdc: Include the list of HvdcLine? :param add_switch: Include the list of Switch? :return: list of branch devices
- get_branches_monitored_indices(add_vsc: bool = True, add_hvdc: bool = True, add_switch: bool = False) ndarray[tuple[Any, ...], dtype[int64]][source]ο
Get the indices of the monitored branche
- Parameters:
add_vsc β Include the list of VSC?
add_hvdc β Include the list of HvdcLine?
add_switch β Include the list of Switch?
- Returns:
numpy array with the indices of the branches
- get_bus_actives(t_idx: int | None = None) ndarray[tuple[Any, ...], dtype[int64]][source]ο
get a vector of actives :return: Array of bus active
- get_bus_devices(bus: Bus) Tuple[List[Line | DcLine | Transformer2W | HvdcLine | VSC | UPFC | Winding | Switch | SeriesReactance], List[Generator | Battery | Load | ExternalGrid | StaticGenerator | Shunt | ControllableShunt | CurrentInjection]][source]ο
Get the list of associated branches and the list of associated injections :param bus: :return: associated_branches, associated_injections
- get_bus_dict(by_idtag=False) Dict[str, Bus][source]ο
Return dictionary of buses :param by_idtag if true, the key is the idtag else the key is the name :return: dictionary of buses {name:object}
- get_bus_idtag_index_dict() Dict[str, int][source]ο
Return dictionary of buses :return: dictionary of buses {name:object}
- get_bus_index_dict() Dict[Bus, int][source]ο
Return dictionary of buses :return: dictionary of buses {name:object}
- get_buses_by(filter_elements: List[Area | Zone | Country | Community | Region | Municipality]) List[Bus][source]ο
Get a list of buses that can be found in the list of Areas | Zones | Countries :param filter_elements: list of Areas | Zones | Countries :return: list of buses
- get_capex_by_investment_group() ndarray[tuple[Any, ...], dtype[float64]][source]ο
Get array of CAPEX costs per investment group :return:
- get_communities_number() int[source]ο
Size of the list of communities :return: size of communities
- get_community_names() ndarray[tuple[Any, ...], dtype[str_]][source]ο
Array of community names :return: StrVec
- get_contingencies_by_group() Dict[ContingencyGroup, List[Contingency]][source]ο
Get a dictionary of contingency groups as keys and a list of contingencies as value :return: dict[contingency group] -> [contingencies list]
- get_contingency_branch_indices_by_group(add_vsc: bool = True, add_hvdc: bool = True, add_switch: bool = False) Dict[ContingencyGroup, List[int]][source]ο
Get a dictionary of contingency groups as keys and a list of contingencies as value :param add_vsc: Include the list of VSC? :param add_hvdc: Include the list of HvdcLine? :param add_switch: Include the list of Switch? :return: dict[contingency group] -> [contingencies list]
- get_contingency_devices() List[Generator | Battery | Load | ExternalGrid | StaticGenerator | Shunt | ControllableShunt | CurrentInjection | Line | DcLine | Transformer2W | HvdcLine | VSC | UPFC | Winding | Switch | SeriesReactance | FluidNode | FluidPath | FluidP2x | FluidTurbine | FluidPump | Substation | Bus | BusBar | VoltageLevel | Country | Region | Community | Municipality | Area | Zone | Transformer3W | TransformerNW | OverheadLineType | Wire | TransformerType | EmissionGas | BranchGroup | LineLocations | LineLocation | ModellingAuthority | Facility | Fuel | Investment | InvestmentsGroup | Contingency | ContingencyGroup | RemedialAction | RemedialActionGroup | Technology | Owner | UndergroundLineType | SequenceLineType | RmsModelTemplate | EmtModelTemplate | FmuTemplate | RmsEvent | RmsEventsGroup | ShortCircuitEvent | IfMeasurement | ItMeasurement | QfMeasurement | PfMeasurement | QtMeasurement | PtMeasurement | QiMeasurement | PiMeasurement | VmMeasurement | VaMeasurement | PgMeasurement | QgMeasurement][source]ο
Get a list of devices susceptible to be included in contingencies / remedial actions :return: list of devices
- get_contingency_group_dict() Dict[str, List[Contingency]][source]ο
Get a dictionary of group idtags related to list of contingencies :return:
- get_contingency_group_names() ndarray[tuple[Any, ...], dtype[str_]][source]ο
Get list of contingency group names :return:
- get_contingency_groups() List[ContingencyGroup][source]ο
Get contingency_groups :return:List[dev.ContingencyGroup]
- get_contingency_groups_active() List[ContingencyGroup][source]ο
Get contingency_groups :return:List[dev.ContingencyGroup]
- get_contingency_groups_in(grouping_elements: List[Area | Zone | Country | Community | Region | Municipality]) List[ContingencyGroup][source]ο
Get a filtered set of ContingencyGroups :param grouping_elements: list of zones, areas or countries where to locate the contingencies :return: Sorted group filtered ContingencyGroup elements
- get_contingency_groups_sensitive_to_monitoring(LODF: ndarray[tuple[Any, ...], dtype[float64]] | ndarray[tuple[int, int], dtype[float64]], threshold: float) ndarray[tuple[Any, ...], dtype[bool]][source]ο
Get a list of contingency groups that are sensitive to the monitoring rule :param LODF: LODF matrix (nbr, nbr) :param threshold: LODF threshold :return: vector of sensitive status
- get_controllable_shunt_at(i: int) ControllableShunt[source]ο
Get linear_shunt at i :param i: index :return: LinearShunt
- get_controllable_shunt_names() ndarray[tuple[Any, ...], dtype[str_]][source]ο
Array of linear_shunt names :return: StrVec
- get_controllable_shunts() List[ControllableShunt][source]ο
List of controllable_shunts :return: List[dev.LinearShunt]
- get_controllable_shunts_number() int[source]ο
Size of the list of controllable_shunts :return: size of controllable_shunts
- get_current_injection_at(i: int) CurrentInjection[source]ο
Get current_injection at i :param i: index :return: CurrentInjection
- get_current_injection_names() ndarray[tuple[Any, ...], dtype[str_]][source]ο
Array of current_injection names :return: StrVec
- get_current_injections() List[CurrentInjection][source]ο
List of current_injections :return: List[dev.CurrentInjection]
- get_current_injections_number() int[source]ο
Size of the list of current_injections :return: size of current_injections
- get_diagrams() List[MapDiagram | SchematicDiagram][source]ο
Get list of diagrams :return: MapDiagram, SchematicDiagram device
- get_dictionary_of_lists(elm_type: DeviceType) Tuple[Generator | Battery | Load | ExternalGrid | StaticGenerator | Shunt | ControllableShunt | CurrentInjection | Line | DcLine | Transformer2W | HvdcLine | VSC | UPFC | Winding | Switch | SeriesReactance | FluidNode | FluidPath | FluidP2x | FluidTurbine | FluidPump | Substation | Bus | BusBar | VoltageLevel | Country | Region | Community | Municipality | Area | Zone | Transformer3W | TransformerNW | OverheadLineType | Wire | TransformerType | EmissionGas | BranchGroup | LineLocations | LineLocation | ModellingAuthority | Facility | Fuel | Investment | InvestmentsGroup | Contingency | ContingencyGroup | RemedialAction | RemedialActionGroup | Technology | Owner | UndergroundLineType | SequenceLineType | RmsModelTemplate | EmtModelTemplate | FmuTemplate | RmsEvent | RmsEventsGroup | ShortCircuitEvent | IfMeasurement | ItMeasurement | QfMeasurement | PfMeasurement | QtMeasurement | PtMeasurement | QiMeasurement | PiMeasurement | VmMeasurement | VaMeasurement | PgMeasurement | QgMeasurement, Dict[DeviceType, List[Generator | Battery | Load | ExternalGrid | StaticGenerator | Shunt | ControllableShunt | CurrentInjection | Line | DcLine | Transformer2W | HvdcLine | VSC | UPFC | Winding | Switch | SeriesReactance | FluidNode | FluidPath | FluidP2x | FluidTurbine | FluidPump | Substation | Bus | BusBar | VoltageLevel | Country | Region | Community | Municipality | Area | Zone | Transformer3W | TransformerNW | OverheadLineType | Wire | TransformerType | EmissionGas | BranchGroup | LineLocations | LineLocation | ModellingAuthority | Facility | Fuel | Investment | InvestmentsGroup | Contingency | ContingencyGroup | RemedialAction | RemedialActionGroup | Technology | Owner | UndergroundLineType | SequenceLineType | RmsModelTemplate | EmtModelTemplate | FmuTemplate | RmsEvent | RmsEventsGroup | ShortCircuitEvent | IfMeasurement | ItMeasurement | QfMeasurement | PfMeasurement | QtMeasurement | PtMeasurement | QiMeasurement | PiMeasurement | VmMeasurement | VaMeasurement | PgMeasurement | QgMeasurement]]][source]ο
Function that returns the template of an elements and a dictionary of the lists of elements that contain itβs dependencies :param elm_type: DeviceType :return: Template, dictionary of dependencies
- get_dynamic_plot_entries_by_plot() List[Tuple[DynamicPlot, List[DynamicPlotEntry]]][source]ο
Get a dictionary of dynamic plots and their :return: list of dynamic plots and their list of associated plot entries
- get_dynamic_plot_entries_by_plot_index_dict() Dict[int, List[DynamicPlotEntry]][source]ο
Get a dictionary of dynamic plots :return: Dict[dynamic plot index] = list of dynamic plot entries
- get_dynamic_templates_by_device_type_and_domain(tpe: DeviceType, domain: FmuTemplateDomain) List[RmsModelTemplate | EmtModelTemplate | FmuTemplate][source]ο
Get all reusable templates for one device type and one simulation domain.
Native templates and FMU templates are both returned because the block editor library must expose both under the same
Templatescategory.- Parameters:
tpe β Supported VeraGrid device type.
domain β Simulation domain used by the editor.
- Returns:
Matching native and FMU templates.
- get_dynamic_templates_by_domain(domain: FmuTemplateDomain) List[RmsModelTemplate | EmtModelTemplate | FmuTemplate][source]ο
Get all reusable templates registered for one simulation domain.
- Parameters:
domain β Simulation domain used by the editor.
- Returns:
Matching native and FMU templates.
- get_elements_by_type(device_type: DeviceType) DatetimeIndex | List[Generator | Battery | Load | ExternalGrid | StaticGenerator | Shunt | ControllableShunt | CurrentInjection | Line | DcLine | Transformer2W | HvdcLine | VSC | UPFC | Winding | Switch | SeriesReactance | FluidNode | FluidPath | FluidP2x | FluidTurbine | FluidPump | Substation | Bus | BusBar | VoltageLevel | Country | Region | Community | Municipality | Area | Zone | Transformer3W | TransformerNW | OverheadLineType | Wire | TransformerType | EmissionGas | BranchGroup | LineLocations | LineLocation | ModellingAuthority | Facility | Fuel | Investment | InvestmentsGroup | Contingency | ContingencyGroup | RemedialAction | RemedialActionGroup | Technology | Owner | UndergroundLineType | SequenceLineType | RmsModelTemplate | EmtModelTemplate | FmuTemplate | RmsEvent | RmsEventsGroup | ShortCircuitEvent | IfMeasurement | ItMeasurement | QfMeasurement | PfMeasurement | QtMeasurement | PtMeasurement | QiMeasurement | PiMeasurement | VmMeasurement | VaMeasurement | PgMeasurement | QgMeasurement][source]ο
Get set of elements and their parent nodes :param device_type: DeviceTYpe instance :return: List of elements, it raises an exception if the elements are unknown
- get_elements_dict_by_type(element_type: DeviceType, use_secondary_key: bool = False, use_rdfid: bool = False) Dict[str, Generator | Battery | Load | ExternalGrid | StaticGenerator | Shunt | ControllableShunt | CurrentInjection | Line | DcLine | Transformer2W | HvdcLine | VSC | UPFC | Winding | Switch | SeriesReactance | FluidNode | FluidPath | FluidP2x | FluidTurbine | FluidPump | Substation | Bus | BusBar | VoltageLevel | Country | Region | Community | Municipality | Area | Zone | Transformer3W | TransformerNW | OverheadLineType | Wire | TransformerType | EmissionGas | BranchGroup | LineLocations | LineLocation | ModellingAuthority | Facility | Fuel | Investment | InvestmentsGroup | Contingency | ContingencyGroup | RemedialAction | RemedialActionGroup | Technology | Owner | UndergroundLineType | SequenceLineType | RmsModelTemplate | EmtModelTemplate | FmuTemplate | RmsEvent | RmsEventsGroup | ShortCircuitEvent | IfMeasurement | ItMeasurement | QfMeasurement | PfMeasurement | QtMeasurement | PtMeasurement | QiMeasurement | PiMeasurement | VmMeasurement | VaMeasurement | PgMeasurement | QgMeasurement][source]ο
Get dictionary of elements :param element_type: element type (Bus, Line, etcβ¦) :param use_secondary_key: use the code as dictionary key? otherwise the idtag is used :param use_rdfid: if true the rdfid is used as key :return: Dict[str, dev.EditableDevice]
- get_emissions() List[EmissionGas][source]ο
- Returns:
- get_emissions_indexing_dict() Dict[str, int][source]ο
Get a dictionary that relates the fuel uuidβs with their index :return: Dict[str, int]
- get_emt_event_by_groups() List[Tuple[EmtEventsGroup, List[EmtEvent]]][source]ο
Get a dictionary of EMT event groups and their :return: list of EMT event groups and their list of associated EMT events
- get_emt_event_by_groups_index_dict() Dict[int, List[EmtEvent]][source]ο
Get a dictionary of EMT event groups :return: Dict[EMT event group index] = list of EMT events
- get_emt_models_by_device_type(tpe: DeviceType) List[EmtModelTemplate][source]ο
Get a list of EmtModelTemplate filtering by device type :param tpe: :return:
- get_external_grid_names() ndarray[tuple[Any, ...], dtype[str_]][source]ο
Returns a list of ExternalGrid names.
- get_external_grids() List[ExternalGrid][source]ο
Returns a list of ExternalGrid objects in the grid.
- get_facility_names() ndarray[tuple[Any, ...], dtype[str_]][source]ο
Get array of area names :return: StrVec
- get_fluid_injection_lists() List[List[FluidNode | FluidPath | FluidP2x | FluidTurbine | FluidPump]][source]ο
Get a list with the fluid injections lists :return:
- get_fluid_injection_names() ndarray[tuple[Any, ...], dtype[str_]][source]ο
Returns a list of Injection names. Sort by order: turbines, pumps, p2xs
- get_fluid_injections() List[FluidNode | FluidPath | FluidP2x | FluidTurbine | FluidPump][source]ο
Returns a list of Injection names. Sort by order: turbines, pumps, p2xs
- get_fluid_node_names() ndarray[tuple[Any, ...], dtype[str_]][source]ο
List of fluid node names :return:
- get_fluid_p2xs_names() ndarray[tuple[Any, ...], dtype[str_]][source]ο
Returns a list of P2X names.
- get_fluid_path_names() ndarray[tuple[Any, ...], dtype[str_]][source]ο
List of fluid paths names :return:
- get_fluid_pumps_names() ndarray[tuple[Any, ...], dtype[str_]][source]ο
Returns a list of Pump names.
- get_fluid_turbines() List[FluidTurbine][source]ο
Returns a list of Load objects in the grid.
- get_fluid_turbines_names() ndarray[tuple[Any, ...], dtype[str_]][source]ο
Returns a list of Turbine names.
- get_fmu_templates_by_device_type(tpe: DeviceType) List[FmuTemplate][source]ο
Get FMU templates filtered by supported device type.
- Parameters:
tpe β Supported VeraGrid device type.
- Returns:
Matching FMU templates.
- get_fmu_templates_by_device_type_and_domain(tpe: DeviceType, domain: FmuTemplateDomain) List[FmuTemplate][source]ο
Get FMU templates filtered by supported device type and simulation domain.
- Parameters:
tpe β Supported VeraGrid device type.
domain β Supported FMU simulation domain.
- Returns:
Matching FMU templates.
- get_fmu_templates_number() int[source]ο
Return the number of reusable FMU templates.
- Returns:
Number of FMU templates.
- get_fuel_indexing_dict() Dict[str, int][source]ο
Get a dictionary that relates the fuel uuidβs with their index :return: Dict[str, int]
- get_generation_like_devices() List[Generator | Battery | Load | ExternalGrid | StaticGenerator | Shunt | ControllableShunt | CurrentInjection][source]ο
Returns a list of Injection names. Sort by order: turbines, pumps, p2xs
- get_generation_like_lists() List[List[Generator | Battery | Load | ExternalGrid | StaticGenerator | Shunt | ControllableShunt | CurrentInjection]][source]ο
Get a list with the fluid injections lists :return:
- get_generation_like_names() ndarray[tuple[Any, ...], dtype[str_]][source]ο
Returns a list of Injection names. Sort by order: turbines, pumps, p2xs
- get_generator_bus_index_dict(bus_index_dict: Dict[Bus, int] = None)[source]ο
Get a dictionary of generators related to their bus index :param bus_index_dict: bus object to bus index dictionary (optional) :return: generator object to bus index dictionary
- get_generator_indexing_dict() Dict[str, int][source]ο
Get a dictionary that relates the generator uuidβs with their index :return: Dict[str, int]
- get_generator_names() ndarray[tuple[Any, ...], dtype[str_]][source]ο
Returns a list of Generator names.
- get_hvdc_FT() Tuple[ndarray[tuple[Any, ...], dtype[int64]], ndarray[tuple[Any, ...], dtype[int64]]][source]ο
get the from and to arrays of indices of HVDC lines :return: IntVec, IntVec
- get_hvdc_actives(t_idx: int | None = None) ndarray[tuple[Any, ...], dtype[int64]][source]ο
get a vector of actives :return: Array of bus active
- get_hvdc_dict() Dict[str, HvdcLine][source]ο
Get dictionary of HVDC lines :return: idtag -> HvdcLine
- get_hvdc_index_dict() Dict[str, int][source]ο
Get dictionary of HVDC lines :return: idtag -> HvdcLine
- get_if_measurement_at(i: int) IfMeasurement[source]ο
Get if_measurement at i :param i: index :return: IfMeasurement
- get_if_measurement_names() ndarray[tuple[Any, ...], dtype[str_]][source]ο
Array of if_measurement names :return: StrVec
- get_if_measurements() List[IfMeasurement][source]ο
List of if_measurements :return: List[dev.IfMeasurement]
- get_if_measurements_number() int[source]ο
Size of the list of if_measurements :return: size of if_measurements
- get_injection_devices() List[Generator | Battery | Load | ExternalGrid | StaticGenerator | Shunt | ControllableShunt | CurrentInjection][source]ο
Get a list of all devices that can inject or subtract power from a node :return: List of EditableDevice
- get_injection_devices_iter() Generator[Generator | Battery | Load | ExternalGrid | StaticGenerator | Shunt | ControllableShunt | CurrentInjection, None, None][source]ο
Get a list of all devices that can inject or subtract power from a node :return: List of EditableDevice
- get_injection_devices_lists() List[List[Generator | Battery | Load | ExternalGrid | StaticGenerator | Shunt | ControllableShunt | CurrentInjection]][source]ο
Get a list of all devices that can inject or subtract power from a node :return: List of EditableDevice
- get_injections_bus_index_dict(bus_index_dict: Dict[Bus, int] = None)[source]ο
Get a dictionary of generators related to their bus index :param bus_index_dict: bus object to bus index dictionary (optional) :return: generator object to bus index dictionary
- get_injections_device_types() List[DeviceType][source]ο
Get a list of all devices types that can inject or subtract power from a node :return: List of DeviceType
- get_investment_by_groups_dict() Dict[InvestmentsGroup, List[Investment]][source]ο
Get a dictionary of investments groups :return: Dict[investment group index] = list of investments
- get_investment_by_groups_index_dict() Dict[int, List[Investment]][source]ο
Get a dictionary of investments groups :return: Dict[investment group index] = list of investments
- get_investments_by_groups() List[Tuple[InvestmentsGroup, List[Investment]]][source]ο
Get a dictionary of investments groups and their :return: list of investment groups and their list of associated investments
- get_it_measurement_at(i: int) ItMeasurement[source]ο
Get it_measurement at i :param i: index :return: ItMeasurement
- get_it_measurement_names() ndarray[tuple[Any, ...], dtype[str_]][source]ο
Array of it_measurement names :return: StrVec
- get_it_measurements() List[ItMeasurement][source]ο
List of it_measurements :return: List[dev.ItMeasurement]
- get_it_measurements_number() int[source]ο
Size of the list of it_measurements :return: size of it_measurements
- get_load_like_device_number() int[source]ο
Get a list of all devices that can inject or subtract power from a node :return: List of EditableDevice
- get_load_like_devices() List[Generator | Battery | Load | ExternalGrid | StaticGenerator | Shunt | ControllableShunt | CurrentInjection][source]ο
Get a list of all devices that can inject or subtract power from a node :return: List of EditableDevice
- get_load_like_devices_iter() Generator[Generator | Battery | Load | ExternalGrid | StaticGenerator | Shunt | ControllableShunt | CurrentInjection, None, None][source]ο
Get a list of all devices that can inject or subtract power from a node :return: List of EditableDevice
- get_load_like_devices_lists() List[List[Generator | Battery | Load | ExternalGrid | StaticGenerator | Shunt | ControllableShunt | CurrentInjection]][source]ο
Get a list of all devices that can inject or subtract power from a node :return: List of EditableDevice
- get_load_like_devices_names() ndarray[tuple[Any, ...], dtype[str_]][source]ο
Get a list of names of the load like devices :return: array of str
- get_loaded_emt_models_by_device_type(tpe: DeviceType) List[EmtModelTemplate][source]ο
Return already materialized EMT templates without triggering lazy loading.
- Parameters:
tpe β Supported device type.
- Returns:
Matching loaded EMT templates.
- get_loaded_rms_models_by_device_type(tpe: DeviceType) List[RmsModelTemplate][source]ο
Return already materialized RMS templates without triggering lazy loading.
- Parameters:
tpe β Supported device type.
- Returns:
Matching loaded RMS templates.
- get_modelling_authorities() List[ModellingAuthority][source]ο
List of modelling_authorities :return: List[dev.ModellingAuthority]
- get_modelling_authorities_number() int[source]ο
Size of the list of modelling_authorities :return: size of modelling_authorities
- get_modelling_authority_at(i: int) ModellingAuthority[source]ο
Get modelling_authority at i :param i: index :return: ModellingAuthority
- get_modelling_authority_names() ndarray[tuple[Any, ...], dtype[str_]][source]ο
Array of modelling_authority names :return: StrVec
- get_municipalities() List[Municipality][source]ο
List of municipalities :return: List[dev.Municipality]
- get_municipalities_number() int[source]ο
Size of the list of municipalities :return: size of municipalities
- get_municipality_at(i: int) Municipality[source]ο
Get municipality at i :param i: index :return: Municipality
- get_municipality_names() ndarray[tuple[Any, ...], dtype[str_]][source]ο
Array of municipality names :return: StrVec
- get_owner_indexing_dict() Dict[str, int][source]ο
Get a dictionary that relates the fuel uuidβs with their index :return: Dict[str, int]
- get_p_measurements() List[PiMeasurement][source]ο
List of pi_measurements :return: List[dev.PiMeasurement]
- get_pf_measurement_at(i: int) PfMeasurement[source]ο
Get pf_measurement at i :param i: index :return: PfMeasurement
- get_pf_measurement_names() ndarray[tuple[Any, ...], dtype[str_]][source]ο
Array of pf_measurement names :return: StrVec
- get_pf_measurements() List[PfMeasurement][source]ο
List of pf_measurements :return: List[dev.PfMeasurement]
- get_pf_measurements_number() int[source]ο
Size of the list of pf_measurements :return: size of pf_measurements
- get_pg_measurement_at(i: int) PgMeasurement[source]ο
Get pg_measurement at i :param i: index :return: PgMeasurement
- get_pg_measurement_names() ndarray[tuple[Any, ...], dtype[str_]][source]ο
Array of pi_measurement names :return: StrVec
- get_pg_measurements() List[PgMeasurement][source]ο
List of pg_measurements :return: List[dev.PgMeasurement]
- get_pg_measurements_number() int[source]ο
Size of the list of pg_measurements :return: size of pg_measurements
- get_pi_measurement_at(i: int) PiMeasurement[source]ο
Get pi_measurement at i :param i: index :return: PiMeasurement
- get_pi_measurement_names() ndarray[tuple[Any, ...], dtype[str_]][source]ο
Array of pi_measurement names :return: StrVec
- get_pi_measurements_number() int[source]ο
Size of the list of pi_measurements :return: size of pi_measurements
- get_pt_measurement_at(i: int) PtMeasurement[source]ο
Get pt_measurement at i :param i: index :return: PfMeasurement
- get_pt_measurement_names() ndarray[tuple[Any, ...], dtype[str_]][source]ο
Array of pt_measurement names :return: StrVec
- get_pt_measurements() List[PtMeasurement][source]ο
List of pt_measurements :return: List[dev.PtMeasurement]
- get_pt_measurements_number() int[source]ο
Size of the list of pt_measurements :return: size of pt_measurements
- get_q_measurements() List[QiMeasurement][source]ο
List of qi_measurements :return: List[dev.QiMeasurement]
- get_qf_measurement_at(i: int) QfMeasurement[source]ο
Get qf_measurement at i :param i: index :return: QfMeasurement
- get_qf_measurement_names() ndarray[tuple[Any, ...], dtype[str_]][source]ο
Array of qf_measurement names :return: StrVec
- get_qf_measurements() List[QfMeasurement][source]ο
List of qf_measurements :return: List[dev.QfMeasurement]
- get_qf_measurements_number() int[source]ο
Size of the list of qf_measurements :return: size of qf_measurements
- get_qg_measurement_at(i: int) QgMeasurement[source]ο
Get qg_measurement at i :param i: index :return: QgMeasurement
- get_qg_measurement_names() ndarray[tuple[Any, ...], dtype[str_]][source]ο
Array of qg_measurement names :return: StrVec
- get_qg_measurements() List[QgMeasurement][source]ο
List of qg_measurements :return: List[dev.QgMeasurement]
- get_qg_measurements_number() int[source]ο
Size of the list of qg_measurements :return: size of qg_measurements
- get_qi_measurement_at(i: int) QiMeasurement[source]ο
Get qi_measurement at i :param i: index :return: QiMeasurement
- get_qi_measurement_names() ndarray[tuple[Any, ...], dtype[str_]][source]ο
Array of qi_measurement names :return: StrVec
- get_qi_measurements_number() int[source]ο
Size of the list of qi_measurements :return: size of qi_measurements
- get_qt_measurement_at(i: int) QtMeasurement[source]ο
Get qt_measurement at i :param i: index :return: QtMeasurement
- get_qt_measurement_names() ndarray[tuple[Any, ...], dtype[str_]][source]ο
Array of qt_measurement names :return: StrVec
- get_qt_measurements() List[QtMeasurement][source]ο
List of qt_measurements :return: List[dev.QtMeasurement]
- get_qt_measurements_number() int[source]ο
Size of the list of qt_measurements :return: size of qt_measurements
- get_region_names() ndarray[tuple[Any, ...], dtype[str_]][source]ο
Array of region names :return: StrVec
- get_remedial_action_groups() List[RemedialActionGroup][source]ο
Get contingency_groups :return:List[dev.ContingencyGroup]
- get_remedial_action_groups_dict() Dict[str, List[RemedialAction]][source]ο
Get a dictionary of group idtags related to list of contingencies :return:
- get_remedial_action_groups_in(grouping_elements: List[Area | Country | Zone]) List[RemedialActionGroup][source]ο
Get a filtered set of ContingencyGroups :param grouping_elements: list of zones, areas or countries where to locate the contingencies :return: Sorted group filtered ContingencyGroup elements
- get_rms_event_by_groups() List[Tuple[RmsEventsGroup, List[RmsEvent]]][source]ο
Get a dictionary of RMS event groups and their :return: list of RMS event groups and their list of associated RMS events
- get_rms_event_by_groups_index_dict() Dict[int, List[RmsEvent]][source]ο
Get a dictionary of investments groups :return: Dict[investment group index] = list of investments
- get_rms_models_by_device_type(tpe: DeviceType) List[RmsModelTemplate][source]ο
Get a list of RmsModelTemplate filtering by device type :param tpe: :return:
- get_series_reactance_at(i: int) SeriesReactance[source]ο
Get series_reactance at i :param i: index :return: SeriesReactance
- get_series_reactance_names() ndarray[tuple[Any, ...], dtype[str_]][source]ο
Array of series_reactance names :return: StrVec
- get_series_reactances() List[SeriesReactance][source]ο
List of series_reactances :return: List[dev.SeriesReactance]
- get_series_reactances_number() int[source]ο
Size of the list of series_reactances :return: size of series_reactances
- get_short_circuit_event_names() ndarray[tuple[Any, ...], dtype[str_]][source]ο
Get the short circuit definition names :return: Names
- get_short_circuit_event_number() int[source]ο
Get the short circuit definition names :return: Names
- get_shunt_like_device_number() int[source]ο
Get a list of all devices that can inject or subtract power from a node :return: List of EditableDevice
- get_shunt_like_devices() List[Generator | Battery | Load | ExternalGrid | StaticGenerator | Shunt | ControllableShunt | CurrentInjection][source]ο
Get a list of all devices that can inject or subtract power from a node :return: List of Shunt devices
- get_shunt_like_devices_lists() List[List[Generator | Battery | Load | ExternalGrid | StaticGenerator | Shunt | ControllableShunt | CurrentInjection]][source]ο
Get a list of all devices that behave like a shunt :return: List of Lists of Shunt devices
- get_shunt_like_devices_names() ndarray[tuple[Any, ...], dtype[str_]][source]ο
Get a list of all devices names that can inject or subtract power from a node :return: Array of Shunt devicesβ names
- get_snapshot_time_unix() float[source]ο
Get the unix representation of the snapshot time :return: float
- get_static_generators() List[StaticGenerator][source]ο
Returns a list of StaticGenerator objects in the grid.
- get_static_generators_names() ndarray[tuple[Any, ...], dtype[str_]][source]ο
Returns a list of StaticGenerator names.
- get_substations() List[Substation][source]ο
Get a list of substations :return: List[dev.Substation]
- get_technology_indexing_dict() Dict[str, int][source]ο
Get a dictionary that relates the fuel uuidβs with their index :return: Dict[str, int]
- get_time_deltas_in_hours() ndarray[tuple[Any, ...], dtype[float64]][source]ο
Get the time increments in hours :return: array of time deltas where the first delta is 1
- get_transformers2w() List[Transformer2W][source]ο
get list of 2-winding transformers :return: list of transformers
- get_transformers2w_names() List[str][source]ο
get a list of names of the 2-winding transformers :return: list of names
- get_transformers3w() List[Transformer3W][source]ο
- Returns:
- get_transformers_nw() List[TransformerNW][source]ο
- Returns:
- get_unix_time() ndarray[tuple[Any, ...], dtype[int64]][source]ο
Get the unix time representation of the time :return:
- get_va_measurement_at(i: int) VaMeasurement[source]ο
Get va_measurement at i :param i: index :return: VaMeasurement
- get_va_measurement_names() ndarray[tuple[Any, ...], dtype[str_]][source]ο
Array of va_measurement names :return: StrVec
- get_va_measurements() List[VaMeasurement][source]ο
List of va_measurements :return: List[dev.VaMeasurement]
- get_va_measurements_number() int[source]ο
Size of the list of va_measurements :return: size of va_measurements
- get_vm_measurement_at(i: int) VmMeasurement[source]ο
Get vm_measurement at i :param i: index :return: VmMeasurement
- get_vm_measurement_names() ndarray[tuple[Any, ...], dtype[str_]][source]ο
Array of vm_measurement names :return: StrVec
- get_vm_measurements() List[VmMeasurement][source]ο
List of vm_measurements :return: List[dev.VmMeasurement]
- get_vm_measurements_number() int[source]ο
Size of the list of vm_measurements :return: size of vm_measurements
- get_voltage_level_at(i: int) VoltageLevel[source]ο
Get voltage_level at i :param i: index :return: VoltageLevel
- get_voltage_level_buses(vl: VoltageLevel) List[Bus][source]ο
Get the list of buses of this substation :param vl: :return:
- get_voltage_level_names() ndarray[tuple[Any, ...], dtype[str_]][source]ο
Array of voltage_level names :return: StrVec
- get_voltage_levels() List[VoltageLevel][source]ο
List of voltage_levels :return: List[dev.VoltageLevel]
- get_voltage_levels_number() int[source]ο
Size of the list of voltage_levels :return: size of voltage_levels
- get_vsc_actives(t_idx: int | None = None) ndarray[tuple[Any, ...], dtype[int64]][source]ο
get a vector of actives :return: Array of bus active
- get_vsc_index_dict() Dict[str, int][source]ο
Get index dictionary of VSC lines :return: idtag -> i
- property has_time_series: boolο
Area there time series? :return: True / False
- property if_measurements: List[IfMeasurement]ο
Get list of If measurements :return:
- property investments: List[Investment]ο
- Returns:
- property investments_groups: List[InvestmentsGroup]ο
- Returns:
- property it_measurements: List[ItMeasurement]ο
Get list of It measurements :return:
- item_types() Generator[DeviceType, None, None][source]ο
Iterator of all the objects in the MultiCircuit
- items() Generator[Generator | Battery | Load | ExternalGrid | StaticGenerator | Shunt | ControllableShunt | CurrentInjection | Line | DcLine | Transformer2W | HvdcLine | VSC | UPFC | Winding | Switch | SeriesReactance | FluidNode | FluidPath | FluidP2x | FluidTurbine | FluidPump | Substation | Bus | BusBar | VoltageLevel | Country | Region | Community | Municipality | Area | Zone | Transformer3W | TransformerNW | OverheadLineType | Wire | TransformerType | EmissionGas | BranchGroup | LineLocations | LineLocation | ModellingAuthority | Facility | Fuel | Investment | InvestmentsGroup | Contingency | ContingencyGroup | RemedialAction | RemedialActionGroup | Technology | Owner | UndergroundLineType | SequenceLineType | RmsModelTemplate | EmtModelTemplate | FmuTemplate | RmsEvent | RmsEventsGroup | ShortCircuitEvent | IfMeasurement | ItMeasurement | QfMeasurement | PfMeasurement | QtMeasurement | PtMeasurement | QiMeasurement | PiMeasurement | VmMeasurement | VaMeasurement | PgMeasurement | QgMeasurement, None, None][source]ο
Iterator of all the objects in the MultiCircuit
- merge_object(api_obj: Generator | Battery | Load | ExternalGrid | StaticGenerator | Shunt | ControllableShunt | CurrentInjection | Line | DcLine | Transformer2W | HvdcLine | VSC | UPFC | Winding | Switch | SeriesReactance | FluidNode | FluidPath | FluidP2x | FluidTurbine | FluidPump | Substation | Bus | BusBar | VoltageLevel | Country | Region | Community | Municipality | Area | Zone | Transformer3W | TransformerNW | OverheadLineType | Wire | TransformerType | EmissionGas | BranchGroup | LineLocations | LineLocation | ModellingAuthority | Facility | Fuel | Investment | InvestmentsGroup | Contingency | ContingencyGroup | RemedialAction | RemedialActionGroup | Technology | Owner | UndergroundLineType | SequenceLineType | RmsModelTemplate | EmtModelTemplate | FmuTemplate | RmsEvent | RmsEventsGroup | ShortCircuitEvent | IfMeasurement | ItMeasurement | QfMeasurement | PfMeasurement | QtMeasurement | PtMeasurement | QiMeasurement | PiMeasurement | VmMeasurement | VaMeasurement | PgMeasurement | QgMeasurement, all_elms_base_dict: Dict[str, Generator | Battery | Load | ExternalGrid | StaticGenerator | Shunt | ControllableShunt | CurrentInjection | Line | DcLine | Transformer2W | HvdcLine | VSC | UPFC | Winding | Switch | SeriesReactance | FluidNode | FluidPath | FluidP2x | FluidTurbine | FluidPump | Substation | Bus | BusBar | VoltageLevel | Country | Region | Community | Municipality | Area | Zone | Transformer3W | TransformerNW | OverheadLineType | Wire | TransformerType | EmissionGas | BranchGroup | LineLocations | LineLocation | ModellingAuthority | Facility | Fuel | Investment | InvestmentsGroup | Contingency | ContingencyGroup | RemedialAction | RemedialActionGroup | Technology | Owner | UndergroundLineType | SequenceLineType | RmsModelTemplate | EmtModelTemplate | FmuTemplate | RmsEvent | RmsEventsGroup | ShortCircuitEvent | IfMeasurement | ItMeasurement | QfMeasurement | PfMeasurement | QtMeasurement | PtMeasurement | QiMeasurement | PiMeasurement | VmMeasurement | VaMeasurement | PgMeasurement | QgMeasurement], logger: Logger) bool[source]ο
Add, Delete or Modify an object based on the UUID :param api_obj: Any asset (from a diff presumably) :param all_elms_base_dict: All elements dict from the base circuit (idtag-> object) :param logger: Logger object :return: replaced?
- merge_substations(selected_objects: List[Substation])[source]ο
Merge selected substations into the first one :param selected_objects: :return:
- property modelling_authorities: List[ModellingAuthority]ο
- Returns:
- property municipalities: List[Municipality]ο
Get list of Municipalities :return:
- property overhead_line_types: List[OverheadLineType]ο
Get :return:
- property pf_measurements: List[PfMeasurement]ο
Get list of PfMeasuremnts :return:
- property pg_measurements: List[PgMeasurement]ο
Get list of PiMeasurements :return:
- property pi_measurements: List[PiMeasurement]ο
Get list of PiMeasurements :return:
- profile_magnitudes: Dict[str, Tuple[List[str], List[Type[int] | Type[bool] | Type[float] | Type[str] | DeviceType | SubObjectType | Type[HvdcControlType] | Type[BuildStatus] | Type[WindingsConnection] | Type[TapModuleControl] | Type[TapPhaseControl] | Type[ActionType] | Type[AvailableTransferMode] | Type[ContingencyMethod] | Type[CpfParametrization] | Type[CpfStopAt] | Type[InvestmentEvaluationMethod] | Type[InvestmentsEvaluationObjectives] | Type[NodalCapacityMethod] | Type[ShuntControlMode] | Type[SolverType] | Type[TimeGrouping] | Type[ZonalGrouping] | Type[MIPSolvers] | Type[AcOpfMode] | Type[BranchImpedanceMode] | Type[FaultType] | Type[TapChangerTypes] | Type[VoltageLevelTypes] | Type[ContingencyOperationTypes] | Type[BranchGroupTypes] | Type[ConverterControlType] | Type[WindingType] | Type[MethodShortCircuit] | Type[PhasesShortCircuit] | Type[DeviceType] | Type[ShuntConnectionType] | Type[BusGraphicType] | Type[SwitchGraphicType] | Type[DynamicIntegrationMethod] | Type[RmsInitializationMethod] | Type[OpfDispatchMode] | Type[EmtLineTypes] | Type[EmtSolverTypes] | Type[EmtProblemTypes] | Type[EmtInitializationMethod] | Type[RmsProblemTypes] | Type[SmallSignalEmtBuildTypes] | Type[EraSvdSolverType] | Type[FmuTemplateDomain] | Type[FmuTemplateMode] | Type[PlotSimulationType] | Type[DynamicEventTransitionType] | Type[DynamicPlotMode] | Type[DynamicPlotEntryKind] | Type[DynamicPlotEntryRole]]]]ο
- property pt_measurements: List[PtMeasurement]ο
Get list of PtMeasuremnts :return:
- property qf_measurements: List[QfMeasurement]ο
Get list of Qf measurements :return:
- property qg_measurements: List[QgMeasurement]ο
Get list of QgMeasurements :return:
- property qi_measurements: List[QiMeasurement]ο
Get list of QiMeasurements :return:
- property qt_measurements: List[QtMeasurement]ο
Get list of Qt measurements :return:
- re_index_time(year=None, hours_per_step=1.0)[source]ο
Generate sequential time steps to correct the time_profile :param year: base year, if None, this year is taken :param hours_per_step: number of hours per step, by default 1 hour by step
- re_index_time2(t0, step_size, step_unit)[source]ο
Generate sequential time steps to correct the time_profile :param t0: base time :param step_size: number of hours per step, by default 1 hour by step :param step_unit: βhβ, βmβ, βsβ
- refine_pointer_objects(logger: Logger, all_elements_dict: Tuple[Dict[str, Generator | Battery | Load | ExternalGrid | StaticGenerator | Shunt | ControllableShunt | CurrentInjection | Line | DcLine | Transformer2W | HvdcLine | VSC | UPFC | Winding | Switch | SeriesReactance | FluidNode | FluidPath | FluidP2x | FluidTurbine | FluidPump | Substation | Bus | BusBar | VoltageLevel | Country | Region | Community | Municipality | Area | Zone | Transformer3W | TransformerNW | OverheadLineType | Wire | TransformerType | EmissionGas | BranchGroup | LineLocations | LineLocation | ModellingAuthority | Facility | Fuel | Investment | InvestmentsGroup | Contingency | ContingencyGroup | RemedialAction | RemedialActionGroup | Technology | Owner | UndergroundLineType | SequenceLineType | RmsModelTemplate | EmtModelTemplate | FmuTemplate | RmsEvent | RmsEventsGroup | ShortCircuitEvent | IfMeasurement | ItMeasurement | QfMeasurement | PfMeasurement | QtMeasurement | PtMeasurement | QiMeasurement | PiMeasurement | VmMeasurement | VaMeasurement | PgMeasurement | QgMeasurement], bool] | None = None)[source]ο
Find the device types of pointer objects :param logger: :param all_elements_dict: :return:
- property remedial_action_groups: List[RemedialActionGroup]ο
Get list of contingency groups :return:
- property remedial_actions: List[RemedialAction]ο
Get list of remedial actions :return:
- remove_diagram(diagram: MapDiagram | SchematicDiagram)[source]ο
Remove diagrams :param diagram: MapDiagram, SchematicDiagram device
- replace_objects(old_object: Any, new_obj: Any, logger: Logger) None[source]ο
Replace object for every object in this assets class :param old_object: object to replace :param new_obj: object used to replace the old one :param logger: Logger to record what happened
- resample_profiles(indices: ndarray[tuple[Any, ...], dtype[int64]])[source]ο
resample the given profiles to the indices :param indices: array of indices to keep
- resample_profiles2(t0: int, t1: int)[source]ο
Resample profiles :param t0: first time index :param t1: second time index
- restore_investments()[source]ο
Restore investments to the circuit by removing them one by one. This is useful to restore the dependencies of the investments with the devices after a copy or a load.
- property rms_events_groups: List[RmsEventsGroup]ο
- Returns:
- property rms_models: List[RmsModelTemplate]ο
list of rms models :return:
- property sequence_line_types: List[SequenceLineType]ο
- Returns:
- property series_reactances: List[SeriesReactance]ο
Get list of series reactances :return:
- set_contingencies(contingencies: List[Contingency])[source]ο
Set contingencies and contingency groups to circuit :param contingencies: List of contingencies :return:
- set_elements_list_by_type(device_type: ~VeraGridEngine.enumerations.DeviceType, devices: ~typing.List[~VeraGridEngine.Devices.Injections.generator.Generator | ~VeraGridEngine.Devices.Injections.battery.Battery | ~VeraGridEngine.Devices.Injections.load.Load | ~VeraGridEngine.Devices.Injections.external_grid.ExternalGrid | ~VeraGridEngine.Devices.Injections.static_generator.StaticGenerator | ~VeraGridEngine.Devices.Injections.shunt.Shunt | ~VeraGridEngine.Devices.Injections.controllable_shunt.ControllableShunt | ~VeraGridEngine.Devices.Injections.current_injection.CurrentInjection | ~VeraGridEngine.Devices.Branches.line.Line | ~VeraGridEngine.Devices.Branches.dc_line.DcLine | ~VeraGridEngine.Devices.Branches.transformer.Transformer2W | ~VeraGridEngine.Devices.Branches.hvdc_line.HvdcLine | ~VeraGridEngine.Devices.Branches.vsc.VSC | ~VeraGridEngine.Devices.Branches.upfc.UPFC | ~VeraGridEngine.Devices.Branches.winding.Winding | ~VeraGridEngine.Devices.Branches.switch.Switch | ~VeraGridEngine.Devices.Branches.series_reactance.SeriesReactance | ~VeraGridEngine.Devices.Fluid.fluid_node.FluidNode | ~VeraGridEngine.Devices.Fluid.fluid_path.FluidPath | ~VeraGridEngine.Devices.Fluid.fluid_p2x.FluidP2x | ~VeraGridEngine.Devices.Fluid.fluid_turbine.FluidTurbine | ~VeraGridEngine.Devices.Fluid.fluid_pump.FluidPump | ~VeraGridEngine.Devices.Substation.substation.Substation | ~VeraGridEngine.Devices.Substation.bus.Bus | ~VeraGridEngine.Devices.Substation.busbar.BusBar | ~VeraGridEngine.Devices.Substation.voltage_level.VoltageLevel | ~VeraGridEngine.Devices.Aggregation.country.Country | ~VeraGridEngine.Devices.Aggregation.region.Region | ~VeraGridEngine.Devices.Aggregation.community.Community | ~VeraGridEngine.Devices.Aggregation.municipality.Municipality | ~VeraGridEngine.Devices.Aggregation.area.Area | ~VeraGridEngine.Devices.Aggregation.zone.Zone | ~VeraGridEngine.Devices.Branches.transformer3w.Transformer3W | ~VeraGridEngine.Devices.Branches.transformerNw.TransformerNW | ~VeraGridEngine.Devices.Branches.overhead_line_type.OverheadLineType | ~VeraGridEngine.Devices.Branches.wire.Wire | ~VeraGridEngine.Devices.Branches.transformer_type.TransformerType | ~VeraGridEngine.Devices.Associations.emission_gas.EmissionGas | ~VeraGridEngine.Devices.Aggregation.branch_group.BranchGroup | ~VeraGridEngine.Devices.Branches.line_locations.LineLocations | ~VeraGridEngine.Devices.Branches.line_locations.LineLocation | ~VeraGridEngine.Devices.Aggregation.modelling_authority.ModellingAuthority | ~VeraGridEngine.Devices.Aggregation.facility.Facility | ~VeraGridEngine.Devices.Associations.fuel.Fuel | ~VeraGridEngine.Devices.Aggregation.investment.Investment | ~VeraGridEngine.Devices.Aggregation.investments_group.InvestmentsGroup | ~VeraGridEngine.Devices.Events.contingency.Contingency | ~VeraGridEngine.Devices.Events.contingency_group.ContingencyGroup | ~VeraGridEngine.Devices.Events.remedial_action.RemedialAction | ~VeraGridEngine.Devices.Events.remedial_action_group.RemedialActionGroup | ~VeraGridEngine.Devices.Associations.technology.Technology | ~VeraGridEngine.Devices.Associations.owner.Owner | ~VeraGridEngine.Devices.Branches.underground_line_type.UndergroundLineType | ~VeraGridEngine.Devices.Branches.sequence_line_type.SequenceLineType | ~VeraGridEngine.Devices.Dynamic.rms_template.RmsModelTemplate | ~VeraGridEngine.Devices.Dynamic.emt_template.EmtModelTemplate | ~VeraGridEngine.Devices.Dynamic.fmu_template.FmuTemplate | ~VeraGridEngine.Devices.Events.rms_event.RmsEvent | ~VeraGridEngine.Devices.Events.rms_events_group.RmsEventsGroup | ~VeraGridEngine.Devices.Events.short_cirtcuit_event.ShortCircuitEvent | ~VeraGridEngine.Devices.measurement.IfMeasurement | ~VeraGridEngine.Devices.measurement.ItMeasurement | ~VeraGridEngine.Devices.measurement.QfMeasurement | ~VeraGridEngine.Devices.measurement.PfMeasurement | ~VeraGridEngine.Devices.measurement.QtMeasurement | ~VeraGridEngine.Devices.measurement.PtMeasurement | ~VeraGridEngine.Devices.measurement.QiMeasurement | ~VeraGridEngine.Devices.measurement.PiMeasurement | ~VeraGridEngine.Devices.measurement.VmMeasurement | ~VeraGridEngine.Devices.measurement.VaMeasurement | ~VeraGridEngine.Devices.measurement.PgMeasurement | ~VeraGridEngine.Devices.measurement.QgMeasurement], logger: ~VeraGridEngine.basic_structures.Logger = <VeraGridEngine.basic_structures.Logger object>)[source]ο
Set a list of elements all at once :param device_type: DeviceType :param devices: list of devices :param logger: Logger
- set_remedial_actions(remedial_actions: List[RemedialAction])[source]ο
Set contingencies and contingency groups to circuit :param remedial_actions: List of contingencies :return:
- set_snapshot_time_unix(val: float) None[source]ο
Convert unix datetime to python datetime :param val: seconds since 1970-01-01T00:00:00
- set_time_profile(unix_data: ndarray[tuple[Any, ...], dtype[int64]])[source]ο
Set unix array as time array :param unix_data: array of seconds since 1970
- set_unix_time(arr: ndarray[tuple[Any, ...], dtype[int64]])[source]ο
Set the time with a unix time :param arr: UNIX time iterable
- property short_circuit_event: List[ShortCircuitEvent]ο
Get list of ShortCircuitDefinition :return:
- short_circuit_event_exist(scd: ShortCircuitEvent) bool[source]ο
Check if a short circuit definition has been added already :param scd: ShortCircuitDefinition :return: Bool
- property snapshot_time: datetimeο
Returns the current snapshot time :return: Datetime
- property static_generators: List[StaticGenerator]ο
Get lis of static generators :return:
- property substations: List[Substation]ο
Get list of substations :return:
- property technologies: List[Technology]ο
Get list of technologies :return:
- template_items() Generator[Generator | Battery | Load | ExternalGrid | StaticGenerator | Shunt | ControllableShunt | CurrentInjection | Line | DcLine | Transformer2W | HvdcLine | VSC | UPFC | Winding | Switch | SeriesReactance | FluidNode | FluidPath | FluidP2x | FluidTurbine | FluidPump | Substation | Bus | BusBar | VoltageLevel | Country | Region | Community | Municipality | Area | Zone | Transformer3W | TransformerNW | OverheadLineType | Wire | TransformerType | EmissionGas | BranchGroup | LineLocations | LineLocation | ModellingAuthority | Facility | Fuel | Investment | InvestmentsGroup | Contingency | ContingencyGroup | RemedialAction | RemedialActionGroup | Technology | Owner | UndergroundLineType | SequenceLineType | RmsModelTemplate | EmtModelTemplate | FmuTemplate | RmsEvent | RmsEventsGroup | ShortCircuitEvent | IfMeasurement | ItMeasurement | QfMeasurement | PfMeasurement | QtMeasurement | PtMeasurement | QiMeasurement | PiMeasurement | VmMeasurement | VaMeasurement | PgMeasurement | QgMeasurement, None, None][source]ο
Iterator of the declared objects in the MultiCircuit. These are the object types that you see in the App DataBase tree
- template_objects_dictο
- property time_profile: DatetimeIndexο
Get the time array :return: pd.DatetimeIndex
- property transformer_types: List[TransformerType]ο
- Returns:
- property transformers2w: List[Transformer2W]ο
Get list of transformers :return:
- property transformers3w: List[Transformer3W]ο
Get list of 3W transformers :return:
- property transformers_nw: List[TransformerNW]ο
Get list of N-winding transformers :return:
- property turbines: List[FluidTurbine]ο
Get list of fluid turbines :return:
- property underground_cable_types: List[UndergroundLineType]ο
- Returns:
- property va_measurements: List[VaMeasurement]ο
Get list of VaMeasurements :return:
- property var_factory: VarFactoryο
Get the RMS VarFactory object :return: VarFactory
- property vm_measurements: List[VmMeasurement]ο
Get list of VmMeasurements :return:
- property voltage_levels: List[VoltageLevel]ο
Get voltage level devices list :return:
- VeraGridEngine.Devices.assets.add_devices_list(original_list: List[Generator | Battery | Load | ExternalGrid | StaticGenerator | Shunt | ControllableShunt | CurrentInjection | Line | DcLine | Transformer2W | HvdcLine | VSC | UPFC | Winding | Switch | SeriesReactance | FluidNode | FluidPath | FluidP2x | FluidTurbine | FluidPump | Substation | Bus | BusBar | VoltageLevel | Country | Region | Community | Municipality | Area | Zone | Transformer3W | TransformerNW | OverheadLineType | Wire | TransformerType | EmissionGas | BranchGroup | LineLocations | LineLocation | ModellingAuthority | Facility | Fuel | Investment | InvestmentsGroup | Contingency | ContingencyGroup | RemedialAction | RemedialActionGroup | Technology | Owner | UndergroundLineType | SequenceLineType | RmsModelTemplate | EmtModelTemplate | FmuTemplate | RmsEvent | RmsEventsGroup | ShortCircuitEvent | IfMeasurement | ItMeasurement | QfMeasurement | PfMeasurement | QtMeasurement | PtMeasurement | QiMeasurement | PiMeasurement | VmMeasurement | VaMeasurement | PgMeasurement | QgMeasurement], new_list: List[Generator | Battery | Load | ExternalGrid | StaticGenerator | Shunt | ControllableShunt | CurrentInjection | Line | DcLine | Transformer2W | HvdcLine | VSC | UPFC | Winding | Switch | SeriesReactance | FluidNode | FluidPath | FluidP2x | FluidTurbine | FluidPump | Substation | Bus | BusBar | VoltageLevel | Country | Region | Community | Municipality | Area | Zone | Transformer3W | TransformerNW | OverheadLineType | Wire | TransformerType | EmissionGas | BranchGroup | LineLocations | LineLocation | ModellingAuthority | Facility | Fuel | Investment | InvestmentsGroup | Contingency | ContingencyGroup | RemedialAction | RemedialActionGroup | Technology | Owner | UndergroundLineType | SequenceLineType | RmsModelTemplate | EmtModelTemplate | FmuTemplate | RmsEvent | RmsEventsGroup | ShortCircuitEvent | IfMeasurement | ItMeasurement | QfMeasurement | PfMeasurement | QtMeasurement | PtMeasurement | QiMeasurement | PiMeasurement | VmMeasurement | VaMeasurement | PgMeasurement | QgMeasurement])[source]ο
Add a list of devices to another keeping coherence :param original_list: :param new_list: :return:
VeraGridEngine.Devices.comparison moduleο
- class VeraGridEngine.Devices.comparison.CircuitComparison(circuit_a: MultiCircuit, circuit_b: MultiCircuit)[source]ο
Bases:
objectComparison between two circuits
- class VeraGridEngine.Devices.comparison.PropertyConflict(obj_a: Generator | Battery | Load | ExternalGrid | StaticGenerator | Shunt | ControllableShunt | CurrentInjection | Line | DcLine | Transformer2W | HvdcLine | VSC | UPFC | Winding | Switch | SeriesReactance | FluidNode | FluidPath | FluidP2x | FluidTurbine | FluidPump | Substation | Bus | BusBar | VoltageLevel | Country | Region | Community | Municipality | Area | Zone | Transformer3W | TransformerNW | OverheadLineType | Wire | TransformerType | EmissionGas | BranchGroup | LineLocations | LineLocation | ModellingAuthority | Facility | Fuel | Investment | InvestmentsGroup | Contingency | ContingencyGroup | RemedialAction | RemedialActionGroup | Technology | Owner | UndergroundLineType | SequenceLineType | RmsModelTemplate | EmtModelTemplate | FmuTemplate | RmsEvent | RmsEventsGroup | ShortCircuitEvent | IfMeasurement | ItMeasurement | QfMeasurement | PfMeasurement | QtMeasurement | PtMeasurement | QiMeasurement | PiMeasurement | VmMeasurement | VaMeasurement | PgMeasurement | QgMeasurement, obj_b: Generator | Battery | Load | ExternalGrid | StaticGenerator | Shunt | ControllableShunt | CurrentInjection | Line | DcLine | Transformer2W | HvdcLine | VSC | UPFC | Winding | Switch | SeriesReactance | FluidNode | FluidPath | FluidP2x | FluidTurbine | FluidPump | Substation | Bus | BusBar | VoltageLevel | Country | Region | Community | Municipality | Area | Zone | Transformer3W | TransformerNW | OverheadLineType | Wire | TransformerType | EmissionGas | BranchGroup | LineLocations | LineLocation | ModellingAuthority | Facility | Fuel | Investment | InvestmentsGroup | Contingency | ContingencyGroup | RemedialAction | RemedialActionGroup | Technology | Owner | UndergroundLineType | SequenceLineType | RmsModelTemplate | EmtModelTemplate | FmuTemplate | RmsEvent | RmsEventsGroup | ShortCircuitEvent | IfMeasurement | ItMeasurement | QfMeasurement | PfMeasurement | QtMeasurement | PtMeasurement | QiMeasurement | PiMeasurement | VmMeasurement | VaMeasurement | PgMeasurement | QgMeasurement, prop_name: str)[source]ο
Bases:
objectObjects conflict
VeraGridEngine.Devices.measurement moduleο
- class VeraGridEngine.Devices.measurement.IfMeasurement(value: float = 0.0, uncertainty: float = 0.0, api_obj: Line | DcLine | Transformer2W | UPFC | Winding | Switch | SeriesReactance | Generator | None = None, name='', idtag: str | None = None)[source]ο
Bases:
MeasurementTemplateMeasurement class
- CLASS_NON_EDITABLE_PROPERTIES = ('idtag', 'diff_changes', 'device_idtag', 'tpe', 'device_name')ο
- CLASS_PROPERTIES_WITH_PROFILE = {'sigma': 'sigma_prof', 'value': 'value_prof'}ο
- CLASS_PROPERTY_DECLARATIONS = (prop:idtag, prop:name, prop:code, prop:rdfid, prop:action, prop:comment, prop:diff_changes, prop:device_idtag, prop:tpe, prop:device_name, prop:value, prop:sigma)ο
- CLASS_PROPERTY_LIST = (prop:idtag, prop:name, prop:code, prop:rdfid, prop:action, prop:comment, prop:diff_changes, prop:device_idtag, prop:tpe, prop:device_name, prop:value, prop:sigma)ο
- CLASS_REGISTERED_PROPERTIES = {'action': prop:action, 'code': prop:code, 'comment': prop:comment, 'device_idtag': prop:device_idtag, 'device_name': prop:device_name, 'diff_changes': prop:diff_changes, 'idtag': prop:idtag, 'name': prop:name, 'rdfid': prop:rdfid, 'sigma': prop:sigma, 'tpe': prop:tpe, 'value': prop:value}ο
- class VeraGridEngine.Devices.measurement.ItMeasurement(value: float = 0.0, uncertainty: float = 0.0, api_obj: Line | DcLine | Transformer2W | UPFC | Winding | Switch | SeriesReactance | Generator | None = None, name='', idtag: str | None = None)[source]ο
Bases:
MeasurementTemplateMeasurement class
- CLASS_NON_EDITABLE_PROPERTIES = ('idtag', 'diff_changes', 'device_idtag', 'tpe', 'device_name')ο
- CLASS_PROPERTIES_WITH_PROFILE = {'sigma': 'sigma_prof', 'value': 'value_prof'}ο
- CLASS_PROPERTY_DECLARATIONS = (prop:idtag, prop:name, prop:code, prop:rdfid, prop:action, prop:comment, prop:diff_changes, prop:device_idtag, prop:tpe, prop:device_name, prop:value, prop:sigma)ο
- CLASS_PROPERTY_LIST = (prop:idtag, prop:name, prop:code, prop:rdfid, prop:action, prop:comment, prop:diff_changes, prop:device_idtag, prop:tpe, prop:device_name, prop:value, prop:sigma)ο
- CLASS_REGISTERED_PROPERTIES = {'action': prop:action, 'code': prop:code, 'comment': prop:comment, 'device_idtag': prop:device_idtag, 'device_name': prop:device_name, 'diff_changes': prop:diff_changes, 'idtag': prop:idtag, 'name': prop:name, 'rdfid': prop:rdfid, 'sigma': prop:sigma, 'tpe': prop:tpe, 'value': prop:value}ο
- property device: Line | DcLine | Transformer2W | UPFC | Winding | Switch | SeriesReactance | Generatorο
device getter :return:
- class VeraGridEngine.Devices.measurement.MeasurementTemplate(value: float, uncertainty: float, api_obj: Bus | Line | DcLine | Transformer2W | UPFC | Winding | Switch | SeriesReactance | Generator, name: str, idtag: str | None, device_type: DeviceType)[source]ο
Bases:
PointerDeviceParentMeasurement class
- CLASS_NON_EDITABLE_PROPERTIES = ('idtag', 'diff_changes', 'device_idtag', 'tpe', 'device_name')ο
- CLASS_PROPERTIES_WITH_PROFILE = {'sigma': 'sigma_prof', 'value': 'value_prof'}ο
- CLASS_PROPERTY_DECLARATIONS = (prop:idtag, prop:name, prop:code, prop:rdfid, prop:action, prop:comment, prop:diff_changes, prop:device_idtag, prop:tpe, prop:device_name, prop:value, prop:sigma)ο
- CLASS_PROPERTY_LIST = (prop:idtag, prop:name, prop:code, prop:rdfid, prop:action, prop:comment, prop:diff_changes, prop:device_idtag, prop:tpe, prop:device_name, prop:value, prop:sigma)ο
- CLASS_REGISTERED_PROPERTIES = {'action': prop:action, 'code': prop:code, 'comment': prop:comment, 'device_idtag': prop:device_idtag, 'device_name': prop:device_name, 'diff_changes': prop:diff_changes, 'idtag': prop:idtag, 'name': prop:name, 'rdfid': prop:rdfid, 'sigma': prop:sigma, 'tpe': prop:tpe, 'value': prop:value}ο
- get_standard_deviation_pu_at(t: int | None, Sbase: float)[source]ο
Get measurement per-unit standard deviation at a given point :param t: None for snapshot, integer for time point :param Sbase: Base power (100 MVA) :return: value in p.u.
- get_value_pu_at(t: int | None, Sbase: float)[source]ο
Get measurement per-unit value at a given point :param t: None for snapshot, integer for time point :param Sbase: Base power (100 MVA) :return: value in p.u.
- property sigma: floatο
Get
sigma.- Returns:
float
- property sigma_prof: ProfileFloatο
Cost profile :return: Profile
- property value: floatο
Get
value.- Returns:
float
- property value_prof: ProfileFloatο
Cost profile :return: Profile
- class VeraGridEngine.Devices.measurement.PfMeasurement(value: float = 0.0, uncertainty: float = 0.0, api_obj: Line | DcLine | Transformer2W | UPFC | Winding | Switch | SeriesReactance | Generator | None = None, name='', idtag: str | None = None)[source]ο
Bases:
MeasurementTemplateMeasurement class
- CLASS_NON_EDITABLE_PROPERTIES = ('idtag', 'diff_changes', 'device_idtag', 'tpe', 'device_name')ο
- CLASS_PROPERTIES_WITH_PROFILE = {'sigma': 'sigma_prof', 'value': 'value_prof'}ο
- CLASS_PROPERTY_DECLARATIONS = (prop:idtag, prop:name, prop:code, prop:rdfid, prop:action, prop:comment, prop:diff_changes, prop:device_idtag, prop:tpe, prop:device_name, prop:value, prop:sigma)ο
- CLASS_PROPERTY_LIST = (prop:idtag, prop:name, prop:code, prop:rdfid, prop:action, prop:comment, prop:diff_changes, prop:device_idtag, prop:tpe, prop:device_name, prop:value, prop:sigma)ο
- CLASS_REGISTERED_PROPERTIES = {'action': prop:action, 'code': prop:code, 'comment': prop:comment, 'device_idtag': prop:device_idtag, 'device_name': prop:device_name, 'diff_changes': prop:diff_changes, 'idtag': prop:idtag, 'name': prop:name, 'rdfid': prop:rdfid, 'sigma': prop:sigma, 'tpe': prop:tpe, 'value': prop:value}ο
- class VeraGridEngine.Devices.measurement.PgMeasurement(value: float = 0.0, uncertainty: float = 0.0, api_obj: Generator | None = None, name='', idtag: str | None = None)[source]ο
Bases:
MeasurementTemplateMeasurement class
- CLASS_NON_EDITABLE_PROPERTIES = ('idtag', 'diff_changes', 'device_idtag', 'tpe', 'device_name')ο
- CLASS_PROPERTIES_WITH_PROFILE = {'sigma': 'sigma_prof', 'value': 'value_prof'}ο
- CLASS_PROPERTY_DECLARATIONS = (prop:idtag, prop:name, prop:code, prop:rdfid, prop:action, prop:comment, prop:diff_changes, prop:device_idtag, prop:tpe, prop:device_name, prop:value, prop:sigma)ο
- CLASS_PROPERTY_LIST = (prop:idtag, prop:name, prop:code, prop:rdfid, prop:action, prop:comment, prop:diff_changes, prop:device_idtag, prop:tpe, prop:device_name, prop:value, prop:sigma)ο
- CLASS_REGISTERED_PROPERTIES = {'action': prop:action, 'code': prop:code, 'comment': prop:comment, 'device_idtag': prop:device_idtag, 'device_name': prop:device_name, 'diff_changes': prop:diff_changes, 'idtag': prop:idtag, 'name': prop:name, 'rdfid': prop:rdfid, 'sigma': prop:sigma, 'tpe': prop:tpe, 'value': prop:value}ο
- class VeraGridEngine.Devices.measurement.PiMeasurement(value: float = 0.0, uncertainty: float = 0.0, api_obj: Bus | None = None, name='', idtag: str | None = None)[source]ο
Bases:
MeasurementTemplateMeasurement class
- CLASS_NON_EDITABLE_PROPERTIES = ('idtag', 'diff_changes', 'device_idtag', 'tpe', 'device_name')ο
- CLASS_PROPERTIES_WITH_PROFILE = {'sigma': 'sigma_prof', 'value': 'value_prof'}ο
- CLASS_PROPERTY_DECLARATIONS = (prop:idtag, prop:name, prop:code, prop:rdfid, prop:action, prop:comment, prop:diff_changes, prop:device_idtag, prop:tpe, prop:device_name, prop:value, prop:sigma)ο
- CLASS_PROPERTY_LIST = (prop:idtag, prop:name, prop:code, prop:rdfid, prop:action, prop:comment, prop:diff_changes, prop:device_idtag, prop:tpe, prop:device_name, prop:value, prop:sigma)ο
- CLASS_REGISTERED_PROPERTIES = {'action': prop:action, 'code': prop:code, 'comment': prop:comment, 'device_idtag': prop:device_idtag, 'device_name': prop:device_name, 'diff_changes': prop:diff_changes, 'idtag': prop:idtag, 'name': prop:name, 'rdfid': prop:rdfid, 'sigma': prop:sigma, 'tpe': prop:tpe, 'value': prop:value}ο
- class VeraGridEngine.Devices.measurement.PtMeasurement(value: float = 0.0, uncertainty: float = 0.0, api_obj: Line | DcLine | Transformer2W | UPFC | Winding | Switch | SeriesReactance | Generator | None = None, name='', idtag: str | None = None)[source]ο
Bases:
MeasurementTemplateMeasurement class
- CLASS_NON_EDITABLE_PROPERTIES = ('idtag', 'diff_changes', 'device_idtag', 'tpe', 'device_name')ο
- CLASS_PROPERTIES_WITH_PROFILE = {'sigma': 'sigma_prof', 'value': 'value_prof'}ο
- CLASS_PROPERTY_DECLARATIONS = (prop:idtag, prop:name, prop:code, prop:rdfid, prop:action, prop:comment, prop:diff_changes, prop:device_idtag, prop:tpe, prop:device_name, prop:value, prop:sigma)ο
- CLASS_PROPERTY_LIST = (prop:idtag, prop:name, prop:code, prop:rdfid, prop:action, prop:comment, prop:diff_changes, prop:device_idtag, prop:tpe, prop:device_name, prop:value, prop:sigma)ο
- CLASS_REGISTERED_PROPERTIES = {'action': prop:action, 'code': prop:code, 'comment': prop:comment, 'device_idtag': prop:device_idtag, 'device_name': prop:device_name, 'diff_changes': prop:diff_changes, 'idtag': prop:idtag, 'name': prop:name, 'rdfid': prop:rdfid, 'sigma': prop:sigma, 'tpe': prop:tpe, 'value': prop:value}ο
- class VeraGridEngine.Devices.measurement.QfMeasurement(value: float = 0.0, uncertainty: float = 0.0, api_obj: Line | DcLine | Transformer2W | UPFC | Winding | Switch | SeriesReactance | Generator | None = None, name='', idtag: str | None = None)[source]ο
Bases:
MeasurementTemplateMeasurement class
- CLASS_NON_EDITABLE_PROPERTIES = ('idtag', 'diff_changes', 'device_idtag', 'tpe', 'device_name')ο
- CLASS_PROPERTIES_WITH_PROFILE = {'sigma': 'sigma_prof', 'value': 'value_prof'}ο
- CLASS_PROPERTY_DECLARATIONS = (prop:idtag, prop:name, prop:code, prop:rdfid, prop:action, prop:comment, prop:diff_changes, prop:device_idtag, prop:tpe, prop:device_name, prop:value, prop:sigma)ο
- CLASS_PROPERTY_LIST = (prop:idtag, prop:name, prop:code, prop:rdfid, prop:action, prop:comment, prop:diff_changes, prop:device_idtag, prop:tpe, prop:device_name, prop:value, prop:sigma)ο
- CLASS_REGISTERED_PROPERTIES = {'action': prop:action, 'code': prop:code, 'comment': prop:comment, 'device_idtag': prop:device_idtag, 'device_name': prop:device_name, 'diff_changes': prop:diff_changes, 'idtag': prop:idtag, 'name': prop:name, 'rdfid': prop:rdfid, 'sigma': prop:sigma, 'tpe': prop:tpe, 'value': prop:value}ο
- class VeraGridEngine.Devices.measurement.QgMeasurement(value: float = 0.0, uncertainty: float = 0.0, api_obj: Generator | None = None, name='', idtag: str | None = None)[source]ο
Bases:
MeasurementTemplateMeasurement class
- CLASS_NON_EDITABLE_PROPERTIES = ('idtag', 'diff_changes', 'device_idtag', 'tpe', 'device_name')ο
- CLASS_PROPERTIES_WITH_PROFILE = {'sigma': 'sigma_prof', 'value': 'value_prof'}ο
- CLASS_PROPERTY_DECLARATIONS = (prop:idtag, prop:name, prop:code, prop:rdfid, prop:action, prop:comment, prop:diff_changes, prop:device_idtag, prop:tpe, prop:device_name, prop:value, prop:sigma)ο
- CLASS_PROPERTY_LIST = (prop:idtag, prop:name, prop:code, prop:rdfid, prop:action, prop:comment, prop:diff_changes, prop:device_idtag, prop:tpe, prop:device_name, prop:value, prop:sigma)ο
- CLASS_REGISTERED_PROPERTIES = {'action': prop:action, 'code': prop:code, 'comment': prop:comment, 'device_idtag': prop:device_idtag, 'device_name': prop:device_name, 'diff_changes': prop:diff_changes, 'idtag': prop:idtag, 'name': prop:name, 'rdfid': prop:rdfid, 'sigma': prop:sigma, 'tpe': prop:tpe, 'value': prop:value}ο
- class VeraGridEngine.Devices.measurement.QiMeasurement(value: float = 0.0, uncertainty: float = 0.0, api_obj: Bus | None = None, name='', idtag: str | None = None)[source]ο
Bases:
MeasurementTemplateMeasurement class
- CLASS_NON_EDITABLE_PROPERTIES = ('idtag', 'diff_changes', 'device_idtag', 'tpe', 'device_name')ο
- CLASS_PROPERTIES_WITH_PROFILE = {'sigma': 'sigma_prof', 'value': 'value_prof'}ο
- CLASS_PROPERTY_DECLARATIONS = (prop:idtag, prop:name, prop:code, prop:rdfid, prop:action, prop:comment, prop:diff_changes, prop:device_idtag, prop:tpe, prop:device_name, prop:value, prop:sigma)ο
- CLASS_PROPERTY_LIST = (prop:idtag, prop:name, prop:code, prop:rdfid, prop:action, prop:comment, prop:diff_changes, prop:device_idtag, prop:tpe, prop:device_name, prop:value, prop:sigma)ο
- CLASS_REGISTERED_PROPERTIES = {'action': prop:action, 'code': prop:code, 'comment': prop:comment, 'device_idtag': prop:device_idtag, 'device_name': prop:device_name, 'diff_changes': prop:diff_changes, 'idtag': prop:idtag, 'name': prop:name, 'rdfid': prop:rdfid, 'sigma': prop:sigma, 'tpe': prop:tpe, 'value': prop:value}ο
- class VeraGridEngine.Devices.measurement.QtMeasurement(value: float = 0.0, uncertainty: float = 0.0, api_obj: Line | DcLine | Transformer2W | UPFC | Winding | Switch | SeriesReactance | Generator | None = None, name='', idtag: str | None = None)[source]ο
Bases:
MeasurementTemplateMeasurement class
- CLASS_NON_EDITABLE_PROPERTIES = ('idtag', 'diff_changes', 'device_idtag', 'tpe', 'device_name')ο
- CLASS_PROPERTIES_WITH_PROFILE = {'sigma': 'sigma_prof', 'value': 'value_prof'}ο
- CLASS_PROPERTY_DECLARATIONS = (prop:idtag, prop:name, prop:code, prop:rdfid, prop:action, prop:comment, prop:diff_changes, prop:device_idtag, prop:tpe, prop:device_name, prop:value, prop:sigma)ο
- CLASS_PROPERTY_LIST = (prop:idtag, prop:name, prop:code, prop:rdfid, prop:action, prop:comment, prop:diff_changes, prop:device_idtag, prop:tpe, prop:device_name, prop:value, prop:sigma)ο
- CLASS_REGISTERED_PROPERTIES = {'action': prop:action, 'code': prop:code, 'comment': prop:comment, 'device_idtag': prop:device_idtag, 'device_name': prop:device_name, 'diff_changes': prop:diff_changes, 'idtag': prop:idtag, 'name': prop:name, 'rdfid': prop:rdfid, 'sigma': prop:sigma, 'tpe': prop:tpe, 'value': prop:value}ο
- class VeraGridEngine.Devices.measurement.VaMeasurement(value: float = 0.0, uncertainty: float = 0.0, api_obj: Bus | None = None, name='', idtag: str | None = None)[source]ο
Bases:
MeasurementTemplateMeasurement class
- CLASS_NON_EDITABLE_PROPERTIES = ('idtag', 'diff_changes', 'device_idtag', 'tpe', 'device_name')ο
- CLASS_PROPERTIES_WITH_PROFILE = {'sigma': 'sigma_prof', 'value': 'value_prof'}ο
- CLASS_PROPERTY_DECLARATIONS = (prop:idtag, prop:name, prop:code, prop:rdfid, prop:action, prop:comment, prop:diff_changes, prop:device_idtag, prop:tpe, prop:device_name, prop:value, prop:sigma)ο
- CLASS_PROPERTY_LIST = (prop:idtag, prop:name, prop:code, prop:rdfid, prop:action, prop:comment, prop:diff_changes, prop:device_idtag, prop:tpe, prop:device_name, prop:value, prop:sigma)ο
- CLASS_REGISTERED_PROPERTIES = {'action': prop:action, 'code': prop:code, 'comment': prop:comment, 'device_idtag': prop:device_idtag, 'device_name': prop:device_name, 'diff_changes': prop:diff_changes, 'idtag': prop:idtag, 'name': prop:name, 'rdfid': prop:rdfid, 'sigma': prop:sigma, 'tpe': prop:tpe, 'value': prop:value}ο
- class VeraGridEngine.Devices.measurement.VmMeasurement(value: float = 0.0, uncertainty: float = 0.0, api_obj: Bus | None = None, name='', idtag: str | None = None)[source]ο
Bases:
MeasurementTemplateMeasurement class
- CLASS_NON_EDITABLE_PROPERTIES = ('idtag', 'diff_changes', 'device_idtag', 'tpe', 'device_name')ο
- CLASS_PROPERTIES_WITH_PROFILE = {'sigma': 'sigma_prof', 'value': 'value_prof'}ο
- CLASS_PROPERTY_DECLARATIONS = (prop:idtag, prop:name, prop:code, prop:rdfid, prop:action, prop:comment, prop:diff_changes, prop:device_idtag, prop:tpe, prop:device_name, prop:value, prop:sigma)ο
- CLASS_PROPERTY_LIST = (prop:idtag, prop:name, prop:code, prop:rdfid, prop:action, prop:comment, prop:diff_changes, prop:device_idtag, prop:tpe, prop:device_name, prop:value, prop:sigma)ο
- CLASS_REGISTERED_PROPERTIES = {'action': prop:action, 'code': prop:code, 'comment': prop:comment, 'device_idtag': prop:device_idtag, 'device_name': prop:device_name, 'diff_changes': prop:diff_changes, 'idtag': prop:idtag, 'name': prop:name, 'rdfid': prop:rdfid, 'sigma': prop:sigma, 'tpe': prop:tpe, 'value': prop:value}ο
VeraGridEngine.Devices.multi_circuit moduleο
- class VeraGridEngine.Devices.multi_circuit.MultiCircuit(name: str = '', Sbase: float = 100, fbase: float = 50.0, idtag: str | None = None)[source]ο
Bases:
AssetsThe concept of circuit should be easy enough to understand. It represents a set of nodes (buses) and Branches (lines, transformers or other impedances).
The MultiCircuit class is the main object in VeraGrid. It represents a circuit that may contain islands. It is important to understand that a circuit split in two or more islands cannot be simulated as is, because the admittance matrix would be singular. The solution to this is to split the circuit in island-circuits. Therefore MultiCircuit identifies the islands and creates individual Circuit objects for each of them.
VeraGrid uses an object oriented approach for the data management. This allows to group the data in a smart way. In VeraGrid there are only two types of object directly declared in a Circuit or MultiCircuit object. These are the Bus and the Branch. The Branches connect the buses and the buses contain all the other possible devices like loads, generators, batteries, etc. This simplifies enormously the management of element when adding, associating and deleting.
from VeraGridEngine.multi_circuit import MultiCircuit grid = MultiCircuit(name="My grid")
- Sbase: floatο
- add_circuit(new_grid: MultiCircuit, re_id_new_grid: bool = True) Logger[source]ο
Add a circuit to this circuit, keeping all elements (this is not equal to a circuit merge) :param new_grid: Circuit to insert :param re_id_new_grid: Create new idtags for the new grid :return: Logger
- build_graph_real_power_flow(current_flow)[source]ο
Returns a networkx DiGraph object of the grid.
Arguments:
current_flow (list): power_flow.results.If object
- change_base(Sbase_new: float)[source]ο
Change the elements base impedance :param Sbase_new: new base impedance in MVA
- check_emt_models() Logger[source]ο
This function checks that a device has a valid emt model :return:
- check_rms_models() Logger[source]ο
This function checks that a device has a valid rms model :return:
- clean_branches(bus_set: Set[Bus], logger: Logger) None[source]ο
Clean the branch references :param bus_set: Set of Buses :param logger: Logger
- clean_contingencies(all_dev: Dict[str, Generator | Battery | Load | ExternalGrid | StaticGenerator | Shunt | ControllableShunt | CurrentInjection | Line | DcLine | Transformer2W | HvdcLine | VSC | UPFC | Winding | Switch | SeriesReactance | FluidNode | FluidPath | FluidP2x | FluidTurbine | FluidPump | Substation | Bus | BusBar | VoltageLevel | Country | Region | Community | Municipality | Area | Zone | Transformer3W | TransformerNW | OverheadLineType | Wire | TransformerType | EmissionGas | BranchGroup | LineLocations | LineLocation | ModellingAuthority | Facility | Fuel | Investment | InvestmentsGroup | Contingency | ContingencyGroup | RemedialAction | RemedialActionGroup | Technology | Owner | UndergroundLineType | SequenceLineType | RmsModelTemplate | EmtModelTemplate | FmuTemplate | RmsEvent | RmsEventsGroup | ShortCircuitEvent | IfMeasurement | ItMeasurement | QfMeasurement | PfMeasurement | QtMeasurement | PtMeasurement | QiMeasurement | PiMeasurement | VmMeasurement | VaMeasurement | PgMeasurement | QgMeasurement], logger: Logger) None[source]ο
Clean the contingencies and contingency groups :param all_dev: :param logger: Logger
- clean_injections(bus_set: Set[Bus], logger: Logger) None[source]ο
Clean the branch references :param bus_set: Set of Buses :param logger: Logger
- clean_investments(all_dev: Dict[str, Generator | Battery | Load | ExternalGrid | StaticGenerator | Shunt | ControllableShunt | CurrentInjection | Line | DcLine | Transformer2W | HvdcLine | VSC | UPFC | Winding | Switch | SeriesReactance | FluidNode | FluidPath | FluidP2x | FluidTurbine | FluidPump | Substation | Bus | BusBar | VoltageLevel | Country | Region | Community | Municipality | Area | Zone | Transformer3W | TransformerNW | OverheadLineType | Wire | TransformerType | EmissionGas | BranchGroup | LineLocations | LineLocation | ModellingAuthority | Facility | Fuel | Investment | InvestmentsGroup | Contingency | ContingencyGroup | RemedialAction | RemedialActionGroup | Technology | Owner | UndergroundLineType | SequenceLineType | RmsModelTemplate | EmtModelTemplate | FmuTemplate | RmsEvent | RmsEventsGroup | ShortCircuitEvent | IfMeasurement | ItMeasurement | QfMeasurement | PfMeasurement | QtMeasurement | PtMeasurement | QiMeasurement | PiMeasurement | VmMeasurement | VaMeasurement | PgMeasurement | QgMeasurement], logger: Logger) None[source]ο
Clean the investments and investment groups :param all_dev: :param logger: Logger
- clean_remedial_actions(all_dev: Dict[str, Generator | Battery | Load | ExternalGrid | StaticGenerator | Shunt | ControllableShunt | CurrentInjection | Line | DcLine | Transformer2W | HvdcLine | VSC | UPFC | Winding | Switch | SeriesReactance | FluidNode | FluidPath | FluidP2x | FluidTurbine | FluidPump | Substation | Bus | BusBar | VoltageLevel | Country | Region | Community | Municipality | Area | Zone | Transformer3W | TransformerNW | OverheadLineType | Wire | TransformerType | EmissionGas | BranchGroup | LineLocations | LineLocation | ModellingAuthority | Facility | Fuel | Investment | InvestmentsGroup | Contingency | ContingencyGroup | RemedialAction | RemedialActionGroup | Technology | Owner | UndergroundLineType | SequenceLineType | RmsModelTemplate | EmtModelTemplate | FmuTemplate | RmsEvent | RmsEventsGroup | ShortCircuitEvent | IfMeasurement | ItMeasurement | QfMeasurement | PfMeasurement | QtMeasurement | PtMeasurement | QiMeasurement | PiMeasurement | VmMeasurement | VaMeasurement | PgMeasurement | QgMeasurement], logger: Logger) None[source]ο
Clean the remedial actons and remedial actons groups :param all_dev: :param logger: Logger
- comments: strο
- compare_circuits(grid2: MultiCircuit, detailed_profile_comparison: bool = True, skip_internals: bool = False, tolerance: float = 1e-06) Tuple[bool, Logger][source]ο
Compare this circuit with another circuits for equality :param grid2: MultiCircuit :param detailed_profile_comparison: if true, profiles are compared element-wise with the getters :param skip_internals: skip non visible properties :param tolerance :return: equal?, Logger with the comparison information
- compose_bus_blocks() Dict[Bus, Block][source]ο
this function returns a dictionary with keys, the device bus, mand values, a block containing all the rms models of the elements connected to that bus. Returns ββ-
- convert_fluid_path_to_line(fluid_path: FluidPath) Line[source]ο
Convert a line to voltage source converter :param fluid_path: FluidPath :return: Line
- convert_generator_to_battery(gen: Generator) Battery[source]ο
Convert a generator to battery :param gen: Generator instance :return: Transformer2W
- convert_hvdc_line_to_vsc_system(hvdc_line: HvdcLine)[source]ο
Convert a HvdcLine to the corresponding VSC-DcLine-VSC system :param hvdc_line: HvdcLine :return: ac_bus_1, ac_bus_2, dc_bus_1, dc_bus_2, conv1, conv2, dc_line
- convert_line_to_hvdc(line: Line) HvdcLine[source]ο
Convert a line to HVDC, this is the GUI way to create HVDC objects :param line: Line instance :return: HvdcLine
- convert_line_to_series_reactance(line: Line) SeriesReactance[source]ο
Convert a line to voltage source converter :param line: Line instance :return: SeriesReactance
- convert_line_to_switch(line: Line) Switch[source]ο
Convert a line to voltage source converter :param line: Line instance :return: SeriesReactance
- convert_line_to_transformer(line: Line) Transformer2W[source]ο
Convert a line to Transformer :param line: Line instance :return: Transformer2W
- convert_line_to_upfc(line: Line) UPFC[source]ο
Convert a line to voltage source converter :param line: Line instance :return: UPFC
- convert_line_to_vsc(line: Line) VSC[source]ο
Convert a line to voltage source converter :param line: Line instance :return: Nothing
- copy() MultiCircuit[source]ο
Returns a deep (true) copy of this circuit.
- differentiate_circuits(base_grid: MultiCircuit, detailed_profile_comparison: bool = True, force_second_pass: bool = False) Tuple[bool, Logger, MultiCircuit][source]ο
Compare this circuit with another circuits for equality :param base_grid: MultiCircuit used as comparison base :param detailed_profile_comparison: if true, profiles are compared element-wise with the getters :param force_second_pass: if true, the base grid is inspected for elements that it contains that
this grid doesnβt (deletions)
- Returns:
equal?, Logger with the comparison information, MultiCircuit with the elements that have changed
- export_pf(file_name, power_flow_results)[source]ο
Export power flow results to file.
Arguments:
file_name (str): Excel file name
- export_profiles(file_name)[source]ο
Export object profiles to file.
Arguments:
file_name (str): Excel file name
- fBase: floatο
- fill_lat_lon_from_xy(destructive=True, factor=1.0, offset_x=0, offset_y=0)[source]ο
Convert the coordinates to some random lat lon :param destructive: :param factor: :param offset_x: :param offset_y: :return:
- fill_xy_from_lat_lon(destructive: bool = True, factor: float = 0.01, remove_offset: bool = True) Logger[source]ο
fill the x and y value from the latitude and longitude values :param destructive: if true, the values are overwritten regardless, otherwise only if x and y are 0 :param factor: Explosion factor :param remove_offset: delete the sometimes huge offset coming from pyproj :return Logger object
- fuse_devices() List[Generator | Battery | Load | ExternalGrid | StaticGenerator | Shunt | ControllableShunt | CurrentInjection][source]ο
Fuse all the different devices in a node to a single device per node :return:
- get_Pbus(apply_active: bool = False) ndarray[tuple[Any, ...], dtype[float64]][source]ο
Get snapshot active power array per bus :return: Vec
- get_Pbus_prof(apply_active: bool = False) ndarray[tuple[Any, ...], dtype[float64]] | ndarray[tuple[int, int], dtype[float64]][source]ο
Get profiles active power per bus :return: Mat
- get_Pgen(apply_active: bool = False) ndarray[tuple[Any, ...], dtype[float64]][source]ο
Get the complex bus power Injections :param apply_active: Apply the active state? :return: (nbus) [MW + j MVAr]
- get_Pload(apply_active: bool = False) ndarray[tuple[Any, ...], dtype[float64]][source]ο
Get the complex bus power Injections :param apply_active: Apply the active state? :return: (nbus) [MW + j MVAr]
- get_Sbus(apply_active: bool = False) ndarray[tuple[Any, ...], dtype[complex128]][source]ο
Get the complex bus power Injections :param apply_active: Apply the active state? :return: (nbus) [MW + j MVAr]
- get_Sbus_prof(apply_active: bool = False) ndarray[tuple[Any, ...], dtype[complex128]][source]ο
Get the complex bus power Injections :param apply_active: Apply the active state? :return: (ntime, nbus) [MW + j MVAr]
- get_Sbus_prof_dispatchable(apply_active: bool = False) ndarray[tuple[Any, ...], dtype[complex128]][source]ο
Get the complex bus power Injections only considering those devices that can be dispatched This is, generators and batteries with enabled_dispatch=True :param apply_active: Apply the active state? :return: (ntime, nbus) [MW + j MVAr]
- get_Sbus_prof_fixed(apply_active: bool = False) ndarray[tuple[Any, ...], dtype[complex128]][source]ο
Get the complex bus power Injections considering those devices that cannot be dispatched This is, all devices except generators and batteries with enabled_dispatch=True :param apply_active: Apply the active state? :return: (ntime, nbus) [MW + j MVAr]
- static get_adjacent_buses(A: csc_matrix, bus_idx)[source]ο
Return array of indices of the buses adjacent to the bus given by itβs index :param A: Adjacent matrix :param bus_idx: bus index :return: array of adjacent bus indices
- get_aggregation_buses(aggregations: List[Area | Zone | Country | Community | Region | Municipality]) List[Tuple[int, Bus]][source]ο
Get the selected buses :param aggregations: :return: list of bus indices and bus ptr
- get_areas_buses(areas: List[Area]) List[Tuple[int, Bus]][source]ο
Get the selected buses :return: list of bus indices and bus ptr
- get_automatic_precision()[source]ο
Get the precision that simulates correctly the power flow :return: tolerance parameter for the power flow options, exponent
- get_batt_technology_connectivity_matrix() csc_matrix[source]ο
Get the technology connectivity matrix with relation to the generators should be used to get the generation per technology by: Tech_mat x Pgen :return: CSC sparse matrix (n_tech, n_gen)
- get_batteries_by_bus() Dict[Bus, List[Battery]][source]ο
Get the injection devices grouped by bus and by device type :return: Dict[bus, Dict[DeviceType, List[Injection devs]]
- get_branch_active_time_array() ndarray[tuple[Any, ...], dtype[int64]][source]ο
Get branch active matrix :return: array with branch active status
- get_branch_area_connectivity_matrix(a1: List[Area], a2: List[Area]) csc_matrix[source]ο
Get the inter area connectivity matrix :param a1: list of sending areas :param a2: list of receiving areas :return: Connectivity of the Branches to each sending or receiving area groups (Branches, 2)
- get_branch_areas_info() Tuple[List[str], ndarray[tuple[Any, ...], dtype[int64]], ndarray[tuple[Any, ...], dtype[int64]], ndarray[tuple[Any, ...], dtype[int64]], ndarray[tuple[Any, ...], dtype[int64]], ndarray[tuple[Any, ...], dtype[int64]]][source]ο
Get the area-branches information :return: area_names, bus_area_indices, F, T, hvdc_F, hvdc_T
- get_branch_contingency_rates(add_hvdc=False, add_vsc=False, add_switch=True) ndarray[tuple[Any, ...], dtype[float64]][source]ο
Get the complex bus power Injections :return: (nbr) [MVA]
- get_branch_contingency_rates_prof(add_hvdc=False, add_vsc=False, add_switch=True) ndarray[tuple[Any, ...], dtype[float64]] | ndarray[tuple[int, int], dtype[float64]][source]ο
Get the complex bus power Injections :return: (ntime, nbr) [MVA]
- get_branch_rates(add_hvdc=False, add_vsc=False, add_switch=True) ndarray[tuple[Any, ...], dtype[float64]][source]ο
Get the complex bus power Injections :return: (nbr) [MVA]
- get_branch_rates_prof(add_hvdc=False, add_vsc=False, add_switch=True) ndarray[tuple[Any, ...], dtype[float64]] | ndarray[tuple[int, int], dtype[float64]][source]ο
Get the complex bus power Injections :return: (ntime, nbr) [MVA]
- get_bus_area_indices() ndarray[tuple[Any, ...], dtype[int64]][source]ο
Get array of area indices for each bus :return:
- get_bus_branch_connectivity_matrix() Tuple[csc_matrix, csc_matrix, csc_matrix][source]ο
Get the branch-bus connectivity :return: Cf, Ct, C
- get_bus_branch_dict() Dict[Bus, List[Line | DcLine | Transformer2W | HvdcLine | VSC | UPFC | Winding | Switch | SeriesReactance]][source]ο
Get the branch-bus dictionary :return: dict[bus] -> list of branches
- get_bus_default_types() ndarray[tuple[Any, ...], dtype[int64]][source]ο
Return an array of bus types :return: number
- get_buses_from_objects(elements: List[Generator | Battery | Load | ExternalGrid | StaticGenerator | Shunt | ControllableShunt | CurrentInjection | Line | DcLine | Transformer2W | HvdcLine | VSC | UPFC | Winding | Switch | SeriesReactance | FluidNode | FluidPath | FluidP2x | FluidTurbine | FluidPump | Substation | Bus | BusBar | VoltageLevel | Country | Region | Community | Municipality | Area | Zone | Transformer3W | TransformerNW | OverheadLineType | Wire | TransformerType | EmissionGas | BranchGroup | LineLocations | LineLocation | ModellingAuthority | Facility | Fuel | Investment | InvestmentsGroup | Contingency | ContingencyGroup | RemedialAction | RemedialActionGroup | Technology | Owner | UndergroundLineType | SequenceLineType | RmsModelTemplate | EmtModelTemplate | FmuTemplate | RmsEvent | RmsEventsGroup | ShortCircuitEvent | IfMeasurement | ItMeasurement | QfMeasurement | PfMeasurement | QtMeasurement | PtMeasurement | QiMeasurement | PiMeasurement | VmMeasurement | VaMeasurement | PgMeasurement | QgMeasurement], dtype: DeviceType) Set[Bus][source]ο
Returns set of buses belonging to the list elements
- Parameters:
elements β list of objects
dtype β DeviceType of all the elements
- Returns:
set of buses
- get_center_location() Tuple[float, float][source]ο
Get the mean coordinates of the system (lat, lon)
- get_country_buses(countries: List[Country]) List[Tuple[int, Bus]][source]ο
Get the selected buses :return: list of bus indices and bus ptr
- get_dimensions()[source]ο
Get the three dimensions of the circuit: number of buses, number of Branches, number of time steps :return: (nbus, nbranch, ntime)
- get_gen_emission_rates_sparse_matrix() csc_matrix[source]ο
Get the emission rates matrix with relation to the generators should be used to get the fuel amounts by: Rates_mat x Pgen :return: CSC sparse matrix (n_emissions, n_gen)
- get_gen_fuel_rates_sparse_matrix() csc_matrix[source]ο
Get the fuel rates matrix with relation to the generators should be used to get the fuel amounts by: Rates_mat x Pgen :return: CSC sparse matrix (n_fuel, n_gen)
- get_gen_technology_connectivity_matrix() csc_matrix[source]ο
Get the technology connectivity matrix with relation to the generators should be used to get the generation per technology by: Tech_mat x Pgen :return: CSC sparse matrix (n_tech, n_gen)
- get_imbalance(apply_active: bool = False) float[source]ο
Get the system imbalance in per unit :return:
- get_injection_devices_grouped_by_bus() Dict[Bus, Dict[DeviceType, List[Generator | Battery | Load | ExternalGrid | StaticGenerator | Shunt | ControllableShunt | CurrentInjection]]][source]ο
Get the injection devices grouped by bus and by device type :return: Dict[bus, Dict[DeviceType, List[Injection devs]]
- get_injection_devices_grouped_by_fluid_node() Dict[FluidNode, Dict[DeviceType, List[FluidNode | FluidPath | FluidP2x | FluidTurbine | FluidPump]]][source]ο
Get the injection devices grouped by bus and by device type :return: Dict[bus, Dict[DeviceType, List[Injection devs]]
- get_injection_devices_grouped_by_group_type(group_type: DeviceType) List[Dict[DeviceType, List[Generator | Battery | Load | ExternalGrid | StaticGenerator | Shunt | ControllableShunt | CurrentInjection]]][source]ο
Get the injection devices grouped by bus and by device type :param group_type: some grouping Device Type (Region, Substation, Area, Country, etcβ¦) :return: Dict[bus, Dict[DeviceType, List[Injection devs]]
- get_injection_devices_grouped_by_substation() Dict[Substation, Dict[DeviceType, List[Generator | Battery | Load | ExternalGrid | StaticGenerator | Shunt | ControllableShunt | CurrentInjection]]][source]ο
Get the injection devices grouped by bus and by device type :return: Dict[bus, Dict[DeviceType, List[Injection devs]]
- get_inter_aggregation_info(objects_from: List[Area | Zone | Country | Community | Region | Municipality], objects_to: List[Area | Zone | Country | Community | Region | Municipality]) InterAggregationInfo[source]ο
Get the lists that help defining the inter area objects :param objects_from: list of objects from :param objects_to: list of objects to :return: InterAggregationInfo
- get_inter_areas_branches(a1: List[Area], a2: List[Area]) List[Tuple[int, Line | DcLine | Transformer2W | HvdcLine | VSC | UPFC | Winding | Switch | SeriesReactance, float]][source]ο
Get the inter-area Branches. HVDC Branches are not considered :param a1: Area from :param a2: Area to :return: List of (branch index, branch object, flow sense w.r.t the area exchange)
- get_inter_areas_hvdc_branches(a1: List[Area], a2: List[Area]) List[Tuple[int, Line | DcLine | Transformer2W | HvdcLine | VSC | UPFC | Winding | Switch | SeriesReactance, float]][source]ο
Get the inter-area Branches :param a1: Area from :param a2: Area to :return: List of (branch index, branch object, flow sense w.r.t the area exchange)
- get_inter_areas_vsc_branches(a1: List[Area], a2: List[Area]) List[Tuple[int, VSC, float]][source]ο
Get the inter-area VSC :param a1: Area from :param a2: Area to :return: List of (branch index, branch object, flow sense w.r.t the area exchange)
- get_inter_buses_branches(a1: Set[Bus], a2: Set[Bus]) List[Tuple[int, Line | DcLine | Transformer2W | HvdcLine | VSC | UPFC | Winding | Switch | SeriesReactance, float]][source]ο
Get the inter-buses Branches. HVDC Branches are not considered :param a1: Group of Buses 1 :param a2: Group of Buses 1 :return: List of (branch index, branch object, flow sense w.r.t the area exchange)
- get_inter_buses_hvdc_branches(a1: Set[Bus], a2: Set[Bus]) List[Tuple[int, HvdcLine, float]][source]ο
Get the inter-area Branches :param a1: Group of Buses 1 :param a2: Group of Buses 1 :return: List of (branch index, branch object, flow sense w.r.t the area exchange)
- get_inter_buses_vsc_branches(a1: Set[Bus], a2: Set[Bus]) List[Tuple[int, VSC, float]][source]ο
Get the inter-area VSC :param a1: Group of Buses 1 :param a2: Group of Buses 1 :return: List of (branch index, branch object, flow sense w.r.t the area exchange)
- get_inter_zone_branches(z1: Zone, z2: Zone) List[Tuple[int, Line | DcLine | Transformer2W | HvdcLine | VSC | UPFC | Winding | Switch | SeriesReactance, float]][source]ο
Get the inter-area Branches :param z1: Zone from :param z2: Zone to :return: List of (branch index, branch object, flow sense w.r.t the area exchange)
- get_reduction_sets(reduction_bus_indices: Sequence[int], add_vsc=False, add_hvdc=False, add_switch=True) Tuple[ndarray[tuple[Any, ...], dtype[int64]], ndarray[tuple[Any, ...], dtype[int64]], ndarray[tuple[Any, ...], dtype[int64]], ndarray[tuple[Any, ...], dtype[int64]], ndarray[tuple[Any, ...], dtype[int64]]][source]ο
Generate the set of bus indices for grid reduction :param reduction_bus_indices: array of bus indices to reduce (external set) :param add_vsc: Include the list of VSC? :param add_hvdc: Include the list of HvdcLine? :param add_switch: Include the list of Switch? :return: external, boundary, internal, boundary_branches
- get_snapshot_time_str() str[source]ο
Get the snapshot datetime as a string :return: snapshot datetime string
- get_substation_buses(substation: Substation) List[Bus][source]ο
Get the list of buses of this substation :param substation: :return:
- get_substations_set_from_grouping(selected_objects: List[Generator | Battery | Load | ExternalGrid | StaticGenerator | Shunt | ControllableShunt | CurrentInjection | Line | DcLine | Transformer2W | HvdcLine | VSC | UPFC | Winding | Switch | SeriesReactance | FluidNode | FluidPath | FluidP2x | FluidTurbine | FluidPump | Substation | Bus | BusBar | VoltageLevel | Country | Region | Community | Municipality | Area | Zone | Transformer3W | TransformerNW | OverheadLineType | Wire | TransformerType | EmissionGas | BranchGroup | LineLocations | LineLocation | ModellingAuthority | Facility | Fuel | Investment | InvestmentsGroup | Contingency | ContingencyGroup | RemedialAction | RemedialActionGroup | Technology | Owner | UndergroundLineType | SequenceLineType | RmsModelTemplate | EmtModelTemplate | FmuTemplate | RmsEvent | RmsEventsGroup | ShortCircuitEvent | IfMeasurement | ItMeasurement | QfMeasurement | PfMeasurement | QtMeasurement | PtMeasurement | QiMeasurement | PiMeasurement | VmMeasurement | VaMeasurement | PgMeasurement | QgMeasurement]) Set[Substation][source]ο
Get substation from place :param selected_objects: Regions, Areas, country, etc⦠:return: Set of substations
- get_template_objects_list() List[Generator | Battery | Load | ExternalGrid | StaticGenerator | Shunt | ControllableShunt | CurrentInjection | Line | DcLine | Transformer2W | HvdcLine | VSC | UPFC | Winding | Switch | SeriesReactance | FluidNode | FluidPath | FluidP2x | FluidTurbine | FluidPump | Substation | Bus | BusBar | VoltageLevel | Country | Region | Community | Municipality | Area | Zone | Transformer3W | TransformerNW | OverheadLineType | Wire | TransformerType | EmissionGas | BranchGroup | LineLocations | LineLocation | ModellingAuthority | Facility | Fuel | Investment | InvestmentsGroup | Contingency | ContingencyGroup | RemedialAction | RemedialActionGroup | Technology | Owner | UndergroundLineType | SequenceLineType | RmsModelTemplate | EmtModelTemplate | FmuTemplate | RmsEvent | RmsEventsGroup | ShortCircuitEvent | IfMeasurement | ItMeasurement | QfMeasurement | PfMeasurement | QtMeasurement | PtMeasurement | QiMeasurement | PiMeasurement | VmMeasurement | VaMeasurement | PgMeasurement | QgMeasurement][source]ο
get objects_with_profiles in the form of list :return: List[dev.EditableDevice]
- get_template_objects_str_dict() Dict[str, List[str]][source]ο
get objects_with_profiles as a strings dictionary :return:
- get_topologic_group_dict() Dict[int, List[int]][source]ο
Get numerical circuit time groups :return: Dictionary with the time: [array of times] represented by the index, for instance
{0: [0, 1, 2, 3, 4], 5: [5, 6, 7, 8]} This means that [0, 1, 2, 3, 4] are represented by the topology of 0 and that [5, 6, 7, 8] are represented by the topology of 5
- get_topology_data(t_idx: int | None = None)[source]ο
Get the topology data :param t_idx: time_index (None for the snapshot) :return:
- get_voltage_guess() ndarray[tuple[Any, ...], dtype[complex128]][source]ο
Get the buses stored voltage guess :return: array of complex voltages per bus
- get_zone_buses(zones: List[Zone]) List[Tuple[int, Bus]][source]ο
Get the selected buses :return: list of bus indices and bus ptr
- idtag: strο
- import_bus_lat_lon(df: DataFrame, bus_col: str, lat_col: str, lon_col: str) Logger[source]ο
Import the busesβ latitude and longitude :param df: Pandas DataFrame with the information :param bus_col: bus column name :param lat_col: latitude column name :param lon_col: longitude column name :return: Logger
- merge_buses(bus1: Bus, bus2: Bus)[source]ο
Transfer the injection elementsβ associations from bus2 to bus 1 :param bus1: Bus that will receive the devices :param bus2: Bus that βdonatesβ the devices
- merge_circuit(new_grid: MultiCircuit) Logger[source]ο
Add a circuit to this circuit, keeping all elements (this is not equal to a circuit merge) :param new_grid: Circuit to insert :return: Logger
- model_version: intο
- move_behind_converter(api_object: Generator | Battery | Load | ExternalGrid | StaticGenerator | Shunt | ControllableShunt | CurrentInjection) Tuple[Bus, VSC][source]ο
- Parameters:
api_object
- Returns:
- name: strο
- parentο
- parse(data: Dict[str, str | int | float])[source]ο
Parse grid configuration data :param data: :return:
- rebind_internal_device_references() None[source]ο
Rebind copied device-pointer properties to the canonical objects in this circuit.
MultiCircuit.copy()copies device lists independently for historical compatibility. Any pointer crossing from one list to another must therefore be repaired by idtag after all lists have been copied.
- scale_power(factor)[source]ο
Modify the loads and generators :param factor: multiplier :return: Nothing
- set_batteries_active_profile_from_their_active_power()[source]ο
Modify the batteries active profile to match the active power profile if P=0, active = False else active=True
- set_generators_active_profile_from_their_active_power()[source]ο
Modify the generators active profile to match the active power profile if P=0, active = False else active=True
- set_investments_status(investments_list: List[Investment], status: bool, all_elements_dict: None | dict[str, EditableDevice] = None) None[source]ο
Set the active (and active profile) status of a list of investmentsβ objects :param investments_list: list of investments :param status: status to set in the internal structures :param all_elements_dict: Dictionary of all elements (idtag -> object), if None if is computed
- set_loads_active_profile_from_their_active_power()[source]ο
Modify the loads active profile to match the active power profile if P=0, active = False else active=True
- set_opf_snapshot_results(results: OptimalPowerFlowResults)[source]ο
Assign OptimalPowerFlowResults to the objects :param results:OptimalPowerFlowResults :return:
- set_opf_ts_results(results: OptimalPowerFlowTimeSeriesResults)[source]ο
Assign OptimalPowerFlowTimeSeriesResults to the objects :param results: OptimalPowerFlowTimeSeriesResults :return:
- slice_buses(buses: List[Bus]) MultiCircuit[source]ο
Get a subset of the grid :param buses: list of buses to slice te grid :return: new MultiCircuit
- snapshot_balance()[source]ο
Creates a report DataFrame with the snapshot active power balance :return: DataFrame
- split_line(original_line: Line, position: float, extra_km: float)[source]ο
- Parameters:
original_line
position
extra_km
- Returns:
- split_line_int_out(original_line: Line, position: float, km_io: float)[source]ο
Split line with in/out :param original_line: Line device to split :param position: Position in per-unit (0, 1) measured from the βfromβ side where the splits happens :param km_io: Amount of kilometers to the Substation to connect with the in/out :return: mid_sub, mid_vl, B1, B2, B3, br1, br2, br3, br4
- user_name: strο
- VeraGridEngine.Devices.multi_circuit.get_fused_device_lst(elm_list: List[Generator | Battery | Load | ExternalGrid | StaticGenerator | Shunt | ControllableShunt | CurrentInjection], property_names: list)[source]ο
Fuse all the devices of a list by adding their selected properties :param elm_list: list of devices :param property_names: properties to fuse :return: list of one element
VeraGridEngine.Devices.multiverse moduleο
- class VeraGridEngine.Devices.multiverse.MultiVerse(current_model: MultiCircuit | None = None)[source]ο
Bases:
object- activate_scenario(node_id: int) MultiCircuit[source]ο
Switch the active scenario to the node identified by node_id.
Commits the current nodeβs unsaved edits (non-root only).
Composes the target nodeβs full circuit via
checkout().Updates
current_modelandcurrent_node.
Root nodes use
root.datadirectly so in-place edits are reflected immediately. Non-root nodes always get a fresh composed copy.- Parameters:
node_id β ID of the node to activate
- Returns:
The MultiCircuit that is now active
- property base_model: MultiCircuitο
- static checkout(node: ScenarioNode) MultiCircuit[source]ο
Reconstruct the full MultiCircuit for node by replaying its delta chain from the root. Always returns a fresh copy β safe to mutate without affecting stored data.
Root nodes: returns
root.data.copy().Non-root nodes: walks root β β¦ β node, copies the root circuit, then applies each ancestorβs delta (
node.data) in order viamerge_circuit().
- Parameters:
node β Target ScenarioNode
- Returns:
Fully composed MultiCircuit for that node
- commit_current() None[source]ο
Persist edits made to the currently active scenario.
Root: no structural delta is computed because
root.datais authoritative and edited in-place. We only synchronize scenario-owned diagrams.Non-root: computes
differentiate_circuits(current_model, parent_composed)and stores the result back intonode.data, replacing the previous delta. The scenario name is preserved on the new delta.
- create_node(data: MultiCircuit, parent_id: int | None = None, position: int | None = None) ScenarioNode[source]ο
- Parameters:
data
parent_id
position
- Returns:
- property current_model: MultiCircuitο
- property current_node: ScenarioNodeο
- delete_node(node_id: int) ScenarioNode[source]ο
Delete a node and its entire subtree from the multiverse.
The non-obvious part of this operation is active-state repair. The GUI and the save path both assume that
current_nodeandcurrent_modelalways point to a valid scenario still owned by this tree. If the deleted subtree contains the active node, leaving those references untouched would keep them pointing at detached objects that are no longer in_nodes_by_idnor reachable from any root.The fallback policy is: - if the deleted subtree had a parent, activate that parent - otherwise, activate the first remaining root if one exists - otherwise, clear current/base state because the multiverse became empty
- Parameters:
node_id
- Returns:
- get_node(node_id: int) ScenarioNode[source]ο
- Parameters:
node_id
- Returns:
- get_save_data() Tuple[Dict[str, Dict[str, str]], Dict[str, MultiCircuit], Dict[str, List[DriverToSave]]][source]ο
- Returns:
- get_sorted_node_data() List[MultiCircuit][source]ο
Deterministic preorder traversal. Good if you only want the MultiCircuit objects in a stable order.
- insert_node(position: int, node: ScenarioNode)[source]ο
- Parameters:
position
node
- Returns:
- iter_nodes_depth_first() List[ScenarioNode][source]ο
- Returns:
- merge_children_into_parent(parent_id: int) ScenarioNode[source]ο
Merge all direct children into the specified parent node.
Child deltas are merged into the parent in the current sibling order. After the merge: - the parent keeps the merged scenario - direct child nodes are removed - former grandchildren are rebased and attached directly under the parent
If several children modify the same objects, later children win because they are merged after earlier siblings.
- move_node(node_id: int, new_parent_id: int | None, position: int | None = None) ScenarioNode[source]ο
- Parameters:
node_id
new_parent_id
position
- Returns:
- parse_json(diffs_dict: Dict[str, MultiCircuit], metadata: Dict[str, Dict[str | int | float] | int | None])[source]ο
Parse the json metadata to fill this object
- Parameters:
diffs_dict
metadata β json file name or zip file pointer
- Returns:
- property root_nodes: List[ScenarioNode]ο
- set_node(node_id: int, node: ScenarioNode)[source]ο
- Parameters:
node_id
node
- Returns:
- to_record_list() List[Dict[str, Any]][source]ο
Export full tree structure as a flat ordered list. This is the correct format for JSON if you want to rebuild the tree later.
- update_node_data(node_id: int, data: MultiCircuit) ScenarioNode[source]ο
- Parameters:
node_id
data
- Returns:
- class VeraGridEngine.Devices.multiverse.ScenarioNode(node_id: int, data: MultiCircuit, diagrams: list[Any] | None = None, parent: ScenarioNode | None = None, children: list[ScenarioNode] | None = None)[source]ο
Bases:
object- append_child(child: ScenarioNode) None[source]ο
- Parameters:
child
- Returns:
- child(row: int) ScenarioNode[source]ο
- Parameters:
row
- Returns:
- children: list[ScenarioNode]ο
- circuit: MultiCircuitο
- diagrams: list[Any]ο
- drivers: Dict[SimulationTypes, DRIVER_OBJECTS]ο
- get_drivers_to_save() List[DriverToSave][source]ο
- insert_child(position: int, child: ScenarioNode) None[source]ο
- Parameters:
position
child
- Returns:
- node_id: intο
- parent: ScenarioNode | Noneο
- remove_child(child: ScenarioNode) None[source]ο
- Parameters:
child
- Returns:
- remove_child_at(position: int) ScenarioNode[source]ο
- Parameters:
position
- Returns: