WECDevice
API Reference
Individual Wave Energy Converter device with time-series power output data.
Represents a single wave energy converter with simulation results, grid connection parameters, and metadata. Contains time-series power output data from WEC-Sim hydrodynamic simulations for realistic renewable generation modeling.
Attributes:
Name | Type | Description |
---|---|---|
name |
str
|
Unique device identifier, typically "{model}{sim_id}". |
dataframe |
DataFrame
|
Primary time-series data for grid integration at 5-minute intervals. Columns: time, p [MW], q [MVAr], base [MVA]. |
dataframe_full |
DataFrame
|
High-resolution simulation data with complete WEC-Sim output including wave elevation and device states. |
base |
float
|
Base power rating [MVA] for per-unit calculations. |
bus_location |
int
|
Power system bus number for grid connection. |
model |
str
|
WEC device model type ("RM3", "LUPA", etc.). |
sim_id |
int
|
Database simulation identifier for traceability. |
Example
power_data = pd.DataFrame({ ... 'p': [2.5, 3.1, 2.8], # MW ... 'q': [0.0, 0.0, 0.0], # MVAr ... 'base': [100.0] * 3 # MVA ... }) device = WECDevice( ... name="RM3_101_0", ... dataframe=power_data, ... base=100.0, ... bus_location=14, ... model="RM3" ... )
Notes
- Variable power output based on wave conditions
- Typically operates at unity power factor (zero reactive power)
- Primary dataframe at 5-minute resolution for grid compatibility
- Full dataframe contains high-resolution WEC-Sim results
Source code in src/wecgrid/wec/device.py
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 |
|