DOI: 10.18419/darus-3314
title: Code for: Experimental Investigations of the Flow-Following Capabilities and Hydrodynamic Characteristics of Lagrangian Sensor Particles With Respect to Their Centre of Mass
title: Code for Lagrangian Particle Tracking within the framework of a Master thesis

description: &lt;b&gt;Data for 2D Lagrangian Particle tracking and evaluation for their hydrodynamic characteristics&lt;/b&gt; &lt;/br&gt;
&lt;/br&gt;
## Abstract&lt;/br&gt;
This dataset entails PYTHON code for fluid mechanic evaluation of Lagrangian Particles with the "Consensus-Based tracking with Selective Rejection of Tracklets" (CSRT) algorithm in the "OpenCV" library, written by Ryan Rautenbach in the framework of his Master thesis.&lt;/br&gt;
&lt;/br&gt;
## Workflow for Lagrangian Particle tracking and evaluatio via OpenCV&lt;/br&gt;
In the following a brief introduction and guide based on the folders in the repository is laid out. More code specific instructions can be found in the respective codes.&lt;/br&gt;
&lt;/br&gt;
working_env_RMR.yml --&gt; Contains the entire environment including software versions (here used with Spyder IDE and Conda) with which the datasets were evaluated.&lt;/br&gt;
&lt;/br&gt;
01 --&gt; The tracking always begins with the same 01_milti[...] folder in which the python code with OpenCV algorithm is located. For tracking the tracking to work certain directories are required in which the raw images are to be stored (separate from anything else) as well as a directory in which the results are to be save (not the same directory as the raw data).&lt;/br&gt;
&lt;/br&gt;
After tracking is completed for all respective experiments and the results directories are adequately labelled and stored any of the other code files can be used for respective analyses. The order of folders beyond the first 01 directory has no relevance to the order of evaluation however can ease the understanding of evaluated data if followed.&lt;/br&gt;
&lt;/br&gt;
02 --&gt; Evaluation of amount of circulations and respective circulation time in experimental vat. (code can be extended to calculate the circulation time based on the various plains that are artificially set)&lt;/br&gt;
&lt;/br&gt;
03 --&gt; Code for the calculation of the amount of contacts with the vat floor. Code requires certain visual evaluations based on the LP trajectories, as the plain/barrier for the contact evaluation has to be manually set.&lt;/br&gt;
&lt;/br&gt;
04 --&gt; Contains two codes that can be applied to results data to combine individual results into larger more processable arrays within python.&lt;/br&gt;
&lt;/br&gt;
05 --&gt; Contains the code to plot the trajectory of single experiments of Lagrangian particles based on their positional results and velocity at respective position, highlighting the trajectory over the experiment.&lt;/br&gt;
&lt;/br&gt;
06 --&gt; Condes to create 1D histograms based on the probability density distribution and velocity distributions in cumulative experiments.&lt;/br&gt;
&lt;/br&gt;
07 --&gt; Codes for plotting the 2D probability density distribution (2D Histograms) of Lagrangian Particles based on the cumulative experiments. Code provides values for the 2D grid, plotting is conducted in Origin Lab or similar graphing tools, graphing can also be conducted in python whereby the seaborn (matplotlib) library is suggested.&lt;/br&gt;
&lt;/br&gt;
08 --&gt; Contain the code for the dimensionless evaluation of the results based on the respective Stokes number approaches and weighted averages. 2D histograms are also vital to this evaluation, whereby the plotting is again conducted in Origin Lab as values are only calculated in code.&lt;/br&gt;
&lt;/br&gt;
09 --&gt; Directory does not contain any python codes but instead contains the respective Origin Lab files for the graphing, plotting and evaluation of results calculated via python is given. Respective tables, histograms and heat maps are hereby given to be used as templates if necessary.