Repository navigation
Boats: an opt-in lift term on hull triangles; the tactical boat grips and planes on it - #1538
Merged
Merged
Conversation
… and planes on it
hull_mesh::lift_coefficient K (default 0: off) adds a lift term to the
hull model's triangles. On a wetted face the water meets it is
1/2 rho K S |u_t| u_n n, a normal pressure of 1/2 rho |u|^2 K sin a cos a:
the potential part of a lifting plate's normal force in Polhamus's
leading-edge-suction analogy (NASA TN D-3767, 1966), whose vortex part,
sin^2 a, is the pressure drag the model already has. It is one more
velocity term in the same implicit rate. K 0.56 gives a flat plate the
dynamic lift of Savitsky's planing equation (Marine Technology 1(1), 1964)
for a wetted length of two beams: within 0.3 % at 4 degrees of trim,
+7.3 % at 2, -4.9 % at 6.
With K 0 the step does nothing new and the hull's digest leaves K out, so
every existing pinned hash is unchanged: PhysicsHull 2f71a1fe229afa75,
PhysicsBoat bb8e1b22f58136b2, DynBoatPlant 96abfc30fcae4fd4 (a launch and
a jonboat), physics_replay_test. No pinned hash covers the tactical boat,
so none is re-pinned.
dyn_boat_desc::tactical() moves onto it (K 0.56) and drops its fixed
0.4 m^2 keel foil. The hull's own side force acts ahead of its centre of
mass whatever K is (drifting at 8 m/s: its bow's pressure drag 0.69 m
ahead, the lift 0.22 m), so the bare hull still yaws off its course and
spins. The rudder slot is now the outboards' legs (0.2 m^2 at the
propellers, swinging with the motors), and the motors swing 0.3 rad
(was 0.5) so the full-lock circle stays where it was:
top speed 10.5169 -> 10.2258 m/s (max_speed 10.5 -> 10.2)
full lock 18.73 m at 3.15 m/s .. 32.50 m at 9.23 m/s
-> 18.94 m at 2.58 m/s .. 32.25 m at 8.94 m/s (turn_radius 32.3)
drift 7.5-12.7 -> 15-16 degrees; heel 6.4 out -> 3.5 in
The lift more than triples the hull's grip; with the same legs and no
lift it turns on 48.6 m. At full throttle it trims 2.8 degrees bow up,
rises 0.14 m and runs on 10.2 of its 13.3 m^2 of bottom; given 30 kN it
planes at 32 m/s on 3.5 m^2, risen 0.35 m, its trim levelling at 3.6
degrees. The model has no wave-making resistance, so there is no hump:
the resistance rises to a knee and flattens.
Tests: PhysicsHull.ATrimmedBottomTowedFastLifts, the lift's refusals and
its place in the hash; DynBoatPlant.TheTacticalHullGripsWithoutAFoil,
TheTacticalBoatDoesNotSpinAtFullLock and TheTacticalHullPlanesAtSpeed;
PresetsDoWhatTheySay with the new numbers. Roadmap section 7 ("As built
(hull lift and planing)"), PHYSICS_API.md and tools/boat_hulls/README.md.
transfix
enabled auto-merge (squash)
November 25, 2026 09:45
transfix
added a commit
that referenced
this pull request
Nov 26, 2026
Conflict in docs/roadmap/OCEAN-AND-WEATHER-ROADMAP.md: master's boat-model paragraph (#1538's hull lift) with this branch's last sentence pointing land vehicles at the new wading section.
This was referenced Nov 26, 2026
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.
Boats get lift from their own hull: an opt-in lift term on the hull mesh's triangles. The tactical boat moves onto it and drops its fixed keel foil; a fast hull planes.
The term
hull_mesh::lift_coefficientK (inc/cvc/physics/hull.h, default 0 = off). On a wetted face the water meets (u_n < 0),push_hull(src/cvc/physics/field_step.cpp) addsThat is a normal pressure of 1/2 rho |u|^2 K sin a cos a, where a is the angle at which the water meets the face.
PhysicsHull.ATrimmedBottomTowedFastLiftsmeasures it:The drag it gains is that lift × tan τ, within 1.4 %.
Off is off. With K = 0 the step does nothing new, and the hull's digest leaves K out. Every existing pinned hash is unchanged on Windows MSVC:
PhysicsHull2f71a1fe229afa75;PhysicsBoatbb8e1b22f58136b2;DynBoatPlant96abfc30fcae4fd4;physics_replay_test.No pinned hash covers the tactical boat, so none is re-pinned. The cvcGL tests that use it check its placement and water cut-out, which do not change. CI checks the hashes on Linux, macOS and wasm.
The tactical boat
K 0.56 on its loft, and the fixed 0.4 m² foil at x −0.8 is gone.
The lift alone could not hold the boat straight, because the hull's own side force acts ahead of its centre of mass whatever K is. Drifting at 8 m/s from its level float:
So the bare hull still yaws off course and spins, even with the motors amidships. With K at 0.3, 0.56 and 1.0 it spun every time; I measured this with a temporary harness, not committed.
Outboard boats are held straight by their motors' legs, so the rudder slot is now those legs. This is a judgment call; please check it is acceptable:
With a 0.5 rad swing the boat turned on 12–20 m at 25–30° of drift. With fixed legs it turned on 66–170 m.
Before and after (each turn after 60 s straight, means over the last 30 s of 90 s at full lock; the full-throttle row is
PresetsDoWhatTheySay's):max_speedgoes from 10.5 to 10.2, andturn_radiusfrom 32.5 to 32.3.Planing
From rest (1.31° bow down). Each throttle is held 33 s; trim and rise of the hull's centroid are measured from rest.
Without the lift at full throttle, the same boat trims 1.51° and rises 0.046 m on 12.38 m². The foil boat was about the same: 1.49° and 0.046 m.
Given 30 kN, with no thrust falloff short of 40 m/s, it planes:
What it does not do:
body_descfield.Tests
physics_hull_test:ATrimmedBottomTowedFastLifts;restore()refuses it;physics_dyn_boat_plant_test:TheTacticalHullGripsWithoutAFoil: the drift loads above, the full-lock comparison with and without the lift, and the bare hull spinning;TheTacticalBoatDoesNotSpinAtFullLock: throttle 0.15, 0.5 and 1.0 to port, and full throttle to starboard;TheTacticalHullPlanesAtSpeed: both sweeps above;PresetsDoWhatTheySayandTheTacticalBoatIsItsModelsHull, updated.physics_hull_test(19),physics_dyn_boat_plant_test(16, including nav driving the boats),physics_boat_test(10);physics_field_test(45),physics_world_test(47),physics_vehicle_test(35),physics_immersion_test,physics_codec_test,physics_plant_host_test,physics_replay_test(all 1240 steps match the trace), and the otherphysics_*suites;ocean_ewave/sea/shore/spectrum/wind_test,nav_plant_test;ariadne_scene_world_test(144; one bench skipped), includingNavTakesTerrainLabsLaunchAcrossTheLake, where the tactical boat reaches its goal in 7.8 s.cvcgl_ariadne_physicsuses the tactical preset for placement and cut-out) and the Linux, macOS and wasm lanes.Docs
docs/roadmap/OCEAN-AND-WEATHER-ROADMAP.md§7 has a new "As built (hull lift and planing)" section, with the before-and-after numbers, the planing tables and the limits.docs/PHYSICS_API.md.tools/boat_hulls/README.md(giving a new boat its grip).Scope
Not touched:
world::water_at,field_wake.*and pycvc, which other sessions are working on.boat.cppis unchanged.