Adding your own turbineIt is quite easy to add your own turbine model to be used in the wind farm simulator. The easiest way to get started is probably by modifying a copy of the NREL5MW turbine. Alternatively you add a block with the following inputs and outputs to the turbine library and it will automatically be available in the wind farm creation GUI.
Note that the ordering of inputs and outputs must be as above for the wind farm simulator creator to work. Of the outputs 3 are absolutely necessary for the simulation to run.
The rest of the outputs are only used for post-processing and can be replaced by fake outputs. Publicly available parametersIn order for the supplied wake simulation, farm controller and network operator to work a number of turbine parameters has to be available to all other Simulink blocks.
These parameters are to be saved in the UserData of the block e.g. Saving public parameters
%Retrieve the turbine parameters
p=get__param('libturbines/NREL5MW','UserData')
%Add public data (already done for NREL5MW)
p.public.rotor.radius=60; % [m]
p.public.rated=5e6; % [W]
%Set new parameters
set_param('libturbines/NREL5MW','UserData',p)
set_param('libturbines/NREL5MW','UserDataPersistent','on')
Tips
|