Skip to content

Conversation

@andrew-platt
Copy link
Collaborator

@andrew-platt andrew-platt commented May 10, 2024

This pull request is ready to be merged

NOTE: this is a duplicated of #1785 that was prematurely closed by the deletion of the dev-unstable-pointers branch.

Feature or improvement description
Implementation of the wake-added turbulence into FAST.Farm

Impacted areas of the software
FAST.Farm

Additional supporting information
The feature and input file changes has been documented, but it requires the calibration of its two main constants.
r-tests and additional documentation will follow after the calibration.

The following additional inputs are added to the input file:

--- WAKE-ADDED TURBULENCE ---
0                  WAT                - Switch between wake-added turbulence box options {0: no wake added turbulence, 1: predefined turbulence box, 2: user defined turbulence box} (switch)
"Inflow/WAT/isoturb_1024x32x16.u" WAT_BoxFile  - Filepath to the file containing the u-component of the turbulence box (either predefined or user-defined) (quoted string)
1024, 32, 16       WAT_NxNyNz         - Number of points in the x, y, and z directions of the WAT_BoxFile [used only if WAT=2, derived value if WAT=1] (-)
5.5, 4.0, 4.0      WAT_DxDyDz         - Distance (in meters) between points in the x, y, and z directions of the WAT_BoxFile [used only if WAT=2, derived value if WAT=1] (m)
default            WAT_ScaleBox       - Flag to scale the input turbulence box to zero mean and unit standard deviation at every node [DEFAULT=False] (flag)
0.5                WAT_k_Def          - Calibrated parameter for the influence of the wake deficit in the wake-added turbulence [>=0.0, no upper bound] or DEFAULT [DEFAULT=NONE]
0.5                WAT_k_Grad         - Calibrated parameter for the influence of the radial velocity gradient of the wake deficit in the wake-added turbulence [>=0.0, no upper bound] or DEFAULT [DEFAULT=NONE]
default            WAT_D_BrkDwn       - Downstream distance in rotor diameter after which WAT scaling has reached 100% capacity [>=0] or DEFAULT [DEFAULT=1] (D)

Test results, if applicable
Test results are unchanged.

  • Implement the downstream evolution of kdef and kgrad using eddy viscosity function and 4 input parameters

Co-authored-by: @ebranlard

andrew-platt and others added 30 commits April 25, 2023 12:12
…as a FileInfoType)

Changed some variables for more descriptive meaning
Also added some checks for grid size for AWAE with Mod_AmbWind 2,3 -- really cryptic errors otherwise
Also removed extra whitespace in AWAE.f90
AWAE could trigger a segfault in IfW if there are output channels but no lidar
There isn't any reason to use the full InflowWind_Init when we only want the data for the HAWC format and don't care about lidar or other stuff.
That is one very ugly routine.  I don't even know how it works (not sure how Nxyz(2:3) get set).
@andrew-platt andrew-platt self-assigned this May 10, 2024
@andrew-platt
Copy link
Collaborator Author

andrew-platt commented May 10, 2024

Todo:

@andrew-platt andrew-platt changed the title F/ffwat Wake-added turbulence in FAST.Farm May 10, 2024
These were probably removed in this branch, but the merge conflict with dev wasn't handled right in the previuos merge.
@andrew-platt
Copy link
Collaborator Author

andrew-platt commented May 13, 2024

For finalizing (comment from old PR):

Downstream wake measurements change slightly, as do loads and measurements on downstream turbines.
@andrew-platt
Copy link
Collaborator Author

andrew-platt commented May 14, 2024

To do before merge:

  • Add default option to k_def & k_grad to use function outlined in the paper instead of constant values.

The k_def and k_grad tuning parameters were converted to functions of the distance downstram from the turbine (see Torque 2024 paper by E. Branlard)
@andrew-platt
Copy link
Collaborator Author

Test_8mps_1Turb_WAT_Off 0014
Figure 1: 8 mps, single turbine, without WAT

Test_8mps_1Turb_WAT_New 0017
Figure 2: 8 mps, single turbine, with WAT using default values for k_def and k_grad

- remove WAT_k_Off (unnecessary extra input)
- minor language fix in FF input files WAT section, and true up some other comments
- Add WAT_k_Def{_k_c _FMin _DMin _DMax _Exp} variables for easier understanding of code
@andrew-platt
Copy link
Collaborator Author

Updated format of the WAT section:

