-
Notifications
You must be signed in to change notification settings - Fork 457
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
MoorDyn updates and bug fixes #1727
Conversation
@mattEhall, can you review this? |
@RyanDavies19, are there any input file changes required for MD? It also looks like this may be changing the regression test results for MoorDyn (not surprising given the bugfixes). |
@andrew-platt No input file format changes for MD, other than the possible flags in the output options section are slightly different and have more options. This is being updated in the MD C++ documentation that the MD OpenFAST documentation page is linked to. |
There are some modifications needed in FAST.Farm as well: https://github.com/OpenFAST/openfast/actions/runs/5812836020/job/15761098777?pr=1727 |
Fixed that FAST.farm error. It needed to be updated to match the points convention. |
Thanks @RyanDavies19! I'll take a look at the differences in the regression test results and verify they make sense. Then probably do a PR to your branch with the regression test baseline update. Since this is a bug fix, I'm going to put it into the rc-3.5.1 branch for our next release. |
Hi Andy, I've reviewed and approve this once all tests are passing. |
@andrew-platt FYI I just added a new fix. MoorDyn was taking body orientation inputs as radians when it should have been degrees. Chatted with Matt and Lu about this. |
Hi @RyanDavies19, I just want to check with you whether the expression for the axial drag force on rod ends is as intended on the following two lines: |
@luwang00, you're right, a factor of 0.5 is missing! @RyanDavies19, if this sounds right to you too would you mind making this fix and also checking MD-C? |
@luwang00 I didn't know those were off, good catch. Is the correct fix then to use HydroDyn coefficients as shown below? Line 830:
|
@mattEhall will do and add to this branch. Is it just the one commit you linked? Happy to chat about changes to error handling, most everything was with regards to how things were printed. |
Hi @RyanDavies19, I think @mattEhall would prefer using a coefficient of 0.5 instead of 0.25, i.e., |
@luwang00 I chatted with Matt, 0.5 is what he said is best. |
@RyanDavies19 Thanks for confirming. Looks good to me. |
This is ready to merge. The fix to the catenary solver was changing the units of the line wet weight passed into the catenary from kg/m to N/m (Used by MoorPy and MoorDynC v1/v2). Prior to this, MoorDynF was not initializing the line tension correctly as seen in the figure below. Discussed this issue with Lu Wang and Stein Housner and they are in agreement. With this change, the initial tensions look like the following: The difference is due to a bug in the v2 C code, as MoorDynF now matches MoorDynC v1. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are a few regression tests that need updating. I'll post a PR to this branch for them.
See PR at OpenFAST/openfast#1727 for details on what changed
Update regression tests, and merge in latest rc-3.5.1
According to the documentation for MoorDyn v2 (https://moordyn.readthedocs.io/en/latest/inputs.html#points-list), it seems that the attachment could be defined as “Fixed”, “Vessel”, “Connect”. However, OpenFAST v3.5.1 does not accept "Connect". It seems that this "Connect" has been removed and "Coupled" should be used instead. Right? |
@RBergua It depends what you are looking for. Previous versions of MoorDyn used the word 'connect', which we have now transitioned to 'point'. Connect referred to a free point, and the key words 'free', 'point', or 'p' will give the same behavior in MoorDyn as the old 'connect' keyword would. In changing to points I tried to keep things backwards compatible, but missed this in the fortran code (connect is still and option in the C code). |
Feature or improvement description
Finished Connections to Points:
The transition to using the word points from using the word connections has been completed. Going forward all development should use the word points.
Standardized catenary solver:
The catenary solver has been standardized between MoorDynC and MoorDynF to produce the same results.
Standardized outputs:
MoorDynF and MoorDynC output flags have been standardized according to the following table:
Fixed input units:
MoordynF and MoorDynC now correctly take degrees as the input unit for body orientations (roll pitch yaw). Previously the input file listed degrees but internally the values were interpreted as radians (FloatingArrayDesign/MoorDyn#108).
Bug Fixes:
Resolves a body added mass bug, a rod Aq bug, rod inertia bug, and typos in comments:
Related issue, if one exists
n/a
Impacted areas of the software
MoorDyn
Additional supporting information
The new output flags have been added to the MoorDyn documentation.
Test results, if applicable
n/a