Skip to content
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

FF: Cartesian grid for AWAE and WD outputs #1305

Merged
merged 6 commits into from
Oct 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 20 additions & 17 deletions docs/source/user/api_change.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,11 @@ Thus, be sure to implement each in order so that subsequent line numbers are cor
OpenFAST v3.3.0 to OpenFAST `dev`
----------------------------------

None



OpenFAST v3.2.0 to OpenFAST v3.3.0
----------------------------------

============================================= ==== ================= ======================================================================================================================================================================================================
Added in OpenFAST v3.3.0
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
============================================= ==== ================= ========================================================================================================================================================================================================
Added in OpenFAST `dev`
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Module Line Flag Name Example Value
============================================= ==== ================= ========================================================================================================================================================================================================
FAST.Farm 9 ModWaveField 2 Mod_WaveField - Wave field handling (-) (switch) {1: use individual HydroDyn inputs without adjustment, 2: adjust wave phases based on turbine offsets from farm origin}
FAST.Farm 10 Mod_SharedMooring 0 Mod_SharedMooring - Shared mooring system model (switch) {0: None, 3=MoorDyn}}
FAST.Farm 13 na ------ SHARED MOORING SYSTEM ------ [used only for Mod_SharedMoor>0]
FAST.Farm 14 SharedMoorFile "" SharedMoorFile - Name of file containing shared mooring system input parameters (quoted string) [used only when Mod_SharedMooring > 0]
FAST.Farm 15 DT_Mooring 0.04 DT_Mooring - Time step for farm-level mooring coupling with each turbine (s) [used only when Mod_SharedMooring > 0]
FAST.Farm 43 Mod_Wake 1 Mod_Wake - Switch between wake formulations {1:Polar, 2:Curl, 3:Cartesian} (-) (switch)
FAST.Farm 67 CurlSection --- CURLED-WAKE PARAMETERS [only used if Mod_Wake=2 or 3] ---
FAST.Farm 68 Swirl False Swirl - Switch to include swirl velocities in wake [only used if Mod_Wake=2 or Mod_Wake=3] (-) (switch)
FAST.Farm 69 k_VortexDecay 0. k_VortexDecay - Vortex decay constant for curl (-)
Expand All @@ -54,14 +41,30 @@ AeroDyn 15 TwrCb 1.0
AeroDyn blade BlCb 0.187 [additional column in *Blade Properties* table]
AeroDyn blade BlCenBn 0.3 [additional column in *Blade Properties* table]
AeroDyn blade BlCenBt 0.1 [additional column in *Blade Properties* table]
AeroDyn driver 54\* WrVTK_Type 1 WrVTK_Type - VTK visualization data type: (switch) {1=surfaces; 2=lines; 3=both}
============================================= ==== ================= ========================================================================================================================================================================================================

\*Exact line number depends on number of entries in various preceeding tables.

\$ The content of the tail fin input file is described in :numref:`TF_tf_input-file`.


OpenFAST v3.2.0 to OpenFAST v3.3.0
----------------------------------


============================================= ==== ================= ========================================================================================================================================================================================================
Added in OpenFAST `3.3.0`
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Module Line Flag Name Example Value
============================================= ==== ================= ========================================================================================================================================================================================================
FAST.Farm 9 ModWaveField 2 Mod_WaveField - Wave field handling (-) (switch) {1: use individual HydroDyn inputs without adjustment, 2: adjust wave phases based on turbine offsets from farm origin}
FAST.Farm 10 Mod_SharedMooring 0 Mod_SharedMooring - Shared mooring system model (switch) {0: None, 3=MoorDyn}}
FAST.Farm 13 na ------ SHARED MOORING SYSTEM ------ [used only for Mod_SharedMoor>0]
FAST.Farm 14 SharedMoorFile "" SharedMoorFile - Name of file containing shared mooring system input parameters (quoted string) [used only when Mod_SharedMooring > 0]
FAST.Farm 15 DT_Mooring 0.04 DT_Mooring - Time step for farm-level mooring coupling with each turbine (s) [used only when Mod_SharedMooring > 0]
AeroDyn driver 54\* WrVTK_Type 1 WrVTK_Type - VTK visualization data type: (switch) {1=surfaces; 2=lines; 3=both}
============================================= ==== ================= ========================================================================================================================================================================================================


============================================= ==== =============== ========================================================================================================================================================================================================
Modified in OpenFAST v3.3.0
Expand Down
10 changes: 6 additions & 4 deletions glue-codes/fast-farm/src/FAST_Farm_Subs.f90
Original file line number Diff line number Diff line change
Expand Up @@ -1468,7 +1468,7 @@ SUBROUTINE Farm_ValidateInput( p, WD_InitInp, AWAE_InitInp, SC_InitInp, ErrStat,
if ((p%DT_mooring <= 0.0_ReKi) .or. (p%DT_mooring > p%DT_high)) CALL SetErrStat(ErrID_Fatal,'DT_mooring must be greater than zero and no greater than dt_high.',ErrStat,ErrMsg,RoutineName)

! --- WAKE DYNAMICS ---
IF (WD_InitInp%Mod_Wake /= 1) CALL SetErrStat(ErrID_Fatal,'Mod_Wake needs to be 1',ErrStat,ErrMsg,RoutineName)
IF (WD_InitInp%Mod_Wake /= 1 .and. WD_InitInp%Mod_Wake /=3) CALL SetErrStat(ErrID_Fatal,'Mod_Wake needs to be 1 or 3',ErrStat,ErrMsg,RoutineName)
IF (WD_InitInp%dr <= 0.0_ReKi) CALL SetErrStat(ErrID_Fatal,'dr (radial increment) must be larger than 0.',ErrStat,ErrMsg,RoutineName)
IF (WD_InitInp%NumRadii < 2) CALL SetErrStat(ErrID_Fatal,'NumRadii (number of radii) must be at least 2.',ErrStat,ErrMsg,RoutineName)
IF (WD_InitInp%NumPlanes < 2) CALL SetErrStat(ErrID_Fatal,'NumPlanes (number of wake planes) must be at least 2.',ErrStat,ErrMsg,RoutineName)
Expand Down Expand Up @@ -2045,7 +2045,8 @@ subroutine FARM_InitialCO(farm, ErrStat, ErrMsg)
farm%AWAE%u%xhat_plane = 0.0_ReKi ! Orientations of wake planes, normal to wake planes, for each turbine
farm%AWAE%u%p_plane = 0.0_ReKi ! Center positions of wake planes for each turbine
farm%AWAE%u%Vx_wake = 0.0_ReKi ! Axial wake velocity deficit at wake planes, distributed radially, for each turbine
farm%AWAE%u%Vr_wake = 0.0_ReKi ! Radial wake velocity deficit at wake planes, distributed radially, for each turbine
farm%AWAE%u%Vy_wake = 0.0_ReKi ! Horizontal wake velocity deficit at wake planes, distributed radially, for each turbine
farm%AWAE%u%Vz_wake = 0.0_ReKi ! "Vertical" wake velocity deficit at wake planes, distributed radially, for each turbine
farm%AWAE%u%D_wake = 0.0_ReKi ! Wake diameters at wake planes for each turbine

!--------------------
Expand Down Expand Up @@ -2921,8 +2922,9 @@ SUBROUTINE Transfer_WD_to_AWAE(farm)
DO nt = 1,farm%p%NumTurbines
farm%AWAE%u%xhat_plane(:,:,nt) = farm%WD(nt)%y%xhat_plane ! Orientations of wake planes, normal to wake planes, for each turbine
farm%AWAE%u%p_plane(:,:,nt) = farm%WD(nt)%y%p_plane ! Center positions of wake planes for each turbine
farm%AWAE%u%Vx_wake(:,:,nt) = farm%WD(nt)%y%Vx_wake ! Axial wake velocity deficit at wake planes, distributed radially, for each turbine
farm%AWAE%u%Vr_wake(:,:,nt) = farm%WD(nt)%y%Vr_wake ! Radial wake velocity deficit at wake planes, distributed radially, for each turbine
farm%AWAE%u%Vx_wake(:,:,:,nt) = farm%WD(nt)%y%Vx_wake2 ! Axial wake velocity deficit at wake planes, distributed radially, for each turbine
farm%AWAE%u%Vy_wake(:,:,:,nt) = farm%WD(nt)%y%Vy_wake2 ! Horizontal wake velocity deficit at wake planes, distributed radially, for each turbine
farm%AWAE%u%Vz_wake(:,:,:,nt) = farm%WD(nt)%y%Vz_wake2 ! "Vertical" wake velocity deficit at wake planes, distributed radially, for each turbine
farm%AWAE%u%D_wake(:,nt) = farm%WD(nt)%y%D_wake ! Wake diameters at wake planes for each turbine
END DO

Expand Down
Loading