ppsa

enforce_uid

test

add_flow_bound_emissions

Pre simulation hook for extending pypsa components to enable flow specific emissions.

extend_number_of_link_interfaces

Pre simulation hook for extending pypsa links to enable using them as simple chps.

constrain_extended_link_interfaces

Pre simulation hook to constrain the additonal interfaces added by extend_number_of_link_interfaces().

ppsa is a tessif module aggregating pypsa specific hooks to improve it’s integration into tessif.

tessif.frused.hooks.ppsa.enforce_uid()[source]

test

tessif.frused.hooks.ppsa.add_flow_bound_emissions(attribute_dict)[source]

Pre simulation hook for extending pypsa components to enable flow specific emissions.

After applying this hook, all pypsa energy system components will have an additional input parameter called flow_emissions which allows allocating flow specific emission values.

The emission values are post processed using the FlowResultier.

The overriding code was inspired by the pypsa chp example

Parameters:

attribute_dict (dict) – Dictionary returned by pypsa.components.component_attrs. Used for chaining hooks.

Returns:

custom_attributes – Extended attribute_dict carrying the parameters for using flow bound emission values.

Return type:

dict

tessif.frused.hooks.ppsa.add_siso_transfromer_type(attribute_dict)[source]

Pre simulation hook for extending pypsa links to act like siso transfromers.

After applying this hook, all pypsa energy system components will have an additonal input parameter called siso_transformer as well as flow_costs which allows single input single output post processing.

The overriding code was inspired by the pypsa chp example

Parameters:

attribute_dict (dict) – Dictionairy returned by pypsa.components.component_attrs. Used for chaining hooks.

Returns:

custom_attributes – Extended attribute_dict carrying the parameters for using the extendend transfromer type.

Return type:

dict

Pre simulation hook for extending pypsa links to enable using them as simple chps.

After applying this hook, all pypsa energy system links will have 1 input and up to 2 outputs (with the first beeing mandatory and second beeing optional).

It will also add a link attribute called siso_transformer indicating whether a link is a singular input, singnular output (siso) transformer or a Connector style object where singular input and singular output are both bidirecctional.

The overriding code was taken from the pypsa chp example .

Parameters:
  • attribute_dict (dict) – Dictionairy returned by pypsa.components.component_attrs. Used for chaining hooks.

  • additional_interfaces (int, default=1) – Integer specifying the number of additional interfaces added to the link component.

Returns:

custom_attributes – Extended attribute_dict carrying the parameters for using flow bound emisison values.

Return type:

dict

Pre simulation hook to constrain the additonal interfaces added by extend_number_of_link_interfaces().

Callable designed to be passed to pypsa.Network.lopf as extra_functionality.

The code was inspired by the pypsa Power to Gas with Heat Coupling example