-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.txt
39 lines (35 loc) · 1.78 KB
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
This repository contains code that was used for the numerical experiments of the article:
https://arxiv.org/abs/2412.14316
SETTING UP THE SIMULATION:
In order to run the simulations one first needs to install the finite element package
FIREDRAKE https://www.firedrakeproject.org/
After successful installation, start the virtual environment provided by firedrake:
Navigate to the firedrake directory and use "source bin/activate" in the terminal.
Next, install the package
TQDM https://tqdm.github.io/
This can be done by running "pip install tqdm"
The setup is complete and the virtual environment can be deactivated by running "deactivate"
SETTING UP DATA VISUALISATION:
Install the packages
pandas https://pypi.org/project/pandas/
seaborn https://pypi.org/project/seaborn/
This can be done by running "pip install pandas" and "pip install seaborn", respectively.
RUNNING THE SIMULATION:
We first need to start firedrake's virtual environment:
Navigate to the firedrake directory and use "source bin/activate" in the terminal.
Now, navigate to the directory 'gen-Stokes'.
The numerical simulations are started by running:
python3 run_lid_driven_exp{1,2,3}.py
python3 run_p_variation_exp{1,2,3}.py
After completion, we can deactivate the virtual environment.
RUNNING DATA VISUALISATION:
First, we need to process the data:
Navigate to 'data_processing/python-code-processing'.
Select the data that should be processed by specifying the imported configs.
Run in terminal:
python3 process_increment.py
After the processing, we visualise the data:
Navigate to 'data_processing/python-code-plot'.
Select the data that should be processed by specifying the imported configs.
Run in terminal:
generate-{histogramm-plot,histo-plot-point-statistics,inc-plot,trajectory-plot,traj-point-statistics}.py