Skip to content

Boats: an opt-in lift term on hull triangles; the tactical boat grips and planes on it - #1538

Merged
transfix merged 1 commit into
masterfrom
feat/hull-lift-planing
Nov 25, 2026
Merged

transfix merged 1 commit into
masterfrom
feat/hull-lift-planing

Conversation

@transfix

Copy link
Copy Markdown
Owner

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_coefficient K (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) adds

1/2 rho K S |u_t| u_n n

That 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.

  • Where it comes from. It is the potential part of a lifting plate's normal force in Polhamus's leading-edge-suction analogy (E. C. Polhamus, NASA TN D-3767, 1966). The other part, sin^2 a, is the pressure drag the model already has.
  • What it does. It is linear in a where the drag is quadratic, so a drifting V grips and a trimmed bottom lifts. Its induced drag (lift × tan τ) comes with it, since the force is normal to the face.
  • Integration. It is one more c_i times a projection of u, in the same implicit rate as the other velocity terms.
  • Calibration. K = 0.56 gives a flat plate the dynamic lift of Savitsky's planing equation (D. Savitsky, Marine Technology 1(1), 1964) for a wetted length of two beams. PhysicsHull.ATrimmedBottomTowedFastLifts measures it:
trim lift gained (N) ½ρK·S·V²·sin τ·cos²τ Savitsky
2° 702.57 702.72 654.79 (+7.3 %)
4° 1399.11 1399.45 1403.57 (−0.3 %)
6° 2083.68 2084.27 2192.48 (−4.9 %)

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:

  • PhysicsHull 2f71a1fe229afa75;
  • PhysicsBoat bb8e1b22f58136b2;
  • DynBoatPlant 96abfc30fcae4fd4;
  • 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:

part side force per radian of drift acts ahead of the centre of mass
the bow's pressure drag 12.6 kN 0.69 m
the lift 28.4 kN 0.22 m
in all 41.1 kN (3.3× the hull without lift)

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:

  • the legs (gearcases and skegs) are 0.2 m² at the propellers, x −3.6, z −0.42, and swing with the motors;
  • the motors' swing goes from 0.5 to 0.3 rad, so the full-lock circle stays where it was.

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):

before: fixed foil after: lift and legs
top speed 10.5169 m/s 10.2258 m/s
full lock, throttle 0.1 18.73 m at 3.15 m/s, 12.7° of drift 18.94 m at 2.58 m/s, 15.3°
throttle 0.3 22.73 m at 5.33 m/s, 10.6° 21.41 m at 4.53 m/s, 15.5°
throttle 0.5 25.86 m at 6.75 m/s, 9.4° 24.89 m at 6.05 m/s, 15.9°
throttle 0.7 28.63 m at 7.88 m/s, 8.5° 27.67 m at 7.31 m/s, 16.0°
full throttle 32.50 m at 9.23 m/s, 7.5° 32.25 m at 8.94 m/s, 16.1°
heel in that turn 6.4° outward 3.5° inward
full astern, full lock spins (0.27 m) spins (2.7 m)
  • max_speed goes from 10.5 to 10.2, and turn_radius from 32.5 to 32.3.
  • With the same legs and no lift, it turns on 48.6 m at 17.3° of drift.
  • It is slower at a crawl: at throttle 0.1 it makes 3.07 m/s, where it made 4.00, because the lift adds drag on the bow's entrance faces.

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.

throttle speed (m/s) thrust/weight trim rise (m) wetted area (m²) wetted length (m)
rest 0 0 0 0 13.29 6.44
0.1 3.04 0.024 0.49° 0.017 12.95 6.39
0.3 5.40 0.061 1.29° 0.049 12.31 6.26
0.6 7.84 0.099 2.18° 0.095 11.40 6.11
1.0 10.23 0.126 2.79° 0.142 10.22 5.98

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:

speed (m/s) trim rise (m) wetted area (m²) wetted length (m)
7.2 1.96° 0.08 11.67 6.15
12.9 3.20° 0.19 8.79 5.78
23.0 3.62° 0.30 5.20 5.12
29.4 3.64° 0.34 3.93 4.83
32.2 3.63° 0.35 3.52 4.74

What it does not do:

  • No resistance hump. The hump comes from the waves a hull makes, and the triangle model has none. Here the resistance rises to a knee at about 13 m/s and flattens: R/V² falls from 47.8 to 5.6 N·s²/m² between 7.2 and 32 m/s.
  • Trim levels off at 3.6° instead of peaking and falling. That is partly the missing waves. It is also because the body's centre of mass is its collision shape's volume centroid, at mid-length. A real outboard boat's is well aft. Moving it would need a body_desc field.

Tests

  • New in physics_hull_test:
    • ATrimmedBottomTowedFastLifts;
    • the lift's refusals (negative, non-finite);
    • a K of 0.56 changes the hash and restore() refuses it;
    • a K of 0 hashes as no lift.
  • New in 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;
    • PresetsDoWhatTheySay and TheTacticalBoatIsItsModelsHull, updated.
  • Run locally on Windows MSVC Release (Ninja, cvcGL off), all passing:
    • 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 other physics_* suites;
    • ocean_ewave/sea/shore/spectrum/wind_test, nav_plant_test;
    • ariadne_scene_world_test (144; one bench skipped), including NavTakesTerrainLabsLaunchAcrossTheLake, where the tactical boat reaches its goal in 7.8 s.
  • Not run locally: the cvcGL tests (cvcgl_ariadne_physics uses 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).
  • The terrain_lab.ari comment on the boat.

Scope

Not touched: world::water_at, field_wake.* and pycvc, which other sessions are working on. boat.cpp is unchanged.

… 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
transfix enabled auto-merge (squash) November 25, 2026 09:45
@transfix
transfix merged commit a529459 into master Nov 25, 2026
30 checks passed
@transfix
transfix deleted the feat/hull-lift-planing branch November 25, 2026 16:24
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant