VeraGridEngine.Devices.Substation packageο
Submodulesο
VeraGridEngine.Devices.Substation.bus moduleο
- class VeraGridEngine.Devices.Substation.bus.Bus(name='Bus', idtag=None, code='', Vnom=10, vmin=0.9, vmax=1.1, angle_min=-6.28, angle_max=6.28, xpos=0, ypos=0, height=0, width=0, active=True, is_slack=False, is_dc=False, is_internal=False, is_grounded=False, area: Area = None, zone: Zone = None, substation: Substation = None, voltage_level: VoltageLevel = None, country: Country = None, longitude=0.0, latitude=0.0, Vm0=1, Va0=0, graphic_type: BusGraphicType = BusBar, bus_bar: BusBar | None = None, build_status: BuildStatus = Commissioned, color: str | None = None)[source]ο
Bases:
DynamicBusDevice- CLASS_NON_EDITABLE_PROPERTIES: Tuple[str, ...] = ('idtag', 'diff_changes', 'x', 'y', 'h', 'w')ο
- CLASS_PROPERTIES_WITH_PROFILE: Dict[str, str] = {'Vmax': 'Vmax_prof', 'Vmin': 'Vmin_prof', 'active': 'active_prof'}ο
- CLASS_PROPERTY_DECLARATIONS: Tuple[GCProp, ...] = (prop:idtag, prop:name, prop:code, prop:rdfid, prop:action, prop:comment, prop:diff_changes, prop:modelling_authority, prop:commissioned_date, prop:decommissioned_date, prop:build_status, prop:owners, prop:rms_model, prop:emt_model, prop:active, prop:is_slack, prop:is_dc, prop:is_grounded, prop:graphic_type, prop:Vnom, prop:Vm0, prop:Va0, prop:Vmin, prop:Vmax, prop:Vm_cost, prop:angle_min, prop:angle_max, prop:angle_cost, prop:x, prop:y, prop:h, prop:w, prop:country, prop:area, prop:zone, prop:substation, prop:voltage_level, prop:bus_bar, prop:longitude, prop:latitude, prop:color)ο
- CLASS_PROPERTY_LIST: Tuple[GCProp, ...] = (prop:idtag, prop:name, prop:code, prop:rdfid, prop:action, prop:comment, prop:diff_changes, prop:modelling_authority, prop:commissioned_date, prop:decommissioned_date, prop:build_status, prop:owners, prop:rms_model, prop:emt_model, prop:active, prop:is_slack, prop:is_dc, prop:is_grounded, prop:graphic_type, prop:Vnom, prop:Vm0, prop:Va0, prop:Vmin, prop:Vmax, prop:Vm_cost, prop:angle_min, prop:angle_max, prop:angle_cost, prop:x, prop:y, prop:h, prop:w, prop:country, prop:area, prop:zone, prop:substation, prop:voltage_level, prop:bus_bar, prop:longitude, prop:latitude, prop:color)ο
- CLASS_REGISTERED_PROPERTIES: Dict[str, GCProp] = {'Va0': prop:Va0, 'Vm0': prop:Vm0, 'Vm_cost': prop:Vm_cost, 'Vmax': prop:Vmax, 'Vmin': prop:Vmin, 'Vnom': prop:Vnom, 'action': prop:action, 'active': prop:active, 'angle_cost': prop:angle_cost, 'angle_max': prop:angle_max, 'angle_min': prop:angle_min, 'area': prop:area, 'build_status': prop:build_status, 'bus_bar': prop:bus_bar, 'code': prop:code, 'color': prop:color, 'comment': prop:comment, 'commissioned_date': prop:commissioned_date, 'country': prop:country, 'decommissioned_date': prop:decommissioned_date, 'diff_changes': prop:diff_changes, 'emt_model': prop:emt_model, 'graphic_type': prop:graphic_type, 'h': prop:h, 'idtag': prop:idtag, 'is_dc': prop:is_dc, 'is_grounded': prop:is_grounded, 'is_slack': prop:is_slack, 'latitude': prop:latitude, 'longitude': prop:longitude, 'modelling_authority': prop:modelling_authority, 'name': prop:name, 'owners': prop:owners, 'rdfid': prop:rdfid, 'rms_model': prop:rms_model, 'substation': prop:substation, 'voltage_level': prop:voltage_level, 'w': prop:w, 'x': prop:x, 'y': prop:y, 'zone': prop:zone}ο
- LOCAL_PROPERTY_DECLARATIONS: Tuple[GCProp, ...] = (prop:active, prop:is_slack, prop:is_dc, prop:is_grounded, prop:graphic_type, prop:Vnom, prop:Vm0, prop:Va0, prop:Vmin, prop:Vmax, prop:Vm_cost, prop:angle_min, prop:angle_max, prop:angle_cost, prop:x, prop:y, prop:h, prop:w, prop:country, prop:area, prop:zone, prop:substation, prop:voltage_level, prop:bus_bar, prop:longitude, prop:latitude, prop:color)ο
- Qmax_sumο
- Qmin_sumο
- property Va0: floatο
Get
Va0.- Returns:
float
- property Vm0: floatο
Get
Vm0.- Returns:
float
- property Vm_cost: floatο
Get
Vm_cost.- Returns:
float
- property Vmax: floatο
Get
Vmax.- Returns:
float
- property Vmax_prof: ProfileFloatο
Pmin profile :return: Profile
- property Vmin: floatο
Get
Vmin.- Returns:
float
- property Vmin_prof: ProfileFloatο
Pmin profile :return: Profile
- property Vnom: floatο
Get
Vnom.- Returns:
float
- property active: boolο
Get
active.- Returns:
bool
- property active_prof: ProfileBoolο
Cost profile :return: Profile
- property angle_cost: floatο
Get
angle_cost.- Returns:
float
- property angle_max: floatο
Get
angle_max.- Returns:
float
- property angle_min: floatο
Get
angle_min.- Returns:
float
- colorο
- determine_bus_type() BusMode[source]ο
Infer the bus type from the devices attached to it @return: BusMode
- get_coordinates() Tuple[float, float][source]ο
Get tuple of the bus coordinates (longitude, latitude)
- get_voltage_guess(use_stored_guess=False) complex[source]ο
Determine the voltage initial guess :param use_stored_guess: use the stored guess or get one from the devices :return: voltage guess
- graphic_type: BusGraphicTypeο
- property h: floatο
Get
h.- Returns:
float
- property internal: boolο
Is the bus internal?
- property is_dc: boolο
Get
is_dc.- Returns:
bool
- property is_grounded: boolο
Get
is_grounded.- Returns:
bool
- property is_slack: boolο
Get
is_slack.- Returns:
bool
- property latitude: floatο
Get
latitude.- Returns:
float
- property longitude: floatο
Get
longitude.- Returns:
float
- plot_profiles(time_profile, ax_load=None, ax_voltage=None, time_series_driver=None, my_index=0)[source]ο
plot the profiles of this bus :param time_profile: Master profile of time steps (stored in the MultiCircuit) :param time_series_driver: time series driver :param ax_load: Load axis, if not provided one will be created :param ax_voltage: Voltage axis, if not provided one will be created :param my_index: index of this object in the time series results
- substation: Substation | Noneο
- property voltage_level: VoltageLevel | Noneο
voltage_level getter :return: Union[VoltageLevel, None]
- property w: floatο
Get
w.- Returns:
float
- property x: floatο
Get
x.- Returns:
float
- property y: floatο
Get
y.- Returns:
float
VeraGridEngine.Devices.Substation.busbar moduleο
- class VeraGridEngine.Devices.Substation.busbar.BusBar(name='BusBar', idtag: None | str = None, code: str = '', voltage_level: VoltageLevel | None = None, build_status: BuildStatus = Commissioned)[source]ο
Bases:
PhysicalDevice- CLASS_NON_EDITABLE_PROPERTIES: Tuple[str, ...] = ('idtag', 'diff_changes')ο
- CLASS_PROPERTIES_WITH_PROFILE: Dict[str, str] = {}ο
- CLASS_PROPERTY_DECLARATIONS: Tuple[GCProp, ...] = (prop:idtag, prop:name, prop:code, prop:rdfid, prop:action, prop:comment, prop:diff_changes, prop:modelling_authority, prop:commissioned_date, prop:decommissioned_date, prop:build_status, prop:owners, prop:voltage_level)ο
- CLASS_PROPERTY_LIST: Tuple[GCProp, ...] = (prop:idtag, prop:name, prop:code, prop:rdfid, prop:action, prop:comment, prop:diff_changes, prop:modelling_authority, prop:commissioned_date, prop:decommissioned_date, prop:build_status, prop:owners, prop:voltage_level)ο
- CLASS_REGISTERED_PROPERTIES: Dict[str, GCProp] = {'action': prop:action, 'build_status': prop:build_status, 'code': prop:code, 'comment': prop:comment, 'commissioned_date': prop:commissioned_date, 'decommissioned_date': prop:decommissioned_date, 'diff_changes': prop:diff_changes, 'idtag': prop:idtag, 'modelling_authority': prop:modelling_authority, 'name': prop:name, 'owners': prop:owners, 'rdfid': prop:rdfid, 'voltage_level': prop:voltage_level}ο
- property voltage_level: VoltageLevel | Noneο
Connectivity node getter :return: ConnectivityNode
VeraGridEngine.Devices.Substation.substation moduleο
- class VeraGridEngine.Devices.Substation.substation.Substation(name='Substation', idtag: str | None = None, code='', latitude=0.0, longitude=0.0, area: Area | None = None, zone: Zone | None = None, country: Country | None = None, community: Community | None = None, region: Region | None = None, municipality: Municipality | None = None, address: str = '', irradiation: float = 0.0, temperature: float = 0.0, wind_speed: float = 0.0, terrain_roughness: float = 0.2, color: str | None = '#3d7d95', build_status: BuildStatus = Commissioned)[source]ο
Bases:
PhysicalDevice- CLASS_NON_EDITABLE_PROPERTIES: Tuple[str, ...] = ('idtag', 'diff_changes')ο
- CLASS_PROPERTIES_WITH_PROFILE: Dict[str, str] = {'irradiation': 'irradiation_prof', 'temperature': 'temperature_prof', 'wind_speed': 'wind_speed_prof'}ο
- CLASS_PROPERTY_DECLARATIONS: Tuple[GCProp, ...] = (prop:idtag, prop:name, prop:code, prop:rdfid, prop:action, prop:comment, prop:diff_changes, prop:modelling_authority, prop:commissioned_date, prop:decommissioned_date, prop:build_status, prop:owners, prop:longitude, prop:latitude, prop:color, prop:area, prop:zone, prop:country, prop:community, prop:region, prop:municipality, prop:address, prop:irradiation, prop:temperature, prop:wind_speed, prop:terrain_roughness)ο
- CLASS_PROPERTY_LIST: Tuple[GCProp, ...] = (prop:idtag, prop:name, prop:code, prop:rdfid, prop:action, prop:comment, prop:diff_changes, prop:modelling_authority, prop:commissioned_date, prop:decommissioned_date, prop:build_status, prop:owners, prop:longitude, prop:latitude, prop:color, prop:area, prop:zone, prop:country, prop:community, prop:region, prop:municipality, prop:address, prop:irradiation, prop:temperature, prop:wind_speed, prop:terrain_roughness)ο
- CLASS_REGISTERED_PROPERTIES: Dict[str, GCProp] = {'action': prop:action, 'address': prop:address, 'area': prop:area, 'build_status': prop:build_status, 'code': prop:code, 'color': prop:color, 'comment': prop:comment, 'commissioned_date': prop:commissioned_date, 'community': prop:community, 'country': prop:country, 'decommissioned_date': prop:decommissioned_date, 'diff_changes': prop:diff_changes, 'idtag': prop:idtag, 'irradiation': prop:irradiation, 'latitude': prop:latitude, 'longitude': prop:longitude, 'modelling_authority': prop:modelling_authority, 'municipality': prop:municipality, 'name': prop:name, 'owners': prop:owners, 'rdfid': prop:rdfid, 'region': prop:region, 'temperature': prop:temperature, 'terrain_roughness': prop:terrain_roughness, 'wind_speed': prop:wind_speed, 'zone': prop:zone}ο
- LOCAL_PROPERTY_DECLARATIONS: Tuple[GCProp, ...] = (prop:longitude, prop:latitude, prop:color, prop:area, prop:zone, prop:country, prop:community, prop:region, prop:municipality, prop:address, prop:irradiation, prop:temperature, prop:wind_speed, prop:terrain_roughness)ο
- address: strο
- colorο
- property commissioned_date: intο
- Returns:
- property decommissioned_date: intο
- Returns:
- get_decommissioned_date_as_date() datetime[source]ο
Get the commissioned date as datetime :return:
- property irradiation: floatο
Get
irradiation.- Returns:
float
- property irradiation_prof: ProfileFloatο
Irradiation profile :return: Profile
- property latitude: floatο
Get
latitude.- Returns:
float
- property longitude: floatο
Get
longitude.- Returns:
float
- modelling_authority: ModellingAuthority | Noneο
- property municipality: Municipality | Noneο
municipality getter :return: Union[Municipality, None]
- set_commissioned_year(year: int, month=1, day=1)[source]ο
Helper function to set the commissioning date of the asset :param year: Year :param month: month number :param day: day number
- set_decommissioned_year(year: int, month=1, day=1)[source]ο
Helper function to set the decommissioning date of the asset :param year: Year :param month: month number :param day: day number
- property temperature: floatο
Get
temperature.- Returns:
float
- property temperature_prof: ProfileFloatο
Temperature profile :return: Profile
- property terrain_roughness: floatο
Get
terrain_roughness.- Returns:
float
- property wind_speed: floatο
Get
wind_speed.- Returns:
float
- property wind_speed_prof: ProfileFloatο
wind_speed_prof profile :return: Profile
VeraGridEngine.Devices.Substation.voltage_level moduleο
- class VeraGridEngine.Devices.Substation.voltage_level.VoltageLevel(name='VoltageLevel', idtag: str | None = None, code: str = '', Vnom: float = 1.0, substation: None | Substation = None, build_status: BuildStatus = Commissioned)[source]ο
Bases:
PhysicalDevice- CLASS_NON_EDITABLE_PROPERTIES: Tuple[str, ...] = ('idtag', 'diff_changes')ο
- CLASS_PROPERTIES_WITH_PROFILE: Dict[str, str] = {}ο
- CLASS_PROPERTY_DECLARATIONS: Tuple[GCProp, ...] = (prop:idtag, prop:name, prop:code, prop:rdfid, prop:action, prop:comment, prop:diff_changes, prop:modelling_authority, prop:commissioned_date, prop:decommissioned_date, prop:build_status, prop:owners, prop:Vnom, prop:substation)ο
- CLASS_PROPERTY_LIST: Tuple[GCProp, ...] = (prop:idtag, prop:name, prop:code, prop:rdfid, prop:action, prop:comment, prop:diff_changes, prop:modelling_authority, prop:commissioned_date, prop:decommissioned_date, prop:build_status, prop:owners, prop:Vnom, prop:substation)ο
- CLASS_REGISTERED_PROPERTIES: Dict[str, GCProp] = {'Vnom': prop:Vnom, 'action': prop:action, 'build_status': prop:build_status, 'code': prop:code, 'comment': prop:comment, 'commissioned_date': prop:commissioned_date, 'decommissioned_date': prop:decommissioned_date, 'diff_changes': prop:diff_changes, 'idtag': prop:idtag, 'modelling_authority': prop:modelling_authority, 'name': prop:name, 'owners': prop:owners, 'rdfid': prop:rdfid, 'substation': prop:substation}ο
- property Vnom: floatο
Get
Vnom.- Returns:
float
- substation: None | Substationο
VeraGridEngine.Devices.Substation.voltage_level_template moduleο
- class VeraGridEngine.Devices.Substation.voltage_level_template.VoltageLevelTemplate(name='', code='', idtag: str | None = None, device_type=Generic Area, voltage: float = 10, n_bays: int = 1)[source]ο
Bases:
EditableDevice- CLASS_NON_EDITABLE_PROPERTIES: Tuple[str, ...] = ('idtag', 'diff_changes')ο
- CLASS_PROPERTIES_WITH_PROFILE: Dict[str, str] = {}ο
- CLASS_PROPERTY_DECLARATIONS: Tuple[GCProp, ...] = (prop:idtag, prop:name, prop:code, prop:rdfid, prop:action, prop:comment, prop:diff_changes, prop:vl_type, prop:voltage, prop:n_bays, prop:add_disconnectors)ο
- CLASS_PROPERTY_LIST: Tuple[GCProp, ...] = (prop:idtag, prop:name, prop:code, prop:rdfid, prop:action, prop:comment, prop:diff_changes, prop:vl_type, prop:voltage, prop:n_bays, prop:add_disconnectors)ο
- CLASS_REGISTERED_PROPERTIES: Dict[str, GCProp] = {'action': prop:action, 'add_disconnectors': prop:add_disconnectors, 'code': prop:code, 'comment': prop:comment, 'diff_changes': prop:diff_changes, 'idtag': prop:idtag, 'n_bays': prop:n_bays, 'name': prop:name, 'rdfid': prop:rdfid, 'vl_type': prop:vl_type, 'voltage': prop:voltage}ο
- LOCAL_PROPERTY_DECLARATIONS: Tuple[GCProp, ...] = (prop:vl_type, prop:voltage, prop:n_bays, prop:add_disconnectors)ο
- action: ActionTypeο
- property add_disconnectors: boolο
Get
add_disconnectors.- Returns:
bool
- comment: strο
- device_type: DeviceTypeο
- diff_changesο
- property n_bays: intο
Get
n_bays.- Returns:
int
- selected_to_mergeο
- property voltage: floatο
Get
voltage.- Returns:
float