m-giraud / CPB20R3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

drawing

Recreate the results of M Giraud et al. (2023)

Bellow we describe the steps to recreate the results of M.Giraud et al (2023) about the developments of CPlantBox 2.0:

Setup the files

  1. Download the files in a linux environment.
  2. make sure you have all the requirements installed by running the file "checkRequirements.py"

Recreate the main results

  1. 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
  1. once the simulations have run, plot the results by running all the .R files in the folder "runSimulation.py".

Recreate the sensitivty analysis results

  1. 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.

  1. Plot the results by going through the jupyter notebook "plotResults/plotSobolOutput.ipynb"

About


Languages

Language:C++ 79.6%Language:Python 9.0%Language:Jupyter Notebook 3.4%Language:CMake 2.4%Language:Roff 1.9%Language:C 1.5%Language:TeX 1.4%Language:Shell 0.4%Language:R 0.2%Language:CSS 0.1%Language:GLSL 0.1%Language:Raku 0.0%Language:Hack 0.0%Language:Perl 0.0%Language:MATLAB 0.0%Language:HTML 0.0%