Skip to content

Commit

Permalink
update capacity factor print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredthomas68 committed Feb 19, 2024
1 parent 9ed6f38 commit 341bb70
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/eco/05-offshore-h2/eco-h2-offshore.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@
filename_hopp_config = "./input/plant/hopp_config.yaml"
filename_eco_config = "./input/plant/eco_config.yaml"

run_simulation(filename_hopp_config, filename_eco_config, filename_turbine_config, filename_orbit_config, filename_floris_config, verbose=False, show_plots=False, save_plots=True, use_profast=True, incentive_option=1, plant_design_scenario=1)
run_simulation(filename_hopp_config, filename_eco_config, filename_turbine_config, filename_orbit_config, filename_floris_config, verbose=True, show_plots=False, save_plots=True, use_profast=True, incentive_option=1, plant_design_scenario=1)
2 changes: 1 addition & 1 deletion greenheart/tools/eco/hybrid_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def simple_solver(initial_guess=0.0):
opex_annual, opex_breakdown_annual = he_fin.run_opex(hopp_results, orbit_project, orbit_hybrid_electrical_export_project, electrolyzer_cost_results, h2_pipe_array_results, h2_transport_compressor_results, h2_transport_pipe_results, h2_storage_results, hopp_config, eco_config, orbit_config, desal_results, platform_results, verbose=verbose, total_export_system_cost=capex_breakdown["electrical_export_system"])

if verbose:
print("hybrid plant capacity factor: ", np.sum(hopp_results["combined_hybrid_power_production_hopp"])*1E-3/(eco_config["plant"]["capacity"]*365*24))
print("hybrid plant capacity factor: ", np.sum(hopp_results["combined_hybrid_power_production_hopp"])/(hopp_results["hybrid_plant"].system_capacity_kw.hybrid * 365 * 24))

if use_profast:
lcoe, pf_lcoe = he_fin.run_profast_lcoe(eco_config, orbit_config, orbit_project, capex_breakdown, opex_breakdown_annual, hopp_results, incentive_option, design_scenario, verbose=verbose, show_plots=show_plots, save_plots=save_plots)
Expand Down
3 changes: 1 addition & 2 deletions greenheart/tools/eco/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -1004,8 +1004,7 @@ def post_process_simulation(
"hybrid electricity plant capacity factor: ",
round(
np.sum(hopp_results["combined_hybrid_power_production_hopp"])
* 1e-3
/ (eco_config["plant"]["capacity"] * 365 * 24),
/ (hopp_results["hybrid_plant"].system_capacity_kw.hybrid * 365 * 24),
2,
),
)
Expand Down

0 comments on commit 341bb70

Please sign in to comment.