11.5.4.6. rheia.CASES.H2_MOBILITY.h2_mobility.Evaluation
- class rheia.CASES.H2_MOBILITY.h2_mobility.Evaluation(sol_irr, t_amb, par)
This class evaluates the power-to-mobility system. For a given design, the solar irradiance, ambient temperature and the characterization of the model parameters, the levelized cost of driving, carbon intensity and the annual grid consumption are quantified.
- Parameters
sol_irr (ndarray) – The hourly solar irradiance for the evaluated year.
t_amb (ndarray) – The hourly ambient temperature for the evaluated year.
parameters (dict) – Dictionary with the model parameters and design variables values.
- __init__(sol_irr, t_amb, par)
Methods
__init__(sol_irr, t_amb, par)compressor(m_h2)The compressor module defined the required compression power to compress the hydrogen mass flow rate [3].
cost()Based on the capital recovery factor, the CAPEX, OPEX and replacement cost of the system components, the levelized cost of mobility [euro/km] is determined.
current_to_mh2(current)When current is provided, this function determines the corresponding hydrogen mass flow rate per hour.
Set the grid electricity price for buying and selling electricity.
This is the main method of the Evaluation class.
extract_h2_from_tank(demand)Extract the hydrogen demand from the storage tank.
lca()The life cycle assessment is performed based on the CO2 emissions from constructing the system components and the emissions related to consuming grid electricity and diesel.
lifetime()The lifetime method determines the lifetime of the electrolyzer array, based on the number of operating hours during the evaluated year.
mh2_to_power(m_h2)When the hydrogen mass flow rate is provided, this function determines the corresponding required power per hour.
p_for_inst_demand(m_h2)When a hydrogen demand is provided, this method determines the power to generate the hydrogen in the electrolyzer array and the power to compress the hydrogen in the compressor.
pemel(i_pemel)The electrolyzer model, based on the work of Saeed et al. [2].
The hourly photovoltaic power is quantified via the PVlib package.
The electrolyzer stack is evaluated over a range of input currents.
The power consumption by the electrolyzer stack and compressor are evaluated over a range of hydrogen mass flow rates.
print_results([succes])This method prints the levelized cost of electricity, the self-sufficiency ratio and the annual energy produced by the photovoltaic array.
prod_mh2(p_in)When there is power available to produce hydrogen, this method distributes this power over the electrolyzer array and compressor, such that the hydrogen is produced and compressed with this given power.
quantify_mpp(sol_irr, t_amb, pv_system)Quantify the maximum power of the photovoltaic array for a given solar irradiance and ambient temperature.
tank()The maximum storage capacity of the hydrogen tank.