WEC-Sim icon indicating copy to clipboard operation
WEC-Sim copied to clipboard

[Feature request] readWAMIT does not support free-surface methods

Open dforbush2 opened this issue 2 years ago • 0 comments

Is your feature request related to a problem? Please describe. WAMIT supports OWC modeling via a free-surface method, in which the free surfaces are introduced similarly to a generalized body mode. However, this does not work with readWAMIT, which searches only for the string 'NEWMDS' in the *cfg file to determine if DOF should be expanded beyond 6. The free-surface method does not use the 'NEWMDS' string, but uses 'IMODESFSP'.

Describe the solution you'd like Expand the query for additional degrees of freedom to include 'IMODESFSP'

Describe alternatives you've considered The quickest hack around solution is attached. but this will only work if it is EITHER GBM or Free-surface method, not both. A generalization potentially presents complications. At most, FSP introduces a single additional mode that /should/ always be the last column. I'll upload a pull request with a more robust fix ASAP. readWAMIT.txt

dforbush2 avatar Sep 09 '22 21:09 dforbush2