Mlife error during compilation

Discuss theory and modeling of wind-turbine structures.

Moderator: Bonnie.Jonkman

Martintxo.Olaberri
Posts: 4
Joined: Sat Dec 19, 2020 9:12 am
Organization: Self
Location: Spain

Mlife error during compilation

Postby Martintxo.Olaberri » Tue Jan 05, 2021 1:19 am

Hi everyone,

I'm working on the 5 MW basic model due to an University project. I encounter some errors during Mlife execution and I'm not sure what is going on and why it's failing.

Here is the error code:

Index exceeds the number of array elements (1).

Error in read_value (line 67)
varargout{1}{i} = cell2mat( temp(i) );

Error in read_settings (line 802)
temp = read_value( ParamFile{1}{PLine+iFile}, 'string' , 2, '', '', fidEcho );

Error in mlife (line 246)
[ Statistics, FileInfo, Fatigue ] = read_settings( settingsFile, dataDirectory );


Attached you will find my Mlife file if it helps.

Thank you very much in advance
Martintxo

PS: Seems like there is an error attaching files, here is the transcripted code:

----- MLife version 1.0 Input File -------------------------------------------
MLife_template Test#09
----- Job Options ------------------------------------------------------------
true EchoInp Echo input to <rootname>.echo as this file is being read.
true StrNames Use channel names following a "$" instead of numbers when specifying channels in this input file.
false OutData Output modified data array after scaling and calculated channels. (currently unavailable)
"%6.2e" RealFmt Format for outputting floating-point values.
"Mlife_template_copia_raiz_pala_torre" RootName Root name for aggregate output files.
----- Input-Data Layout ------------------------------------------------------
5 TitleLine The row with the file title on it (zero if no title is available).
0 NamesLine The row with the channel names on it (zero if no names are available or are specified below).
0 UnitsLine The row with the channel units on it (zero if no units are available or are specified below).
9 FirstDataLine The first row of data.
38 NumChans The number of channels in each input file.
ChanTitle ChanUnits Scale Offset PSFtype NumCols rows of data follow. Title and units strings must be 10 characters or less.
"Time" "(s)" 1 0 0
"Wind1VelX" "(m/s)" 1 0 0
"Wind1VelY" "(m/s)" 1 0 0
"Wind1VelZ" "(m/s)" 1 0 0
"RotSpeed" "(rpm)" 1 0 0
"GenSpeed" "(rpm)" 1 0 0
"Azimuth" "(deg)" 1 0 0
"BldPitch1" "(deg)" 1 0 0
"ldPitch2" "(deg)" 1 0 0
"BldPitch3" "(deg)" 1 0 0
"OoPDefl1" "(m)" 1 0 0
"IPDefl1" "(m)" 1 0 0
"TwstDefl1" "(deg)" 1 0 0
"RootFxb1" "(kN)" 1 0 0
"RootFyb1" "(kN)" 1 0 0
"RootFzb1" "(kN)" 1 0 0
"RootMxb1" "(kN-m)" 1 0 0
"RootMyb1" "(kN-m)" 1 0 0
"RootMzb1" "(kN-m)" 1 0 0
"YawBrFxp" "(kN)" 1 0 0
"YawBrFyp" "(kN)" 1 0 0
"YawBrFzp" "(kN)" 1 0 0
"YawBrMxp" "(kN-m)" 1 0 0
"YawBrMyp" "(kN-m)" 1 0 0
"YawBrMzp" "(kN-m)" 1 0 0
"TwrBsFxt" "(kN)" 1 0 0
"TwrBsFyt" "(kN)" 1 0 0
"TwrBsFzt" "(kN)" 1 0 0
"TwrBsMxt" "(kN-m)" 1 0 0
"TwrBsMyt" "(kN-m)" 1 0 0
"TwrBsMzt" "(kN-m)" 1 0 0
"LSShftFxa" "(kN)" 1 0 0
"LSShftFya" "(kN)" 1 0 0
"LSShftFza" "(kN)" 1 0 0
"RotTorq" "(kN-m)" 1 0 0
"RotPwr" "(kN)" 1 0 0
"GenPwr" "(kW)" 1 0 0
"GenTq" "(kN-m)" 1 0 0
----- Calculated Channels ----------------------------------------------------
0 NumCChan The number calculated channels to generate.
1234567890 Seed The integer seed for the random number generator (-2,147,483,648 to 2,147,483,647)
Col_Title Units Equation Put each field in quotes. Titles and units are limited to 10 characters. NumCChan rows of data follow.
----- Load Roses -------------------------------------------------------------
0 NumRoses The number of load roses to generate.
Rose Name Units Channel1 Channel2 nSectors
----- Time and Wind Speed ----------------------------------------------------
1 TimeChan The channel containing time.
2 WSChan The primary wind-speed channel (used for mean wind speed and turbulence intensity, 0 for none)
----- Statistics and Extreme Events ------------------------------------------
true DoStats Generate statistics of all the channels.
false WrStatsTxt Write the stats to a text file?
true WrStatsXLS Write the stats to an Excel file?
0 NumSFChans Number of channels that will have summary statistics generated for them.
SFChans List of channels that will have summary statistics generated for them. Must number NumSFChans.
----- Distributions -----------------------------------------------------------
false UserDistrib User defined distribution? true = load user-specified distribution, false = only use Weibull wind distribution
2 WeibullShape Weibull shape factor. If WeibullShape=2, enter the mean wind speed for WeibullScale.
8.5 WeibullScale Weibull scale factor. If WeibullShape<>2. Otherwise, enter the mean wind speed.
3 WSin Cut-in wind speed for the turbine.
25 WSout Cut-out wind speed for the turbine.
30 WSmax Maximum wind speed value for the wind-speed bins.
2 WSMaxBinSize Maximum width of a wind-speed bin.
0 nDistribVars Number of independent variables in the user-specified distribution, ignored if UserDistrib = false
"" DistribName Filename of the user-supplied distribution table, ignored if UserDistrib = false
----- Fatigue ----------------------------------------------------------------
12 nFatigueChannels The number of fatigue channels. Next six lines ignored if zero.
0.01 FiltRatio The fraction of the maximum range of each channel used as a cutoff range for the racetrack filter. Use zero for no filter.
630720000 DesignLife Number of seconds in the design lifetime (20 years = 630720000 seconds).
1 Availability Fraction of the design life the turbine is operating when winds are between Vin and Vout
false BinCycles Bin the rainflow cycles?
0.5 UCMult Multiplier for binning unclosed cycles. (0 discards, 1 counts as a full cycle)
true DoShortTerm Compute simple (unweighted) damage-equivalent loads and damage rates.
true DoLife Do lifetime-related calculations?
true DoAggregate Compute a DELs and a damage result based on an aggregate of all the input files (does not use the wind spped distribution)
false WrShortTermTxt Write short-term results to plain-text files?
true WrShortTermXLS Write short-term resultsto an Excel workbook?
false WrLifeTxt Write lifetime results to plain-text files?
true WrLifeXLS Write lifetime results to an Excel workbook?
0.0158 EquivalentFrequency The frequency of the damage equivalent load (Hz)
true DEL_AsRange true = report DELs as a range value, false = report as a one-sided amplitude
3 DEL_Type 1 = fixed mean, 2 = zero mean, 3 = both
2 GoodmanFlag 0 = no Goodman correction, 1 = use Goodman correction, 2 = compute results with and without Goodman correction
Channel# NSlopes SNslopeLst BinFlag BinWidth/Number TypeLMF LUlt BinWidth not used when BinCycles is false. nFatigueChannels rows of data follow. LUlt >> LMF
$RootFxb1$ 1 10 BN 200 WM 699
$RootFyb1$ 1 10 BN 200 WM 367
$RootFzb1$ 1 10 BN 200 WM 1155
$RootMxb1$ 1 10 BN 200 WM 8642
$RootMyb1$ 1 10 BN 200 WM 19349
$RootMzb1$ 1 10 BN 200 WM 752
$TwrBsFxt$ 2 4 7 BN 200 WM 2687
$TwrBsFyt$ 2 4 7 BN 200 WM 380
$TwrBsFzt$ 2 4 7 BN 200 WM 7781
$TwrBsMxt$ 2 4 7 BN 200 WM 31951
$TwrBsMyt$ 2 4 7 BN 200 WM 2
$TwrBsMzt$ 2 4 7 BN 200 WM 11569
2 NumDELGroups
Name NChannels ChannelList
"Blade loads" 6 1 2 3 4 5 6
"Tower loads" 6 7 8 9 10 11 12
----- Input Files ------------------------------------------------------------
2 FileFormat Format of input files. 1 = FAST ascii, 2 = FAST binary
72 1.1 1.3 1.5 1.7 (Weibull-Weighted Normal Operation: NumNormFiles, PSF1, PSF2, PSF3, PSF4)
"1dlc12a.outb"
"1dlc12b.outb"
"1dlc12c.outb"
"1dlc12d.outb"
"1dlc12e.outb"
"1dlc12f.outb"
"1dlc12g.outb"
"1dlc12h.outb"
"1dlc12i.outb"
"1dlc12j.outb"
"1dlc12k.outb"
"1dlc12l.outb"
"2dlc12a.outb"
"2dlc12b.outb"
"2dlc12c.outb"
"2dlc12d.outb"
"2dlc12e.outb"
"2dlc12f.outb"
"2dlc12g.outb"
"2dlc12h.outb"
"2dlc12i.outb"
"2dlc12j.outb"
"2dlc12k.outb"
"2dlc12l.outb"
"3dlc12a.outb"
"3dlc12b.outb"
"3dlc12c.outb"
"3dlc12d.outb"
"3dlc12e.outb"
"3dlc12f.outb"
"3dlc12g.outb"
"3dlc12h.outb"
"3dlc12i.outb"
"3dlc12j.outb"
"3dlc12k.outb"
"3dlc12l.outb"
"4dlc12a.outb"
"4dlc12b.outb"
"4dlc12c.outb"
"4dlc12d.outb"
"4dlc12e.outb"
"4dlc12f.outb"
"4dlc12g.outb"
"4dlc12h.outb"
"4dlc12i.outb"
"4dlc12j.outb"
"4dlc12k.outb"
"4dlc12l.outb"
"5dlc12a.outb"
"5dlc12b.outb"
"5dlc12c.outb"
"5dlc12d.outb"
"5dlc12e.outb"
"5dlc12f.outb"
"5dlc12g.outb"
"5dlc12h.outb"
"5dlc12i.outb"
"5dlc12j.outb"
"5dlc12k.outb"
"5dlc12l.outb"
"6dlc12a.outb"
"6dlc12b.outb"
"6dlc12c.outb"
"6dlc12d.outb"
"6dlc12e.outb"
"6dlc12f.outb"
"6dlc12g.outb"
"6dlc12h.outb"
"6dlc12i.outb"
"6dlc12j.outb"
"6dlc12k.outb"
"6dlc12l.outb"
3 1.1 1.3 1.5 1.7 (Weibull-Weighted Idling: NumIdleFiles, PSF1, PSF2, PSF3, PSF4)
"dlc41a.outb"
"dlc41b.outb"
"dlc41c.outb"
12 1.2 1.3 1.4 1.6 (Discrete Events: NumDiscFiles, PSF1, PSF2, PSF3, PSF4)9 NumFiles The number of input files to read.
"1dlc61_2ms.outb"
"1dlc61_27ms.outb"
"2dlc61_2ms.outb"
"2dlc61_27ms.outb"
"3dlc61_2ms.outb"
"3dlc61_27ms.outb"
"4dlc61_2ms.outb"
"4dlc61_27ms.outb"
"5dlc61_2ms.outb"
"5dlc61_27ms.outb"
"6dlc61_2ms.outb"
"6dlc61_27ms.outb"
==EOF== DO NOT REMOVE OR CHANGE. MUST COME JUST AFTER LAST LINE OF VALID INPUT.

Jason.Jonkman
Posts: 5771
Joined: Thu Nov 03, 2005 4:38 pm
Location: Boulder, CO
Contact:

Re: Mlife error during compilation

Postby Jason.Jonkman » Tue Jan 05, 2021 9:30 am

Dear Martintxo,

I would guess there is problem with the format of your input file, but it is not obvious to me what that is after my quick review. It appears that you are generating an echo file. Can you review the *.echo file and compare it with your input file to see if everything is being read in properly or if there is a formatting issue (e.g., a missing or extra line)?

Best regards,
Jason Jonkman, Ph.D.
Senior Engineer | National Wind Technology Center (NWTC)

National Renewable Energy Laboratory (NREL)
15013 Denver West Parkway | Golden, CO 80401
+1 (303) 384 – 7026 | Fax: +1 (303) 384 – 6901
nwtc.nrel.gov

Martintxo.Olaberri
Posts: 4
Joined: Sat Dec 19, 2020 9:12 am
Organization: Self
Location: Spain

Re: Mlife error during compilation

Postby Martintxo.Olaberri » Wed Jan 06, 2021 12:18 pm

Dear Jason,

Thanks for your reply. I see no differences between the .echo file and the .mlif. I have no clue about where is the error, apparently input is OK.

Just in case the .outb files didn't have 38 channels, I have retried the analysis with few wind files which I am 100% sure they have the same channels as specified in the .mlife file, and still not working. Nevertheless by doing that the error message is in computing fatigue.

