Mesh-based nonlinear Froude-Krylov and hydrostatic load calculation in HydroDyn#3336
Open
luwang00 wants to merge 13 commits into
Open
Mesh-based nonlinear Froude-Krylov and hydrostatic load calculation in HydroDyn#3336luwang00 wants to merge 13 commits into
luwang00 wants to merge 13 commits into
Conversation
…ostatic load calculation in HydroDyn
…static forces and moments
…ll bodies if NBodyMod=1
…Krylov and hydrostatic load model Also fixed a potential bug when NBodyMod=1 and NBody>1. In this case, PotFile and WAMITULEN only have one entry each for all bodies instead of NBody entries. Updated r-test pointer.
…Krylov and hydrostatic option
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR is ready to be merged.
Feature or improvement description
This PR adds mesh-based nonlinear Froude-Krylov and hydrostatic load calculation in HydroDyn for the potential-flow bodies. This is still a work in progress with only basic functionality implemented. More information to come.
Initially, the implementation will only support ASCII STL files. The algorithm only supports triangular patches. Clipping of the triangular patches at the instantaneous waterline is included for fast convergence on coarse mesh.
For potential-flow bodies with nonlinear FK and hydrostatics enabled. HydroDyn requires the *.3sc file from WAMIT, which only contains the linear scattering loads to avoid double-counting the Froude-Krylov part. It also automatically zeros out the hydrostatic loads from
PtfmVol0and the hydrostatic stiffness matrix. Any second-order potential-flow loads are also zeroed out. Note that forNBodyMod=1(coupled potential-flow bodies), nonlinear Froude-Krylov and hydrostatics must be enabled or disabled for all bodies together. For decoupled bodies (NBodyMod=2orNBodyMod=3), nonlinear FK and hydrostatics can be selectively enabled for some bodies. The new features are currently incompatible with generalized degrees of freedom withNAddDOF>0.HydroDyn Inputs
This PR introduces two new input lines at the very end of the
FLOATING PLATFORMsection of the HydroDyn input file.Output Channels
Added new output channels
B1NFKFxi,B1NFKFyi,B1NFKFzi,B1NFKMxi,B1NFKMyi,B1NFKMzi, ...,B9NFKMzi. These outputs provide the combined nonlinear Froude-Krylov and hydrostatic forces and moments on the first 9 potential-flow bodies. The forces and moments are in the earth-fixedxi,yi, andzidirections and the moments are about the instantaneous body reference point, same as other similar output channels. For performance reasons, HydroDyn does not compute separate nonlinear Froude-Krylov excitation and hydrostatic forces and moments; only the combined loading is available.Note that if nonlinear Froude-Krylov and hydrostatic calculation is enabled (
FKMod=1), the regular wave excitation output channels, e.g.,B1WvsFxiandB1WvsF1xi, will only give the linear scattering part of the wave excitation computed from the.3scfile. The linearized hydrostatic loads, e.g.,B1HdsFzi, will also be zeroed. The sum ofB1WvsFxiandB1NFKFxi, for example, gives the total (Froude-Krylov and scattering) wave excitation and hydrostatic loads onB1.Example results
The total hydrodynamic and hydrostatic loads on a shallow-draft (5 m) body with a small freeboard (2.5 m) are computed using the new mesh-based nonlinear Froude-Krylov and hydrostatic load implementation. The side wall of the body is also heavily tapered with a corner at the still water level.
The loads reported include the mesh-based Froude-Krylov and hydrostatic loads and the scattering part of the linear wave excitation from frequency-to-time-domain transformation. The body is fixed. The irregular incident waves have a significant wave height of 5 m and a peak period of 12 s, leading to strongly nonlinear loading.
To check convergence, three different meshes are used, ranging from 92 triangular faces to 2,010 faces.
Coarse mesh (92 faces)



Medium mesh (506 faces)
Fine mesh (2,010 faces)
Good convergence is observed across the different mesh resolutions, with only occasional small differences between the coarsest mesh with only 92 faces and the medium mesh with 506 faces. Furthermore, the loads from both the medium and the fine mesh are smooth, indicating the waterline face clipping is functioning correctly.
Surge force

Heave force

Pitch moment

Pitch moment (zoomed in)

Still requires
Impacted areas of the software
HydroDyn, openfast_io, docs, r-test
Generative AI usage
Co-authored-by: Google Gemini gemini@google.com
Test results, if applicable
Requires input file changes, but should not affect existing r-test results if the new features are not used. All existing r-test passed. Also added a new HydroDyn module r-test for the mesh-based load calculation.