Open Chengyue810 opened 4 weeks ago
In order to use TurbineFastLine, you need to compile with the OpenFAST flag on. If you're compiling from source, this can be done with the following commands:
cd path/to/amr-wind/source/code
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/PATH/TO/DESIRED/INSTALL/LOCATION -DAMR_WIND_ENABLE_OPENFAST=ON -DOpenFAST_DIR=PATH/TO/OPENFAST/INSTALL/DIRECTORY/lib/cmake/OpenFAST -DAMR_WIND_ENABLE_MPI=ON
make
make install
You can turn the MPI flag off if you want. But as I recently learned, you need it on if you'll be running more than one turbine.
Thank you very much for your reply, I have solved the above problem, but it still ends abnormally. Is it due to NetCDF not compiling correctly, although I thought I took this part into account during the compilation process
OpenFAST input file heading: FAST Certification Test #01: NREL 5.0 MW Baseline Wind Turbine (Onshore)
mpirun noticed that process rank 0 with PID 0 on node DESKTOP-KJ7DS8K exited on signal 11 (Segmentation fault).
NetCDF might be the problem. I think the sampling feature might choose the netcdf format by default. . What if you comment out all your sampling lines from the input files? Does it work then?
Have you been able to follow the above suggestion and are you still facing this problem?
I encountered the following problems in the process of learning to use TurbineFASTLine. Is this due to the version of TurbineFastline
AMR-Wind version :: v2.1.0-18-gf43b0713 AMR-Wind Git SHA :: f43b071303b755ff994e8346e028a27f326723de AMReX version :: 24.05-20-g5d02c6480a0d
Exec. time :: Mon Jun 3 20:06:01 2024 Build time :: Jun 3 2024 01:13:25 C++ compiler :: GNU 11.4.0
MPI :: OFF GPU :: OFF OpenMP :: OFF
No additional third-party libraries enabled
See https://github.com/Exawind/amr-wind/blob/development/LICENSE for details.
Initializing AMReX (24.05-20-g5d02c6480a0d)... AMReX (24.05-20-g5d02c6480a0d) initialized Initializing AMR-Wind ... Initializing boundary conditions for velocity_mueff Initializing boundary conditions for velocity Initializing boundary conditions for density Initializing boundary conditions for p Initializing boundary conditions for velocity_src_term Initializing boundary conditions for gp Creating PDESystem instance: ICNS-Godunov Creating Physics instance: FreeStream Creating Physics instance: Actuator Creating TurbulenceModel instance: Laminar-ConstTransport Creating RefinementCriteria instance: GeometryRefinement (-200 -200 -200) (200 -200 -200) (200 200 -200) (-200 200 -200) (-200 -200 200) (200 -200 200) (200 200 200) (-200 200 200) Creating GeometryType instance: box Creating PostProcessBase instance: Sampling Initializing I/O manager Creating UDF instance: ConstValue Creating UDF instance: ConstValue ActuatorModel 4
FlatPlateLine terminate called after throwing an instance of 'std::runtime_error' what(): In ActuatorModel cannot find instance: TurbineFastLine
Primary job terminated normally, but 1 process returned a non-zero exit code. Per user-direction, the job has been aborted.
mpirun noticed that process rank 0 with PID 0 on node DESKTOP-KJ7DS8K exited on signal 6 (Aborted).