Jason.Jonkman
Posts: 5771
Joined: Thu Nov 03, 2005 4:38 pm
Location: Boulder, CO
Contact:

Re: Mlife error during compilation

Postby Jason.Jonkman » Wed Jan 06, 2021 4:36 pm

Dear Martintxo,

The first error you were reporting was associated with reading in the MLife input file. So, if you are getting in error about the fatigue calculation, presumably you have solved the first error (at least with fewer *.outb files). Are there specific *.outb files that result in the first error?

What new error regarding fatigue calculation are you getting?

Best regards,
Jason Jonkman, Ph.D.
Senior Engineer | National Wind Technology Center (NWTC)

National Renewable Energy Laboratory (NREL)
15013 Denver West Parkway | Golden, CO 80401
+1 (303) 384 – 7026 | Fax: +1 (303) 384 – 6901
nwtc.nrel.gov

Soeren.Link
Posts: 3
Joined: Sat Jan 09, 2021 1:00 pm
Organization: Flensburg University of Applied Sciences
Location: Deutschland

Re: Mlife error during compilation

Postby Soeren.Link » Sat Jan 09, 2021 2:54 pm

Dear Jason, dear Martintxo,

I have also received an error message while running Matlab with the MLife codes which might fit to the topic discussed here before. This is the error Matlab displayed:

