Skip to content

Ability to reorient the array to allow wind direction to align with global x-axis.#16

Merged
lsirkis merged 7 commits intoFloatingArrayDesign:mainfrom
Yuksel-Rudy:main
Apr 22, 2025
Merged

Ability to reorient the array to allow wind direction to align with global x-axis.#16
lsirkis merged 7 commits intoFloatingArrayDesign:mainfrom
Yuksel-Rudy:main

Conversation

@Yuksel-Rudy
Copy link
Collaborator

This function, along with resetArrayCenter is 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:

# Feed in wind direction
wind_direction = 30  # Example wind direction in degrees

# Change array orientation based on wind direction
proj.resetArrayCenter()
proj.arrayReorientation(wind_direction, degrees=True)

One thing to keep in mind is when to use the trimGrids() method in the Project object as if it has been called before, the plot2d plot 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). If trimGrids() is called afterwards, then bathymetry is correct.

An example of 8 turbines with 8 shared lines and 8 shared anchors is provided below:

image

Yuksel-Rudy and others added 7 commits April 18, 2025 13:25
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
@lsirkis lsirkis merged commit 6ca9322 into FloatingArrayDesign:main Apr 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants