README
This program simulates fluid diffusion through porous media. 3 different boundary conditions and 3 different initial starting spots are possible. Constants and materials parameters can be slightly tweaked as well. Comments throughout the code should explain most of the important functionality. The end output is an animation file, which can be downloaded and viewed with any media player (mp4 file). We recommend using the “rigid” boundary conditions (this is the default) with initial origins “edge”, “center point” or “edge point” and comparing the behavior across the 3 starting spots.
File Descriptions:
File Name | Purpose |
---|---|
2D_multigrid_diffusion.py/.ipynb | Python file/notebook that can be run in Jupyter Notebook |
final.sh | Shell script to run the .py in Adroit (with APC523 environment) |
To run the program, simply cd APC523S2022FinalProject
and then call ./final.sh
By changing parameters (g.q in particular) in the function “update force” the forcing terms can be adjusted, and it is worth looking at how forcing affects diffusion as well.
Feel free to let any of us know if you have any questions. Anita Zhang ([email protected]), Christine Blackshaw ([email protected]), Vladislav Sevostianov ([email protected])
For our project submission, the following files are included:
- powerpoint (animated images can be viewed in presentation mode)
- pdf write up
- .py file of the code
- .ipynb files of the code (in case that is easier to use)
- .sh shell script to run the .py files
- this README
- a couple mp4 videos which show example output