MATLAB2HD script

Provide feedback, request enhancements, and get help with wind-turbine computer-aided engineering tools.

Moderators: Bonnie.Jonkman, Jason.Jonkman

Charlie.Sheng
Posts: 22
Joined: Wed Jul 25, 2018 3:00 pm
Organization: western university
Location: canada

MATLAB2HD script

Postby Charlie.Sheng » Thu Aug 08, 2019 8:42 am

Dear all,

I am using the MATLAB script to generate the new HydroDyn input files with the modified certain parameters. but I got problem, and here to seek for help, my code is as followings:

% HydroDyn input file
Hrefer='C:\Users\Desktop\FAST_MATLAB\OC4TC\5MW_Baseline\NRELOffshrBsline5MW_OC4DeepCwindSemi_HydroDyn.dat';
HydroS = HD2Matlab(Hrefer,2); % this contains 2 header lines
% Wave seed
WaS=randi([-2147483648,2147483647],1);
HydroS = SetFASTPar(HydroS,'WaveSeed(1)',WaS);
%Hs
Hs=12;
HydroS = SetFASTPar(HydroS,'WaveHs',Hs);

Hrefer1='C:\Users\Desktop\FAST_MATLAB\OC4TC\5MW_Baseline\NRELOffshrBsline5MW_OC4DeepCwindSemi_HydroDynCS.dat';
Matlab2HD(HydroS,Hrefer,Hrefer1,2); % there are 2 header lines

while I got the error from the MATLAB as follows:

WARNING: ! not found in the HD data structure. Default value listed below (from template file, C:\Users\Desktop\FAST_MATLAB\OC4TC\5MW_Baseline\NRELOffshrBsline5MW_OC4DeepCwindSemi_HydroDyn.dat) will be used instead:
Columns 1 through 13

20.0000 0.6300 0.6300 0 0 0 0 0 0 0 0 0 0

Columns 14 through 21

0 0 0 0 0 0 0 0

WARNING: ! not found in the HD data structure. Default value listed below (from template file, C:\Users\Desktop\FAST_MATLAB\OC4TC\5MW_Baseline\NRELOffshrBsline5MW_OC4DeepCwindSemi_HydroDyn.dat) will be used instead:
Columns 1 through 13

21.0000 0.6300 0.6300 0 0 0 0 0 0 0 0 0 0

Columns 14 through 21

0 0 0 0 0 0 0 0
......

I try to recheck the code many times, while still cannot figure out what is the problem. Any help would be appreciated!

Best regards,
Charlie

Return to “Computer-Aided Engineering Software Tools”

Who is online

Users browsing this forum: No registered users and 1 guest