# nlrwindsystems/wombat architecture

> Architecture diagram of the GitHub repository nlrwindsystems/wombat, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-23). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/nlrwindsystems/wombat
- Repository: https://github.com/nlrwindsystems/wombat

## Overview

WOMBAT models wind-farm operations and maintenance with a SimPy discrete-event workflow: users configure a simulation, construct a farm and its systems, run weather-constrained failures and maintenance through repair resources, then analyze availability and costs. The graph preserves the documented validation libraries and the major runtime layers. Some internals are represented from the source index and README rather than fully inspected excerpts, so uncertain connections are omitted or marked dashed.

Main entry points: [`wombat/core/simulation_api.py`](https://github.com/nlrwindsystems/wombat/blob/main/wombat/core/simulation_api.py) (Simulation API), [`wombat/windfarm/windfarm.py`](https://github.com/nlrwindsystems/wombat/blob/main/wombat/windfarm/windfarm.py) (Wind farm), [`wombat/core/service_equipment.py`](https://github.com/nlrwindsystems/wombat/blob/main/wombat/core/service_equipment.py) (Service equipment), [`wombat/core/environment.py`](https://github.com/nlrwindsystems/wombat/blob/main/wombat/core/environment.py) (Simulation environment)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_setup["Simulation setup"]
  node_api["Simulation API<br/>[simulation_api.py]"]
  node_environment["Simulation environment<br/>[environment.py]"]
  node_library["Configuration libraries<br/>[library.py]"]
  node_data["Model data types<br/>[data_classes.py]"]
  node_templates["Example datasets"]
end

subgraph group_farm["Wind-farm model"]
  node_windfarm["Wind farm<br/>[windfarm.py]"]
  node_system["Turbine systems<br/>[system.py]"]
  node_subassembly["Subassemblies<br/>[subassembly.py]"]
  node_cable["Cable systems<br/>[cable.py]"]
end

subgraph group_operations["O&amp;M operations"]
  node_repair["Repair manager"]
  node_equipment["Service equipment"]
  node_port["Offshore port<br/>[port.py]"]
  node_mixins["Repair behaviors<br/>[mixins.py]"]
end

subgraph group_analysis["Results and utilities"]
  node_metrics["Metrics and costs<br/>[post_processor.py]"]
  node_time["Time utilities<br/>[time.py]"]
  node_logging["Event logging<br/>[logging.py]"]
  node_utilities["Wind and energy utilities<br/>[utilities.py]"]
  node_plot["Plotting<br/>[plot.py]"]
end

node_user(("Simulation user"))

node_user -->|"configures and runs"| node_api
node_api -->|"constructs farm"| node_windfarm
node_api -->|"uses port"| node_port
node_api -->|"uses configuration"| node_library
node_api -->|"uses model types"| node_data
node_user -.->|"selects inputs"| node_templates
node_environment -->|"uses time helpers"| node_time
node_environment -->|"logs events"| node_logging
node_windfarm -->|"constructs systems"| node_system
node_windfarm -->|"constructs cables"| node_cable
node_system -->|"uses components"| node_subassembly
node_equipment -->|"processes requests"| node_repair
node_equipment -->|"repairs farm systems"| node_windfarm
node_port -->|"dispatches vessels"| node_equipment
node_cable -->|"registers repair requests"| node_repair
node_metrics -->|"uses data access"| node_library
node_user -.->|"reviews outputs"| node_metrics
node_user -.->|"plots results"| node_plot
node_utilities -.->|"provides calculations"| node_user

click node_api "https://github.com/nlrwindsystems/wombat/blob/main/wombat/core/simulation_api.py"
click node_environment "https://github.com/nlrwindsystems/wombat/blob/main/wombat/core/environment.py"
click node_library "https://github.com/nlrwindsystems/wombat/blob/main/wombat/core/library.py"
click node_data "https://github.com/nlrwindsystems/wombat/blob/main/wombat/core/data_classes.py"
click node_templates "https://github.com/nlrwindsystems/wombat/tree/main/library"
click node_windfarm "https://github.com/nlrwindsystems/wombat/blob/main/wombat/windfarm/windfarm.py"
click node_system "https://github.com/nlrwindsystems/wombat/blob/main/wombat/windfarm/system/system.py"
click node_subassembly "https://github.com/nlrwindsystems/wombat/blob/main/wombat/windfarm/system/subassembly.py"
click node_cable "https://github.com/nlrwindsystems/wombat/blob/main/wombat/windfarm/system/cable.py"
click node_repair "https://github.com/nlrwindsystems/wombat/blob/main/wombat/core/repair_management.py"
click node_equipment "https://github.com/nlrwindsystems/wombat/blob/main/wombat/core/service_equipment.py"
click node_port "https://github.com/nlrwindsystems/wombat/blob/main/wombat/core/port.py"
click node_mixins "https://github.com/nlrwindsystems/wombat/blob/main/wombat/core/mixins.py"
click node_metrics "https://github.com/nlrwindsystems/wombat/blob/main/wombat/core/post_processor.py"
click node_time "https://github.com/nlrwindsystems/wombat/blob/main/wombat/utilities/time.py"
click node_logging "https://github.com/nlrwindsystems/wombat/blob/main/wombat/utilities/logging.py"
click node_utilities "https://github.com/nlrwindsystems/wombat/blob/main/wombat/utilities/utilities.py"
click node_plot "https://github.com/nlrwindsystems/wombat/blob/main/wombat/utilities/plot.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_api,node_environment,node_library,node_data,node_templates,node_user toneBlue
class node_windfarm,node_system,node_subassembly,node_cable toneAmber
class node_repair,node_equipment,node_port,node_mixins toneMint
class node_metrics,node_time,node_logging,node_utilities,node_plot toneRose
```

## Components

### Simulation setup

- [Simulation API](https://github.com/nlrwindsystems/wombat/blob/main/wombat/core/simulation_api.py): `wombat/core/simulation_api.py`
- [Simulation environment](https://github.com/nlrwindsystems/wombat/blob/main/wombat/core/environment.py): `wombat/core/environment.py`
- [Configuration libraries](https://github.com/nlrwindsystems/wombat/blob/main/wombat/core/library.py): `wombat/core/library.py`
- [Model data types](https://github.com/nlrwindsystems/wombat/blob/main/wombat/core/data_classes.py): `wombat/core/data_classes.py`
- [Example datasets](https://github.com/nlrwindsystems/wombat/tree/main/library): `library`

### Wind-farm model

- [Wind farm](https://github.com/nlrwindsystems/wombat/blob/main/wombat/windfarm/windfarm.py): `wombat/windfarm/windfarm.py`
- [Turbine systems](https://github.com/nlrwindsystems/wombat/blob/main/wombat/windfarm/system/system.py): `wombat/windfarm/system/system.py`
- [Subassemblies](https://github.com/nlrwindsystems/wombat/blob/main/wombat/windfarm/system/subassembly.py): `wombat/windfarm/system/subassembly.py`
- [Cable systems](https://github.com/nlrwindsystems/wombat/blob/main/wombat/windfarm/system/cable.py): `wombat/windfarm/system/cable.py`

### O&M operations

- [Repair manager](https://github.com/nlrwindsystems/wombat/blob/main/wombat/core/repair_management.py): `wombat/core/repair_management.py`
- [Service equipment](https://github.com/nlrwindsystems/wombat/blob/main/wombat/core/service_equipment.py): `wombat/core/service_equipment.py`
- [Offshore port](https://github.com/nlrwindsystems/wombat/blob/main/wombat/core/port.py): `wombat/core/port.py`
- [Repair behaviors](https://github.com/nlrwindsystems/wombat/blob/main/wombat/core/mixins.py): `wombat/core/mixins.py`

### Results and utilities

- [Metrics and costs](https://github.com/nlrwindsystems/wombat/blob/main/wombat/core/post_processor.py): `wombat/core/post_processor.py`
- [Time utilities](https://github.com/nlrwindsystems/wombat/blob/main/wombat/utilities/time.py): `wombat/utilities/time.py`
- [Event logging](https://github.com/nlrwindsystems/wombat/blob/main/wombat/utilities/logging.py): `wombat/utilities/logging.py`
- [Wind and energy utilities](https://github.com/nlrwindsystems/wombat/blob/main/wombat/utilities/utilities.py): `wombat/utilities/utilities.py`
- [Plotting](https://github.com/nlrwindsystems/wombat/blob/main/wombat/utilities/plot.py): `wombat/utilities/plot.py`

### Other components

- **Simulation user**

## Connections

- Simulation user → Simulation API: configures and runs
- Simulation API → Wind farm: constructs farm (evidence: `wombat/core/simulation_api.py`)
- Simulation API → Offshore port: uses port (evidence: `wombat/core/simulation_api.py`)
- Simulation API → Configuration libraries: uses configuration (evidence: `wombat/core/simulation_api.py`)
- Simulation API → Model data types: uses model types (evidence: `wombat/core/simulation_api.py`)
- Simulation user → Example datasets: selects inputs
- Simulation environment → Time utilities: uses time helpers (evidence: `wombat/core/environment.py`)
- Simulation environment → Event logging: logs events (evidence: `wombat/core/environment.py`)
- Wind farm → Turbine systems: constructs systems (evidence: `wombat/windfarm/windfarm.py`)
- Wind farm → Cable systems: constructs cables (evidence: `wombat/windfarm/windfarm.py`)
- Turbine systems → Subassemblies: uses components (evidence: `wombat/windfarm/system/system.py`)
- Service equipment → Repair manager: processes requests (evidence: `wombat/core/service_equipment.py`)
- Service equipment → Wind farm: repairs farm systems (evidence: `wombat/core/service_equipment.py`)
- Offshore port → Service equipment: dispatches vessels (evidence: `wombat/core/port.py`)
- Cable systems → Repair manager: registers repair requests (evidence: `wombat/windfarm/system/cable.py`)
- Metrics and costs → Configuration libraries: uses data access (evidence: `wombat/core/post_processor.py`)
- Simulation user → Metrics and costs: reviews outputs
- Simulation user → Plotting: plots results
- Wind and energy utilities → Simulation user: provides calculations
