mirror of
https://github.com/ParticulateFlow/CFDEMcoupling-PFM.git
synced 2025-12-08 06:37:44 +00:00
add testharness config for one2one coupling test [ci skip]
This commit is contained in:
16
tutorials/cfdemSolverPiso/ErgunTestMPI/prerun_one2one.sh
Executable file
16
tutorials/cfdemSolverPiso/ErgunTestMPI/prerun_one2one.sh
Executable file
@ -0,0 +1,16 @@
|
||||
#!/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
|
||||
@ -14,6 +14,15 @@
|
||||
"nprocs" : 4,
|
||||
"pre_scripts" : ["prerun.sh"],
|
||||
"post_scripts" : ["postrun.sh"]
|
||||
},
|
||||
{
|
||||
"name" : "cfdemrun-one2one",
|
||||
"depends_on" : "liggghts-init",
|
||||
"solver" : "cfdemSolverPiso",
|
||||
"type" : "CFDEMcoupling/mpi",
|
||||
"nprocs" : 4,
|
||||
"pre_scripts" : ["prerun_one2one.sh"],
|
||||
"post_scripts" : ["postrun.sh"]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user