Skip to content

Commit

Permalink
Catenary bug of missing dict entries fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
mattEhall committed Dec 8, 2023
1 parent 1564ae5 commit ef5f643
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions moorpy/Catenary.py
Original file line number Diff line number Diff line change
Expand Up @@ -517,12 +517,16 @@ def dV_dZ_s(z0, H): # height off seabed to evaluate at (infinite if 0), horizo
Kt = T0/d # transverse stiffness
K = np.matmul(R, np.matmul( np.array([[Kl,0],[0,Kt]]), R.T) ) # stiffness matrix (should check some of the math)

# put things in the format expected from the normal solve (this could all be refactored)
# put things in the format expected for later parts of the code
X = np.zeros(2)
HF = X[0] = HF
VF = X[1] = VF
HA = info4['oths']['HA'] = HA
VA = info4['oths']['VA'] = VA

info4['oths']['HF'] = HF
info4['oths']['VF'] = VF
info4['oths']['HA'] = HA
info4['oths']['VA'] = VA
info4['oths']['LBot'] = 0

info4['oths']["stiffnessA"] = np.array(K)
info4['oths']["stiffnessB"] = np.array(K)
Expand Down

0 comments on commit ef5f643

Please sign in to comment.