Demonstration of the Available Metrics#

Binder

For a complete list of metrics and their documentation, please see the API Metrics documentation.

This demonstration will rely on the results produced in the "How To" notebook and serves as an extension of the API documentation to show what the results will look like depending on what inputs are provided.

A Jupyter notebook of this tutorial can be run from examples/metrics_demonstration.ipynb locally, or through binder.

from pprint import pprint
from functools import partial

import pandas as pd
from pandas.io.formats.style import Styler

from wombat.core import Simulation, Metrics
from wombat.utilities import plot

# Clean up the aesthetics for the pandas outputs
pd.set_option("display.max_rows", 30)
pd.set_option("display.max_columns", 10)
style = partial(
  Styler,
  table_attributes='style="font-size: 14px; grid-column-count: 6"',
  precision=2,
  thousands=",",
)

Table of Contents#

Below is a list of top-level sections to demonstrate how to use WOMBAT's Metrics class methods and an explanation of each individual metric.

If you don't see a metric or result computation that is core to your work, please submit an issue with details on what the metric is, and how it should be computed.

Setup#

The simulations from the How To notebook are going to be rerun as it is not recommended to create a Metrics class from scratch due to the large number of inputs that are required, and the initialization is provided in the simulation API's run method.

To simplify this process, a feature has been added to save the simulation outputs required to generate the Metrics inputs and a method to reload those outputs as inputs.

sim = Simulation("COREWIND", "morro_bay_in_situ.yaml")

# Both of these parameters are True by default for convenience
sim.run(create_metrics=True, save_metrics_inputs=True)

# Load the metrics data
fpath = sim.env.metrics_input_fname.parent
fname = sim.env.metrics_input_fname.name
metrics = Metrics.from_simulation_outputs(fpath, fname)

# Delete the log files now that they're loaded in
sim.env.cleanup_log_files()

# Alternatively, in this case because the simulation was run, we can use the
# following for convenience convenience only
metrics = sim.metrics

Common Parameter Explanations#

Before diving into each and every metric, and how they can be customized, it is worth noting some of the most common parameters used throughout, and their meanings to reduce redundancy. The varying output forms are demonstrated in the availability section below.

frequency#

project

Computed across the whole simulation, with the resulting DataFrame having an empty index.

annual

Summary of each year in the simulation, with the resulting DataFrame having "year" as the index.

monthly

Summary of each month of the year, aggregated across years, with the resulting DataFrame having "month" as the index.

month-year

computed on a month-by-year basis, producing the results for every month of the simulation, with the resulting DataFrame having "year" and "month" as the index.

by#

windfarm

Aggregated across all turbines, with the resulting DataFrame having only "windfarm" as a column.

turbine

Computed for each turbine, with the resulting DataFrame having a column for each turbine.

electrolyzer

Computed for each electrolyzer, with the resulting DataFrame having a column for each electrolyzer. This option is only available for the availability and capacity factor metrics.

Availability#

There are two methods to produce availability, which have their own function calls:

Here, we will go through the various input definitions to get time-based availability data as both methods use the same inputs, and provide outputs in the same format.

Inputs:

  • frequency, as explained above options: "project", "annual", "monthly", and "month-year"

  • by, as explained above options: "windfarm", "turbine", or "electrolyzer"

Below is a demonstration of the variations on frequency and by for time_based_availability.

style(metrics.time_based_availability(frequency="project", by="windfarm"))
  windfarm
time_availability 0.91
style(metrics.production_based_availability(frequency="project", by="windfarm"))
  windfarm
energy_availability 0.91

Note that in the two above examples, that the values are equal. This is due to the fact that the example simulation does not have any operating reduction applied to failures, unless it's a catastrophic failure, so there is no expected difference.

# Demonstrate the by turbine granularity
style(metrics.time_based_availability(frequency="project", by="turbine"))
  WTG_0000 WTG_0001 WTG_0002 WTG_0003 WTG_0004 WTG_0005 WTG_0006 WTG_0007 WTG_0008 WTG_0009 WTG_0100 WTG_0101 WTG_0102 WTG_0103 WTG_0104 WTG_0105 WTG_0106 WTG_0107 WTG_0108 WTG_0109 WTG_0200 WTG_0201 WTG_0202 WTG_0203 WTG_0204 WTG_0205 WTG_0206 WTG_0207 WTG_0208 WTG_0209 WTG_0300 WTG_0301 WTG_0302 WTG_0303 WTG_0304 WTG_0305 WTG_0306 WTG_0307 WTG_0308 WTG_0309 WTG_0400 WTG_0401 WTG_0402 WTG_0403 WTG_0404 WTG_0405 WTG_0406 WTG_0407 WTG_0408 WTG_0409 WTG_0500 WTG_0501 WTG_0502 WTG_0503 WTG_0504 WTG_0505 WTG_0506 WTG_0507 WTG_0508 WTG_0509 WTG_0600 WTG_0601 WTG_0602 WTG_0603 WTG_0604 WTG_0605 WTG_0606 WTG_0607 WTG_0608 WTG_0609 WTG_0700 WTG_0701 WTG_0702 WTG_0703 WTG_0704 WTG_0705 WTG_0706 WTG_0707 WTG_0708 WTG_0709
time_availability 0.89 0.91 0.91 0.90 0.92 0.91 0.91 0.91 0.91 0.91 0.88 0.91 0.90 0.91 0.89 0.90 0.91 0.92 0.91 0.91 0.91 0.91 0.91 0.90 0.91 0.90 0.90 0.90 0.91 0.91 0.91 0.90 0.92 0.91 0.90 0.90 0.92 0.91 0.90 0.90 0.91 0.91 0.92 0.90 0.92 0.92 0.90 0.93 0.91 0.91 0.91 0.90 0.92 0.91 0.92 0.90 0.89 0.92 0.92 0.90 0.90 0.91 0.93 0.92 0.91 0.90 0.92 0.92 0.92 0.93 0.91 0.91 0.92 0.92 0.91 0.90 0.93 0.91 0.92 0.92
# Demonstrate the annualized outputs
style(metrics.time_based_availability(frequency="annual", by="windfarm"))
  windfarm
year  
2002 0.96
2003 0.91
2004 0.91
2005 0.91
2006 0.89
2007 0.90
2008 0.90
2009 0.92
2010 0.88
2011 0.89
2012 0.89
2013 0.91
2014 0.92
2015 0.93
2016 0.91
2017 0.92
2018 0.92
2019 0.90
2020 0.92
2021 0.90
# Demonstrate the month aggregations
style(metrics.time_based_availability(frequency="monthly", by="windfarm"))
  windfarm
