I am trying to create a wind turbine model in PyMAPDL. I got to a point where I have a tower and a nacelle. However, I got stuck making the blades of the wind turbine.
They should be 3 and separated 120 degrees between them. To give you some context, the length units are mm, the tower height is 180m.
The code that I tried was the following:
blade_radius = 50000
blade_count = 3
blade_tips_keypoints = []
blade_lines = []
for i in range(blade_count):
angle = i * 360 / blade_count
mapdl.kwpave(p1 = nacelle_keypoints[-1])
mapdl.wprota(thzx = angle)
blade_tips_keypoints.append(mapdl.k(0, 0, blade_radius))
for i in range(blade_count):
blade_lines.append(mapdl.l(p1 = nacelle_keypoints[-1], p2 = blade_tips_keypoints[i]))
The result of this is the following:
These are the keypoints it generated These are the lines it generated