mirror of
https://github.com/ParticulateFlow/CFDEMcoupling-PFM.git
synced 2025-12-08 06:37:44 +00:00
Fix init case
This commit is contained in:
@ -20,6 +20,5 @@ echo "Enter: yes, Ctrl + C: no"
|
|||||||
read
|
read
|
||||||
|
|
||||||
rm $casePath/DEM/post/restart/*.*
|
rm $casePath/DEM/post/restart/*.*
|
||||||
rm -r $casePath/DEM/post/restart/5/
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -18,20 +18,20 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# check if initialization was done
|
# check if initialization was done
|
||||||
if [ -f "$casePath/DEM/post/restart/liggghts.restartCFDEM_5.000000" ]; then
|
if [ -f "$casePath/DEM/post/restart/liggghts.restart" ]; then
|
||||||
echo "Initialization was run before - using existing restart file"
|
echo "Initialization was run before - using existing restart file"
|
||||||
else
|
else
|
||||||
cd $casePath
|
cd $casePath
|
||||||
bash init.sh
|
./parDEMrun.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# run the drainage simulation
|
|
||||||
cd $casePath/CFD
|
cd $casePath/CFD
|
||||||
cp system/controlDict.run system/controlDict
|
cp -r 0.org 0
|
||||||
cp constant/couplingProperties.run constant couplingProperties
|
setFields
|
||||||
cp -r $casePath/DEM/post/restart/5/ .
|
|
||||||
decomposePar -force
|
decomposePar -force
|
||||||
mpirun -np $nrProcs cfdemSolverMultiphase -parallel |& tee $casePath/log_run
|
|
||||||
|
cd $casePath
|
||||||
|
./parCFDDEMrun.sh
|
||||||
|
|
||||||
# generate files for post processing
|
# generate files for post processing
|
||||||
cd $casePath
|
cd $casePath
|
||||||
|
|||||||
@ -39,7 +39,7 @@ boundaryField
|
|||||||
atmosphere
|
atmosphere
|
||||||
{
|
{
|
||||||
type calculated;
|
type calculated;
|
||||||
uniform 0;
|
value uniform 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -61,13 +61,13 @@ forceModels
|
|||||||
//BeetstraDrag
|
//BeetstraDrag
|
||||||
//DiFeliceDrag
|
//DiFeliceDrag
|
||||||
//gradPForce
|
//gradPForce
|
||||||
gradPForceSmooth
|
//gradPForceSmooth
|
||||||
viscForce
|
//viscForce
|
||||||
KochHillDrag
|
//KochHillDrag
|
||||||
//interface
|
//interface
|
||||||
//DEMbasedDrag
|
//DEMbasedDrag
|
||||||
//RongDrag
|
//RongDrag
|
||||||
//Archimedes
|
Archimedes
|
||||||
//volWeightedAverage
|
//volWeightedAverage
|
||||||
//totalMomentumExchange
|
//totalMomentumExchange
|
||||||
//particleCellVolume
|
//particleCellVolume
|
||||||
|
|||||||
@ -23,7 +23,7 @@ startTime 0;
|
|||||||
|
|
||||||
stopAt endTime;
|
stopAt endTime;
|
||||||
|
|
||||||
endTime 5; //60
|
endTime 1; //60
|
||||||
|
|
||||||
deltaT 0.005;
|
deltaT 0.005;
|
||||||
|
|
||||||
|
|||||||
@ -95,4 +95,4 @@ run ${nrIterations} upto
|
|||||||
region particleRm cylinder z 0 0 ${cylRadius} 0.08 0.15
|
region particleRm cylinder z 0 0 ${cylRadius} 0.08 0.15
|
||||||
delete_atoms region particleRm
|
delete_atoms region particleRm
|
||||||
|
|
||||||
write_restart post/restart/fill.restart
|
write_restart post/restart/liggghts.restart
|
||||||
@ -75,7 +75,7 @@ units si
|
|||||||
processors 2 2 1
|
processors 2 2 1
|
||||||
|
|
||||||
# read the restart file
|
# read the restart file
|
||||||
read_restart ../DEM/post/restart/liggghts.restartCFDEM_5.000000
|
read_restart ../DEM/post/restart/liggghts.restart
|
||||||
|
|
||||||
neighbor ${skin} bin
|
neighbor ${skin} bin
|
||||||
neigh_modify delay 0
|
neigh_modify delay 0
|
||||||
|
|||||||
@ -0,0 +1,30 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
#===================================================================#
|
||||||
|
# allrun script for testcase as part of test routine
|
||||||
|
# run settlingTest CFD part
|
||||||
|
# Christoph Goniva - Feb. 2011
|
||||||
|
#===================================================================#
|
||||||
|
|
||||||
|
#- source CFDEM env vars
|
||||||
|
. ~/.bashrc
|
||||||
|
|
||||||
|
#- include functions
|
||||||
|
source $CFDEM_PROJECT_DIR/etc/functions.sh
|
||||||
|
|
||||||
|
#--------------------------------------------------------------------------------#
|
||||||
|
#- define variables
|
||||||
|
casePath="$(dirname "$(readlink -f ${BASH_SOURCE[0]})")"
|
||||||
|
logpath=$casePath
|
||||||
|
headerText="run_parallel_cfdemSolverMultiphase_test"
|
||||||
|
logfileName="log_$headerText"
|
||||||
|
solverName="cfdemSolverMultiphase"
|
||||||
|
nrProcs="4"
|
||||||
|
machineFileName="none" # yourMachinefileName | none
|
||||||
|
debugMode="off" # on | off| strict
|
||||||
|
testHarnessPath="$CFDEM_TEST_HARNESS_PATH"
|
||||||
|
#--------------------------------------------------------------------------------#
|
||||||
|
|
||||||
|
#- call function to run a parallel CFD-DEM case
|
||||||
|
parCFDDEMrun $logpath $logfileName $casePath $headerText $solverName $nrProcs $machineFileName $debugMode
|
||||||
|
|
||||||
@ -0,0 +1,30 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
#===================================================================#
|
||||||
|
# DEMrun script for ErgunTestMPI testcase
|
||||||
|
# init ErgunTestMPI
|
||||||
|
# Christoph Goniva - July 2014
|
||||||
|
#===================================================================#
|
||||||
|
|
||||||
|
#- source CFDEM env vars
|
||||||
|
. ~/.bashrc
|
||||||
|
|
||||||
|
#- include functions
|
||||||
|
source $CFDEM_PROJECT_DIR/etc/functions.sh
|
||||||
|
|
||||||
|
echo "starting DEM run in parallel..."
|
||||||
|
#--------------------------------------------------------------------------------#
|
||||||
|
#- define variables
|
||||||
|
casePath="$(dirname "$(readlink -f ${BASH_SOURCE[0]})")"
|
||||||
|
logpath="$casePath"
|
||||||
|
headerText="run_liggghts_init_DEM"
|
||||||
|
logfileName="log_$headerText"
|
||||||
|
solverName="in.liggghts_init"
|
||||||
|
nrProcs=4
|
||||||
|
machineFileName="none"
|
||||||
|
debugMode="off"
|
||||||
|
#--------------------------------------------------------------------------------#
|
||||||
|
|
||||||
|
#- call function to run DEM case
|
||||||
|
parDEMrun $logpath $logfileName $casePath $headerText $solverName $nrProcs $machineFileName $debugMode
|
||||||
|
|
||||||
@ -9,7 +9,6 @@ python $CFDEM_LPP_DIR/lpp.py dump*.liggghts_run
|
|||||||
|
|
||||||
#- get VTK data from CFD sim
|
#- get VTK data from CFD sim
|
||||||
cd $casePath/CFD
|
cd $casePath/CFD
|
||||||
reconstructPar -zeroTime -noLagrangian
|
reconstructPar -withZero -noLagrangian
|
||||||
foamToVTK
|
foamToVTK
|
||||||
|
|
||||||
#rm -r $casePath/CFD/processor*
|
|
||||||
|
|||||||
Reference in New Issue
Block a user