zen_garden.model.technology.transport_technology

Class defining the parameters, variables and constraints that hold for all transport technologies. The class takes the abstract optimization model as an input, and returns the parameters, variables and constraints that hold for the transport technologies.

Classes

TransportTechnology(tech, optimization_setup)

TransportTechnologyRules(optimization_setup)

Rules for the TransportTechnology class.

class zen_garden.model.technology.transport_technology.TransportTechnology(tech: str, optimization_setup)
__init__(tech: str, optimization_setup)

Init transport technology object.

Parameters:
  • tech – name of added technology

  • optimization_setup – The OptimizationSetup the element is part of

calculate_capex_of_single_capacity(capacity, index)

This method calculates the capex of a single existing capacity.

Parameters:
  • capacity – capacity of transport technology

  • index – index of capacity

Returns:

capex of single capacity

classmethod construct_constraints(optimization_setup)

Constructs the Constraints of the class <TransportTechnology>.

Parameters:

optimization_setup – The OptimizationSetup the element is part of

classmethod construct_params(optimization_setup)

Constructs the pe.Params of the class <TransportTechnology>.

Parameters:

optimization_setup – The OptimizationSetup the element is part of

classmethod construct_sets(optimization_setup)

Constructs the pe.Sets of the class <TransportTechnology>.

Parameters:

optimization_setup – The OptimizationSetup the element is part of

classmethod construct_vars(optimization_setup)

Constructs the pe.Vars of the class <TransportTechnology>.

Parameters:

optimization_setup – The OptimizationSetup the element is part of

convert_to_fraction_of_capex()

Converts total capex to fraction of capex.

this method converts the total capex to fraction of capex, depending on how many hours per year are calculated.

get_capex_transport()

Get capex of transport technology.

get_reversed_edge(edge)

Get the reversed edge corresponding to an edge.

Parameters:

edge – edge

Returns:

reversed edge

get_transport_loss_factor()

Get transport loss factor.

set_reversed_edge(edge, reversed_edge)

Maps the reversed edge to an edge.

Parameters:
  • edge – edge

  • reversed_edge – reversed edge

store_carriers()

Retrieves and stores information on reference, input and output carriers.

store_input_data()

Retrieves and stores input data for element as attributes.

Each Child class overwrites method to store different attributes.

class zen_garden.model.technology.transport_technology.TransportTechnologyRules(optimization_setup)

Rules for the TransportTechnology class.

__init__(optimization_setup)

Inits the rules for a given EnergySystem.

Parameters:

optimization_setup – The OptimizationSetup the element is part of

constraint_capacity_factor_transport()

Load is limited by the installed capacity and the maximum load factor.

\[F_{j,e,t,y}^\mathrm{r} \leq m^{\mathrm{max}}_{j,e,t,y}S_{j,e,y}\]

\(F_{j,e,t,y}^\mathrm{r}\): Reference flow of carrier through transport technology \(j\) on edge \(i\) and time \(t\) in year \(y\)

\(m^{\mathrm{max}}_{j,e,t,y}\): Maximum load factor of transport technology \(j\) on edge \(i\) and time \(t\) in year \(y\)

\(S_{j,e,y}\): Capacity of transport technology \(j\) on edge \(i\) in year \(y\)

constraint_opex_emissions_technology_transport()

Calculate opex of each technology.

\[O_{j,t,y}^\mathrm{t} = \beta_{j,y} F_{j,e,t,y}\]

\(O_{h,p,t}^\mathrm{t}\): Variable operating expenditures of transport technology \(j\) on edge \(e\) at time \(t\) in year \(y\)

\(\beta_{j,y}\): Specific variable operating expenditures of transport technology \(j\) in year \(y\)

\(F_{j,e,t,y}\): Reference flow of carrier through transport technology \(j\) on edge \(e\) at time \(t\) in year \(y\)

constraint_transport_technology_capex()

Definition of the capital expenditures for the transport technology.

\[\text{if transport distance set to inf: } \Delta S_{j,e,y} = 0\]
\[\text{else: } CAPEX_{j,e,y} = \Delta S_{j,e,y} \alpha_{j,y}^{\mathrm{const}} + \Delta S_{j,e,y} h_{j,e} \alpha^\mathrm{dist}_{j,e,y}\]

\(\Delta S_{j,e,y}\): Capacity addition of transport technology \(j\) on edge \(e\) in year \(y\)

\(CAPEX_{j,e,y}\): Capital expenditures of transport technology \(j\) on edge \(e\) in year \(y\)

\(\alpha_{j,y}^{\mathrm{const}}\): Specific constant capital expenditures of transport technology \(j\) in year \(y\) \(\alpha^\mathrm{dist}_{j,e,y}\): Specific capital expenditures per distance of transport technology \(j\) on edge \(e\) in year \(y\) \(h_{j,e}\): Transport distance for transport technology \(j\) on edge \(e\)

constraint_transport_technology_losses_flow()

Compute the flow losses for a carrier through a transport technology.

\[\text{if transport distance set to inf: } F^\mathrm{l}_{j,e,t} = 0\]
\[\text{else: } F^\mathrm{l}_{j,e,t} = h_{j,e} \rho_{j} F_{j,e,t}\]

\(F^\mathrm{l}_{j,e,t}\): Flow losses of carrier through transport technology \(j\) on edge \(e\) at time \(t\)

\(h_{j,e}\): Transport distance for transport technology \(j\) on edge \(e\)

\(\rho_{j}\): Loss factor for transport technology \(j\)

\(F_{j,e,t}\): Reference flow of carrier through transport technology \(j\) on edge \(e\) at time \(t\)