VeraGridEngine.Devices.Fluid packageο
Submodulesο
VeraGridEngine.Devices.Fluid.fluid_injection_template moduleο
- class VeraGridEngine.Devices.Fluid.fluid_injection_template.FluidInjectionTemplate(name: str = '', idtag: str | None = None, code: str = '', efficiency: float = 1.0, max_flow_rate: float = 0.0, plant: FluidNode = None, generator: Generator = None, device_type: DeviceType = Fluid Turbine, build_status: BuildStatus = Commissioned)[source]ο
Bases:
PhysicalDevice- CLASS_NON_EDITABLE_PROPERTIES: Tuple[str, ...] = ('idtag', 'diff_changes', 'plant', 'generator')ο
- CLASS_PROPERTIES_WITH_PROFILE: Dict[str, str] = {'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:active, prop:efficiency, prop:max_flow_rate, prop:plant, prop:generator, prop:facility)ο
- 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:active, prop:efficiency, prop:max_flow_rate, prop:plant, prop:generator, prop:facility)ο
- CLASS_REGISTERED_PROPERTIES: Dict[str, GCProp] = {'action': prop:action, 'active': prop:active, '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, 'efficiency': prop:efficiency, 'facility': prop:facility, 'generator': prop:generator, 'idtag': prop:idtag, 'max_flow_rate': prop:max_flow_rate, 'modelling_authority': prop:modelling_authority, 'name': prop:name, 'owners': prop:owners, 'plant': prop:plant, 'rdfid': prop:rdfid}ο
- LOCAL_PROPERTY_DECLARATIONS: Tuple[GCProp, ...] = (prop:active, prop:efficiency, prop:max_flow_rate, prop:plant, prop:generator, prop:facility)ο
- property active: boolο
Get
active.- Returns:
bool
- property active_prof: ProfileBoolο
Cost profile :return: Profile
- build_statusο
- property efficiency: floatο
Get
efficiency.- Returns:
float
- property max_flow_rate: floatο
Get
max_flow_rate.- Returns:
float
VeraGridEngine.Devices.Fluid.fluid_node moduleο
- class VeraGridEngine.Devices.Fluid.fluid_node.FluidNode(name: str = '', idtag: str | None = None, code: str = '', min_level: float = 0.0, max_level: float = 0.0, min_soc: float = 0.0, max_soc: float = 1.0, current_level: float = 0.0, spillage_cost: float = 1000.0, inflow: float = 0.0, bus: None | Bus = None, build_status: BuildStatus = Commissioned, color: str | None = None)[source]ο
Bases:
PhysicalDevice- CLASS_NON_EDITABLE_PROPERTIES: Tuple[str, ...] = ('idtag', 'diff_changes', 'bus')ο
- CLASS_PROPERTIES_WITH_PROFILE: Dict[str, str] = {'inflow': 'inflow_prof', 'max_soc': 'max_soc_prof', 'min_soc': 'min_soc_prof', 'spillage_cost': 'spillage_cost_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:min_level, prop:max_level, prop:min_soc, prop:max_soc, prop:initial_level, prop:bus, prop:spillage_cost, prop:inflow, 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:min_level, prop:max_level, prop:min_soc, prop:max_soc, prop:initial_level, prop:bus, prop:spillage_cost, prop:inflow, prop:color)ο
- CLASS_REGISTERED_PROPERTIES: Dict[str, GCProp] = {'action': prop:action, 'build_status': prop:build_status, 'bus': prop:bus, 'code': prop:code, 'color': prop:color, 'comment': prop:comment, 'commissioned_date': prop:commissioned_date, 'decommissioned_date': prop:decommissioned_date, 'diff_changes': prop:diff_changes, 'idtag': prop:idtag, 'inflow': prop:inflow, 'initial_level': prop:initial_level, 'max_level': prop:max_level, 'max_soc': prop:max_soc, 'min_level': prop:min_level, 'min_soc': prop:min_soc, 'modelling_authority': prop:modelling_authority, 'name': prop:name, 'owners': prop:owners, 'rdfid': prop:rdfid, 'spillage_cost': prop:spillage_cost}ο
- LOCAL_PROPERTY_DECLARATIONS: Tuple[GCProp, ...] = (prop:min_level, prop:max_level, prop:min_soc, prop:max_soc, prop:initial_level, prop:bus, prop:spillage_cost, prop:inflow, prop:color)ο
- build_statusο
- colorο
- property inflow: floatο
Get
inflow.- Returns:
float
- property inflow_prof: ProfileFloatο
Cost profile :return: Profile
- property initial_level: floatο
Get
initial_level.- Returns:
float
- property max_level: floatο
Get
max_level.- Returns:
float
- property max_soc: floatο
Get
max_soc.- Returns:
float
- property max_soc_prof: ProfileFloatο
Max soc profile :return: Profile
- property min_level: floatο
Get
min_level.- Returns:
float
- property min_soc: floatο
Get
min_soc.- Returns:
float
- property min_soc_prof: ProfileFloatο
Min soc profile :return: Profile
- property spillage_cost: floatο
Get
spillage_cost.- Returns:
float
- property spillage_cost_prof: ProfileFloatο
Cost profile :return: Profile
VeraGridEngine.Devices.Fluid.fluid_p2x moduleο
- class VeraGridEngine.Devices.Fluid.fluid_p2x.FluidP2x(name: str = '', idtag: str | None = None, code: str = '', efficiency: float = 1.0, max_flow_rate: float = 0.0, plant: FluidNode = None, generator: Generator = None)[source]ο
Bases:
FluidInjectionTemplate- CLASS_NON_EDITABLE_PROPERTIES: Tuple[str, ...] = ('idtag', 'diff_changes', 'plant', 'generator')ο
- CLASS_PROPERTIES_WITH_PROFILE: Dict[str, str] = {'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:active, prop:efficiency, prop:max_flow_rate, prop:plant, prop:generator, prop:facility)ο
- 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:active, prop:efficiency, prop:max_flow_rate, prop:plant, prop:generator, prop:facility)ο
- CLASS_REGISTERED_PROPERTIES: Dict[str, GCProp] = {'action': prop:action, 'active': prop:active, '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, 'efficiency': prop:efficiency, 'facility': prop:facility, 'generator': prop:generator, 'idtag': prop:idtag, 'max_flow_rate': prop:max_flow_rate, 'modelling_authority': prop:modelling_authority, 'name': prop:name, 'owners': prop:owners, 'plant': prop:plant, 'rdfid': prop:rdfid}ο
- build_statusο
VeraGridEngine.Devices.Fluid.fluid_path moduleο
- class VeraGridEngine.Devices.Fluid.fluid_path.FluidPath(name: str = '', idtag: str | None = None, code: str = '', source: FluidNode = None, target: FluidNode = None, min_flow: float = 0.0, max_flow: float = 0.0, color: str | None = None, build_status: BuildStatus = Commissioned)[source]ο
Bases:
PhysicalDevice- CLASS_NON_EDITABLE_PROPERTIES: Tuple[str, ...] = ('idtag', 'diff_changes', 'locations')ο
- 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:source, prop:target, prop:min_flow, prop:max_flow, prop:locations, 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:source, prop:target, prop:min_flow, prop:max_flow, prop:locations, prop:color)ο
- CLASS_REGISTERED_PROPERTIES: Dict[str, GCProp] = {'action': prop:action, 'build_status': prop:build_status, 'code': prop:code, 'color': prop:color, 'comment': prop:comment, 'commissioned_date': prop:commissioned_date, 'decommissioned_date': prop:decommissioned_date, 'diff_changes': prop:diff_changes, 'idtag': prop:idtag, 'locations': prop:locations, 'max_flow': prop:max_flow, 'min_flow': prop:min_flow, 'modelling_authority': prop:modelling_authority, 'name': prop:name, 'owners': prop:owners, 'rdfid': prop:rdfid, 'source': prop:source, 'target': prop:target}ο
- LOCAL_PROPERTY_DECLARATIONS: Tuple[GCProp, ...] = (prop:source, prop:target, prop:min_flow, prop:max_flow, prop:locations, prop:color)ο
- colorο
- get_from_and_to_objects() Tuple[CONNECTION_TYPE, CONNECTION_TYPE, bool][source]ο
Get the from and to connection objects of the branch :return: Object from, Object to, is it ok?
- property locations: LineLocationsο
Cost profile :return: Profile
- property max_flow: floatο
Get
max_flow.- Returns:
float
- property min_flow: floatο
Get
min_flow.- Returns:
float
- sourceο
- targetο
VeraGridEngine.Devices.Fluid.fluid_pump moduleο
- class VeraGridEngine.Devices.Fluid.fluid_pump.FluidPump(name: str = '', idtag: str | None = None, code: str = '', efficiency: float = 1.0, max_flow_rate: float = 0.0, reservoir: FluidNode = None, generator: Generator = None)[source]ο
Bases:
FluidInjectionTemplate- CLASS_NON_EDITABLE_PROPERTIES: Tuple[str, ...] = ('idtag', 'diff_changes', 'plant', 'generator')ο
- CLASS_PROPERTIES_WITH_PROFILE: Dict[str, str] = {'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:active, prop:efficiency, prop:max_flow_rate, prop:plant, prop:generator, prop:facility)ο
- 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:active, prop:efficiency, prop:max_flow_rate, prop:plant, prop:generator, prop:facility)ο
- CLASS_REGISTERED_PROPERTIES: Dict[str, GCProp] = {'action': prop:action, 'active': prop:active, '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, 'efficiency': prop:efficiency, 'facility': prop:facility, 'generator': prop:generator, 'idtag': prop:idtag, 'max_flow_rate': prop:max_flow_rate, 'modelling_authority': prop:modelling_authority, 'name': prop:name, 'owners': prop:owners, 'plant': prop:plant, 'rdfid': prop:rdfid}ο
- build_statusο
VeraGridEngine.Devices.Fluid.fluid_turbine moduleο
- class VeraGridEngine.Devices.Fluid.fluid_turbine.FluidTurbine(name: str = '', idtag: str | None = None, code: str = '', efficiency: float = 1.0, max_flow_rate: float = 0.0, plant: FluidNode = None, generator: Generator = None)[source]ο
Bases:
FluidInjectionTemplate- CLASS_NON_EDITABLE_PROPERTIES: Tuple[str, ...] = ('idtag', 'diff_changes', 'plant', 'generator')ο
- CLASS_PROPERTIES_WITH_PROFILE: Dict[str, str] = {'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:active, prop:efficiency, prop:max_flow_rate, prop:plant, prop:generator, prop:facility)ο
- 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:active, prop:efficiency, prop:max_flow_rate, prop:plant, prop:generator, prop:facility)ο
- CLASS_REGISTERED_PROPERTIES: Dict[str, GCProp] = {'action': prop:action, 'active': prop:active, '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, 'efficiency': prop:efficiency, 'facility': prop:facility, 'generator': prop:generator, 'idtag': prop:idtag, 'max_flow_rate': prop:max_flow_rate, 'modelling_authority': prop:modelling_authority, 'name': prop:name, 'owners': prop:owners, 'plant': prop:plant, 'rdfid': prop:rdfid}ο
- build_statusο