Repository navigation
Commit efbfbba
authored
fix: a finite-EI dynamic step on the inertia's round-off floor converges (#168)
A finite-EI cable could fail its first dynamic step at a small time
step: Newton stagnated just above the tolerance, and the step
recovery's smaller steps only raised it. Found on a 13 m riser (64
elements) at rest in a 0.95 m/s current taking the VIV lift at dtM
1.25e-4 s: the residual stopped at 1.06 times the tolerance, and each
4-fold smaller substep raised the stagnant residual about 16-fold
(3.8e-8, 6.2e-7, 8.6e-6, 1.3e-4, 2.6e-3, 4.7e-2 N), to 3.4e4 times the
tolerance at 1024 substeps.
The 16-fold growth per 4-fold step is the inertia's 1/dt^2, not the
1/dt of a velocity-coupled force (drag, VIV lift): the inertia takes
the acceleration (q - q_n)/(beta dt^2) - ... from coordinates stored
to their last bits, so its residual cannot be settled below about eps
sum_j |M_ij| |q_j| / (beta dt^2). The rows that stalled were the axial
rows of nodes 8.5 to 12 m deep, not the cross-flow rows the lift
loads: the Newton correction they needed, a few 1e-16 m, is below the
1.8e-15 m spacing of those coordinates. Without the lift the step
starts at the static equilibrium and converges at its predictor; with
it the line near rest sets no inertial force scale, and tol times the
force scale (here its axial round-off floor) lies below the inertia's
floor. A floor of the force scale built from that bound, where it
binds, would accept residuals up to 16 times the bound, some 60 times
the floor Newton reaches (the bound sits about 4 times above it:
1.7e-7 against 3.8e-8 N on the riser, 4.7e-3 against 1.2e-3 N in the
test below). The fix is therefore a stall test, as on the EI = 0
route: when no step length of a fresh Newton correction reduces the
residual, the residual is below 1e-4 of the force scale, and the
correction moves no free coordinate by more than 16 eps times its
scale (the largest coordinate magnitude or element length; 1 or the
largest tangent or twist magnitude for those DOFs), the iterate is
converged.
The riser now runs at dtM 1.25e-4 s, and over 2 s its node positions
and fairlead tension continue the time-step sequence of dtM 5e-4 and
2.5e-4 s (differences 1.3 mm and 0.55 mm, 5.5 N and 2.9 N). A step
that meets the tolerance is unchanged: every example and test-data
deck gives bit-identical outputs on the old and new driver (229 files
over 118 decks), and through the C API five coupled steps of every
deck give bit-identical line arrays (1685 arrays over 70 decks), and
the full test suite (424 tests; 426 after the rebase onto 6c469fe) passes on the default and the Prescott
OpenBLAS kernel, where the 66 example decks also run with no fallback
note.
Test: test_hermite_viv round-off floor, the test's 100 m line hung
vertically from 50 to 150 m depth, from rest with the lift at dt
2.5e-5 s. Before, the first step stagnated at 2.4 times the tolerance
through its 50-iteration budget and failed; now each step stops on the
floor after two iterations, and the cross-flow displacement at 0.02 s
matches the same line's at dt 1e-3 s within 1 % (to 5 digits).
Signed-off-by: Jae Hoon Seo <jaehoon.seo@inha.ac.kr>1 parent 6c469fe commit efbfbba
4 files changed
Lines changed: 143 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
160 | 173 | | |
161 | 174 | | |
162 | 175 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2918 | 2918 | | |
2919 | 2919 | | |
2920 | 2920 | | |
2921 | | - | |
| 2921 | + | |
| 2922 | + | |
| 2923 | + | |
| 2924 | + | |
| 2925 | + | |
| 2926 | + | |
| 2927 | + | |
| 2928 | + | |
| 2929 | + | |
| 2930 | + | |
| 2931 | + | |
2922 | 2932 | | |
2923 | 2933 | | |
2924 | 2934 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4915 | 4915 | | |
4916 | 4916 | | |
4917 | 4917 | | |
| 4918 | + | |
| 4919 | + | |
| 4920 | + | |
| 4921 | + | |
4918 | 4922 | | |
4919 | 4923 | | |
4920 | 4924 | | |
| |||
5537 | 5541 | | |
5538 | 5542 | | |
5539 | 5543 | | |
| 5544 | + | |
| 5545 | + | |
| 5546 | + | |
| 5547 | + | |
| 5548 | + | |
| 5549 | + | |
| 5550 | + | |
| 5551 | + | |
| 5552 | + | |
| 5553 | + | |
| 5554 | + | |
| 5555 | + | |
| 5556 | + | |
| 5557 | + | |
| 5558 | + | |
5540 | 5559 | | |
5541 | 5560 | | |
5542 | 5561 | | |
| |||
6234 | 6253 | | |
6235 | 6254 | | |
6236 | 6255 | | |
| 6256 | + | |
| 6257 | + | |
| 6258 | + | |
| 6259 | + | |
| 6260 | + | |
| 6261 | + | |
| 6262 | + | |
| 6263 | + | |
| 6264 | + | |
| 6265 | + | |
| 6266 | + | |
| 6267 | + | |
| 6268 | + | |
| 6269 | + | |
| 6270 | + | |
| 6271 | + | |
| 6272 | + | |
| 6273 | + | |
| 6274 | + | |
| 6275 | + | |
| 6276 | + | |
| 6277 | + | |
| 6278 | + | |
| 6279 | + | |
| 6280 | + | |
| 6281 | + | |
| 6282 | + | |
| 6283 | + | |
| 6284 | + | |
| 6285 | + | |
| 6286 | + | |
| 6287 | + | |
| 6288 | + | |
| 6289 | + | |
| 6290 | + | |
| 6291 | + | |
| 6292 | + | |
| 6293 | + | |
| 6294 | + | |
| 6295 | + | |
| 6296 | + | |
6237 | 6297 | | |
6238 | 6298 | | |
6239 | 6299 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
23 | 30 | | |
24 | 31 | | |
25 | 32 | | |
| |||
132 | 139 | | |
133 | 140 | | |
134 | 141 | | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
135 | 145 | | |
136 | 146 | | |
137 | 147 | | |
| |||
200 | 210 | | |
201 | 211 | | |
202 | 212 | | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
203 | 261 | | |
204 | 262 | | |
205 | 263 | | |
| |||
0 commit comments