Package windSimSuite
[hide private]

Source Code for Package windSimSuite

 1  #!/usr/bin/env python 
 2  # -*- coding: utf-8 -*- 
 3  # 
 4  # This file is part of MBDyn sim suite. 
 5  # Copyright (C) 2007 André ESPAZE, as part of a Master thesis supervised by 
 6  # Martin O.L.Hansen (DTU) and Nicolas Chauvat (Logilab) 
 7   
 8  # MBDyn sim suite is free software; you can redistribute it and/or modify 
 9  # it under the terms of the GNU General Public License as published by 
10  # the Free Software Foundation; either version 2 of the License, or 
11  # (at your option) any later version. 
12  # 
13  # This program is distributed in the hope that it will be useful, 
14  # but WITHOUT ANY WARRANTY; without even the implied warranty of 
15  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
16  # GNU General Public License for more details. 
17  # 
18  # You should have received a copy of the GNU General Public License 
19  # along with this program; if not, write to the Free Software 
20  # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 
21  # 
22  """Wind-sim-suite is a library for simulating wind turbines. The main part 
23  is based on 
24  U{the Python package of MBDyn 
25  <http://mbdynsimsuite.sourceforge.net/documentation.html>} 
26  that provide objects for  
27  represeting abstract quantities: reference frames, nodes and elements. 
28  In this package, specific wind turbine objects are created. 
29  A wind turbine is splitted into 3 components: 
30  a tower, a nacelle and a rotor. The user is supposed to deal  
31  with those objects to start a simulation. The aerodynamic 
32  calculations are performed by an unsteady blade element momentum 
33  (BEM) code written entirely in Python. Two complete models have been written: 
34  the tjaereborg and NREL ones.  
35   
36  The post processing of data is done by the C{windsimsuite} application. 
37  A graphical user interface written in the  
38  U{GTK<http://www.gtk.org/>} 
39  library allows to explore results in 3D thanks to 
40  U{VTK<http://www.vtk.org/>} and plot figure in 2D 
41  with  
42  U{Matplotlib<http://matplotlib.sourceforge.net/>}. 
43  That's why the code uses also the  
44  U{pyGTK<http://www.pygtk.org/>} package as well 
45  as the  
46  U{PyGtkGLExt<http://www.k-3d.org/gtkglext/Main_Page>} one 
47  for providing a VTK area within a GTK interface.  
48  As a third part software, 
49  U{Glade<http://glade.gnome.org/>} was used 
50  to design the interface. 
51  """ 
52  __version__ = "0.1-r1" 
53  # Not __author__ because of Epydoc that does not handle the "é" 
54  __author_utf8__ = "André ESPAZE" 
55  __author_email__ = "ded.espaze@laposte.net" 
56   
57  __research_group__ = [\ 
58  "Francesco Braghin", 
59  "Luca Cavagna",  
60  "Pierangelo Masarati",  
61  "Fanzhong Meng",  
62  "Marco Morandini",  
63  "Giuseppe Quaranta",  
64  "Patrick Rix", 
65  "Philippe-Emmanuel Ascar" 
66  ] 
67   
68  from windSimSuite.common import Angle, List 
69  from windSimSuite.sections import Section, Airfoil, Curve 
70  from windSimSuite.bem_node import BemNode 
71  from windSimSuite.blade import Blade 
72  from windSimSuite.rotor import Rotor, Hub 
73  from windSimSuite.nacelle import Nacelle 
74  from windSimSuite.tower import Tower 
75  from windSimSuite.main import Simulation, WindTurbine, PyMBDynFile 
76