Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions glue-codes/simulink/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
OpenFAST expects a set of channels passed from Simulink to the library. The number channels may change between OpenFAST releases.

For list of control channels, see comments at end of source file modules/openfast-library/src/FAST_Library.h

The examples included here inclue all the channels listed in the FAST_Library.h file.
12 changes: 11 additions & 1 deletion modules/openfast-library/src/FAST_Library.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,16 @@ EXTERNAL_ROUTINE void FAST_CreateCheckpoint(int * iTurb, const char *CheckpointR
#define MAXInitINPUTS 53

#define NumFixedInputs 2 + 2 + MAXIMUM_BLADES + 1 + MAXIMUM_AFCTRL + MAXIMUM_CABLE_DELTAL + MAXIMUM_CABLE_DELTALDOT

/* Fixed inputs list:
1 Generator Torque (N-m)
2 Electrical Power (W)
3 Yaw pos (rad)
4 Yaw rate (rad/s)
5-7 Blade 1-3 pitch angle (rad)
8 High speed shaft brake fraction (-)
9-11 Blade 1-3 Airfoil control (-)
12-31 Cable control channel 1-20 DeltaL (m)
32-51 Cable control channel 1-20 DeltaLDot (m/s)
*/

#endif