Index exceeds the number of array elements (256).

Error in compute_windspeed_bins (line 56)
Fatigue.TimePP(WSbin) = Fatigue.TimePP(WSbin) +
Fatigue.ElapTime(iFile);

Error in mlife (line 565)
Fatigue = compute_windspeed_bins(Fatigue,
windChannelMeans,FileInfo.DLCs(1).NumFiles,
FileInfo.DLCs(2).NumFiles );

Error in MLife_Runfile (line 7)
[Fatigue, Stastistics] = mlife(settingsFile, outputDirectory);

As the statistics were generated before the error, I have checked the values and they were not reasonable. Before, I used the same settings and files but didn't inserted the input-file channels (beginning in line 16) and no error occurred and the results were reasonable.
I also followed the advice to check the echo-file but I haven't seen any differences and using other files is not changing the occurrence of the error.

I have attached the files I used. Maybe this is helping you to solve our/my error.
Thanks a lot in advance
Sören
Attachments
MLife_SLink.zip
(1.9 MiB) Downloaded 28 times

Jason.Jonkman
Posts: 5771
Joined: Thu Nov 03, 2005 4:38 pm
Location: Boulder, CO
Contact:

Re: Mlife error during compilation

Postby Jason.Jonkman » Mon Jan 11, 2021 11:18 am

Dear Soeren, Dear Martintxo,

I'm not sure how to help. There is no active development on MLife at NREL right now and the original developers are no longer working here. There is some active effort to develop capability similar to MCrunch, MLife, and MExtremes in Python, but this is not complete yet.