month  
1 0.88
2 0.88
3 0.88
4 0.88
5 0.89
6 0.89
7 0.93
8 0.95
9 0.95
10 0.94
11 0.94
12 0.91
# Demonstrate the granular monthly reporting
style(metrics.time_based_availability(frequency="month-year", by="windfarm"))
    windfarm
year month  
2002 1 0.93
2 0.96
3 0.96
4 0.97
5 0.95
6 0.95
7 0.97
8 0.98
9 0.98
10 0.97
11 0.92
12 0.92
2003 1 0.72
2 0.91
3 0.91
4 0.90
5 0.90
6 0.90
7 0.91
8 0.98
9 0.98
10 0.96
11 0.95
12 0.92
2004 1 0.76
2 0.89
3 0.89
4 0.90
5 0.90
6 0.90
7 0.94
8 0.98
9 0.91
10 0.96
11 0.98
12 0.93
2005 1 0.70
2 0.87
3 0.90
4 0.90
5 0.90
6 0.89
7 0.97
8 0.98
9 0.97
10 0.94
11 0.94
12 0.94
2006 1 0.80
2 0.69
3 0.89
4 0.90
5 0.90
6 0.90
7 0.90
8 0.92
9 0.97
10 0.97
11 0.96
12 0.93
2007 1 0.90
2 0.91
3 0.94
4 0.90
5 0.90
6 0.90
7 0.90
8 0.90
9 0.96
10 0.96
11 0.93
12 0.68
2008 1 0.89
2 0.72
3 0.87
4 0.93
5 0.90
6 0.90
7 0.90
8 0.90
9 0.96
10 0.94
11 0.95
12 0.95
2009 1 0.95
2 0.86
3 0.92
4 0.89
5 0.92
6 0.93
7 0.90
8 0.95
9 0.91
10 0.95
11 0.93
12 0.94
2010 1 0.93
2 0.89
3 0.73
4 0.66
5 0.93
6 0.91
7 0.90
8 0.93
9 0.95
10 0.91
11 0.90
12 0.94
2011 1 0.92
2 0.78
3 0.83
4 0.74
5 0.93
6 0.94
7 0.94
8 0.91
9 0.91
10 0.93
11 0.90
12 0.91
2012 1 0.91
2 0.89
3 0.90
4 0.78
5 0.92
6 0.74
7 0.95
8 0.93
9 0.90
10 0.93
11 0.93
12 0.90
2013 1 0.90
2 0.89
3 0.81
4 0.94
5 0.90
6 0.93
7 0.97
8 0.96
9 0.92
10 0.92
11 0.93
12 0.87
2014 1 0.92
2 0.93
3 0.83
4 0.93
5 0.85
6 0.91
7 0.98
8 0.97
9 0.95
10 0.92
11 0.91
12 0.90
2015 1 0.93
2 0.94
3 0.91
4 0.90
5 0.89
6 0.97
7 0.97
8 0.98
9 0.96
10 0.93
11 0.90
12 0.90
2016 1 0.90
2 0.90
3 0.89
4 0.87
5 0.87
6 0.91
7 0.95
8 0.97
9 0.94
10 0.92
11 0.90
12 0.89
2017 1 0.88
2 0.89
3 0.90
4 0.87
5 0.88
6 0.90
7 0.90
8 0.97
9 0.97
10 0.94
11 0.96
12 0.95
2018 1 0.91
2 0.90
3 0.87
4 0.91
5 0.90
6 0.91
7 0.94
8 0.97
9 0.95
10 0.96
11 0.95
12 0.91
2019 1 0.90
2 0.90
3 0.90
4 0.86
5 0.71
6 0.86
7 0.93
8 0.97
9 0.96
10 0.96
11 0.96
12 0.91
2020 1 0.90
2 0.90
3 0.88
4 0.90
5 0.90
6 0.82
7 0.93
8 0.96
9 0.98
10 0.97
11 0.96
12 0.92
2021 1 0.90
2 0.90
3 0.90
4 0.87
5 0.90
6 0.74
7 0.90
8 0.92
9 0.95
10 0.95
11 0.94
12 0.95

Plotting Availability#

As of v0.9, the ability to plot the wind farm and turbine availability has been enabled as an experimental feature. Please see the plotting API documentation for more details.

# Demonstrate the granular monthly reporting
plot.plot_farm_availability(sim=sim, which="energy", farm_95_CI=True)
../_images/ecfd123f88c52ee69eb1c784682c56f428019bf005ca9ad3afef8ba9b68f26fa.png

Capacity Factor#

The capacity factor is the ratio of actual (net) or potential (gross) energy production divided by the project's capacity. For further documentation, see the API docs here: wombat.core.post_processor.Metrics.capacity_factor().

Inputs:

  • which

    • "net": net capacity factor, actual production divided by the plant capacity

    • "gross": gross capacity factor, potential production divided by the plant capacity

  • frequency, as explained above, options: "project", "annual", "monthly", and "month-year"

  • by, as explained above, options: "windfarm", "turbine", and "electrolyzer"

Example Usage:

net_cf = metrics.capacity_factor(which="net", frequency="project", by="windfarm").squeeze()
gross_cf = metrics.capacity_factor(which="gross", frequency="project", by="windfarm").squeeze()
print(f"  Net capacity factor: {net_cf:.2%}")
print(f"Gross capacity factor: {gross_cf:.2%}")
  Net capacity factor: 50.56%
Gross capacity factor: 55.59%

Task Completion Rate#

The task completion rate is the ratio of tasks completed aggregated to the desired frequency. It is possible to have a >100% completion rate if all maintenance and failure requests submitted in a time period were completed in addition to those that went unfinished in prior time periods. For further documentation, see the API docs here: wombat.core.post_processor.Metrics.task_completion_rate().

Inputs:

  • which

    • "scheduled": scheduled maintenance only (classified as maintenance tasks in inputs)

    • "unscheduled": unscheduled maintenance only (classified as failure events in inputs)

    • "both": Combined completion rate for all tasks

  • frequency, as explained above, options: "project", "annual", "monthly", and "month-year"

Example Usage:

scheduled = metrics.task_completion_rate(which="scheduled", frequency="project").values[0][0]
unscheduled = metrics.task_completion_rate(which="unscheduled", frequency="project").values[0][0]
combined = metrics.task_completion_rate(which="both", frequency="project").values[0][0]
print(f"  Scheduled Task Completion Rate: {scheduled:.2%}")
print(f"Unscheduled Task Completion Rate: {unscheduled:.2%}")
print(f"    Overall Task Completion Rate: {combined:.2%}")
  Scheduled Task Completion Rate: 96.08%
Unscheduled Task Completion Rate: 95.19%
    Overall Task Completion Rate: 95.52%

Equipment Costs#

Sum of the costs associated with a simulation's servicing equipment, which excludes materials, downtime, etc. For further documentation, see the API docs here: wombat.core.post_processor.Metrics.equipment_costs().

Inputs:

  • frequency, as explained above, options: "project", "annual", "monthly", and "month-year"

  • by_equipment

    • True: Aggregates all equipment into a single cost

    • False: Computes for each unit of servicing equipment

Example Usage:

# Project total at the whole wind farm level
style(metrics.equipment_costs(frequency="project", by_equipment=False))
  equipment_cost
0 2,265,646,561.21
# Project totals at servicing equipment level
style(metrics.equipment_costs(frequency="project", by_equipment=True))
  Anchor Handling Tug Cable Laying Vessel Crew Transfer Vessel 1 Crew Transfer Vessel 2 Crew Transfer Vessel 3 Crew Transfer Vessel 4 Crew Transfer Vessel 5 Crew Transfer Vessel 6 Crew Transfer Vessel 7 Diving Support Vessel Heavy Lift Vessel
0 103,762,090.91 158,465,918.57 25,563,222.69 25,563,217.37 25,563,214.18 25,563,207.06 25,563,215.84 25,563,235.78 25,563,214.22 118,402,006.29 1,706,074,018.29

Service Equipment Utilization Rate#

Ratio of days when the servicing equipment is in use (not delayed for a whole day due to either weather or lack of repairs to be completed) to the number of days it's present in the simulation. For further documentation, see the API docs here: wombat.core.post_processor.Metrics.service_equipment_utilization().

Inputs:

  • frequency, as explained above, options: "project" and "annual"

Example Usage:

# Project totals
style(metrics.service_equipment_utilization(frequency="project"))
  Anchor Handling Tug Cable Laying Vessel Crew Transfer Vessel 1 Crew Transfer Vessel 2 Crew Transfer Vessel 3 Crew Transfer Vessel 4 Crew Transfer Vessel 5 Crew Transfer Vessel 6 Crew Transfer Vessel 7 Diving Support Vessel Heavy Lift Vessel
0 0.86 0.92 1.00 1.00 1.00 1.00 1.00 1.00 1.00 0.96 1.00

Vessel-Crew Hours at Sea#

The number of vessel hours or crew hours at sea for offshore wind power plant simulations. For further documentation, see the API docs here: wombat.core.post_processor.Metrics.vessel_crew_hours_at_sea().

Inputs:

  • frequency, as explained above, options: "project", "annual", "monthly", and "month-year"

  • by_equipment

    • True: Aggregates all equipment into a single cost

    • False: Computes for each unit of servicing equipment

  • vessel_crew_assumption: A dictionary of vessel names (ServiceEquipment.settings.name, but also found at Metrics.service_equipment_names) and the number of crew onboard at any given time. The application of this assumption transforms the results from vessel hours at sea to crew hours at sea.

Example Usage:

# Project total, not broken out by vessel
style(metrics.vessel_crew_hours_at_sea(frequency="project", by_equipment=False))
  Total Crew Hours at Sea
0 672,406.98
# Annual project totals, broken out by vessel
style(metrics.vessel_crew_hours_at_sea(frequency="annual", by_equipment=True))
---------------------------------------------------------------------------
KeyError                                  Traceback (most recent call last)
Cell In[16], line 2
      1 # Annual project totals, broken out by vessel
----> 2 style(metrics.vessel_crew_hours_at_sea(frequency="annual", by_equipment=True))

File /opt/hostedtoolcache/Python/3.13.8/x64/lib/python3.13/site-packages/wombat/core/post_processor.py:1030, in Metrics.vessel_crew_hours_at_sea(self, frequency, by_equipment, vessel_crew_assumption)
   1024         return pd.DataFrame(at_sea.sum()[["duration"]]).T.rename(
   1025             columns={"duration": "Total Crew Hours at Sea"}
   1026         )
   1027 additional_cols = frequency.group_cols
   1028 total_hours = (
   1029     total_hours.drop(columns=frequency.drop_cols)
-> 1030     .groupby(group_cols)[["N"]]
   1031     .sum()
   1032 )
   1034 columns = additional_cols + columns
   1035 group_cols.extend(additional_cols)

File /opt/hostedtoolcache/Python/3.13.8/x64/lib/python3.13/site-packages/pandas/core/frame.py:9210, in DataFrame.groupby(self, by, axis, level, as_index, sort, group_keys, observed, dropna)
   9207 if level is None and by is None:
   9208     raise TypeError("You have to supply one of 'by' and 'level'")
-> 9210 return DataFrameGroupBy(
   9211     obj=self,
   9212     keys=by,
   9213     axis=axis,
   9214     level=level,
   9215     as_index=as_index,
   9216     sort=sort,
   9217     group_keys=group_keys,
   9218     observed=observed,
   9219     dropna=dropna,
   9220 )

File /opt/hostedtoolcache/Python/3.13.8/x64/lib/python3.13/site-packages/pandas/core/groupby/groupby.py:1331, in GroupBy.__init__(self, obj, keys, axis, level, grouper, exclusions, selection, as_index, sort, group_keys, observed, dropna)
   1328 self.dropna = dropna
   1330 if grouper is None:
-> 1331     grouper, exclusions, obj = get_grouper(
   1332         obj,
   1333         keys,
   1334         axis=axis,
   1335         level=level,
   1336         sort=sort,
   1337         observed=False if observed is lib.no_default else observed,
   1338         dropna=self.dropna,
   1339     )
   1341 if observed is lib.no_default:
   1342     if any(ping._passed_categorical for ping in grouper.groupings):

File /opt/hostedtoolcache/Python/3.13.8/x64/lib/python3.13/site-packages/pandas/core/groupby/grouper.py:1043, in get_grouper(obj, key, axis, level, sort, observed, validate, dropna)
   1041         in_axis, level, gpr = False, gpr, None
   1042     else:
-> 1043         raise KeyError(gpr)
   1044 elif isinstance(gpr, Grouper) and gpr.key is not None:
   1045     # Add key to exclusions
   1046     exclusions.add(gpr.key)

