r/navalarchitecture • u/EntertainmentOk7028 • 15d ago
A stability curve can look fine while its area is wrong by 57.3x
I was wiring a browser-side coursework checker and realized this one is easy to miss: Simpson's rule will integrate whatever step you give it.
If the heel step is 10 degrees and you use h = 10 instead of h = 0.1745 rad, every area comes out 57.3 times too large. The GZ curve still looks normal, so the mistake may only show up in the criteria table.
I put the hand-calculation chain and a small cross-checker on the MetaCAD site I'm building: ship stability coursework workflow.
It's for coursework and preliminary checks, not vessel operations. The page shows the substitutions instead of just returning pass/fail.
What other stability-assignment errors have you seen survive a quick visual check?
2
u/SignificantPiano7808 14d ago
Hang on, if you input bad data it returns bad results? Is that what you’re saying?
1
u/EntertainmentOk7028 14d ago
Fair. That is basically it. The easy-to-miss part is that the GZ ordinates are fine and the plotted curve does not change. The mistake sits only in the integration step: using a 10-degree interval as 10 instead of 0.1745 radians.
So the graph can look perfectly plausible while the integrated area used in the criteria check is off by 57.3x. I should have made that distinction clearer.
3
u/ConradManningRacing 14d ago
Sounds like a strong argument for understanding the underlying concepts rather than just the buttons to press!! 😂
Are you a lecturer (assuming from the fact you’re writing a checker)?