Skip to content

Commit 6b227e6

Browse files
committed
Revert "Bug fix of the rotor moments from CCBlade"
This reverts commit 293801513e3015f45062d0748ba24a2c1ee10328.
1 parent b9467ed commit 6b227e6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

raft/raft_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -847,7 +847,7 @@ def step_func_equil(X, args, Y, oths, Ytarget, err, tol_, iter, maxIter):
847847

848848
for i, fowt in enumerate(self.fowtList):
849849
print(f"Found mean offets of FOWT {i+1} with surge = {fowt.Xi0[0]: .2f} m, sway = {fowt.Xi0[1]: .2f}, and heave = {fowt.Xi0[2]: .2f} m")
850-
print(f" roll = {fowt.Xi0[3]*180/np.pi: .2f} deg, pitch = {fowt.Xi0[4]*180/np.pi: .2f} deg, and yaw = {fowt.Xi0[5]*180/np.pi: .2f} deg")
850+
print(f" roll = {fowt.Xi0[3]*180/np.pi: .2f} deg, pitch = {fowt.Xi0[4]*180/np.pi: .2f}, and yaw = {fowt.Xi0[5]*180/np.pi: .2f} deg")
851851

852852

853853
#dsolvePlot(info) # plot solver convergence trajectories

raft/raft_rotor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ def calcHydroConstants(self, dgamma=0, rho=1025, g=9.81):
636636
return A_hydro, I_hydro
637637

638638

639-
def calcCavitation(self, case, azimuth=0, clearance_margin=1.0, Patm=101325, Pvap=2300, error_on_cavitation=False):
639+
def calcCavitation(self, case, azimuth=0, clearance_margin=1.0, Patm=101325, Pvap=2500, error_on_cavitation=False):
640640
''' Method to calculate the cavitation number of the rotor
641641
(wind speed (m/s), rotor speed (RPM), pitch angle (deg), azimuth (deg))
642642
@@ -838,7 +838,7 @@ def calcAero(self, case, current=False, display=0):
838838
# Set up vectors in axis frame. Assuming CCBlade forces (but not
839839
# moments) are relative to the rotor axis
840840
forces_axis = np.array([loads["T"][0], loads["Y"][0], loads["Z" ][0]])
841-
moments_axis = np.array([loads["Q"][0], loads["My"][0], loads["Mz"][0]])
841+
moments_axis = np.array([loads["My"][0], loads["Q"][0], loads["Mz"][0]])
842842

843843
# Rotate forces and moments to be relative to global orientation (but still wrt hub)
844844
self.f0[:3] = np.matmul(self.R_q, forces_axis)

0 commit comments

Comments
 (0)