Skip to content

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

do_domain:
  - domain:
     bounds:    [ [0, 0, 0],[2.0, 2.0, 2.0] ]
     cell_dims: [ 100, 100, 100 ]
     periodic:  [ true, true, true ]

set_lbm_parameters:
  - lbm_parameters:
     Fext: [0,0,0]
     nuth: 1.0e-6    # m2/s, water at 20°C
     avg_rho: 1000.0 # kg/m3, water
     celerity: 14800.0   # 10 * célérité du son dans l'eau (m/s)
#     tau: 0.52

set_distributions:
  - set_distribution:
     value: 1.0
  - set_pressures

set_pressures:
  - set_dp_pressure:
     delta_p: 1.0e6
     quadrics: sphere
     transform:
       - scale:     [ 0.15, 0.15, 0.15 ]
       - translate: [ 1.0,  1.0, 1.0  ]
     verbosity: true

collision: mrt

global:
   simulation_paraview_freq: 20
   simulation_end_iteration: 500
   simulation_print_log_freq: 10
   output_directory: "PressureSphereWater"
  • The fluid is initialized at rest with set_distribution, then set_dp_pressure adds +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 mrt collision is used for stability.

Run

./hippoLBM ../hippoLBM/example/lbm_pressure_sphere_water.msp --omp_num_threads 4

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

dp pressure sphere

dp pressure sphere

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