Skip to content

Define Phosphor fluid simulation API for PHO-2#13

Merged
wow-miley merged 1 commit intomainfrom
email/pho-2-phosphor-define-fluid-physics-simulation-api
Mar 4, 2026
Merged

Define Phosphor fluid simulation API for PHO-2#13
wow-miley merged 1 commit intomainfrom
email/pho-2-phosphor-define-fluid-physics-simulation-api

Conversation

@wow-miley
Copy link
Contributor

This PR introduces the core fluid-physics API in phosphor-core with PhosphorWorld, Volume/VolumeBounds, FluidType, Solver, and EdgeForce abstractions. PhosphorWorld now supports spatial partitioning, fixed-timestep updates, interleaved solver passes, and edge-force transfer between adjacent volumes. Volume projects fluid state into a deterministic particle output so the particle system remains the render-facing representation. It also adds FluidSimulationTest coverage for fluid validation, adjacency transfer, partition lookup, fixed-step behavior, and particle derivation from fluid state, and ./gradlew jvmTest passes.

@wow-miley wow-miley merged commit 81f9d6b into main Mar 4, 2026
1 check passed
@wow-miley wow-miley deleted the email/pho-2-phosphor-define-fluid-physics-simulation-api branch March 5, 2026 03:02
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