Wind farm matlab/simulink toolbox (3)

6. Create a wind farm yourself

        There are two ways to create a new wind farm, one is an interactive interface, that is, building simulink blocks; the other is running a matlab script.

1) New construction of simulink wind farm

        

 You can choose one of the two, depending on your needs.

 Double-click the module, according to the instructions, step by step, set the number of fans, arrangement location, wind field and other information.

 2) Create a new wind farm according to the script

 Click one of these two script files to set related parameters and create a wind farm. Then run the file.

 analyze:

        In both of the above methods, the same error is encountered, the function variable "matlabpool" is not defined. We need to solve this problem.

        By looking up relevant documents, it is simply said that matlabpool is a tool for processing parallel tools in the old version of matlab, but the new version (version after 2013) no longer includes this tool, but is replaced by the parpool tool. So just replace parpool with matlabpool and the error is canceled. Then you can build your own wind farm.

         The picture above is a wind farm with only three wind turbines created according to create_windfarm, so you can also build your own wind farm.

      


7. Create a wind farm yourself

        There are also two ways to create a wind farm, script and interactive simulation.

1) Screenplay formula

         Just run one of the two files as needed, fill in the corresponding information of the wind field according to the prompt, and a new wind field can be generated.

2) Interactive simulation

 In SimWindFarm, double-click the above picture to open its more detailed functions.

         The detailed functions are shown in the figure above. You can see that there are two types of wind farms. Double-click to select as needed. In the same way, input the wind field information according to the prompt, and after saving the file, you will have your own wind field data.

Guess you like

Origin blog.csdn.net/szl__lzs/article/details/121761416