Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HydroDyn added mass at end of member may not computed properly #992

Closed
ebranlard opened this issue Feb 7, 2022 · 1 comment · Fixed by #1291
Closed

HydroDyn added mass at end of member may not computed properly #992

ebranlard opened this issue Feb 7, 2022 · 1 comment · Fixed by #1291

Comments

@ebranlard
Copy link
Contributor

Bug description
The variable v2D in the line below is (3x1):
https://github.com/OpenFAST/openfast/blob/dev/modules/hydrodyn/src/Morison.f90#L2125
Therefore, the expression matmul(transpose(v2D), v2D) returns a scalar.

I believe the equation should be replaced by matmul( (v2d, transpose(v2d) ) to return a 3x3 matrix.

In my windows gfortran value, the statement is interpreted in a weird way, and the scalar value is placed in the element (3,3) of AM_End, which is quite surprising.

I'll submit a pull request.

OpenFAST Version
Openfast dev as of 2/7/2022

@ebranlard
Copy link
Contributor Author

Fixed with #999

@rafmudaf rafmudaf mentioned this issue Oct 27, 2022
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant