Closed reike95 closed 1 year ago
It looks like you are trying to compare your output file with a another file that doesn't exist. The r-test doesn't store results from the S-Function, so you'll have to edit the name of the which file you are comparing with.
To just plot your current results use:
PlotFASToutput({[ OpenFASTRoot '5MW_ITIBarge_DLL_WTurb_WavesIrr.SFunc.out']},{'SFunc'});
If you want to compare with another file, replace the second file name in the command you were running:
PlotFASToutput({[ OpenFASTRoot '5MW_ITIBarge_DLL_WTurb_WavesIrr.SFunc.out'],[ OpenFASTRoot '5MW_ITIBarge_DLL_WTurb_WavesIrr.out']},{'SFunc','exe'});
Note that the latest r-test no longer contains a windows-intel
directory, so make sure the baseline file exists before trying to compare with it.
I going to try it. Thank you so much!
On Tue, 30 May 2023 at 17:32, Andy Platt @.***> wrote:
Closed #1591 https://github.com/OpenFAST/openfast/issues/1591 as completed.
— Reply to this email directly, view it on GitHub https://github.com/OpenFAST/openfast/issues/1591#event-9380003637, or unsubscribe https://github.com/notifications/unsubscribe-auth/A5W5D75GTSTXVSPC46TYAOLXIYHJPANCNFSM6AAAAAAYSCRF6Y . You are receiving this because you authored the thread.Message ID: @.***>
Bug description Hello all, I'm Carlos and I'm currently working on end-of-Master's project about offshore platforms. I need to obtain plots from different tests but I have several problems to do it. When I execute the Test 01 with the script called Run_Test01_SIG I can obtain outputs (.out), but if I try to obtain plots with the function PlotFASToutput, on the last line of the first script I get an error.
When I run OpenFast with Matlab all is ok until try to take plots using the function Plotfastoutput fom "matlabtoolbox".
To Reproduce
Steps to reproduce the behavior:
Compile with Matlab
Run 'Test 01' case with single precision
Open 'Test01.SFunc.out' output
See the error
_Reading from the file C:\Users\Carlos\source\openfast\reg_tests\r-test\glue-codes\openfast\5MW_ITIBarge_DLL_WTurb_WavesIrr\5MW_ITIBarge_DLL_WTurb_WavesIrr.SFunc.out with heading: "Description from the FAST input file: FAST Certification Test #22: NREL 5.0 MW Baseline Wind Turbine with ITI Barge Configuration, for use in offshore analysis". ReadFASTtext::Error -1 reading from file, "C:\Users\Carlos\source\openfast\reg_tests\r-test\glue-codes\openfast\5MW_ITIBarge_DLL_WTurb_WavesIrr\windows-intel/5MW_ITIBarge_DLL_WTurb_WavesIrr.SFunc.out" Index in position 2 exceeds array bounds.
Error in PlotFASToutput (line 175) outData{iFile,1} = data{iFile}(:,TimeIndex);
Error in Run_Test01_SIG (line 39) PlotFASToutput({[ OpenFASTRoot '5MW_ITIBarge_DLL_WTurb_WavesIrr.SFunc.out'],[ OpenFASTRoot 'windows-intel/5MW_ITIBarge_DLL_WTurbWavesIrr.SFunc.out']},{'SFunc','exe'});
This test is other, but the error is the same.
Expected behavior I expected take plots from simulations.
Screenshots, if applicable https://drive.google.com/file/d/10cipiwR85wLFJCMfNSdS0Vy06P13ccnX/view?usp=drive_link
OpenFAST Version