Could one or both of you spend some time debugging this to see if a bug can be found? I don't have time to debug this myself.

Best regards,
Jason Jonkman, Ph.D.
Senior Engineer | National Wind Technology Center (NWTC)

National Renewable Energy Laboratory (NREL)
15013 Denver West Parkway | Golden, CO 80401
+1 (303) 384 – 7026 | Fax: +1 (303) 384 – 6901
nwtc.nrel.gov

Martintxo.Olaberri
Posts: 4
Joined: Sat Dec 19, 2020 9:12 am
Organization: Self
Location: Spain

Re: Mlife error during compilation

Postby Martintxo.Olaberri » Sat Jan 16, 2021 3:46 am

Dear Soeren,

Thanks for your reply and for your efforts. Unfortunately still doesn't work for me although I tried your changes.

I will continue struggling and if I get any result I will let you know.

Best regards

Martintxo.Olaberri
Posts: 4
Joined: Sat Dec 19, 2020 9:12 am
Organization: Self
Location: Spain

Re: Mlife error during compilation

Postby Martintxo.Olaberri » Sat Feb 13, 2021 2:13 am

Hi all,

I still working with that error but no success I must admit. Nevertheless I found another error code:

Code: Select all

Error using rainflow (line 67)
Too many input arguments.

Error in compute_fatigue_per_DEL_type (line 118)
            cycles = rainflow(double(peaks), abs( double(lmf)), double(Fatigue.ChanInfo(iCh).LUlt),
            double(Fatigue.UCMult))';

Error in compute_no_goodman_fatigue (line 25)
   [aggEquivalentCycles, lifetimeEquivalentCycles, ChannelBasedResults, FileBasedResults] =
   compute_fatigue_per_DEL_type( DEL_Type, DLCs, DLC_Occurrences, nFatigueChannels, nFiles,
   windChannelMeans, Fatigue );

Error in compute_fatigue (line 77)
         Fatigue = compute_no_goodman_fatigue(nFiles, Fatigue, FileInfo.DLCs, FileInfo.DLC_Occurrences,
         windChannelMeans);

Error in mlife (line 602)
         Fatigue = compute_fatigue( FileInfo, Fatigue, windChannelMeans );


First thing I thought is that it could be some differences between the input code and the .out files from wind, but all of them are exactly the same. Channels definition is also right and everything seems to match. Not sure what's going on with that mistake...

Matthew.Lee
Posts: 15
Joined: Mon Nov 16, 2020 6:21 am
Organization: Trinity College Dublin
Location: Ireland

Re: Mlife error during compilation

Postby Matthew.Lee » Mon Mar 01, 2021 1:28 pm

Dear Jason,

I am attempting to run MLife but receive the following Matlab error:
MLifeError.JPG
MLifeError.JPG (105.94 KiB) Viewed 486 times


Kindly see below the .mlif settings file I am using:

Thanks for your help.
Best regards,
Matthew


