Liking Fastsc with matlab

Hi every body
Im an user of FAST_SC and i really need to optimize parameters of TMD with GA algorithm but actually i dont know how can i link fast_sc with matlab software to do that job.
If anybody know the solution or what are thoes files
Please tell me i really need them
Thank you

Dear @Erfan.Darkhord,

I’m not sure if you meant FAST_SC or OpenFAST, but the Structural Control (StC) submodel of OpenFAST provides vastly improved capability to model Tuned Mass Dampers (TMDs), Tuned Liquid-Column Dampers (TLCDs), and other StC devices. If you are using the old FAST_SC code, I suggest you upgrade to OpenFAST.

That said, while OpenFAST is interfaced to MATLAB/Simulink, the MATLAB/Simulink interface to OpenFAST does not currently support active control of TMDs yet (that is, StC_CMODE = 4 is not yet supported). See the following OpenFAST issue for a related discussion: Add the control TMD to Simulink with S-function · Issue #761 · OpenFAST/openfast · GitHub.

Best regards,

Thanks for your response, Professor Jonkman
I’m using FAST-SC (fast-structure control), which has TMD passive control.


As shown in the picture and I want to optimize mass, stiffness, and damping ratio parameters by MATLAB.

In the files, which I downloaded from the NREL site for fast-sc, there were some files for linking to Simulink


It has read.m and Make.m, but as I know, it must be a file like run.m to run with MATLAB, but it doesn’t exist, and I don’t know how must change the parameters of make.m file to work.
And about OpenFast, I love to move that one, but I have a project and must complete it. After that, I will move to that.

Dear @Erfan.Darkhord,

The make_FAST_SFunc.m script can be used to compile the FAST-SC S-Function for interfacing FAST-SC with MATLAB/Simulink.

You can use the example run scripts from OpenFAST (openfast/glue-codes/simulink/examples at main · OpenFAST/openfast · GitHub) as a template to run FAST-SC in MATLAB/Simulink once you’ve compiled it.

FYI: The FAST-SC code is quite outdated and doesn’t offer any capability that OpenFAST doesn’t. I suggest you upgrade.

Best regards,