Hello people,
I am building a system for green hydrogen production, i want my hydrogen storage to be the only provider for the fuel cell to function .Right now what is happening is that fuel cell takes hydrogen from the electrolyser even when there is enough hydrogen stored in the storage .I also want the charging and discharging to not happen at the same time but i am not so sure if its possible on oemof. My objects looks somehow like this:
Create excess sink
excess = solph.components.Sink(
label="excess_electricity",
inputs={bel_dc: solph.Flow()}
)
# Create PV source
pv = solph.components.Source(
label="pv",
outputs={
bel_dc: solph.Flow(
fix=pv_data,
nominal_value=1, ) } )
Create grid source
grid = solph.components.Source(
label="grid",
outputs={bel_dc: solph.Flow(variable_costs=price_data,
nominal_value=solph.Investment(ep_costs=epc_grid))}
)
electrolyser = solph.components.Converter(
label="electrolyser",
inputs={bel_dc: solph.Flow(nominal_value=160,)},
outputs={b_h_el: solph.Flow(nominal_value=4)},
conversion_factors={b_h_el: 0.9 / (40)}
)
h2_storage = solph.components.GenericStorage(
label='storage',
inputs={b_h_el: solph.Flow(
variable_costs=10,
nominal_value=4,
)},
outputs={b_h_st: solph.Flow(
nominal_value=83,
variable_costs=0.01,
)},
loss_rate=0.00,
initial_storage_level=0.05,balanced=True,
nominal_storage_capacity=90,
)
fc = solph.components.Converter(
label=“fuel_cell”,
inputs={b_h_st: solph.Flow(
nominal_value=83,
)},
outputs={b_demand: solph.Flow(nominal_value=1375)},
conversion_factors={b_demand:(33.38*0.54)}
)
demand =solph.components.Sink(
label="demand",
inputs={b_demand:solph.flows.Flow(fix=demand_data,nominal_value=1)}
)
# Add components to energy system
energysystem.add(excess, pv,fc, bel_dc,electrolyser,b_h_st,b_h_el,grid,h2_storage,demand,b_demand)
As i am relatively very new to oemof and energy modelling in general , I think i might ask very childish questions but at the moment any help would be highly appreciatied