-
Notifications
You must be signed in to change notification settings - Fork 44
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
Static line tension disagreement #160
Comments
If you have a MDC_v2 model file, I would definitely be interested to take a look. It looks like the disagreement is percentage wise pretty small, but it would definitely be good to track it down. |
@AlexWKinley Sure thing, here it is: |
I've noticed dynamic relaxation differences popping up elsewhere too. I am currently working on tracking them down to put together a fix. @AlexWKinley if you see something that pops out to you that would be great to know. |
4808 x 1.025 = 4928
Might it be just a different default water density?
…On Thu, 12 Oct 2023, 21:39 RyanDavies19, ***@***.***> wrote:
I've noticed dynamic relaxation differences popping up elsewhere too. I am
currently working on tracking them down to put together a fix.
@AlexWKinley <https://github.com/AlexWKinley> if you see something that
pops out to you that would be great to know.
—
Reply to this email directly, view it on GitHub
<#160 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAMXKKD3YIT2ONYDIH5PKPTX7BBOLAVCNFSM6AAAAAA55447RCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONRQGI2TSNBQGE>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
@sanguinariojoe I don't believe so, at least not from the default value point. For MDC v2: Line 127 in 99cd2b6
For MDC v1: Line 307 in ea5ccf8
And MDF requires a manual input of rho via a driver input file, it is set to 1025 there. |
I do believe though it is a default value or scale issue of some kind because of the constant difference |
It was just an idea. I let you guys deal with this. I have some other
projects to attend
…On Thu, 12 Oct 2023, 22:47 RyanDavies19, ***@***.***> wrote:
@sanguinariojoe <https://github.com/sanguinariojoe> I don't believe so,
at least not from the default value point. For MDC v2:
https://github.com/FloatingArrayDesign/MoorDyn/blob/99cd2b6e6afa7e5d58e2ac7ac3a4b05e127f1f72/source/MoorDyn2.cpp#L127
For MDC v1:
https://github.com/FloatingArrayDesign/MoorDyn/blob/ea5ccf8c050f359cdd13a0a8b6f5cc5f3158405c/MoorDyn.cpp#L307
And MDF requires a manual input of rho via a driver input file, it is set
to 1025 there.
—
Reply to this email directly, view it on GitHub
<#160 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAMXKKBQ7OGDO7IRMZCSJYTX7BJOBAVCNFSM6AAAAAA55447RCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONRQGM2DGNZTGE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@AlexWKinley I think it was the first one you noted, with regards to adding an extra weight. V1 did have the added weight found here: Line 324 in ea5ccf8
Removing the added weight in v2 causes all the versions to line up (under the TmaxIC = 0 case). Here is the comparison with that weight removed: ![]() Another note though is that it seems like the dynamic relaxation methods have some differences. I will leave this issue open until we can resolve those as well. With the removal of that added weight, here are the fairtens with TmaxIC = 200: @mattEhall do you have any inputs on either of these? |
Hi all, Line 434 in d101052
Regarding differences in the initial conditions between C and F, the first thing I'd wonder is if the codes hit the convergence tolerance at different times (assuming they don't go through all of TMaxIC=200 seconds). I don't recall if the convergence criterion is the same in both codes. |
@mattEhall That's likely it, I believe the Fortran code reaches it first. I am working on that now and will have a PR up soon with both the weight double counting fix and that relaxation criteria standardized. |
Okay so it turned out there were a couple things going on here. First, MDF had an indexing error that caused it to not compare the current fairten to the previous 10 in the dynamic relaxation routine. Secondly MDC was checking the previous 10 fairtens while MDF was checking the previous 9 fairtens. Lastly the way the MDC main IC gen time stepping loop was set up caused an extra timestep to be run because ICTmax - t > 0 when t = ICTmax due to precision errors. Fixing these in both codes resolves the differences we were seeing. For that same case1 input file these are the results now: I am putting together PR's to both MDF and MDC with these changes. |
Static lines initialize with different tensions between MDC_v2 and MDF_v2/MDC_v1. Differences also emerge with dynamic relaxation. Using MoorPy, NREL's quasi-static model, the equilibrium fairlead tension is 4808 kN. This indicates that MDC_v1 and MDF_v2 are getting a solution closer to the correct answer. See the figures below for a single line resting partially on the seabed:
Line profile:
![case_1_shape](https://private-user-images.githubusercontent.com/101124339/274670151-5c5bfe21-b3e8-467f-9181-c540eba7704f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1Mjk1MTYsIm5iZiI6MTczOTUyOTIxNiwicGF0aCI6Ii8xMDExMjQzMzkvMjc0NjcwMTUxLTVjNWJmZTIxLWIzZTgtNDY3Zi05MTgxLWM1NDBlYmE3NzA0Zi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE0JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNFQxMDMzMzZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1jZTg0ODRlYzAyNzUwZjE3ZjUzN2RiZDhlZDIzODk2YjY4NzkyYjJkYWQwN2U2NGRhMDY3M2IxYWZmYmE1MjdiJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.igT3nMjcQuCFS0TlFNI6uFkSnOjb_ivIEyw9PUigiNQ)
Fairlead tension with TmaxIC = 0:
![case1_comparison](https://private-user-images.githubusercontent.com/101124339/274670256-c2d75686-be37-47f8-8cd2-127303193d2c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1Mjk1MTYsIm5iZiI6MTczOTUyOTIxNiwicGF0aCI6Ii8xMDExMjQzMzkvMjc0NjcwMjU2LWMyZDc1Njg2LWJlMzctNDdmOC04Y2QyLTEyNzMwMzE5M2QyYy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE0JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNFQxMDMzMzZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT00NmQyMmMyZDFlNzNlNTg0N2Y4ZjdjYzViYjAxMjllYTg3NmYwYWVkMzg1NTEyNjlhZmFiMGI1OWZjZGYyODNhJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.jEXIsPq3-1zPNd2uK6z3MEa-UD_x0QgQEiAsmYvO8lQ)
Fairlead tension with TmaxIC = 200:
![200s_dyrelax](https://private-user-images.githubusercontent.com/101124339/274670328-2785b163-220b-47e9-833a-422c9e00b936.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1Mjk1MTYsIm5iZiI6MTczOTUyOTIxNiwicGF0aCI6Ii8xMDExMjQzMzkvMjc0NjcwMzI4LTI3ODViMTYzLTIyMGItNDdlOS04MzNhLTQyMmM5ZTAwYjkzNi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE0JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNFQxMDMzMzZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT03MDg1ODVmOTAxNGU2ZTZkMGUzYjExYzNlZThkZWVlZDBjZTVhNGJjYjA2ZGNhNGRhZTM2NzE2OTU0ZmFjODYzJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.Yz8FZr0WJdvlzFtIBYY1m9S3Mu5uhFRx9RnbAn-XtFk)
The text was updated successfully, but these errors were encountered: