From d67ee0d63eedcd936533a95718390e2a809985f7 Mon Sep 17 00:00:00 2001 From: danielque Date: Fri, 17 Jul 2020 11:31:43 +0200 Subject: [PATCH] add testharness config for one2one coupling test [ci skip] --- .../ErgunTestMPI/prerun_one2one.sh | 16 ++++++++++++++++ .../cfdemSolverPiso/ErgunTestMPI/run.config | 9 +++++++++ 2 files changed, 25 insertions(+) create mode 100755 tutorials/cfdemSolverPiso/ErgunTestMPI/prerun_one2one.sh diff --git a/tutorials/cfdemSolverPiso/ErgunTestMPI/prerun_one2one.sh b/tutorials/cfdemSolverPiso/ErgunTestMPI/prerun_one2one.sh new file mode 100755 index 00000000..0950382d --- /dev/null +++ b/tutorials/cfdemSolverPiso/ErgunTestMPI/prerun_one2one.sh @@ -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 diff --git a/tutorials/cfdemSolverPiso/ErgunTestMPI/run.config b/tutorials/cfdemSolverPiso/ErgunTestMPI/run.config index 032fedbb..53d4f9e0 100644 --- a/tutorials/cfdemSolverPiso/ErgunTestMPI/run.config +++ b/tutorials/cfdemSolverPiso/ErgunTestMPI/run.config @@ -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"] } ] }