|
1 | 1 | """ |
2 | | -Op^3: OptumGX - OpenSeesPy - OpenFAST integrated numerical modeling framework |
3 | | -for offshore wind turbines. |
| 2 | +Op3: OptumGX-OpenSeesPy-OpenFAST integration framework for offshore wind. |
4 | 3 |
|
5 | | -Public API: |
| 4 | +Public API:: |
6 | 5 |
|
7 | | - from op3 import build_foundation, compose_tower_model, cross_compare |
8 | | - from op3 import load_site_config |
9 | | -
|
10 | | - # Build a foundation module |
11 | | - foundation = build_foundation( |
12 | | - mode='distributed_bnwf', |
13 | | - ogx_data='data/fem_results/opensees_spring_stiffness.csv', |
14 | | - scour_depth=1.5, |
15 | | - ) |
16 | | -
|
17 | | - # Compose a full tower + foundation model |
| 6 | + from op3 import build_foundation, compose_tower_model |
| 7 | + foundation = build_foundation(mode='fixed') |
18 | 8 | model = compose_tower_model( |
19 | | - rotor='nrel_5mw', |
20 | | - tower='site_a_rt1', |
| 9 | + rotor='nrel_5mw_baseline', |
| 10 | + tower='nrel_5mw_tower', |
21 | 11 | foundation=foundation, |
22 | 12 | ) |
23 | | -
|
24 | | - # Run eigenvalue analysis |
25 | | - freqs = model.eigen(n_modes=6) |
26 | | -
|
27 | | - # Cross-compare across the 4 foundation modes |
28 | | - results = cross_compare( |
29 | | - rotor='nrel_5mw', |
30 | | - tower='site_a_rt1', |
31 | | - scour_levels=[0.0, 0.5, 1.0, 1.5, 2.0], |
32 | | - ) |
| 13 | + freqs = model.eigen(n_modes=3) |
33 | 14 | """ |
34 | 15 |
|
35 | 16 | from op3.config import load_site_config |
|
0 commit comments