omegalpes.energy package

Subpackages

Submodules

omegalpes.energy.energy_nodes module

This module defines the energy nodes that will allow energy transmission between the various energy units and conversion units

The energy_node module includes the EnergyNode class for energy transmission between production, consumption, conversion and storage. Defining several energy nodes and exporting/importing energy between them can also allow for a better demarcation of the energy system.

class omegalpes.energy.energy_nodes.EnergyNode(time, name, energy_type=None, operator=None)[source]

Bases: OptObject

This class defines an energy node.

add_connected_energy_unit(unit)[source]

Add an EnergyUnit to the connected_units list

add_pole(pole: Epole) None[source]

Add an energy pole to the poles_list

Parameters:

pole – Epole

connect_units(*units)[source]

Connecting all EnergyUnit to the EnergyNode

Parameters:

units (EnergyUnit) – EnergyUnits connected to the EnergyNode

create_export(node, export_min, export_max)[source]

Create the export from the EnergyNode (self) to the EnergyNode (node)

Parameters:
  • node – EnergyNode to whom power can be exported

  • export_min – Minimal value of exported power when there is export

  • export_max – Maximal value of exported power when there is export

Returns:

Quantity that defines the power exported

export_to_node(node, export_min=0, export_max=100000.0)[source]

Add an export of power from the node to another node

Parameters:
  • node – EnergyNode to whom power can be exported

  • export_min – Minimal value of exported power when there is export

  • export_max – Maximal value of exported power when there is export

property get_connected_energy_units

Return the list of connected EnergyUnits in the EnergyNode

property get_exports

Return the list of exports to the EnergyNode

property get_flows

Get all the power flows of the energy node :rtype: list :return: list of power flows

property get_imports

Return the list of imports to the EnergyNode

property get_input_poles
property get_output_poles
property get_poles

Return the list of energy poles in the EnergyNode

import_from_node(node, import_min=0, import_max=100000.0)[source]
Parameters:
  • node – EnergyNode from whom power can be imported

  • import_min – Minimal value of imported power when there is import

  • import_max – Maximal value of imported power when there is import

is_export_flow(flow)[source]

Get if the power flow is an export or not

is_import_flow(flow)[source]

Get if the power flow is an import or not

set_power_balance()[source]

Set the power balance equation for the EnergyNode

omegalpes.energy.energy_types module

This module gathers the types of energy : elec, gas and heat

In order to simplify their use in the definition of the energy units

omegalpes.energy.exergy module

This module contains the exergy assessment routines of OMEGALPES. This module:

  1. Determines inlet, outlet or contained exergy of, respectively, any ConsumptionUnit, ProductionUnit or StorageUnit.

  2. Determines exergy destruction within any EnergyUnit.

  3. Recognizes Electrical and Thermal energy.

  4. Can calculate exergy for a single unit or for a list of units.

  5. Can proceed with only one temperature value or with a list of temperatures.

    5.1. Formulates exergy for one single EnergyUnit and temperature.

    5.2. Formulates timely exergy if one single EnergyUnit and a list of temperatures is provided.

    5.3. Formulates exergy for each unit within a list of EnergyUnits if only one temperature is provided.

    5.4. Formulates timely exergy for each unit within a list of EnergyUnits if a list of temperatures is provided.

The exergy-related classes defined in this module are not physical units. They are virtual units attached to their energetic counterparts. Consequently, the exergy and exergy destruction calculated in this module are attached to the EnergyUnit as a Quantity at the moment of calculating it.

class omegalpes.energy.exergy.ElectricalExergy(energy_unit: EnergyUnit)[source]

Bases: OptObject

class omegalpes.energy.exergy.ExergyDestruction(energy_unit=None, exergy_eff=1, temp_ref=20, temp_heat=None)[source]

Bases: OptObject

class omegalpes.energy.exergy.ThermalExergy(energy_unit: EnergyUnit, temp_heat: int, temp_ref=20)[source]

Bases: OptObject

Module contents