1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 """The tower definition"""
23 import numpy as N
24 from windSimSuite.common import ObjectWithNodesAndElems
25
26
28 """The tower definition for aerodynamics calculation.
29 """
30
32 self.aero_height = 0.
33 self.correction_height = 0.
34 self.radius = 0.
35 self.local_vector = N.zeros((3, 1))
36
38 """Set the tower radius"""
39 self.radius = radius
40
42 """Return the tower radius from a height position.
43 User using a tower model different from a cylinder
44 will have to override that method by defining
45 their own tower."""
46 return self.radius
47
49 """Set the height of the tower for aerodynamic
50 calculations. The nacelle is in that case seen
51 as a point"""
52 self.aero_height = aero_height
53 self.local_vector = N.array([ [0.],
54 [0.],
55 [self.aero_height] ])
56
58 """Set a height for the tower shadow correction.
59 Currently not used because the correction
60 is in development"""
61 self.correction_height = height
62
64 """Return the tower vector in the absolute
65 reference frame. This is direct in that case."""
66 return self.local_vector
67
68
69 -class Tower(AerodynamicsTower, ObjectWithNodesAndElems):
70 """The tower defition. This class gathers the aerodynamics
71 calculation and the MBDyn part.
72 """
73
79