Skip to content

Commit

Permalink
Merge pull request OpenFAST#1776 from luwang00/dev
Browse files Browse the repository at this point in the history
HD Bug Fix: AddF0 for multiple potential-flow bodies with NBodyMod!=1
  • Loading branch information
andrew-platt authored Sep 19, 2023
2 parents 4ffcb82 + 91d2434 commit 48b0ae6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/hydrodyn/src/HydroDyn.f90
Original file line number Diff line number Diff line change
Expand Up @@ -1297,7 +1297,7 @@ SUBROUTINE HydroDyn_CalcOutput( Time, u, p, x, xd, z, OtherState, y, m, ErrStat,
indxStart = (iBody-1)*6+1
indxEnd = indxStart+5

m%F_PtfmAdd(indxStart:indxEnd) = p%AddF0(:,1) - matmul(p%AddCLin(:,:,iBody), q(indxStart:indxEnd)) - matmul(p%AddBLin(:,:,iBody), qdot(indxStart:indxEnd)) - matmul(p%AddBQuad(:,:,iBody), qdotsq(indxStart:indxEnd))
m%F_PtfmAdd(indxStart:indxEnd) = p%AddF0(:,iBody) - matmul(p%AddCLin(:,:,iBody), q(indxStart:indxEnd)) - matmul(p%AddBLin(:,:,iBody), qdot(indxStart:indxEnd)) - matmul(p%AddBQuad(:,:,iBody), qdotsq(indxStart:indxEnd))

! Attach to the output point mesh
y%WAMITMesh%Force (:,iBody) = m%F_PtfmAdd(indxStart:indxStart+2)
Expand Down

0 comments on commit 48b0ae6

Please sign in to comment.