KeyError: 'agent'

Number of Tows#

The number of tows performed during the simulation. If tow-to-port was not used in the simulation, a DataFrame with a single value of 0 will be returned. For further documentation, see the API docs here: wombat.core.post_processor.Metrics.number_of_tows().

Inputs:

  • frequency, as explained above, options: "project", "annual", "monthly", and "month-year"

  • by_tug

    • True: Computed for each tugboat (towing vessel)

    • False: Aggregates all the tugboats

  • by_direction

    • True: Computed for each direction a tow was performed (to port or to site)

    • False: Aggregates to the total number of tows

Example Usage:

# Project Total
# NOTE: This example has no towing, so it will return 0
style(metrics.number_of_tows(frequency="project"))
  total_tows
0 0

Dispatch Summary#

The number of mobilizations and the average length of their charter during the simulation for each piece of servicing equipment. For further documentation, see the API docs here: wombat.core.post_processor.Metrics.dispatch_summary().

Inputs:

  • frequency, as explained above, options: "project", "annual", "monthly", and "month-year"

Example Usage:

# Project Total
style(metrics.dispatch_summary(frequency="project"))
  N Mobilizations Average Charter Days
agent    
Anchor Handling Tug 49 24.05
Cable Laying Vessel 45 43.95
Crew Transfer Vessel 1 1 7,303.67
Crew Transfer Vessel 2 1 7,303.67
Crew Transfer Vessel 3 1 7,303.67
Crew Transfer Vessel 4 1 7,303.00
Crew Transfer Vessel 5 1 7,303.00
Crew Transfer Vessel 6 1 7,303.00
Crew Transfer Vessel 7 1 7,303.00
Diving Support Vessel 151 7.38
Heavy Lift Vessel 147 38.71

Labor Costs#

Sum of all labor costs associated with servicing equipment, excluding the labor defined in the fixed costs, which can be broken out by type. For further documentation, see the API docs here: wombat.core.post_processor.Metrics.labor_costs().

Inputs:

  • frequency, as explained above, options: "project", "annual", "monthly", and "month-year"

  • by_type

    • True: Computed for each labor type (salary and hourly)

    • False: Aggregates all the labor costs

Example Usage:

# Project total at the whole wind farm level
total = metrics.labor_costs(frequency="project", by_type=False)
print(f"Project total: ${total.values[0][0] / metrics.project_capacity:,.2f}/MW")
Project total: $41,051.95/MW
# Project totals for each type of labor
style(metrics.labor_costs(frequency="project", by_type=True))
  hourly_labor_cost salary_labor_cost total_labor_cost
0 0.00 49,262,342.64 49,262,342.64

Equipment and Labor Costs#

Sum of all labor and servicing equipment costs, excluding the labor defined in the fixed costs, which can be broken out by each category. For further documentation, see the API docs here: wombat.core.post_processor.Metrics.equipment_labor_cost_breakdown().

Inputs:

  • frequency, as explained above, options: "project", "annual", "monthly", and "month-year"

  • by_category

    • True: Computed for each unit servicing equipment and labor category

    • False: Aggregated to the sum of all costs

