Ability to reorient the array to allow wind direction to align with global x-axis.#16
Merged
lsirkis merged 7 commits intoFloatingArrayDesign:mainfrom Apr 22, 2025
Merged
Conversation
1) arrayReorientation: reorients the array such that the wind direction is always aligned with the global x-axis to facilitate extraction to FAST.Farm. 2) getRAFT function updated in Project to reinsert IDs after extracting info so that when called again, an error doesn't occur because of absence of ID key. 3) Platform setPosition function updated to only reposition/reorient anchored lines.
…so that a sample bathymetry of small entries can still work
…ut with the seafloor file in options
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This function, along with
resetArrayCenteris helpful to generate FFarm input files.How. to use:
After having a project object (e.g., `proj'), feed in wind direction, reset array center, and reorients for the wind:
One thing to keep in mind is when to use the
trimGrids()method in the Project object as if it has been called before, theplot2dplot might look weird because some points are missing when interpolating the bathymetry when trimmed (this should not affect anything within the array but it just looks weird in the plot). IftrimGrids()is called afterwards, then bathymetry is correct.An example of 8 turbines with 8 shared lines and 8 shared anchors is provided below: