Skip to content

This repository has the codes for the PHYS 230 final project submission

Notifications You must be signed in to change notification settings

japham0/PHYS230_FinalProject

Repository files navigation

PHYS 230 Final Project: Continuum Modeling for Fluid Phase-Separation

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.

Description

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.

Usage

  1. cahnhillardstandard.m models the standard cahn hillard equation phase separation over time
  2. cahnhillardvortex.m models the cahn hillard equation with a vortex fluid flow added
  3. convergence_test.m shows that the laplacian operator converges with order 2 accuracy
  4. 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

About

This repository has the codes for the PHYS 230 final project submission

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published