Dear all,
I hvae built my type 4 wind turbine generator model based on the example available in Simulink, and I am trying to interface my model with OpenFAST to observe the behaviour of the wind turbine under different grid event.
In this model, I have obtained the generator torque, power and pitch angle required in the Simulink Openloop model.
I have tried to execute the Openloop, and the run_opneloop scirpt in MATLAB. Below are the prompt of executing the model in MATLAB:
Run_Openloop
**************************************************************************************************
OpenFAST
Copyright (C) 2023 National Renewable Energy Laboratory
Copyright (C) 2023 Envision Energy USA LTD
This program is licensed under Apache License Version 2.0 and comes with ABSOLUTELY NO WARRANTY.
See the "LICENSE" file distributed with this software for details.
**************************************************************************************************
OpenFAST-Unversioned from e8ec53f9c7f9d3f6a13bfb61dba12a0ca04d8a2f
Compile Info:
- Compiler: Intel(R) Fortran Compiler 2021
- Architecture: 64 bit
- Precision: single
- OpenMP: No
- Date: Mar 14 2023
- Time: 13:38:57
Execution Info:
- Date: 05/13/2023
- Time: 11:47:01+0800
OpenFAST input file heading:
FAST Certification Test #25: NREL 5.0 MW Baseline Wind Turbine with OC4-DeepCwind semi
configuration, for use in offshore analysis
Running ElastoDyn.
Nodal outputs section of ElastoDyn input file not found or improperly formatted.
Running AeroDyn.
AD15 Nodal Outputs: Nodal output section of AeroDyn input file not found or improperly formatted.
Skipping nodal outputs.
Warning: Turning off Unsteady Aerodynamics because polar has constant data. (node 1, blade 1)
Warning: Turning off Unsteady Aerodynamics because polar has constant data. (node 2, blade 1)
Warning: Turning off Unsteady Aerodynamics because polar has constant data. (node 3, blade 1)
Warning: Turning off Unsteady Aerodynamics because polar has constant data. (node 4, blade 1)
Warning: Turning off Unsteady Aerodynamics because polar has constant data. (node 1, blade 2)
Warning: Turning off Unsteady Aerodynamics because polar has constant data. (node 2, blade 2)
Warning: Turning off Unsteady Aerodynamics because polar has constant data. (node 3, blade 2)
Warning: Turning off Unsteady Aerodynamics because polar has constant data. (node 4, blade 2)
Warning: Turning off Unsteady Aerodynamics because polar has constant data. (node 1, blade 3)
Warning: Turning off Unsteady Aerodynamics because polar has constant data. (node 2, blade 3)
Warning: Turning off Unsteady Aerodynamics because polar has constant data. (node 3, blade 3)
Warning: Turning off Unsteady Aerodynamics because polar has constant data. (node 4, blade 3)
Running InflowWind.
Running HydroDyn.
Generating incident wave kinematics and current time history.
Reading in WAMIT output with root name
"C:\Users\Ming\Desktop\OpenFAST_20230127\openfast-3.4.0\openfast-3.4.0\reg_tests\r-test\glue-code
s\openfast\5MW_OC4Semi_WSt_WavesWN/../5MW_Baseline/HydroData/marin_semi".
Computing radiation impulse response functions and wave diffraction forces.
Calculating second order difference-frequency force using the full quadratic transfer function.
Calculating second order sum-frequency force using the full quadratic transfer function.
Running MoorDyn (v2.0.0, 2022-12-08).
This is MoorDyn v2, with significant input file changes from v1.
Copyright: (C) 2022 National Renewable Energy Laboratory, (C) 2019 Matt Hall
Parsing MoorDyn input file:
C:\Users\Ming\Desktop\OpenFAST_20230127\openfast-3.4.0\openfast-3.4.0\reg_tests\r-test\glue-cod
es\openfast\5MW_OC4Semi_WSt_WavesWN/NRELOffshrBsline5MW_OC4DeepCwindSemi_MoorDyn.dat
Created mooring system: 3 lines, 6 points, 0 rods, 0 bodies.
Finalizing initial conditions using dynamic relaxation.
t=2 FairTen 1: 8.67045E+05, 1, 2
t=4 FairTen 1: 9.76411E+05, 8.67045E+05, 1
t=6 FairTen 1: 1.02465E+06, 9.76411E+05, 8.67045E+05
t=8 FairTen 1: 9.87921E+05, 1.02465E+06, 9.76411E+05
t=10 FairTen 1: 1.00205E+06, 9.87921E+05, 1.02465E+06
t=12 FairTen 1: 1.00744E+06, 1.00205E+06, 9.87921E+05
t=14 FairTen 1: 1.00105E+06, 1.00744E+06, 1.00205E+06
t=16 FairTen 1: 9.84904E+05, 1.00105E+06, 1.00744E+06
t=18 FairTen 1: 1.02081E+06, 9.84904E+05, 1.00105E+06
t=20 FairTen 1: 9.98939E+05, 1.02081E+06, 9.84904E+05
t=22 FairTen 1: 9.90994E+05, 9.98939E+05, 1.02081E+06
t=24 FairTen 1: 1.00537E+06, 9.90994E+05, 9.98939E+05
t=26 FairTen 1: 1.00102E+06, 1.00537E+06, 9.90994E+05
t=28 FairTen 1: 1.00011E+06, 1.00102E+06, 1.00537E+06
t=30 FairTen 1: 9.99080E+05, 1.00011E+06, 1.00102E+06
t=32 FairTen 1: 1.00605E+06, 9.99080E+05, 1.00011E+06
t=34 FairTen 1: 9.93077E+05, 1.00605E+06, 9.99080E+05
t=36 FairTen 1: 1.00215E+06, 9.93077E+05, 1.00605E+06
t=38 FairTen 1: 1.00483E+06, 1.00215E+06, 9.93077E+05
t=40 FairTen 1: 9.96028E+05, 1.00483E+06, 1.00215E+06
t=42 FairTen 1: 1.00005E+06, 9.96028E+05, 1.00483E+06
t=44 FairTen 1: 1.00083E+06, 1.00005E+06, 9.96028E+05
t=46 FairTen 1: 1.00198E+06, 1.00083E+06, 1.00005E+06
t=48 FairTen 1: 9.96932E+05, 1.00198E+06, 1.00083E+06
t=50 FairTen 1: 1.00376E+06, 9.96932E+05, 1.00198E+06
t=52 FairTen 1: 9.99020E+05, 1.00376E+06, 9.96932E+05
Fairlead tensions converged to 1 0x0.07ff880107520p-1022fter 52 seconds.
MoorDyn initialization completed.
Running ServoDyn.
Running ServoDyn Interface for Bladed Controllers (using Intel Visual Fortran for Windows/Matlab).
Using legacy Bladed DLL interface.
FAST_InitializeAll:SrvD_Init:ValidatePrimaryData:Yaw angle and rate are not commanded from
Simulink model.
ValidatePrimaryData:Pitch angles are not commanded from Simulink model.
ValidatePrimaryData:Generator torque and power are not commanded from Simulink model.
ValidatePrimaryData:HSS brake is not commanded from Simulink model.
ValidatePrimaryData:Airfoil control is not commanded from Simulink model.
ValidatePrimaryData:Cable control is not commanded from Simulink model.
Time: 0 of 60 seconds.
Time: 1 of 60 seconds. Estimated final completion at 11:48:04.
Time: 2 of 60 seconds. Estimated final completion at 11:47:44.
Time: 3 of 60 seconds. Estimated final completion at 11:47:40.
Time: 4 of 60 seconds. Estimated final completion at 11:47:41.
Time: 5 of 60 seconds. Estimated final completion at 11:47:40.
Time: 6 of 60 seconds. Estimated final completion at 11:47:39.
Time: 7 of 60 seconds. Estimated final completion at 11:47:41.
Time: 8 of 60 seconds. Estimated final completion at 11:47:38.
Time: 9 of 60 seconds. Estimated final completion at 11:47:39.
Time: 10 of 60 seconds. Estimated final completion at 11:47:39.
Time: 11 of 60 seconds. Estimated final completion at 11:47:38.
Time: 12 of 60 seconds. Estimated final completion at 11:47:39.
Time: 13 of 60 seconds. Estimated final completion at 11:47:39.
Time: 14 of 60 seconds. Estimated final completion at 11:47:41.
Time: 15 of 60 seconds. Estimated final completion at 11:47:43.
Time: 16 of 60 seconds. Estimated final completion at 11:47:40.
Time: 17 of 60 seconds. Estimated final completion at 11:47:39.
Time: 18 of 60 seconds. Estimated final completion at 11:47:39.
Time: 19 of 60 seconds. Estimated final completion at 11:47:39.
Time: 20 of 60 seconds. Estimated final completion at 11:47:39.
Time: 21 of 60 seconds. Estimated final completion at 11:47:39.
Time: 22 of 60 seconds. Estimated final completion at 11:47:39.
Time: 23 of 60 seconds. Estimated final completion at 11:47:40.
Time: 24 of 60 seconds. Estimated final completion at 11:47:39.
Time: 25 of 60 seconds. Estimated final completion at 11:47:40.
Time: 26 of 60 seconds. Estimated final completion at 11:47:40.
Time: 27 of 60 seconds. Estimated final completion at 11:47:39.
Time: 28 of 60 seconds. Estimated final completion at 11:47:40.
Time: 29 of 60 seconds. Estimated final completion at 11:47:39.
Time: 30 of 60 seconds. Estimated final completion at 11:47:40.
Time: 31 of 60 seconds. Estimated final completion at 11:47:39.
Time: 32 of 60 seconds. Estimated final completion at 11:47:39.
Time: 33 of 60 seconds. Estimated final completion at 11:47:40.
Time: 34 of 60 seconds. Estimated final completion at 11:47:40.
Time: 35 of 60 seconds. Estimated final completion at 11:47:41.
Time: 36 of 60 seconds. Estimated final completion at 11:47:41.
Time: 37 of 60 seconds. Estimated final completion at 11:47:39.
Time: 38 of 60 seconds. Estimated final completion at 11:47:40.
Time: 39 of 60 seconds. Estimated final completion at 11:47:39.
Time: 40 of 60 seconds. Estimated final completion at 11:47:40.
Time: 41 of 60 seconds. Estimated final completion at 11:47:40.
Time: 42 of 60 seconds. Estimated final completion at 11:47:41.
Time: 43 of 60 seconds. Estimated final completion at 11:47:40.
Time: 44 of 60 seconds. Estimated final completion at 11:47:40.
Time: 45 of 60 seconds. Estimated final completion at 11:47:40.
Time: 46 of 60 seconds. Estimated final completion at 11:47:40.
Time: 47 of 60 seconds. Estimated final completion at 11:47:41.
Time: 48 of 60 seconds. Estimated final completion at 11:47:40.
Time: 49 of 60 seconds. Estimated final completion at 11:47:40.
Time: 50 of 60 seconds. Estimated final completion at 11:47:40.
Time: 51 of 60 seconds. Estimated final completion at 11:47:40.
Time: 52 of 60 seconds. Estimated final completion at 11:47:40.
Time: 53 of 60 seconds. Estimated final completion at 11:47:40.
Time: 54 of 60 seconds. Estimated final completion at 11:47:40.
Time: 55 of 60 seconds. Estimated final completion at 11:47:40.
Time: 56 of 60 seconds. Estimated final completion at 11:47:40.
Time: 57 of 60 seconds. Estimated final completion at 11:47:40.
Time: 58 of 60 seconds. Estimated final completion at 11:47:40.
Time: 59 of 60 seconds. Estimated final completion at 11:47:40.
Time: 60 of 60 seconds. Estimated final completion at 11:47:40.
OpenFAST completed.
In the above prompt, I hvae noticed that the execution of the OpenFAST simulation ignored the input from the Simulink model.
FAST_InitializeAll:SrvD_Init:ValidatePrimaryData:Yaw angle and rate are not commanded from
Simulink model.
ValidatePrimaryData:Pitch angles are not commanded from Simulink model.
ValidatePrimaryData:Generator torque and power are not commanded from Simulink model.
ValidatePrimaryData:HSS brake is not commanded from Simulink model.
ValidatePrimaryData:Airfoil control is not commanded from Simulink model.
ValidatePrimaryData:Cable control is not commanded from Simulink model.
May I know the document that I should amend to enable the command from the simulink Openloop model?
Also, I have noticed that the time step of the model is preset at 0.0125 s for the sample model. When I changed the time step in the input file (.fst) to 20e-6 (to suit my data obtained in my WTG model), the error prompt out that:
Error using Run_OpenLoop
Error due to multiple causes.
Caused by:
Error using Run_OpenLoop
Invalid setting for fixed-step size (0.0125) in model 'OpenLoop'. All sample times in your model must be an integer multiple of the fixed-step size.
Error using Run_OpenLoop
The sample time period (2.0E-5) of 'OpenLoop/To Workspace' is not an integer multiple of the fixed step size (0.0125) specified for model.
Is there any file that I should amend to change the time step also?
Thank you.
Best regards,
Jacky Cheung