SD: Bug fix for concentrated mass with CoG offset #2458
Merged
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 should be ready to merge after review.
Feature or improvement description
This PR aims to fix a known bug with non-zero CoG offset/eccentricity of concentrated masses in SubDyn (Issue #1710) that was causing problems for some users (Issue #2451). The following fixes are implemented:
p%FG
following the suggested fix of @ebranlard in Issue SD: concentrated mass with excentricity cannot be fully accounted for in SubDyn #1710.p%CMassNode
.p%CMassWeight
, andp%CMassOffset
to supportGuyanLoadCorrection
for fixed-bottom structures and self-weight update for floating structures during the run.GuyanLoadCorrection
term to the nodal moments is added. This term is in the form ofcross_product( matmul(p%CMassOffset(i,:),orientation)-p%CMassOffset(i,:), (/0.0,0.0,-p%CMassWeight(i)/) )
, whereorientation
is just the nodal orientation matrix due to the Guyan modes only. This additional correction term is zero if the offset/eccentricity is zero as expected.This PR also adds a warning that SubDyn currently does not account for geometric stiffness from cable pretension if the user specifies one or more cables with non-zero pretension. See Issue #1956 and PR #2363.
Related issue, if one exists
Issues #1710, #2451, #1956
Impacted areas of the software
SubDyn
Test results, if applicable