--- WAKE-ADDED TURBULENCE ---
2                  WAT                - Switch between wake-added turbulence box options {0: no wake added turbulence, 1: predefined turbulence box, 2: user defined turbulence box} (switch)
"../WAT_MannBoxDB/FFDB_D100_512x512x64.u" WAT_BoxFile  - Filepath to the file containing the u-component of the turbulence box (either predefined or user-defined) (quoted string)
512, 512, 64       WAT_NxNyNz         - Number of points in the x, y, and z directions of the WAT_BoxFile [used only if WAT=2, derived value if WAT=1] (-)
5.0, 5.0, 5.0      WAT_DxDyDz         - Distance (in meters) between points in the x, y, and z directions of the WAT_BoxFile [used only if WAT=2, derived value if WAT=1] (m)
default            WAT_ScaleBox       - Flag to scale the input turbulence box to zero mean and unit standard deviation at every node [DEFAULT=False] (flag)
default            WAT_k_Def          - Calibrated parameters for the influence of the maximum wake deficit on wake-added turbulence (set of 5 parameters: k_Def, FMin, DMin, DMax, Exp) (-) [>=0.0, >=0.0 and <=1.0, >=0.0, >DMin, >0.0] or DEFAULT [DEFAULT=[0.6, 0.0, 0.0, 2.0, 1.0 ]]
default            WAT_k_Grad         - Calibrated parameters for the influence of the radial velocity gradient of the wake deficit on wake-added turbulence (set of 5 parameters: k_Grad, FMin, DMin, DMax, Exp) (-) [>=0.0, >=0.0 and <=1.0, >=0.0, >DMin, >0.0] or DEFAULT [DEFAULT=[3.0, 0.0, 0.0, 12.0, 0.65]

and updates to the k_vAmb and k_vShr inputs section:
previous:

DEFAULT       k_vAmb        - Calibrated parameter for the influence of ambient turbulence in the eddy viscosity (-) [>=0.0] or DEFAULT [DEFAULT=0.05 ]
DEFAULT       k_vShr        - Calibrated parameter for the influence of the shear layer in the eddy viscosity (-) [>=0.0] or DEFAULT [DEFAULT=0.016]
DEFAULT       C_vAmb_DMin   - Calibrated parameter in the eddy viscosity filter function for ambient turbulence defining the transitional diameter fraction between the minimum and exponential regions (-) [>=0.0 ] or DEFAULT [DEFAULT= 0.0 ]
DEFAULT       C_vAmb_DMax   - Calibrated parameter in the eddy viscosity filter function for ambient turbulence defining the transitional diameter fraction between the exponential and maximum regions (-) [> C_vAmb_DMin ] or DEFAULT [DEFAULT= 1.0 ]
DEFAULT       C_vAmb_FMin   - Calibrated parameter in the eddy viscosity filter function for ambient turbulence defining the value in the minimum region (-) [>=0.0 and <=1.0] or DEFAULT [DEFAULT= 1.0 ]
DEFAULT       C_vAmb_Exp    - Calibrated parameter in the eddy viscosity filter function for ambient turbulence defining the exponent in the exponential region (-) [> 0.0 ] or DEFAULT [DEFAULT= 0.01]
DEFAULT       C_vShr_DMin   - Calibrated parameter in the eddy viscosity filter function for the shear layer defining the transitional diameter fraction between the minimum and exponential regions (-) [>=0.0 ] or DEFAULT [DEFAULT= 3.0 ]
DEFAULT       C_vShr_DMax   - Calibrated parameter in the eddy viscosity filter function for the shear layer defining the transitional diameter fraction between the exponential and maximum regions (-) [> C_vShr_DMin ] or DEFAULT [DEFAULT=25.0 ]
DEFAULT       C_vShr_FMin   - Calibrated parameter in the eddy viscosity filter function for the shear layer defining the value in the minimum region (-) [>=0.0 and <=1.0] or DEFAULT [DEFAULT= 0.2 ]
DEFAULT       C_vShr_Exp    - Calibrated parameter in the eddy viscosity filter function for the shear layer defining the exponent in the exponential region (-) [> 0.0 ] or DEFAULT [DEFAULT= 0.1 ]

New:

DEFAULT       k_vAmb        - Calibrated parameters for the influence of the ambient turbulence in the eddy viscosity (set of 5 parameters: k, FMin, DMin, DMax, Exp) (-) [>=0.0, >=0.0 and <=1.0, >=0.0, >DMin, >0.0] or DEFAULT [DEFAULT=0.05, 1.0, 0.0, 1.0, 0.01]
DEFAULT       k_vShr        - Calibrated parameters for the influence of the shear layer in the eddy viscosity (set of 5 parameters: k, FMin, DMin, DMax, Exp) (-) [>=0.0, >=0.0 and <=1.0, >=0.0, >DMin, >0.0] or DEFAULT [DEFAULT=0.016, 0.2, 3.0, 25.0, 0.1]
D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants