Download data/tutorials/XiFluid/engine2Valve2D/Allrun from introvoyz042/OpenFOAM-dev: direct link, hf CLI and curl.
- Browser
- Download file 1.36 kB
-
https://huggingface.co/datasets/introvoyz042/OpenFOAM-dev/resolve/main/data/tutorials/XiFluid/engine2Valve2D/Allrun
- Command line
-
hf download hf://datasets/introvoyz042/OpenFOAM-dev/data/tutorials/XiFluid/engine2Valve2D/Allrun
-
curl -L -o Allrun https://huggingface.co/datasets/introvoyz042/OpenFOAM-dev/resolve/main/data/tutorials/XiFluid/engine2Valve2D/Allrun
1.36 kB
| #!/bin/bash | |
| cd ${0%/*} || exit 1 # Run from this directory | |
| # Source tutorial run functions | |
| . $WM_PROJECT_DIR/bin/tools/RunFunctions | |
| # Get the serial/parallel mode | |
| ! isTest "$@" && [ -n "$1" ] && mode=$1 || mode=serial | |
| case $mode in | |
| serial) | |
| ./Allmesh serial | |
| runApplication foamRun | |
| ;; | |
| parallel | stitchSerial) | |
| ./Allmesh serial | |
| # Decompose the meshes and fields | |
| runApplication decomposePar | |
| for meshDir in constant/meshes/* | |
| do | |
| runApplication -a decomposePar -mesh "$(basename "$meshDir")" | |
| done | |
| runParallel foamRun | |
| runApplication reconstructPar | |
| ;; | |
| stitchParallel) | |
| ./Allmesh parallel | |
| # Reconstruct the mesh and then decompose the fields | |
| # | |
| # !!! Note: We could do decomposePar -copyZero here instead if the | |
| # field files were set up with boundary conditions for the processor | |
| # and nonConformalProcessorCyclic patch groups | |
| # | |
| runApplication reconstructPar -noFields -constant | |
| runApplication -a decomposePar -fields | |
| runParallel foamRun | |
| runApplication -a reconstructPar | |
| ;; | |
| *) | |
| echo "Error: mode $mode not recognised" | |
| exit 1 | |
| ;; | |
| esac | |
| #------------------------------------------------------------------------------ | |