----- MLife version 1.0 Input File -------------------------------------------
Test#01
----- Job Options ------------------------------------------------------------
true EchoInp Echo input to <rootname>.echo as this file is being read.
true StrNames Use channel names following a "$" instead of numbers when specifying channels in this input file.
false OutData Output modified data array after scaling and calculated channels. (currently unavailable)
"%6.2e" RealFmt Format for outputting floating-point values.
"MLife_FirstTest" RootName Root name for aggregate output files.
----- Input-Data Layout ------------------------------------------------------
5 TitleLine The row with the file title on it (zero if no title is available).
0 NamesLine The row with the channel names on it (zero if no names are available or are specified below).
0 UnitsLine The row with the channel units on it (zero if no units are available or are specified below).
9 FirstDataLine The first row of data.
53 NumChans The number of channels in each input file.
ChanTitle ChanUnits Scale Offset PSF_Type NumCols rows of data follow. Title and units strings must be 10 characters or less.
"Time" "(s)" 1.0 0.0 0
"Wind1VelX" "(m/s)" 1.0 0.0 0
"Azimuth" "(deg)" 1.0 0.0 0
"BldPitch1" "(deg)" 1.0 0.0 0
"GenSpeed" "(rpm)" 1.0 1.0 0
"IPDefl1" "(m)" 1.0 0.0 0
"LSSGagMya" "(kN-m)" 1.0 0.0 0
"LSSGagMza" "(kN-m)" 1.0 0.0 0
"OoPDefl1" "(m)" 1.0 0.0 0
"PtfmPitch" "(deg)" 1.0 0.0 0
"PtfmRoll" "(deg)" 1.0 0.0 0
"PtfmSurge" "(m)" 1.0 0.0 0
"PtfmSway" "(m)" 1.0 0.0 0
"RootFxc1" "(kN)" 1.0 0.0 0
"RootFyc1" "(kN)" 1.0 0.0 0
"RootFzc1" "(kN)" 1.0 0.0 0
"RootMxc1" "(kN-m)" 1.0 0.0 0
"RootMyc1" "(kN-m)" 1.0 0.0 0
"RootMzc1" "(kN-m)" 1.0 0.0 0
"RotSpeed" "(rpm)" 1.0 0.0 0
"RotTorq" "(kN-m)" 1.0 0.0 0
"Spn2MLxb1" "(kN-m)" 1.0 0.0 0
"Spn2MLyb1" "(kN-m)" 1.0 0.0 0
"TTDspTwst" "(deg)" 1.0 0.0 0
"TwHt1TPxi" "(m)" 1.0 0.0 0
"TwHt1TPyi" "(m)" 1.0 0.0 0
"TwstDefl1" "(deg)" 1.0 0.0 0
"YawBrFxp" "(kN)" 1.0 0.0 0
"YawBrFyp" "(kN)" 1.0 0.0 0
"YawBrFzp" "(kN)" 1.0 0.0 0
"YawBrMxp" "(kN-m)" 1.0 0.0 0
"YawBrMyp" "(kN-m)" 1.0 0.0 0
"YawBrMzp" "(kN-m)" 1.0 0.0 0
"RtAeroFxh" "(N)" 1.0 0.0 0
"RtAeroFyh" "(N)" 1.0 0.0 0
"RtAeroFzh" "(N)" 1.0 0.0 0
"RtAeroMxh" "(N-m)" 1.0 0.0 0
"RtAeroMyh" "(N-m)" 1.0 0.0 0
"RtAeroMzh" "(N-m)" 1.0 0.0 0
"RtVAvgxh" "(m/s)" 1.0 0.0 0
"RtAeroCp" "(-)" 1.0 0.0 0
"RtTSR" "(-)" 1.0 0.0 0
"GenPwr" "(kW)" 1.0 0.0 0
"GenTq" "(kN-m)" 1.0 0.0 0
"Wave1Elev" "(m)" 1.0 0.0 0
"M2N1MKxe" "(N*m)" 1.0 0.0 0
"M2N1MKye" "(N*m)" 1.0 0.0 0
"M1N1MKxe" "(N*m)" 1.0 0.0 0
"M1N1MKye" "(N*m)" 1.0 0.0 0
"-ReactFXss" "(N)" 1.0 0.0 0
"-ReactFYss" "(N)" 1.0 0.0 0
"-ReactFZss" "(N)" 1.0 0.0 0
"-ReactMXss" "(Nm)" 1.0 0.0 0
"-ReactMYss" "(Nm)" 1.0 0.0 0
"-ReactMZss" "(Nm)" 1.0 0.0 0
----- Calculated Channels ----------------------------------------------------
0 NumCChan The number calculated channels to generate.
1234567890 Seed The integer seed for the random number generator (-2,147,483,648 to 2,147,483,647)
Col_Title Units Equation Put each field in quotes. Titles and units are limited to 10 characters. NumCChan rows of data follow.
----- Load Roses -------------------------------------------------------------
0 NumRoses The number of load roses to generate.
Rose Name Units Channel1 Channel2 nSectors
----- Time and Wind Speed ----------------------------------------------------
$Time$ TimeChan The channel containing time.
$WindVel1X$ WSChan The primary wind-speed channel (used for mean wind speed and turbulence intensity, 0 for none)
----- Statistics and Extreme Events ------------------------------------------
false DoStats Generate statistics of all the channels.
true WrStatsTxt Write the stats to a text file?
true WrStatsXLS Write the stats to an Excel file?
6 NumSFChans Number of channels that will have summary statistics generated for them.
$-ReactFXss$ $-ReactFYss$ $-ReactFZss$ $-ReactMXss$ $-ReactMYss$ $-ReactMZss$ SFChans List of channels that will have summary statistics generated for them. Must number NumSFChans.
----- Distributions -----------------------------------------------------------
false UserDistrib User defined distribution? true = load user-specified distribution, false = only use Weibull wind distribution
2.4 WeibullShape Weibull shape factor. If WeibullShape=2, enter the mean wind speed for WeibullScale.
3 WeibullScale Weibull scale factor. If WeibullShape<>2. Otherwise, enter the mean wind speed.
3 WSin Cut-in wind speed for the turbine.
21 WSout Cut-out wind speed for the turbine.
44 WSmax Maximum wind speed value for the wind-speed bins.
1 WSMaxBinSize Maximum width of a wind-speed bin.
0 nDistribVars Number of independent variables in the user-specified distribution, ignored if UserDistrib = false
"" DistribName Filename of the user-supplied distribution table, ignored if UserDistrib = false
----- Fatigue ----------------------------------------------------------------
6 nFatigueChannels The number of fatigue channels. Next six lines ignored if zero.
0.0 FiltRatio The fraction of the maximum range of each channel used as a cutoff range for the racetrack filter. Use zero for no filter.
630720000 DesignLife Number of seconds in the design lifetime (20 years = 630720000 seconds).
1 Availability Fraction of the design life the turbine is operating when winds are between Vin and Vout
false BinCycles Bin the rainflow cycles?
0.5 UCMult Multiplier for binning unclosed cycles. (0 discards, 1 counts as a full cycle)
true DoShortTerm Compute simple (unweighted) damage-equivalent loads and damage rates.
true DoLife Do lifetime-related calculations?
true DoAggregate Compute a DELs and a damage result based on an aggregate of all the input files (does not use the wind spped distribution)
true WrShortTermTxt Write short-term results to plain-text files?
true WrShortTermXLS Write short-term resultsto an Excel workbook?
true WrLifeTxt Write lifetime results to plain-text files?
false WrLifeXLS Write lifetime results to an Excel workbook?
1 EquivalentFrequency The frequency of the damage equivalent load (Hz)
false DEL_AsRange true = report DELs as a range value, false = report as a one-sided amplitude
2 DEL_Type 1 = fixed mean, 2 = zero mean, 3 = both
1 GoodmanFlag 0 = no Goodman correction, 1 = use Goodman correction, 2 = compute results with and without Goodman correction
Channel# NSlopes SNslopeLst BinFlag BinWidth/Number TypeLMF LUlt BinWidth not used when BinCycles is false. nFatigueChannels rows of data follow. LUlt >> LMF
$-ReactFXss$ 1 10 BW 20 161 31875
$-ReactFYss$ 1 10 BW 20 161 31875
$-ReactFZss$ 1 10 BW 20 161 31875
$-ReactMXss$ 1 10 BW 20 161 31875
$-ReactMYss$ 1 10 BW 20 161 31875
$-ReactMZss$ 1 10 BW 20 161 31875
0 NumDELGroups
Name NChannels ChannelList
----- Input Files ------------------------------------------------------------
1 FileFormat Format of input files. 1 = FAST ascii, 2 = FAST binary
24 1.1 1.3 1.1 1.3
"HydroDyn_out_whs_2.6_wtp_6_wdir_45_wndspd_3.out"
1 1.1 1.3 1.5 1.7 (Weibull-Weighted Idling: NumIdleFiles, PSF1, PSF2, PSF3, PSF4)
"HydroDyn_out_whs_2.6_wtp_6_wdir_45_wndspd_3.out"
0 1.2 1.3 1.4 1.6 (Discrete Events: NumDiscFiles, PSF1, PSF2, PSF3, PSF4)24 NumFiles The number of input files to read.
==EOF== DO NOT REMOVE OR CHANGE. MUST COME JUST AFTER LAST LINE OF VALID INPUT.

