Skip to content

Commit

Permalink
Fixed bug in model.analyzeUnloaded() introduced by previous commit
Browse files Browse the repository at this point in the history
Cannot call fowt.calcTurbineConstants() if not analyzing a `case`, which happens when we call model.analyzeUnloaded()
  • Loading branch information
lucas-carmo committed Dec 30, 2024
1 parent b5d2591 commit 69b8695
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion raft/raft_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,8 @@ def solveStatics(self, case, display=0):

X_initial[6*i:6*i+6] = np.array([fowt.x_ref, fowt.y_ref,0,0,0,0])
fowt.setPosition(X_initial[6*i:6*i+6]) # zero platform offsets
fowt.calcTurbineConstants(case, ptfm_pitch=0) # for turbine forces >>> still need to update to use current fowt pose <<<
if case:
fowt.calcTurbineConstants(case, ptfm_pitch=0) # for turbine forces >>> still need to update to use current fowt pose <<<
fowt.calcStatics() # Recompute statics because turbine heading may have changed due to yaw control

if statics_mod == 0:
Expand Down

0 comments on commit 69b8695

Please sign in to comment.