FhSim  3.1.0
Marine systems simulation
Loading...
Searching...
No Matches
0329 — The BottomContact port test does not exercise the M_y and M_z moment terms
Class TEST
Severity 1
Status ready

Models: Net/NetStructure

Found: 2026-09-30 review of f42360e..a6492d6 (four parallel correctness reviews)

Decision needed: —

Evidence

tests/NetStructure_BottomContact_Test.cpp:108 (PortCarriesTheSeafloorForceAndMoment) puts the nodes at x = 0 with a purely vertical stub seafloor force, so only M_x is non-zero; the cross-product terms for M_y and M_z (src/net/NetStructure.cpp:744-746) are correct by reading but untested.

Effect

A sign or index error in M_y or M_z would pass.

Possible fix

Move one node off x = 0 and give the stub seafloor a horizontal (friction) component.

Test that would prove it

The test itself; swap two cross-product terms to see it fail.

Risk

None.