This is our submission for the final project for the Spring 2024 semester of PHYS 230: Computational Modeling for the Biological and Interdisciplinary Sciences and Engineering.
The goal of this project is to be able to model and visualize fluid phase-separation using continuum modeling techniques. To do so, we solve the standard Cahn-Hillard equation using finite-differencing schemes. From there, we implement a vortex forcing term to our system to examine the effects of a type of fluid flow to our phase separation model. We also wrote a python script which calculates the average size of an oil droplet after the phase separation, given an image of the system after Nt timesteps.
- cahnhillardstandard.m models the standard cahn hillard equation phase separation over time
- cahnhillardvortex.m models the cahn hillard equation with a vortex fluid flow added
- convergence_test.m shows that the laplacian operator converges with order 2 accuracy
- blobsize.ipynb prints the average size of a droplet given an image of the phase separation
The comments throughout each of the scripts show which parameters can be modified, as well as how to save the video.
Link to the google slides: https://docs.google.com/presentation/d/1rw-hgde6OsET5OLxl3_T_Y97T54a2H8IqOylQnVS620/edit#slide=id.g26f50e7d422_0_16