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

Run FAST.Farm on windows. #2241

Open
CaiZhiming-HHU opened this issue May 28, 2024 · 6 comments
Open

Run FAST.Farm on windows. #2241

CaiZhiming-HHU opened this issue May 28, 2024 · 6 comments

Comments

@CaiZhiming-HHU
Copy link

Dear all,
When I run the IEA-15MW-Semi case on windows using FAST.Farm (compiled and installed using MinGW), it always terminating the process after "Running WakeDynamics." without any error messages and without generating any files. OpenFAST is working fine, I don't know what's going on, and I'd appreciate any advice.

CMD display when running FAST.Farm👇
image
CMD display when running OpenFAST👇
image
@NRELAdmin @jjonkman @bjonkman

@andrew-platt
Copy link
Collaborator

Which version are you running?

@CaiZhiming-HHU
Copy link
Author

Which version are you running?

Is openfast-3.5.3.

@andrew-platt andrew-platt self-assigned this May 28, 2024
@jjonkman
Copy link
Collaborator

Dear @CaiZhiming-HHU,

Do you have any any issues running the precompiled version of FAST.Farm for Windows as provided with the release of OpenFAST v3.5.3?

Best regards,

@CaiZhiming-HHU
Copy link
Author

CaiZhiming-HHU commented May 29, 2024

Dear @CaiZhiming-HHU,

Do you have any any issues running the precompiled version of FAST.Farm for Windows as provided with the release of OpenFAST v3.5.3?

Best regards,

image
This is what I encountered when I ran the precompiled version of FAST.Farm for Windows as provided with the release of OpenFAST v3.5.3. This problem only occurs when the IEA-15MW-Semi case calculation is run, and the NREL-5MW TSinflow case calculation behaves normally.

@jjonkman
Copy link
Collaborator

Dear @CaiZhiming-HHU,

The FAST.Farm TSinflow r-test uses OpenFAST models of the NREL 5-MW baseline wind turbine. Did you change this r-test to use OpenFAST models of the IEA Wind 15-MW RWT atop the VolturnUS semisubmersible? Can you share your updated FAST.Farm primary input (.fstf) file?

Best regards,

@CaiZhiming-HHU
Copy link
Author

IEA Wind 15-MW RWT atop the VolturnUS semisubmersible

I added the configuration files required by FAST.Farm (including the main input file .fstf) to the OpenFAST test case of https://github.com/IEAWindTask37/IEA-15-240-RWT/tree/master/OpenFAST/IEA-15-240-RWT-UMaineSemi. So the FAST.Farm test case of "IEA Wind 15-MW RWT atop the VolturnUS semisubmersible" is constructed.
In fact, I compiled and installed openfast-3.5.3 on a CentOS 7 system using gcc-11.1.0, and successfully run the FAST.Farm test case of "IEA Wind 15-MW RWT atop the VolturnUS semisubmersible" adapted by me.
But I was not satisfied with this, I wanted to successfully run this FAST.Farm test case on the Windows system, so I went through a series of attempts, and finally failed.
As you can see, first I used the precompiled FAST.Farm binary with stack overflow error, then I used MinGW (based on gcc-12.2.0) to compile and install openfast-3.5.3. The installation was successful, but when I executed the FAST.Farm command, it always terminating the process after "Running WakeDynamics." without any error messages and without generating any files.
This is my FAST.Farm primary input (.fstf) file👇
fstf
This is a visualization file that I processed after running it on a CentOS 7 system👇
15MW
Of course, I know that ROSCO requires different controllers (.so/.dll) in two different operating systems, and I take that into account.
In addition, I also tried to use MinGW (gcc-11.1.0), MinGW (gcc-13.2.0) and MinGW (gcc-10.2.0) to compile and install openfast-3.5.3 on Windows, the results are the same, the installation process is smooth, but When I run the IEA-15MW-Semi case on windows using FAST.Farm, it always terminating the process after "Running WakeDynamics." without any error messages and without generating any files.

andrew-platt added a commit to andrew-platt/openfast that referenced this issue Oct 8, 2024
We have been having issues with stack overflows in FAST.Farm when large
wind grids were passed to AWAE.  This was eventually tracked down to
line 1078 in AWAE.f90 which reads:
`m%u_IfW_Low%PositionXYZ = p%Grid_low`
The `p%Grid_low` is of unknown size at compile time, but can be
extremely large (3x160000 or more).  This copy involves a temporary
array and would normally be handled on the stack, but could result in
an overflow for some models.  By setting the `/heap-arrays:1000` any
operation resulting in a temporary array of unknown array size at
compile time will use the heap for the temprary array, and as will any
array known at compile time to be larger than 1000 kB.

Testing shows that this fixes issue OpenFAST#2053, and will likely also solve OpenFAST#843 and OpenFAST#2241

See
https://www.intel.com/content/www/us/en/docs/fortran-compiler/developer-guide-reference/2024-2/heap-arrays.html
for reference.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants