Bellow we describe the steps to recreate the results of M.Giraud et al (2023) about the developments of CPlantBox 2.0:
- Download the files in a linux environment.
- make sure you have all the requirements installed by running the file "checkRequirements.py"
- run the three simulations presented in the paper (baseline, ealry dry spell, late dry spell), by running:
cd dumux-rosi/python/coupled
python3 runSimulation.py baseline
python3 runSimulation.py ealryDry
python3 runSimulation.py lateDry
- once the simulations have run, plot the results by running all the .R files in the folder "runSimulation.py".
- run the sensitivity analsisys for the xylem and phloem modules:
cd dumux-rosi/python/coupled
python3 sobol_phloem.py 18 dry
python3 sobol_phloem.py 11 dry
python3 sobol_phloem.py 18 wet
python3 sobol_phloem.py 11 dry
python3 sobol_xylem.py 18 dry
python3 sobol_xylem.py 11 dry
python3 sobol_xylem.py 18 wet
python3 sobol_xylem.py 11 dry
Alternativelly, adapt and use the batch files int he "bashFilesCluster" folder.
- Plot the results by going through the jupyter notebook "plotResults/plotSobolOutput.ipynb"