CoBubbles¶
CoBubbles stands for Collective Bubbles Simulations. It is a modular Python code for simulating bubbles on a plane (for instance, air bubbles at the surface of water).
Example¶
A minimal working example is demonstrated in this notebook.
Provided that Simu is defined properly, the following code instantiates a
simulation with the given parameters params:
from cobubbles.main import Simu
params = dict(lifetime=10)
s = Simu(**params)
s.params # or s.params_df for a view as a pd.Series
Then run the simulation for 100 steps and display a time series of bubbles number \(n\) and mean size \(\langle d/d_1 \rangle\) (figure output may be different for one run to the next):
s.run(100)
s.plot_time_series()
References¶
Néel, B. and Deike, L., Collective bursting of free surface bubbles, and the role of surface contamination, accepted at J. Fluid Mech.