Jason.Jonkman
Posts: 5771
Joined: Thu Nov 03, 2005 4:38 pm
Location: Boulder, CO
Contact:

Re: Mlife error during compilation

Postby Jason.Jonkman » Mon Mar 01, 2021 4:06 pm

Dear Matthew,

I see that you are generating an echo file. What are the contents of this file; which line of your input file is this error triggered?

Best regards,
Jason Jonkman, Ph.D.
Senior Engineer | National Wind Technology Center (NWTC)

National Renewable Energy Laboratory (NREL)
15013 Denver West Parkway | Golden, CO 80401
+1 (303) 384 – 7026 | Fax: +1 (303) 384 – 6901
nwtc.nrel.gov

Matthew.Lee
Posts: 15
Joined: Mon Nov 16, 2020 6:21 am
Organization: Trinity College Dublin
Location: Ireland

Re: Mlife error during compilation

Postby Matthew.Lee » Tue Mar 02, 2021 3:12 am

Dear Jason,

Thank you for your reply.

The following is the echo file produced:

Echoing contents of "BaseSettingsFile_3.mlif".
Test#01
----- Job Options ------------------------------------------------------------
true EchoInp Echo input to <rootname>.echo as this file is being read.
true


It appears MLife is breaking in the 'Job Options' part, specifically the following line 2:

