-
Notifications
You must be signed in to change notification settings - Fork 465
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated examples for OpenFAST-Simulink Interface (#577)
* simulink: update example files for OpenFAST r-test locations * Simulink + VS build: fix Debug_Matlab configuration * Simulink: fix build syntax for defining `S_FUNCTION_NAME`
- Loading branch information
Showing
4 changed files
with
25 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,12 @@ | ||
% make sure the FASTv8\bin directory is in the MATLAB path | ||
% make sure the OpenFAST directory where the FAST_SFunc.mex* file is located | ||
% is in the MATLAB path (also make sure any other OpenFAST library files that | ||
% are needed are on the MATLAB path) | ||
% (relative path names are not recommended in addpath()): | ||
% addpath('C:\Users\bjonkman\Documents\CAETools\FASTv8\bin'); | ||
% addpath('../../../build/bin'); % install location for Windows Visual Studio builds | ||
% addpath(genpath('../../../install')); % cmake default install location | ||
|
||
% these variables are defined in the OpenLoop model's FAST_SFunc block: | ||
FAST_InputFileName = '../../../reg_tests/r-test/glue-codes/openfast/5MW_Land_DLL_WTurb/5MW_Land_DLL_WTurb.fst'; | ||
TMax = 60; % seconds | ||
|
||
CertTest_Dir = '..\..\CertTest'; | ||
|
||
CertTest_TMax=[20, 20, 20, 70, 30, ... | ||
35, 70, 20, 40, 25, ... | ||
20, 20, 40, 0, 20, ... | ||
20, 70, 60, 60, 60, ... | ||
60, 60, 60, 60, 60, ... | ||
20 ]; | ||
|
||
for iTest = [1:13 15:26] | ||
|
||
%------------------------------------------------------------------ | ||
% Set up and run the Simulink OpenLoop model | ||
%------------------------------------------------------------------ | ||
|
||
FileRoot = sprintf( 'Test%02.0f', iTest ); | ||
|
||
disp('***********************************************'); | ||
disp( ['FAST_SFunc certification test for ' FileRoot] ); | ||
disp('***********************************************'); | ||
|
||
FAST_InputFileName = [CertTest_Dir filesep FileRoot '.fst']; | ||
TMax = CertTest_TMax(iTest); | ||
|
||
sim('OpenLoop.mdl',[0,TMax]); | ||
|
||
end | ||
sim('OpenLoop.mdl',[0,TMax]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters