ppsa
test |
|
Pre simulation hook for extending pypsa components to enable flow specific emissions. |
|
Pre simulation hook for extending pypsa links to enable using them as simple chps. |
|
Pre simulation hook to constrain the additonal interfaces added by |
ppsa is a tessif module aggregating
pypsa specific hooks to improve it’s integration
into tessif.
- 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_emissionswhich 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_dictcarrying the parameters for using flow bound emission values.- Return type:
- 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_transformeras well asflow_costswhich allows single input single output post processing.The overriding code was inspired by the pypsa chp example
- tessif.frused.hooks.ppsa.extend_number_of_link_interfaces(attribute_dict, additional_interfaces=1)[source]
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_transformerindicating whether a link is a singular input, singnular output (siso) transformer or aConnector style objectwhere singular input and singular output are both bidirecctional.The overriding code was taken from the pypsa chp example .
- Parameters:
- Returns:
custom_attributes – Extended
attribute_dictcarrying the parameters for using flow bound emisison values.- Return type:
- tessif.frused.hooks.ppsa.constrain_extended_link_interfaces(additional_interfaces)[source]
Pre simulation hook to constrain the additonal interfaces added by
extend_number_of_link_interfaces().Callable designed to be passed to
pypsa.Network.lopfasextra_functionality.The code was inspired by the pypsa Power to Gas with Heat Coupling example