4.75
4.8 | 4 ratings Rate this file 52 Downloads (last 30 days) File Size: 313 KB File ID: #26273
image thumbnail

Animate a Wind Farm with MATLAB

by

Simulink Dude (view profile)

 

04 Jan 2010 (Updated )

A VRML model of a wind turbine, animated with MATLAB and Simulink 3D Animation.

| Watch this File

File Information
Description

In this demo, we show how you can create the 3D visualization of a wind farm consisting of identical wind turbines in the ocean. Using the extrusion node in VRML, we model the complex 3D geometry of a blade. We use a NACA 0015 Thickness Form as the wing section of the blade, vary its size and orientation along its spine. By using other simple geometrical constructs in VRML, we model the hub and the tower. Grouping and replication of nodes enables the assembly of the wind turbine and then the wind farm. By using the Simulink 3D Animation API, we do a simple animation of the turbines from MATLAB.

The modeling of the blade geometry in VRML may also be of interest to aerospace engineers.

Please note that Simulink 3D Animation is required to run the demo.

The videos on how this was built from scratch is available under
"Green Energy Application Examples" section here:

http://www.mathworks.com/products/3d-animation/demos.html

Enhancements to the demo:
1. Adding realism to the 3D scene in this submission here:

http://www.mathworks.com/matlabcentral/fileexchange/28089

2. Fog effect for this demo is added in this submission here:

http://www.mathworks.com/matlabcentral/fileexchange/28091-animate-a-wind-farm-with-matlab-add-the-fog-effect

Required Products Simulink 3D Animation
MATLAB release MATLAB 7.9 (R2009b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (8)
08 Oct 2013 German

German (view profile)

 
06 Dec 2011 Raghu

Raghu (view profile)

 
05 Oct 2011 Mr Smart  
03 Nov 2010 Erdal Bizkevelci  
10 Oct 2010 Simulink Dude

Simulink Dude (view profile)

You can now follow me on Twitter:

http://twitter.com/simulinkdude

Comment only
20 Sep 2010 Simulink Dude

Simulink Dude (view profile)

Design Talk: Enhancing Simulation Studies with 3D Animation Article

http://www.ecnmag.com/Articles/2010/09/Design-Talk/Enhancing-Simulation-Studies-with-3D-Animation/

Comment only
27 Jul 2010 Simulink Dude

Simulink Dude (view profile)

A fellow reader asked a question about how to record the animation to AVI file since the buttons were inaccessible:

The code would simply be the addition of the following:
set(fig,'Record2D','on');
set(fig,'NavPanel','none');
set(world,'Recording','on');

just after the vrfigure command. See below:

world=vrworld('Wind_Turbine_Realism.wrl', 'new'); % change this
open(world);
fig=vrfigure(world);
set(fig, 'Headlight', 'off');
set(fig,'Record2D','on');
set(fig,'NavPanel','none');
set(world,'Recording','on');
blades_1=vrnode(world, 'Blades_1');
blades_2=vrnode(world, 'Blades_2');
blades_3=vrnode(world, 'Blades_3');

phase_1=0;
phase_2=pi/3;
phase_3=pi/6;

for theta=0:0.25:12*3*pi
pause(0.001)
blades_1.rotation=[0 0 1 phase_1-theta];
blades_2.rotation=[0 0 1 phase_2-theta];
blades_3.rotation=[0 0 1 phase_3-theta];
vrdrawnow;
end

Also, use:

get(fig)

to access additional properties such as:

Record2D = 'off'
Record2DCompressMethod = 'auto'
Record2DCompressQuality = 75
Record2DFPS = 15
Record2DFileName = '%f_anim_%n.avi'

Documentation is here:

http://www.mathworks.de/access/helpdesk/help/toolbox/sl3d/f4-33836.html

Comment only
12 Jul 2010 Simulink Dude

Simulink Dude (view profile)

Enhacments to the demo:
1. Adding realism to the 3D scene in this submission here:

http://www.mathworks.com/matlabcentral/fileexchange/28089

2. Fog effect for this demo is added in this submission here:

http://www.mathworks.com/matlabcentral/fileexchange/28091-animate-a-wind-farm-with-matlab-add-the-fog-effect

Comment only
Updates
12 Jul 2010

Updated description to include enhancements made to the demo.

Contact us