This is the code to my paper Chemomechanical simulation of soap film flow on spherical bubbles
⚠️ only tested on an arch linux machine with GTX 1080
- AmgX
- CUDA
- Boost
- OpenCV
git clone https://github.com/RiverIntheSky/SoapBubble.git
cd SoapBubble
mkdir build
cd build
cmake ..
make
./soapBubble ../config.txt
Please have a look at the config file config.txt, and the physical meanings of the quantities in include/bubble.cuh.
The air flow velocity can be initialized via a custom texture as in init/velocityfield_512.exr. Velocity fields are scaled so that maximum speed is 1.0. Channels are u_theta, u_phi, 0. Additionally, one can hard-code a time-varying wind velocity field in airFlowU() and airFlowV().
Please have a look at those # defines in include/header.cuh and how they are used in kernel/bubble.cu.
A sequence of grayscale textures storing the thickness of the film, scaled by H in config.txt
Attempts on bubbles breaking and Van der Waals forces is made, with little success.