true StrNames Use channel names following a "$" instead of numbers when specifying channels in this input file.

Please let me know if you know any reasoning behind this. Thanks.

Best regards,
Matthew

Jason.Jonkman
Posts: 5771
Joined: Thu Nov 03, 2005 4:38 pm
Location: Boulder, CO
Contact:

Re: Mlife error during compilation

Postby Jason.Jonkman » Tue Mar 02, 2021 1:10 pm

Dear Matthew,

I'm surprised that MLife is complaining about the StrNames line. I copied/pasted the contents of your input file and ran MLife myself and your input file is read in properly. I'm not sure how to help. I would suggest stepping through the solution with the MATLAB debugger.

Best regards,
Jason Jonkman, Ph.D.
Senior Engineer | National Wind Technology Center (NWTC)

National Renewable Energy Laboratory (NREL)
15013 Denver West Parkway | Golden, CO 80401
+1 (303) 384 – 7026 | Fax: +1 (303) 384 – 6901
nwtc.nrel.gov

Matthew.Lee
Posts: 15
Joined: Mon Nov 16, 2020 6:21 am
Organization: Trinity College Dublin
Location: Ireland

Re: Mlife error during compilation

Postby Matthew.Lee » Wed Mar 03, 2021 3:37 am

Dear Jason,

The error came from the NumChans not matching the number of channels in the .out file.

I have since corrected this, and now am receiving the following error. I understand you were saying to step through the Matlab errors but I am a bit lost and I am wondering if you have dealt with this type of error before:
MLifeError_01.JPG
MLifeError_01.JPG (113.45 KiB) Viewed 451 times


Thanks again for your time and help.

Best regards,

Jason.Jonkman
Posts: 5771
Joined: Thu Nov 03, 2005 4:38 pm
Location: Boulder, CO
Contact:

Re: Mlife error during compilation

Postby Jason.Jonkman » Wed Mar 03, 2021 6:33 am

Dear Matthew,

Again, this sounds like a problem with the formatting of your MLife input file. I can't really help without being able to reproduce the problem myself. You can use the Echo option to locate the line in the file that has the formatting problem and/or use the MATLAB debugger to step through and identify the problem.

Best regards,
Jason Jonkman, Ph.D.
Senior Engineer | National Wind Technology Center (NWTC)

National Renewable Energy Laboratory (NREL)
15013 Denver West Parkway | Golden, CO 80401
+1 (303) 384 – 7026 | Fax: +1 (303) 384 – 6901
nwtc.nrel.gov


Return to “Structural Analysis”

Who is online

Users browsing this forum: No registered users and 1 guest