Scalable Millifluidic Separator for Magnetic Nanoparticles: In-silico Design and Optimisation
Authors: Yanzhe Wen, Dai Jiang, Asterios Gavriilidis, Maximilian O. Besenhard
Scripts written by: Yanzhe Wen
Description: Python scripts to perform the simulatinons (=the particle tracking algorithm and analysis) to evaluate the separation performance in dependence on the process parameters. 

Contents of repository
1) README.txt:
	This file.
2) combined_functions.py:
	(Do Not Modify!) Contains all necessary functions (e.g. particle tracking algorithm) to simulate separator.
3) trajectories.py:
	Produces a plot/snapshot of the annular region in the separator channel, showing 20 trajectories moving through the separator, from start (left) to finish (right).
	Captured trajectories are plotted as blue lines, whilst not-captured trajectories are plotted as red lines.
	Users can customize the initialization parameters (e.g., particle radius, flowrate, tube radius, wire-to-tube radius ratio, and separator length etc.).
	Note that the starting radial positions of the trajectories are representative of their probability distribution as prescribed by the annular axial flow velocity profile.
		i.e., If the user specifies x number of trajectories to be simulated, they can expect slightly more than 0.5x of the trajectories have starting radial positions near the center of the annulus.
4) performance.py:
	Produces the statistical performance of the separator, including capture efficiency (CE) and separator efficiency (SE).
	This script can be adapted to performance sensitivity analyses studies.
	Again, users can customize the initialization parameters (e.g., particle radius, flowrate, tube radius, wire-to-tube radius ratio, separator length etc.).
	
How to use the Python scripts?
1) Open the repository in an IDE or code editor (e.g. VS Code) with Python 3.8.2 (or above) setup.
2) Run trajectories.py or performance.py, depending on what is needed. 
	If any packages are missing, install them in the environment through 'pip install {missing-package-name}'.
3) You should see the results of performance.py in the Terminal, while a plot will pop up upon completion of trajectories.py.