Skip to content

feat: air walls, viscosity, and advection - #9

Merged
chowjiaming merged 1 commit into
feat/air-fansfrom
feat/air-advect
Aug 14, 2026
Merged

chowjiaming merged 1 commit into
feat/air-fansfrom
feat/air-advect

Conversation

@chowjiaming

Copy link
Copy Markdown
Owner

Summary

  • Stone and wood block the coarse air grid so shockwaves no longer tunnel through walls.
  • Tick order is Euler → 3×3 viscosity → bilinear advection → zero blocked cells → inject fans last, with a 3/4 jet carry so the next 4×4 still reaches GAS_PUSH.
  • Fans stay unblocked so neighbors can sample fan velocity; |vx| stays bounded over 600 ticks.

Test plan

  • just verify
  • Stone wall between a blast and a far cell: far-side |pv| stays near 0
  • Fan at (0,6) with steam at (5,6): steam x increases vs no-fan control within 32 ticks
  • Fan still |vx| <= FAN_SPEED after a long run
  • Existing gunpowder decay and same-4×4 steam tests stay green

Stone and wood now stop shockwaves, viscosity blurs the field, and bilinear advection plus jet carry let fans push gas in the next 4×4.
@cursor

cursor Bot commented Aug 14, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@chowjiaming
chowjiaming merged commit 9fae7b2 into feat/air-fans Aug 14, 2026
2 checks passed
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