mirror of
https://github.com/ParticulateFlow/CFDEMcoupling-PFM.git
synced 2025-12-08 06:37:44 +00:00
17 lines
438 B
Bash
Executable File
17 lines
438 B
Bash
Executable File
#!/bin/bash
|
|
|
|
cp ./CFD/constant/couplingProperties.one2one ./CFD/constant/couplingProperties
|
|
cp ./DEM/in.liggghts_run.one2one ./DEM/in.liggghts_run
|
|
|
|
#- define variables
|
|
casePath="$(dirname "$(readlink -f ${BASH_SOURCE[0]})")"
|
|
|
|
# check if mesh was built
|
|
if [ -f "$casePath/CFD/constant/polyMesh/boundary" ]; then
|
|
echo "mesh was built before - using old mesh"
|
|
else
|
|
echo "mesh needs to be built"
|
|
cd $casePath/CFD
|
|
blockMesh
|
|
fi
|