mirror of
https://github.com/ParticulateFlow/CFDEMcoupling-PFM.git
synced 2025-12-08 06:37:44 +00:00
fix up voidfractionTest case [ci skip]
add post folder and testharness configuration
This commit is contained in:
0
tutorials/cfdemSolverPiso/voidfractionTest/DEM/post/.gitignore
vendored
Normal file
0
tutorials/cfdemSolverPiso/voidfractionTest/DEM/post/.gitignore
vendored
Normal file
2
tutorials/cfdemSolverPiso/voidfractionTest/postrun.sh
Executable file
2
tutorials/cfdemSolverPiso/voidfractionTest/postrun.sh
Executable file
@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# nothing to see here
|
||||||
13
tutorials/cfdemSolverPiso/voidfractionTest/prerun.sh
Executable file
13
tutorials/cfdemSolverPiso/voidfractionTest/prerun.sh
Executable file
@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
#- 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
|
||||||
13
tutorials/cfdemSolverPiso/voidfractionTest/run.config
Normal file
13
tutorials/cfdemSolverPiso/voidfractionTest/run.config
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
{
|
||||||
|
"type" : "CFDEMcoupling",
|
||||||
|
"runs" : [
|
||||||
|
{
|
||||||
|
"name" : "cfdemrun",
|
||||||
|
"solver" : "cfdemSolverPiso",
|
||||||
|
"type" : "CFDEMcoupling/mpi",
|
||||||
|
"nprocs" : 2,
|
||||||
|
"pre_scripts" : ["prerun.sh"],
|
||||||
|
"post_scripts" : ["postrun.sh"]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user