Newcastle University
Browse

2D fluid solver for MET layouts

Download (11.56 kB)
software
posted on 2023-03-10, 12:39 authored by Jordan Reece DayJordan Reece Day
<p>Python code for calculating flow streamlines in a two-dimensional geometry. This implements an RK4 algorithm and will simulate until a quasi-steady state is reached. This solver will only return the steady state velocity field x and y components (UX, UY).</p> <p>There are two reactor geometries considered for MET (Microbial electrochemical technologies).</p> <p>"Domain_Config.py" is a domain setup file, that outlines reactor geometry and fluid retention time.</p> <p>"Flow_streamlines.py" will load detains from Domain_config and return the flow profiles steady state condition.</p> <p>"Plotting_thesis.py" Contains functions to easily plot stream and contour plots for consistency.</p> <p>"Solver.py" is the bulk of the fluid solver and where the time-stepping is conducted.</p> <p>Issues may arise if resolution, dx, or dy are to small. Modify resolution or domain size if this occurs.</p>

History

Related Materials

Usage metrics

    Newcastle University

    Licence

    Exports

    RefWorks
    BibTeX
    Ref. manager
    Endnote
    DataCite
    NLM
    DC