Repository navigation
docs(vehicle-ph-plant): the contact's implicit damper (libcvc #1004), the semi-implicit default (#981) and the discrete-gradient step (#978) - #156
Merged
Conversation
…ibcvc #1004) Section 7.3's limitation becomes the fix: the damper and friction are implicit and a fast closing is substepped, so a 7.8 m/s impact at the default 0.01 s substep dissipates 8.16e4 J (8.19e4 at 0.00125 s) with no limiter and 1.3e-3 of the flow unbooked, where it supplied 1.5e5 J before. It adds the grid field's |grad phi| = 2 at a face and its flat interior. The contact table splits into the model's gates (with TheImplicitDamperOnlyDissipates) and the plant's (with AFastImpactAtTheDefaultSubstep), and the 5 m/s rows take #1004's values, with the old ones in the caption. Measured at #1004's branch commit a61d981c; to be re-measured on master once it merges.
…options) merged as 1ded7bed
…ult; first releases #1004's rows are re-measured on libcvc master 352f1933 (after its squash ce9aebaf): the contact suite prints as at its branch commit, except the implicit solve now holds to 3.4e-16. #981 (45cb239a) makes the geometry rollout's default semi-implicit: section 9 gets its paragraph, with the multi-start penalties measured there and #981's A/B reported, not re-run; the review gap's integration item says so; the navigator table gains three #981 rows. #979, #982, #983, #987 and #1002 were first released in 3.7.9.
A new section 5.3 gives dyn_plant_dg, the implicit midpoint rule on the twist, whose books close to the Newton solve's tolerance (at most 1.7e-10 J a step, 1.3e-12 of the flow, against dyn_plant's 25 to 0.056 J), second order, with no coasting step gaining energy; not L-stable, about ten times dyn_plant's cost, C++ only, without wheel spin. Table 4 gives nav_dyn_bike_dg_test's gates, measured on libcvc master f94a9b27. The review's third gap is now closed, and the limitations and "What is not claimed" say what the step does not cover.
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 follow-up to #151 updates
docs/vehicle-ph-plant.texand its PDF for three libcvc PRs that merged on 2026-11-06 and 07, and for the libcvc release that shipped #151's pieces. With them, all three gaps raised in review are closed.What changed
ce9aebaf). §7.3's limitation becomes the fix.The fix: the damper and friction are now implicit: the step solves (M + h R_c) v_d = M v₀ + h W_c. A substep that would close more than 0.1 m on what it meets is cut into pieces.
The 7.8 m/s impact at the default 0.01 s substep:
The vehicle's slowest speed is −0.47 m/s, as at the fine step.
The navigation world's field: the section adds why it made things worse. Its grid signed distance has |∇φ| = 2 at a face, which makes the barrier 4× and the damper 8× stiffer than against an exact wall. The field is also flat inside a thick wall.
Tables: the contact table splits into the model's gates (Table 9, with
TheImplicitDamperOnlyDissipates) and the plant's runs (Table 10, withAFastImpactAtTheDefaultSubstep). The 5 m/s rows take #1004's values; the old ones are in the caption.DynContact.Goldenis byte-identical, so GRL-SNAM's contact fixture stands.45cb239a).SemiImplicitIsTheDefault, the explicit arm's gradcheck (6.5e-4) and the integrators' difference, and the material trainer's explicit full-chain gradcheck (2.2e-4).789d2f6e). Added after the first push.dyn_plant_dgis the implicit midpoint rule on the twist, M(v₁ − v)/h = J(Mv̄)v̄ + Q(v̄). Since J is skew, ΔH = h v̄ᵀQ(v̄) holds line for line.dyn_plant's 25 to 0.056 J.dyn_plantstep: 2.8–3.1 µs against 0.30 µs on this machine; the PR's own timings were 3.3–3.6 against 0.34–0.42. It is C++ only, and has no wheel spin.nav_dyn_bike_dg_test's gates, measured on libcvc masterf94a9b27, where #978's files are unchanged since its squash. All 7 tests pass, andnav_dyn_bike_test's 23 still do.nav_dyn_bike_dg_test, and the ctest filter is shorter.Where it was measured
libcvc master
352f1933, after v3.7.11. Every file #981 and #1004 touched is unchanged there since their squash commits. #978's rows were measured on masterf94a9b27.physics_dyn_contact_testphysics_dyn_bike_plant_testnav_geom_rollout_grad_testnav_coef_train_testnav_material_train_testnav_potential_testnav_dyn_bike_dg_test(atf94a9b27)Checks
pdflatex, three passes: no warnings, 54 pages..tex: no program, engagement, radio or vehicle-preset terms, no city name except the university's, and no session names.Not in this PR
contact_step_depth. pycvc's contact test still runs at a 0.005 s substep, which can now go back to the default in a small libcvc PR.