-
Notifications
You must be signed in to change notification settings - Fork 10
Docs overhaul #133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
cfrontin
merged 41 commits into
NLRWindSystems:develop
from
cfrontin:feature/docs_overhaul
Sep 15, 2025
Merged
Docs overhaul #133
Changes from all commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
f0892d1
enable passing opt_settings to openmdao
jaredthomas68 7c75195
Merge remote-tracking branch 'origin/develop' into develop
jaredthomas68 af6132c
some touch-ups to get started
cfrontin 807ef7a
Merge branch 'develop' into feature/docs_overhaul
cfrontin 0761572
updates to logo and documentation
cfrontin 735f16c
cherrypick some improvements for beta out of offshore-development
cfrontin 9fa8446
black update
cfrontin 8a66076
Merge branch 'develop' into feature/docs_overhaul
cfrontin a7e9d98
black reformat
cfrontin 3474c24
Merge branch 'develop' into feature/docs_overhaul
cfrontin f6fb9eb
address copilot comments
cfrontin 46944a9
Merge branch 'develop' into feature/docs_overhaul
cfrontin 025de27
update some docs
cfrontin 8776d0a
addressing jared comments
cfrontin 5eee45e
update installation page
cfrontin de46a70
a tranche of docs mods
cfrontin f9e8d25
a new tranche of edits
cfrontin a2cf1d7
more cleanup
cfrontin 48773a2
adjust some busted windio yamls and involved documentation
cfrontin 457870f
update with examples
cfrontin 37ae184
example one working it appears
cfrontin d2993b5
attempt nb example stuff
cfrontin abd664e
adjust find nb script
cfrontin f451954
adjust again
cfrontin 22af041
save example 02 notebook
cfrontin e4015a8
added example 02 to docs
cfrontin f496539
add jupyter to dev requirements
cfrontin 299c4e4
temporary withhold non-notebook tests, and update 02 notebook.
cfrontin 0feec78
update file location
cfrontin 2a8d330
update examples
cfrontin 70ee75d
try try again
cfrontin 1516eef
actually relative paths are apparently better...
cfrontin b645d47
update through ex 03
cfrontin f4f4929
re-enable full testing sweet
cfrontin 15f82f7
tiny fix
cfrontin 277fc32
fix wordiness
cfrontin cedc5de
docs playing nicely now
cfrontin c594ea6
reorganize mv typo
cfrontin e0a61c0
fix consolidated CI/CD to restore precedence.
cfrontin ea82c2e
incorporate pietro's comments from cfrontin/Ard PR#4
cfrontin 0dfd0d0
Merge remote-tracking branch 'upstream/develop' into feature/docs_ove…
cfrontin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -55,6 +55,7 @@ def plot_layout( | |
| save_path: os.PathLike = None, | ||
| save_kwargs: dict = {}, | ||
| include_cable_routing: bool = False, | ||
| include_mooring_system: bool = False, | ||
| ): | ||
| """ | ||
| plot the layout of a farm | ||
|
|
@@ -108,8 +109,8 @@ def plot_layout( | |
|
|
||
| # adjust plot limits | ||
| x_lim, y_lim = get_limits(windIO_dict) | ||
| ax.set_xlim([x * 1e3 for x in x_lim]) | ||
| ax.set_ylim([y * 1e3 for y in y_lim]) | ||
| ax.set_xlim(x_lim) | ||
| ax.set_ylim(y_lim) | ||
|
|
||
| if include_cable_routing: | ||
| optiwindnet.plotting.gplot( | ||
|
|
@@ -122,6 +123,34 @@ def plot_layout( | |
| landscape=False, | ||
| ) | ||
|
|
||
| if include_mooring_system: | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Have you successfully run this with cable and mooring? I think we may need to have the mooring plot last. |
||
| # get the coordinates of the anchors | ||
jaredthomas68 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| x_anchors = ard_prob.get_val("x_anchors", units="m") | ||
| y_anchors = ard_prob.get_val("y_anchors", units="m") | ||
|
|
||
| # loop over the anchors and plot from their originating turbine to each | ||
| for idx_turbine in range( | ||
| input_dict["modeling_options"]["layout"]["N_turbines"] | ||
| ): | ||
| for idx_anchor in range( | ||
| input_dict["modeling_options"]["platform"]["N_anchors"] | ||
| ): | ||
| ax.plot( | ||
| [x_turbines[idx_turbine], x_anchors[idx_turbine, idx_anchor]], | ||
| [y_turbines[idx_turbine], y_anchors[idx_turbine, idx_anchor]], | ||
| "-r", | ||
| alpha=0.25, | ||
| ) | ||
| # plot the anchors as red circles | ||
| ax.plot( | ||
| x_anchors[idx_turbine, :], | ||
| y_anchors[idx_turbine, :], | ||
| "or", | ||
| alpha=0.25, | ||
| ) | ||
|
|
||
| ax.axis("equal") | ||
|
|
||
| # show, save, or return | ||
| if save_path is not None: | ||
| plt.savefig(save_path, save_kwargs) | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,83 @@ | ||
| modeling_options: &modeling_options | ||
| windIO_plant: !include windio.yaml | ||
| layout: | ||
| N_turbines: 25 | ||
| N_substations: 1 | ||
| site_depth: 200.0 | ||
| collection: | ||
| max_turbines_per_string: 8 | ||
| solver_name: "highs" | ||
| solver_options: | ||
| time_limit: 60 | ||
| mip_gap: 0.02 | ||
| model_options: | ||
| topology: "branched" | ||
| feeder_route: "segmented" | ||
| feeder_limit: "unlimited" | ||
|
|
||
| system: | ||
| type: group | ||
| systems: | ||
| aepFLORIS: | ||
| type: component | ||
| module: ard.farm_aero.floris | ||
| object: FLORISAEP | ||
| promotes: ["x_turbines", "y_turbines", "AEP_farm"] | ||
| kwargs: | ||
| modeling_options: *modeling_options | ||
| case_title: "offshore-floating" | ||
| data_path: | ||
| collection: | ||
| type: component | ||
| module: ard.collection | ||
| object: OptiwindnetCollection | ||
| promotes: ["x_turbines", "y_turbines"] | ||
| kwargs: | ||
| modeling_options: *modeling_options | ||
| spacing_constraint: | ||
| type: component | ||
| module: ard.layout.spacing | ||
| object: TurbineSpacing | ||
| promotes: ["x_turbines", "y_turbines"] | ||
| kwargs: | ||
| modeling_options: *modeling_options | ||
| boundary: | ||
| type: component | ||
| module: ard.layout.boundary | ||
| object: FarmBoundaryDistancePolygon | ||
| promotes: ["*"] | ||
| kwargs: | ||
| modeling_options: *modeling_options | ||
|
|
||
| analysis_options: | ||
| driver: | ||
| name: ScipyOptimizeDriver | ||
| options: | ||
| optimizer: COBYLA # SLSQP | ||
| # maxiter: 100 | ||
| design_variables: | ||
| x_turbines: | ||
| units: "m" | ||
| lower: -0.0 | ||
| upper: 3000.0 | ||
| scaler: 0.0005897339121 # 1/(7*D_rotor) | ||
| y_turbines: | ||
| units: "m" | ||
| lower: -0.0 | ||
| upper: 1250.0 | ||
| scaler: 0.0005897339121 # 1/(7*D_rotor) | ||
| constraints: | ||
| spacing_constraint.turbine_spacing: | ||
| units: "m" | ||
| lower: 0.001376045795 # 1/(3*D_rotor) | ||
| scaler: 0.004128137384 # 1/D_rotor | ||
| boundary_distances: | ||
| units: "m" | ||
| upper: 0.0 | ||
| scaler: 0.004128137384 # 1/D_rotor | ||
jaredthomas68 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| objective: | ||
| name: AEP_farm | ||
| options: | ||
| scaler: -1.0e-9 | ||
| recorder: | ||
| filepath: opt_results.sql | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.