Acoustofluidics 2022: Minimal Example Plotting Scattering Fields

This is the minimal example on how to plot the scattered pressure field around a polystyrene particle suspended in water and subjected to an acoustic standing wave from the abstract book from the Acoustofluidics 2022 conference.

We import osaft and initialise the model from Yosioka & Kawasima.

12 from matplotlib import pyplot as plt
13
14 import osaft
15
16 yosioka = osaft.yosioka1955.ScatteringField(
17     f=1e6, R_0=1e-6,
18     rho_s=1020, c_s=2350,
19     rho_f=997, c_f=1498,
20     p_0=1e5, wave_type=osaft.WaveType.STANDING,
21     position=osaft.pi / 4,
22 )

The model is passed to the plotting class and the pressure field is plotted. The option incident=False makes sure that only the scattered field is plotted but not the incident field.

29 plot = osaft.FluidScatteringPlot(yosioka, r_max=4e-6)
30
31 plot.plot_pressure(incident=False)
32
33 plt.show()
example af2022 abstract scattering

Total running time of the script: ( 0 minutes 0.778 seconds)

Estimated memory usage: 47 MB

Gallery generated by Sphinx-Gallery