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

Unable to Simulate Wind Turbine Wake with FAST.Farm due to 'FFCaseCreation' AttributeError #38

Open
xiaomi4356 opened this issue Jan 27, 2025 · 0 comments

Comments

@xiaomi4356
Copy link

Purpose:
I aim to use the Dynamic Wake Meandering (DWM) module to simulate the wake field of a wind turbine. I am not interested in coupling with control modules. The turbine model I am using is NRELOffshrBsline5MW_OC4DeepCwindSemi. My goal is to obtain a working code example for my setup, as I do not have access to an HPC cluster.

Description of the Issue:
When running the provided script to simulate the wake field using the DWM module in FAST.Farm, I encounter the following error during execution:

Creating auxiliary arrays for all conditions and cases...
Creating 1 conditions
Creating auxiliary arrays for all conditions and cases... Done.
Creating directory structure and copying files... Done.
[WARN] fastfarm\5MW_OC4Semi_WSt_WavesWN\NRELOffshrBsline5MW_OC4DeepCwindSemi_HydroDyn.dat: Line 225: number of data different from number of column names. ColumnNames: ['FillNumM', 'FillMList', 'FillFSLoc', 'FillDens']
!!!!!! WARNING !!!!!!!!!
The new method for computing all the high-box cases is not producing the same set of cases as the old algorithm.
This should only happen if you have complex sweeps that you modified manually after the code creates the initial arrays
Check the variable .allHighBoxCases_old to see the cases using the old algorithm
Check the variable .allHighBoxCases to see the cases using the new algorithm
You should check which xr.dataset has the correct, unique inflow_deg values. The correct array will only have unique values

The new method appears to be correct here! Trust but verify

!!!!!!!!!!!!!!!!!!!!!!!!

The y offset between the turbine ref frame and turbsim is -0.0
The x offset between the turbine ref frame and turbsim is -375.0

Processing condition Cond00_v10.0_PL0.2_TI10
No controller given through libdiscon/DLL. Using VSContrl 5 from the template files.
Traceback (most recent call last):
File "d:\ZXJ\Code\fastfarm\code4run\Ex3_FFarmCompleteSetup.py", line 104, in
case.copyTurbineFilesForEachCase()
File "d:\zxj\code\openfast_toolbox\openfast_toolbox\fastfarm\FASTFarmCaseCreation.py", line 699, in copyTurbineFilesForEachCase
self.turbineFile['TMax'] = self.tmax
AttributeError: 'FFCaseCreation' object has no attribute 'turbineFile'
PS D:\ZXJ\Code>

Here is my python code:

Image

Questions:
Is the turbineFile attribute meant to be initialized in the FFCaseCreation class? If so, could you provide guidance on its expected structure?
Should the HydroDyn.dat file format be corrected, or is this warning unrelated to the issue?
Could you confirm if the script setup aligns with the use of Dynamic Wake Meandering (DWM) without involving control modules?

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

No branches or pull requests

1 participant