49 lines
1.3 KiB
Plaintext
49 lines
1.3 KiB
Plaintext
The instructions for compiling snowBedFoam solver in OpenFOAM-2.3.0:
|
|
(by Mahdi Jafari and Océane Hames, 2021)
|
|
|
|
_____________________________________________________________________
|
|
Open a terminal in this directory.
|
|
|
|
First, activate the OpenFOAM-2.3.0 environment:
|
|
|
|
of230
|
|
|
|
Then, run the following commands:
|
|
|
|
cp -rp src/lagrangianCRYOS $WM_PROJECT_USER_DIR/src/.
|
|
|
|
cp -rp applications/solvers/snowBedFoam $WM_PROJECT_USER_DIR/applications/solvers/.
|
|
|
|
|
|
Then, compile the new libraries by typing the following commands:
|
|
|
|
|
|
cd $WM_PROJECT_USER_DIR/src/lagrangianCRYOS/distributionModelsTriple
|
|
|
|
wclean
|
|
|
|
wmake
|
|
|
|
cd $WM_PROJECT_USER_DIR/src/lagrangianCRYOS/intermediateCRYOS
|
|
|
|
wclean
|
|
|
|
wmake libso
|
|
|
|
Finally, compile new solvers:
|
|
|
|
cd $WM_PROJECT_USER_DIR/applications/solvers/snowBedFoam
|
|
|
|
./Allwclean
|
|
|
|
./Allwmake
|
|
_____________________________________________________________________
|
|
|
|
The exampleCase folder is the simulation case used in the paper titled as:
|
|
"Modelling the small-scale deposition of snow onto structured Arctic sea ice during a MOSAiC storm using snowBedFoam 1.0."
|
|
https://doi.org/10.5194/gmd-2021-254
|
|
_____________________________________________________________________
|
|
The instructions for (1) programming the snow model and (2) running the simulation case are provided in the "documentation" folder.
|
|
|
|
|