FloatingArrayDesign / MoorDyn

a lumped-mass mooring line model intended for coupling with floating structure codes
BSD 3-Clause "New" or "Revised" License
64 stars 37 forks source link

Fixes #219 #224

Closed sanguinariojoe closed 1 week ago

sanguinariojoe commented 2 weeks ago

As promised, I am coming with a verification code. Some notes:

RyanDavies19 commented 2 weeks ago

@sanguinariojoe thanks for putting this together and for the rewrite of the test approach, this looks really solid. I will work on getting more regression test cases uploaded that really test our capabilities, and I will make sure that the options sections are compatible with both versions. If you have any suggestions for those send them to me, I am planning to get them in next week. For the line failures in MD-C, that is something I need to fix. I just rewrote and fixed the MD-F ones (https://github.com/OpenFAST/openfast/pull/2214) but didn't have the time to do MD-C yet, so don't worry about that one for now.

Noted on the tolerances as well, I had just taken them from the OpenFAST defaults.

sanguinariojoe commented 2 weeks ago

I'll do that, sure thing! But it has to wait until next week. Tomorrow we celebrate midsummer! Partyyyyyyyyy

On Thu, 20 Jun 2024, 18:11 RyanDavies19, @.***> wrote:

@.**** commented on this pull request.

In tests/.mdf_verification/verify.py https://github.com/FloatingArrayDesign/MoorDyn/pull/224#discussion_r1647825242 :

  • rod_state = moordyn.GetRodState(rod)
  • state += np.array(rod_state).flatten().tolist()
  • names += [f"rod_{rod_id}",] * len(rod_state)
  • n_points = moordyn.GetNumberPoints(system)
  • for i in range(n_points):
  • point = moordyn.GetPoint(system, i + 1)
  • if moordyn.GetPointType(point) not in (moordyn.POINT_TYPE_COUPLED, ):
  • continue
  • point_id = moordyn.GetPointID(point)
  • point_state = moordyn.GetPointPos(point)
  • state += point_state
  • names += [f"point_{point_id}",] * len(point_state)
  • return state, names
  • +def read_outs(fpath, skiplines=2):

Add a check here for *** akin to: https://github.com/RyanDavies19/MoorDynC_ryan/blob/c572051566b119b401c623fe6c3f42d8b085dcc3/verification/verify.py#L51

OpenFAST/MD-F will sometimes have an overflow error for numbers very close to 0 (e-100) where it prints *** instead of the value

— Reply to this email directly, view it on GitHub https://github.com/FloatingArrayDesign/MoorDyn/pull/224#pullrequestreview-2130853055, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAMXKKGK7HITLKCPL6J26OLZIL5M7AVCNFSM6AAAAABJTZTF2SVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDCMZQHA2TGMBVGU . You are receiving this because you were mentioned.Message ID: @.***>

sanguinariojoe commented 2 weeks ago

BTW, I am idiot and pointed the PR against master. Can you change that to point to dev?

Otherwise I'll do that next week

On Thu, 20 Jun 2024, 18:06 RyanDavies19, @.***> wrote:

@sanguinariojoe https://github.com/sanguinariojoe thanks for putting this together and for the rewrite of the test approach, this looks really solid. I will work on getting more regression test cases uploaded that really test our capabilities, and I will make sure that the options sections are compatible with both versions. For the line failures in MD-C, that is something I need to fix. I just rewrote and fixed the MD-F ones but didn't have the time to do MD-C yet, so don't worry about that one for now.

— Reply to this email directly, view it on GitHub https://github.com/FloatingArrayDesign/MoorDyn/pull/224#issuecomment-2181056962, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAMXKKDB4ZST64USB5JG4FLZIL4YTAVCNFSM6AAAAABJTZTF2SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBRGA2TMOJWGI . You are receiving this because you were mentioned.Message ID: @.***>

RyanDavies19 commented 2 weeks ago

BTW, I am idiot and pointed the PR against master. Can you change that to point to dev? Otherwise I'll do that next week On Thu, 20 Jun 2024, 18:06 RyanDavies19, @.> wrote: @sanguinariojoe https://github.com/sanguinariojoe thanks for putting this together and for the rewrite of the test approach, this looks really solid. I will work on getting more regression test cases uploaded that really test our capabilities, and I will make sure that the options sections are compatible with both versions. For the line failures in MD-C, that is something I need to fix. I just rewrote and fixed the MD-F ones but didn't have the time to do MD-C yet, so don't worry about that one for now. — Reply to this email directly, view it on GitHub <#224 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAMXKKDB4ZST64USB5JG4FLZIL4YTAVCNFSM6AAAAABJTZTF2SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBRGA2TMOJWGI . You are receiving this because you were mentioned.Message ID: @.>

Done

Ojala que pasa bien las fiestas!