Wind sim suite
Wind Sim Suite installation
This page describes how to install the Python package for wind turbine simulations and post-processing of results. The simulation part consists only in a Python package based on MBDyn sim suite, without any extra dependencies. So once you get that part working, you can simulate wind turbines. However it will be difficult for you to see results, you will have to write your own scripts. The post processing application assits this step but requires graphical libraries. That's why the prerequisites are the most demanding part, however once installed they will almost do all the work.Prerequisites
Fisrt you need to have a working OpenGL installation with your X windows system. For example try to run the program: # glxgearsIf you see some animation you are ready to start, else you need to get a working GLX. The VTK library is based on that service, usually supplied by your system distribution, but you may encounter driver issues.
You can then install the following softwares:
- MBDyn sim suite, the MBDyn service for Python
- GTK, the library used for the graphical user interface
- Libglade, the library allowing to use Glade files in the program
- pyGTK, for using GTK from Python
- VTK, the library for 3D rendering installed with Python bindings
- GtkGLExt, allows to use a VTK area inside GTK, need to be installed with Python bindings
- Matplotlib, for plotting the results, need the GTKAgg backend
Extracting the source
Place the archive downloaded in the previous step, in the directory of your choice. Extract the source and open a terminal in the top directory containing the file 'setup.py'.Build and install
The package building will be achieved by: # python setup.py buildIf everything goes well, else contact the developers, you can continue by the installation: # sudo python setup.py install
It will install the package to the Python standard location. Omit the 'sudo' command if it is not used on your system but execute the line with administrator rights. You can specify another location by the "--prefix" option, but be sure to then update your 'PYTHONPATH'. Moreover the script 'windsimsuite' in the 'bin' directory is supposed to be installed in the corresponding 'bin' directory of your prefix. You may also need to update your 'PATH' variable or copy the executable script to a place that suits you.
Running the application
The best way to test if the application is correctly installed: # windsimsuiteYou can then load some examples files from the interface. Most of the items contained in the tree are supposed to offer a menu by a right-click. In the 3D area managed by VTK:
- press "r" to get the view
- press "0" to enter in the rotation mode
- left mouse button to rotate
- middle (or right and left buttons) to move
- right mouse button to zoom