The flow case files have 3 folders: system, constant and 0. It also has a Allrun file. Firstly,go to system>decomposeParDict and change numberOfSubdomains to the number of cores on your system (or lesser, as per your requirement). To select one of the 24 cases (as described in report), you need to edit the following files:

1. system>topoSetDict: in 'actions' change 'sourceInfo' for 'multiPositionExhaustFan' by pasting appropriate case number coordinates commented below in the same file.

2. 0>U: in 'boundaryField change 'multiPositionExhaustFan' section by pasting appropriate 'type' and 'value' for the case number desired, which are commented below in the same file.

Once you have set the case number by following above steps, open terminal at the path of the folder containing the 0, constant, system and Allrun files. Type 'bash ./Allrun' to run the simulation.

For the ceiling AC case, just run the Allrun command.

Inbuilt age function has also been implemented, and will run automatically after the flow simulation. It can be disabled in the controlDict file by commenting/removing the code.

Since artFoam is a custom solver, we need to compile it. Open the artFoam folder in terminal and run wclean and wmake.

After the flow simulation, copy the U and phi files from the latest time step folder and paste it in the 0 folder of the artFoam case files.
Also paste the topoSetDict and createPatchDict files from the flow simulation folder you just ran into the system folder of the artFoam case files.

Use Allrun command in this directory to solve for Air residence time distribution using artFoam.

For using the machine learning algorithm, train the model with pre-existing data, and then use the position of your exhaust fan as the input (can use either the one variable code or the two variable code as explained in the report) to find out the predicted air residence time.

Excel file with all the results is linked in the report for verification of results.