reason definitions:

  • Maintenance: routine maintenance, or events defined as a wombat.core.data_classes.Maintenance

  • Repair: unscheduled maintenance, ranging from inspections to replacements, or events defined as a wombat.core.data_classes.Failure

  • Mobilization: Cost of mobilizing servicing equipment

  • Crew Transfer: Costs incurred while crew are transferring between a turbine or substation and the servicing equipment

  • Site Travel: Costs incurred while transiting to/from the site and while at the site

  • Weather Delay: Any delays caused by unsafe weather conditions

  • No Requests: Equipment and labor is active, but there are no repairs or maintenance tasks to be completed

  • Not in Shift: Any time outside the operating hours of the wind farm (or the servicing equipment's specific operating hours)

Example Usage:

# Project totals
style(metrics.equipment_labor_cost_breakdowns(frequency="project", by_category=False))
  total_cost total_hours
reason    
Maintenance 23,945,240.28 73,477.92
Repair 572,180,661.22 159,604.33
Crew Transfer 8,948,479.80 11,455.75
Site Travel 93,902,318.66 126,053.88
Mobilization 118,395,000.00 129,216.00
Weather Delay 1,395,785,204.61 612,698.79
No Requests 73,929,000.81 373,739.36
Not in Shift 27,822,998.47 110,127.86
# Project totals by each category
style(metrics.equipment_labor_cost_breakdowns(frequency="project", by_category=True))
  hourly_labor_cost salary_labor_cost total_labor_cost equipment_cost total_cost total_hours
reason            
Maintenance 0 2,248,742.89 2,248,742.89 21,696,497.40 23,945,240.28 73,477.92
Repair 0 7,270,787.58 7,270,787.58 564,909,873.64 572,180,661.22 159,604.33
Crew Transfer 0 358,057.93 358,057.93 8,590,421.88 8,948,479.80 11,455.75
Site Travel 0 3,969,756.96 3,969,756.96 89,932,561.70 93,902,318.66 126,053.88
Mobilization 0 0.00 0.00 118,395,000.00 118,395,000.00 129,216.00
Weather Delay 0 21,898,050.65 21,898,050.65 1,373,887,153.96 1,395,785,204.61 612,698.79
No Requests 0 10,346,552.29 10,346,552.29 63,582,448.52 73,929,000.81 373,739.36
Not in Shift 0 3,170,394.35 3,170,394.35 24,652,604.12 27,822,998.47 110,127.86

Emissions#

Emissions (tons or other provided units) of all servicing equipment activity, except overnight waiting periods between shifts. For further documentation, see the API docs here: wombat.core.post_processor.Metrics.emissions().

Inputs:

  • emissions_factors: Dictionary of servicing equipment names and the emissions per hour of the following activities: transit, maneuvering, idle at site, and idle at port, where port is stand-in for wherever the servicing equipment might be based when not at site.

  • maneuvering_factor: The proportion of transit time that can generally be associated with positioning servicing, by default 10%.

  • port_engine_on_factor: The proportion of the idling at port time when the engine is running and producing emissions, by default 25%.

# Create the emissions factors, in tons per hour
emissions_factors = {
    "Crew Transfer Vessel 1": {
        "transit": 4,
        "maneuvering": 3,
        "idle at site": 0.5,
        "idle at port": 0.25,
    },
    "Field Support Vessel": {
        "transit": 6,
        "maneuvering": 4,
        "idle at site": 1,
        "idle at port": 0.5,
    },
    "Heavy Lift Vessel": {
        "transit": 12,
        "maneuvering": 7,
        "idle at site": 1,
        "idle at port": 0.5,
    },
    "Diving Support Vessel": {
        "transit": 4,
        "maneuvering": 7,
        "idle at site": 0.2,
        "idle at port": 0.2,
    },
    "Cable Laying Vessel": {
        "transit": 4,
        "maneuvering": 7,
        "idle at site": 0.2,
        "idle at port": 0.2,
    },
    "Anchor Handling Tug": {
        "transit": 4,
        "maneuvering": 3,
        "idle at site": 1,
        "idle at port": 0.25,
    },
}

# Add in CTVs 2 through 7
for i in range(2, 8):
    emissions_factors[f"Crew Transfer Vessel {i}"] = emissions_factors[f"Crew Transfer Vessel 1"]

style(metrics.emissions(emissions_factors=emissions_factors, maneuvering_factor=0.075, port_engine_on_factor=0.20))
    duration distance_km emissions
agent category      
Anchor Handling Tug idle at port 4,384.07 0.00 1,096.02
idle at site 26,750.81 0.00 26,750.81
maneuvering 1,777.33 0.00 5,331.98
transit 21,920.35 inf 87,681.41
Cable Laying Vessel idle at port 3,039.81 0.00 607.96
idle at site 40,108.85 0.00 8,021.77
maneuvering 1,232.36 0.00 8,626.50
transit 15,199.07 inf 60,796.28
Crew Transfer Vessel 1 idle at port 3,122.31 0.00 780.58
idle at site 32,383.22 0.00 16,191.61
maneuvering 1,265.80 0.00 3,797.40
transit 15,611.53 inf 62,446.14
Crew Transfer Vessel 2 idle at port 3,127.30 0.00 781.82
idle at site 32,753.79 0.00 16,376.89
maneuvering 1,267.82 0.00 3,803.47
transit 15,636.48 inf 62,545.92
Crew Transfer Vessel 3 idle at port 3,119.01 0.00 779.75
idle at site 32,267.45 0.00 16,133.73
maneuvering 1,264.46 0.00 3,793.39
transit 15,595.07 inf 62,380.27
Crew Transfer Vessel 4 idle at port 3,097.12 0.00 774.28
idle at site 32,373.95 0.00 16,186.98
maneuvering 1,255.59 0.00 3,766.77
transit 15,485.61 inf 61,942.45
Crew Transfer Vessel 5 idle at port 3,148.29 0.00 787.07
idle at site 33,028.14 0.00 16,514.07
maneuvering 1,276.33 0.00 3,829.00
transit 15,741.44 inf 62,965.75
Crew Transfer Vessel 6 idle at port 3,143.85 0.00 785.96
idle at site 32,815.28 0.00 16,407.64
maneuvering 1,274.54 0.00 3,823.61
transit 15,719.27 inf 62,877.07
Crew Transfer Vessel 7 idle at port 3,096.76 0.00 774.19
idle at site 32,367.96 0.00 16,183.98
maneuvering 1,255.44 0.00 3,766.33
transit 15,483.78 inf 61,935.13
Diving Support Vessel idle at port 11,176.94 0.00 2,235.39
idle at site 5,579.36 0.00 1,115.87
maneuvering 4,531.19 0.00 31,718.34
transit 55,884.69 126,930.23 223,538.77
Field Support Vessel idle at port 0.00 0.00 0.00
idle at site 0.00 0.00 0.00
maneuvering 0.00 0.00 0.00
transit 0.00 0.00 0.00
Heavy Lift Vessel idle at port 7,364.85 0.00 3,682.43
idle at site 113,280.00 0.00 113,280.00
maneuvering 2,985.75 0.00 20,900.26
transit 36,824.26 inf 441,891.17

Component Costs#

All the costs associated with maintenance and failure events during the simulation, including delays incurred during the repair process, but excluding costs not directly tied to a repair. For further documentation, see the API docs here: wombat.core.post_processor.Metrics.component_costs().

Inputs:

  • frequency, as explained above, options: "project", "annual", "monthly", and "month-year"

  • by_category

    • True: Computed across each subassembly

    • False: (default) Aggregated to the sum of all subassemblies

  • by_action

    • True: Computed by each of "repair", "maintenance", and "delay", and is included in the MultiIndex

    • False: (default) Aggregated as the sum of all actions

  • by_task

    • True: Computed by each repair and maintenance task for each subassembly

    • False: (default) Aggregated as the sum of all tasks

  • include_travel

    • True: Include intrasite and port-to-site travel costs in the repair summary.

    • False: (default) Exclude travel from the cost summary

action definitions:

  • maintenance: routine maintenance

  • repair: unscheduled maintenance, ranging from inspections to replacements

  • delay: Any delays caused by unsafe weather conditions or not being able to finish a process within a single shift

  • travel: Any travel to and from the site between shifts or traveling to the system for initial repair, including crew transfer time.

Example Usage:

# Project totals by component
style(metrics.component_costs(frequency="project", by_category=False, by_action=False))
  total_cost
subassembly  
anchor 48,749,943.99
array cable 153,794,858.57
ballast pump 97,625.48
drive_train 169,487,662.74
electrical system 38,389,157.32
export cable 7,047,530.40
generator 300,595,505.02
hydraulic pitch system 38,809,951.45
mooring lines 52,896,811.94
power converter 1,106,185,417.07
rotor_blades 61,761,120.28
supporting_structure 83,398,030.35
transformer 1,002,752.71
yaw_system 8,476,514.96
# Project totals by each category and action type
style(metrics.component_costs(frequency="project", by_category=True, by_action=True))
    materials_cost total_labor_cost equipment_cost total_cost
subassembly action        
anchor delay 0 511,306.73 15,396,589.26 15,907,895.99
repair 8,293,000 789,048.00 23,760,000.00 32,842,048.00
array cable delay 0 2,698,122.91 92,325,585.49 95,023,708.40
repair 5,510,000 1,512,308.16 51,748,842.01 58,771,150.17
ballast pump delay 0 9,025.35 48,040.74 57,066.09
repair 17,000 3,726.06 19,833.33 40,559.39
drive_train delay 0 882,854.52 117,335,592.98 118,218,447.50
repair 5,673,000 267,673.58 45,328,541.67 51,269,215.24
electrical system delay 0 743,102.40 27,164,932.61 27,908,035.01
repair 787,000 181,455.53 9,512,666.78 10,481,122.31
export cable delay 0 179,952.03 6,157,679.51 6,337,631.54
maintenance 9,000 19,901.47 680,997.40 709,898.86
generator delay 0 4,846,030.29 214,172,057.13 219,018,087.43
maintenance 2,145,000 940,282.20 5,005,000.00 8,090,282.20
repair 4,996,840 549,907.08 67,940,388.31 73,487,135.39
hydraulic pitch system delay 0 3,425,362.17 25,831,211.34 29,256,573.51
repair 1,178,100 903,263.13 7,472,014.81 9,553,377.94
mooring lines delay 0 1,258,433.62 15,584,185.99 16,842,619.61
repair 7,594,000 1,106,859.00 27,353,333.33 36,054,192.33
power converter delay 0 4,293,299.85 778,512,395.59 782,805,695.43
repair 8,625,000 1,494,626.73 313,260,094.91 323,379,721.63
rotor_blades delay 0 1,402,022.15 39,940,459.11 41,342,481.27
repair 4,816,392 377,755.19 15,224,491.82 20,418,639.01
supporting_structure delay 0 4,322,661.99 60,781,295.66 65,103,957.65
maintenance 1,153,000 1,263,572.70 15,877,500.00 18,294,072.70
transformer delay 0 123,504.00 657,395.72 780,899.72
maintenance 19,000 24,986.52 133,000.00 176,986.52
repair 22,000 3,616.47 19,250.00 44,866.47
yaw_system delay 0 370,853.40 4,609,696.25 4,980,549.65
repair 145,000 80,548.65 3,270,416.67 3,495,965.32

Fixed Cost Impacts#

Computes the total costs of the fixed costs categories. For further documentation, see the definition docs, here: wombat.core.data_classes.FixedCosts, or the API docs here: wombat.core.post_processor.Metrics.fixed_costs().

Inputs:

  • frequency, as explained above, options: "project", "annual", "monthly", and "month-year"

  • resolution (also, demonstrated below)

    • "high": Computed across the most granular cost levels

    • "medium": Computed for each general cost category

    • "low": Aggregated to a single sum of costs

pprint(metrics.fixed_costs.hierarchy)
{'operations': {'annual_leases_fees': ['submerge_land_lease_costs',
                                       'transmission_charges_rights'],
                'environmental_health_safety_monitoring': [],
                'insurance': ['brokers_fee',
                              'operations_all_risk',
                              'business_interruption',
                              'third_party_liability',
                              'storm_coverage'],
                'labor': [],
                'onshore_electrical_maintenance': [],
                'operating_facilities': [],
                'operations_management_administration': ['project_management_administration',
                                                         'marine_management',
                                                         'weather_forecasting',
                                                         'condition_monitoring']}}

Example Usage:

# Project totals at the highest level
# NOTE: there were no fixed costs defined in this example, so all values will be 0, so
#       this will just be demonstrating the output format
style(metrics.project_fixed_costs(frequency="project", resolution="low"))
  operations
0 0.00
# Project totals at the medium level
style(metrics.project_fixed_costs(frequency="project", resolution="medium"))
  operations_management_administration insurance annual_leases_fees operating_facilities environmental_health_safety_monitoring onshore_electrical_maintenance labor
0 0.00 0.00 0.00 0.00 0.00 0.00 0.00
# Project totals at the lowest level
style(metrics.project_fixed_costs(frequency="project", resolution="high"))
  project_management_administration marine_management weather_forecasting condition_monitoring brokers_fee operations_all_risk business_interruption third_party_liability storm_coverage submerge_land_lease_costs transmission_charges_rights operating_facilities environmental_health_safety_monitoring onshore_electrical_maintenance labor
0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00

OpEx#

Computes the total cost of all operating expenditures for the duration of the simulation, including fixed costs. For further documentation, see the API docs here: wombat.core.post_processor.Metrics.opex().

Inputs:

  • frequency, as explained above, options: "project", "annual", "monthly", and "month-year"

  • by_category

    • True shows the port fees, fixed costs, labor costs, equipment costs, and materials costs in addition the total OpEx

    • False shows only the total OpEx

Example Usage:

style(metrics.opex("annual"))
  OpEx
year  
2002 93,037,175.18
2003 90,419,371.75
2004 131,017,965.46
2005 115,202,191.68
2006 119,976,238.83
2007 115,004,029.69
2008 136,292,613.21
2009 113,690,558.04
2010 127,856,173.32
2011 128,835,030.25
2012 123,628,218.49
2013 124,252,819.32
2014 111,746,938.35
2015 103,549,498.34
2016 137,411,124.79
2017 118,036,060.69
2018 115,789,050.77
2019 118,177,257.42
2020 116,621,159.41
2021 125,348,760.85
style(metrics.opex("annual", by_category=True))
  operations port_fees equipment_cost total_labor_cost materials_cost OpEx
year            
2002 0.00 0.00 88,910,299.76 2,266,835.42 1,860,040 93,037,175.18
2003 0.00 0.00 86,921,533.02 2,028,438.74 1,469,400 90,419,371.75
2004 0.00 0.00 125,748,779.66 2,622,585.80 2,646,600 131,017,965.46
2005 0.00 0.00 110,473,865.51 2,375,786.17 2,352,540 115,202,191.68
2006 0.00 0.00 115,115,899.20 2,519,879.63 2,340,460 119,976,238.83
2007 0.00 0.00 110,153,826.44 2,376,923.25 2,473,280 115,004,029.69
2008 0.00 0.00 129,855,318.75 2,848,674.46 3,588,620 136,292,613.21
2009 0.00 0.00 108,763,647.22 2,396,550.82 2,530,360 113,690,558.04
2010 0.00 0.00 122,094,713.40 2,549,859.92 3,211,600 127,856,173.32
2011 0.00 0.00 123,989,375.49 2,686,054.77 2,159,600 128,835,030.25
2012 0.00 0.00 118,273,079.68 2,488,742.81 2,866,396 123,628,218.49
2013 0.00 0.00 117,365,584.80 2,539,034.52 4,348,200 124,252,819.32
2014 0.00 0.00 107,678,515.10 2,368,843.25 1,699,580 111,746,938.35
2015 0.00 0.00 99,427,168.24 2,169,214.10 1,953,116 103,549,498.34
2016 0.00 0.00 131,596,941.98 2,740,782.81 3,073,400 137,411,124.79
2017 0.00 0.00 113,414,073.68 2,499,947.01 2,122,040 118,036,060.69
2018 0.00 0.00 111,294,891.45 2,373,439.32 2,120,720 115,789,050.77
2019 0.00 0.00 113,808,435.04 2,340,322.37 2,028,500 118,177,257.42
2020 0.00 0.00 111,437,069.90 2,431,049.51 2,753,040 116,621,159.41
2021 0.00 0.00 119,323,542.90 2,639,377.95 3,385,840 125,348,760.85

Process Times#

Computes the total number of hours spent from repair request submission to completion, performing repairs, and the number of request for each subassembly and repair category. For further documentation, see the API docs here: wombat.core.post_processor.Metrics.process_times().

Inputs:

  • include_incompletes

    • True: include requests that have been submitted, but not completed.

    • False: only include requests that have been completed.

Example Usage:

style(metrics.process_times())
    time_to_completion process_time downtime time_to_start N
subassembly task          
anchor anchor replacement 16,660.84 8,752.54 8,750.89 8,142.11 16
major anchor repair 14,152.21 5,605.78 5,604.59 8,678.97 21
array cable array cable major repair 43,311.28 26,479.92 0.00 18,929.22 40
array cable replacement 29,454.56 20,665.32 0.00 9,979.98 22
ballast pump minor ballast pump repair 2,853.26 552.84 544.73 2,476.34 17
drive_train main shaft major repair 287,959.00 2,002.57 1,995.49 286,244.51 29
main shaft minor repair 59,355.77 23,400.70 23,072.36 42,637.54 359
main shaft replacement 35,003.99 11,609.12 11,599.09 23,846.25 22
electrical system power electrical system major repair 389,888.33 2,311.69 2,304.52 387,772.35 26
power electrical system major replacement 3,645.94 502.59 501.72 3,207.69 3
power electrical system minor repair 83,897.77 34,289.94 33,762.69 57,224.47 543
export cable export cable subsea inspection 9,576.54 2,734.41 0.00 7,749.12 19
generator annual turbine inspection 1,389,681.01 160,457.80 158,930.89 1,237,592.31 1,430
direct drive generator major repair 474,045.72 5,121.42 5,111.87 469,120.75 50
direct drive generator major replacement 34,316.91 17,015.58 16,979.30 18,489.54 17
direct drive generator minor repair 149,647.64 68,909.41 68,071.53 94,924.88 841
hydraulic pitch system major pitch system repair 69,591.41 54,615.70 54,411.35 19,211.67 274
major pitch system replacement 5,469.59 894.51 893.18 4,660.34 3
minor pitch system repair 248,791.47 128,637.97 127,530.64 140,687.37 1,234
mooring lines buoyancy module replacement 17,828.67 13,478.52 13,416.15 5,362.49 54
marine growth removal 47,730.35 35,130.28 34,998.50 15,330.12 166
mooring line major repair 20,226.47 8,002.93 8,000.99 12,545.72 24
mooring line replacement 12,180.68 5,500.66 5,499.72 6,872.93 12
power converter power converter major repair 4,436,055.84 27,571.36 27,486.63 4,413,618.67 457
power converter minor repair 144,433.53 72,320.79 71,574.92 87,258.43 827
power converter replacement 212,195.16 65,381.68 65,349.27 151,205.25 112
rotor_blades blades major repair 155,315.18 871.04 867.50 154,449.18 11
blades major replacement 3,884.23 3,055.48 3,054.95 829.54 1
blades minor repair 135,596.18 68,607.56 68,020.45 78,579.35 663
supporting_structure structural annual inspection 1,607,001.46 169,941.50 168,642.56 1,442,266.97 1,440
structural subsea inspection 1,401,432.66 23,390.82 22,879.17 1,385,410.55 720
transformer oss annual inspection 12,282.25 5,249.87 5,221.39 7,594.11 38
oss minor repair 2,154.86 1,282.15 1,275.66 1,074.32 11
yaw_system yaw system major repair 109,079.42 491.18 488.99 108,726.11 9
yaw system minor repair 45,410.96 18,314.05 18,100.62 33,143.39 254
style(metrics.process_times(include_incompletes=False))
    time_to_completion process_time downtime time_to_start N
subassembly task          
anchor anchor replacement 16,660.84 8,752.54 8,750.89 8,142.11 14
major anchor repair 14,152.21 5,605.78 5,604.59 8,678.97 15
array cable array cable major repair 43,311.28 26,479.92 0.00 18,929.22 37
array cable replacement 29,454.56 20,665.32 0.00 9,979.98 20
ballast pump minor ballast pump repair 2,853.26 552.84 544.73 2,476.34 17
drive_train main shaft major repair 287,959.00 2,002.57 1,995.49 286,244.51 15
main shaft minor repair 59,355.77 23,400.70 23,072.36 42,637.54 359
main shaft replacement 35,003.99 11,609.12 11,599.09 23,846.25 22
electrical system power electrical system major repair 389,888.33 2,311.69 2,304.52 387,772.35 19
power electrical system major replacement 3,645.94 502.59 501.72 3,207.69 3
power electrical system minor repair 83,897.77 34,289.94 33,762.69 57,224.47 542
export cable export cable subsea inspection 9,458.54 2,693.72 0.00 7,663.04 18
generator annual turbine inspection 1,389,681.01 160,457.80 158,930.89 1,237,592.31 1,430
direct drive generator major repair 474,045.72 5,121.42 5,111.87 469,120.75 26
direct drive generator major replacement 32,825.04 16,375.49 16,371.22 17,554.42 16
direct drive generator minor repair 149,647.64 68,909.41 68,071.53 94,924.88 840
hydraulic pitch system major pitch system repair 69,591.41 54,615.70 54,411.35 19,211.67 274
major pitch system replacement 5,469.59 894.51 893.18 4,660.34 3
minor pitch system repair 248,554.49 128,397.97 127,308.26 140,672.26 1,231
mooring lines buoyancy module replacement 17,828.67 13,478.52 13,416.15 5,362.49 54
marine growth removal 47,730.35 35,130.28 34,998.50 15,330.12 166
mooring line major repair 20,226.47 8,002.93 8,000.99 12,545.72 23
mooring line replacement 12,180.68 5,500.66 5,499.72 6,872.93 11
power converter power converter major repair 4,436,055.84 27,571.36 27,486.63 4,413,618.67 234
power converter minor repair 144,433.53 72,320.79 71,574.92 87,258.43 827
power converter replacement 212,195.16 65,381.68 65,349.27 151,205.25 112
rotor_blades blades major repair 155,315.18 871.04 867.50 154,449.18 6
blades major replacement 3,884.23 3,055.48 3,054.95 829.54 1
blades minor repair 135,537.03 68,546.87 67,967.95 78,572.46 662
supporting_structure structural annual inspection 1,607,001.46 169,941.50 168,642.56 1,442,266.97 1,440
structural subsea inspection 1,401,432.66 23,390.82 22,879.17 1,385,410.55 578
transformer oss annual inspection 12,282.25 5,249.87 5,221.39 7,594.11 38
oss minor repair 2,154.86 1,282.15 1,275.66 1,074.32 11
yaw_system yaw system major repair 109,079.42 491.18 488.99 108,726.11 6
yaw system minor repair 45,410.96 18,314.05 18,100.62 33,143.39 254

Request Summary#

Computes the total number of submitted, canceled, incomplete, and completed repair and maintenance request by subassembly and task description. For further documentation, see the API docs here: wombat.core.post_processor.Metrics.request_summary().

Example Usage:

style(metrics.request_summary())
    total_requests canceled_requests incomplete_requests completed_requests
subassembly task        
anchor anchor replacement 16 0 2 14
major anchor repair 21 0 6 15
array cable array cable major repair 40 0 3 37
array cable replacement 22 0 2 20
ballast pump minor ballast pump repair 17 0 0 17
drive_train main shaft major repair 31 2 14 15
main shaft minor repair 359 0 0 359
main shaft replacement 22 0 0 22
electrical system power electrical system major repair 26 0 7 19
power electrical system major replacement 3 0 0 3
power electrical system minor repair 543 0 1 542
export cable export cable subsea inspection 19 0 1 18
generator annual turbine inspection 1,431 1 0 1,430
direct drive generator major repair 50 0 24 26
direct drive generator major replacement 17 0 1 16
direct drive generator minor repair 841 0 1 840
hydraulic pitch system major pitch system repair 274 0 0 274
major pitch system replacement 3 0 0 3
minor pitch system repair 1,234 0 3 1,231
mooring lines buoyancy module replacement 54 0 0 54
marine growth removal 166 0 0 166
mooring line major repair 24 0 1 23
mooring line replacement 12 0 1 11
power converter power converter major repair 532 75 223 234
power converter minor repair 828 1 0 827
power converter replacement 113 1 0 112
rotor_blades blades major repair 11 0 5 6
blades major replacement 1 0 0 1
blades minor repair 663 0 1 662
supporting_structure structural annual inspection 1,440 0 0 1,440
structural subsea inspection 720 0 142 578
transformer oss annual inspection 38 0 0 38
oss minor repair 11 0 0 11
yaw_system yaw system major repair 9 0 3 6
yaw system minor repair 254 0 0 254

Power Production#

Computes the total power production for the wind farm. For further documentation, see the API docs here: wombat.core.post_processor.Metrics.power_production().

Inputs:

  • frequency, as explained above, options: "project", "annual", "monthly", and "month-year"

  • by, as explained above options: "windfarm" and "turbine"

  • units

    • "kwh": kilowatt-hours (kWh)

    • "mwh": megawatt-hours (MWh)

    • "gwh": gigawatt-hours (GWh)

Example Usage:

# Project totals, in kWh, at the wind farm level
style(metrics.power_production(frequency="project", by="windfarm", units="kwh"))
  windfarm
Project Energy Production (kWh) 106,361,964,795.00
# Project totals, in MWh, at the wind farm level
style(metrics.power_production(frequency="project", units="mwh"))
  windfarm
Project Energy Production (MWh) 106,361,964.80
# Project totals, in GWh, at the wind farm level
style(metrics.power_production(frequency="project"))
  windfarm
Project Energy Production (GWh) 106,361.96

Hydrogen Production#

Computes the total hydrogen production for the electrolyzer(s). For further documentation, see the API docs here: wombat.core.post_processor.Metrics.h2_production().

Inputs:

  • frequency, as explained above, options: "project", "annual", "monthly", and "month-year"

  • by: Similar to the common definition, but with electrolyzer specific inputs.

    • "total": total H2 produced for all electrolyzers

    • "electrolyzer": H2 production for all and each electrolyzer

  • units

    • "kgph": kilograms per hour (kgph)

    • "tph": metric tonnes hours (tph)

Example Usage:

Please note, this will raise an error since this analysis does not feature a modeled electrolyzer.

# Project totals, in kWh, at the wind farm level
style(metrics.h2_production(frequency="project", by="total", units="kgph"))
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
Cell In[38], line 2
      1 # Project totals, in kWh, at the wind farm level
----> 2 style(metrics.h2_production(frequency="project", by="total", units="kgph"))

File /opt/hostedtoolcache/Python/3.13.8/x64/lib/python3.13/site-packages/wombat/core/post_processor.py:2327, in Metrics.h2_production(self, frequency, by, units)
   2291 """Calculates the hydrogen production for the simulation at a project, annual,
   2292 or monthly level that can be broken out by electrolyzer.
   2293 
   (...)   2324     If :py:attr:`units` is not one of "kg" or "tn".
   2325 """
   2326 if self.electrolyzer_rated_production.size == 0:
-> 2327     raise ValueError("No electrolyzers available to analyze.")
   2328 frequency = _check_frequency(frequency, which="all")
   2330 by = by.lower().strip()

ValueError: No electrolyzers available to analyze.

Net Present Value#

Calculates the net present value (NPV) for the project, as \(NPV = (Power * OfftakePrice - OpEx) / (1 + DiscountRate)\).

For further documentation, see the API docs here: wombat.core.post_processor.Metrics.npv().

Inputs:

  • frequency, as explained above, options: "project", "annual", "monthly", and "month-year"

  • discount_rate: The rate of return that could be earned on alternative investments, by default 0.025.

  • offtake_price: Price of energy, per MWh, by default 80.

style(metrics.opex("annual"))
  OpEx
year  
2002 93,037,175.18
2003 90,419,371.75
2004 131,017,965.46
2005 115,202,191.68
2006 119,976,238.83
2007 115,004,029.69
2008 136,292,613.21
2009 113,690,558.04
2010 127,856,173.32
2011 128,835,030.25
2012 123,628,218.49
2013 124,252,819.32
2014 111,746,938.35
2015 103,549,498.34
2016 137,411,124.79
2017 118,036,060.69
2018 115,789,050.77
2019 118,177,257.42
2020 116,621,159.41
2021 125,348,760.85