Pressurized sphere in water¶
A spherical over-pressure of 1 MPa (radius 0.15 m) is released at the center of a fully periodic 2 m cube of water (\(\nu\) = 10⁻⁶ m²/s, \(\rho\) = 1000 kg/m³, 100 cells per axis). The resulting pressure pulse propagates as an acoustic wave and wraps around the periodic boundaries.
Deck¶
- The fluid is initialized at rest with
set_distribution, thenset_dp_pressureadds +1 MPa inside the sphere, relative to the surrounding water (\(\Delta p = 0\) leaves the fluid unperturbed). - The lattice celerity is set to 14,800 m/s (10 times the speed of sound in water) to keep the density perturbation
small: with
verbosity: true, the operator prints the lattice density of the sphere. - The water viscosity gives \(\tau\) very close to \(1/2\): the
mrtcollision is used for stability.
Run¶
The run lasts 500 steps, with ParaView outputs every 20 steps in PressureSphereWater/; the P field is the
pressure difference (Pa) relative to the reference state of the water.
Results¶


To smooth the pressure jump at the surface of the sphere, or to set a pressure ramp, see
set_dp_pressure_gradient.