mirror of
https://github.com/ParticulateFlow/CFDEMcoupling-PFM.git
synced 2025-12-08 06:37:44 +00:00
Tutorial case for rCFD. Minor bug fixes. Some code cleaning.
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
1.) creation of databases
|
||||
go to folder db1 and execute run.sh; once finished, go to folder db2 and execute run.sh
|
||||
go to folder db1 and execute run.sh; once finished, execute postrun.sh; same for folder db2
|
||||
2.) rCFD run
|
||||
first transfer and decompose the databases by execute prerun.sh; for the actual rCFD run, execute run.sh
|
||||
first transfer and decompose the databases by executing prerun.sh; for the actual rCFD run, execute run.sh
|
||||
|
||||
@ -38,7 +38,7 @@ boundaryField
|
||||
(-9.9 (0 0 0.4))
|
||||
)
|
||||
;
|
||||
value uniform (0 0 0);
|
||||
value uniform (0 0 0.4);
|
||||
}
|
||||
outlet
|
||||
{
|
||||
|
||||
@ -1,36 +1,6 @@
|
||||
cd CFD
|
||||
#cp system/controlDict_equil system/controlDict
|
||||
#decomposePar -force
|
||||
#mpirun -np 4 cfdemSolverRhoPimple -parallel
|
||||
#cp system/controlDict_record system/controlDict
|
||||
#mpirun -np 4 cfdemSolverRhoPimple -parallel
|
||||
reconstructPar
|
||||
|
||||
# make sure that time 0 folder is called 0
|
||||
mv ./*e-1[0-9]* 0
|
||||
|
||||
# remove uniform folder
|
||||
find . -name \uniform -type d -exec rm -rf {} \;
|
||||
|
||||
# make database
|
||||
mkdir dataBase1
|
||||
mv [0-2]* dataBase1/
|
||||
cd dataBase1
|
||||
|
||||
for t in [0-2]*
|
||||
do
|
||||
cd $t
|
||||
mv NuFieldMean NuField
|
||||
mv phiMean phi
|
||||
mv pMean p
|
||||
mv UsMean Us
|
||||
mv voidfractionMean voidfraction
|
||||
rm UMean
|
||||
rm rhoMean
|
||||
cd ..
|
||||
done
|
||||
|
||||
cp -r 0 ../
|
||||
|
||||
#rm -rf proc*
|
||||
#rm -rf ./-0.*
|
||||
cp system/controlDict_equil system/controlDict
|
||||
decomposePar -force
|
||||
mpirun -np 4 cfdemSolverRhoPimple -parallel
|
||||
cp system/controlDict_record system/controlDict
|
||||
mpirun -np 4 cfdemSolverRhoPimple -parallel
|
||||
|
||||
@ -1,36 +1,6 @@
|
||||
cd CFD
|
||||
#cp system/controlDict_equil system/controlDict
|
||||
#decomposePar -force
|
||||
#mpirun -np 4 cfdemSolverRhoPimple -parallel
|
||||
#cp system/controlDict_record system/controlDict
|
||||
#mpirun -np 4 cfdemSolverRhoPimple -parallel
|
||||
reconstructPar
|
||||
|
||||
# make sure that time 0 folder is called 0
|
||||
mv ./*e-1[0-9]* 0
|
||||
|
||||
# remove uniform folder
|
||||
find . -name \uniform -type d -exec rm -rf {} \;
|
||||
|
||||
# make database
|
||||
mkdir dataBase1
|
||||
mv [0-2]* dataBase1/
|
||||
cd dataBase1
|
||||
|
||||
for t in [0-2]*
|
||||
do
|
||||
cd $t
|
||||
mv NuFieldMean NuField
|
||||
mv phiMean phi
|
||||
mv pMean p
|
||||
mv UsMean Us
|
||||
mv voidfractionMean voidfraction
|
||||
rm UMean
|
||||
rm rhoMean
|
||||
cd ..
|
||||
done
|
||||
|
||||
cp -r 0 ../
|
||||
|
||||
#rm -rf proc*
|
||||
#rm -rf ./-0.*
|
||||
cp system/controlDict_equil system/controlDict
|
||||
decomposePar -force
|
||||
mpirun -np 4 cfdemSolverRhoPimple -parallel
|
||||
cp system/controlDict_record system/controlDict
|
||||
mpirun -np 4 cfdemSolverRhoPimple -parallel
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,39 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: 4.0 |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class volVectorField;
|
||||
location "0";
|
||||
object UsMean;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
dimensions [0 1 -1 0 0 0 0];
|
||||
|
||||
internalField uniform (0 0 0);
|
||||
|
||||
boundaryField
|
||||
{
|
||||
walls
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
inlet
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
outlet
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,43 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: 4.0 |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class volScalarField;
|
||||
location "0";
|
||||
object pMean;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
dimensions [1 -1 -2 0 0 0 0];
|
||||
|
||||
internalField uniform 100000;
|
||||
|
||||
boundaryField
|
||||
{
|
||||
walls
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
inlet
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
outlet
|
||||
{
|
||||
type uniformFixedValue;
|
||||
uniformValue constant 100000;
|
||||
value uniform 100000;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,40 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: 4.0 |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class volScalarField;
|
||||
location "0";
|
||||
object rho;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
dimensions [1 -3 0 0 0 0 0];
|
||||
|
||||
internalField uniform 1.0;
|
||||
|
||||
boundaryField
|
||||
{
|
||||
walls
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
inlet
|
||||
{
|
||||
type fixedValue;
|
||||
value uniform 1.748;
|
||||
}
|
||||
outlet
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,41 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: 4.0 |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class volScalarField;
|
||||
location "0";
|
||||
object voidfractionMean;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
dimensions [0 0 0 0 0 0 0];
|
||||
|
||||
internalField uniform 1;
|
||||
|
||||
boundaryField
|
||||
{
|
||||
walls
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
inlet
|
||||
{
|
||||
type fixedValue;
|
||||
value uniform 1;
|
||||
}
|
||||
outlet
|
||||
{
|
||||
type fixedValue;
|
||||
value uniform 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -40,7 +40,7 @@ regionModel allRegion;
|
||||
|
||||
IOModel "off";
|
||||
|
||||
dataExchangeModel twoWayOne2One;
|
||||
dataExchangeModel twoWayMPI;
|
||||
|
||||
averagingModel dense;
|
||||
|
||||
@ -64,13 +64,13 @@ energyModels
|
||||
);
|
||||
|
||||
// in current branch, only one chem model can be chosen
|
||||
/*
|
||||
|
||||
chemistryModels
|
||||
(
|
||||
off
|
||||
);
|
||||
*/
|
||||
chemistryModel off;
|
||||
|
||||
//chemistryModel off;
|
||||
|
||||
thermCondModel SyamlalThermCond;
|
||||
|
||||
@ -165,12 +165,9 @@ engineSearchMany2ManyProps
|
||||
}
|
||||
}
|
||||
|
||||
twoWayOne2OneProps
|
||||
twoWayMPIProps
|
||||
{
|
||||
useCellIdComm true;
|
||||
useStaticProcMap true;
|
||||
liggghtsPath "../DEM/in.liggghts_run";
|
||||
boundingBoxScalingFactor 1.00001;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -31,20 +31,17 @@ recModel standardRecModel;
|
||||
|
||||
recNorm EuclideanNorm;
|
||||
|
||||
//recPath predefinedPath;
|
||||
recPath MarkovPath;
|
||||
|
||||
volScalarFields
|
||||
(
|
||||
voidfraction
|
||||
// rho
|
||||
p
|
||||
NuField
|
||||
);
|
||||
|
||||
volVectorFields
|
||||
(
|
||||
// U
|
||||
Us
|
||||
);
|
||||
|
||||
|
||||
@ -25,7 +25,7 @@ stopAt endTime;
|
||||
|
||||
endTime 800.0;
|
||||
|
||||
deltaT 0.0025;
|
||||
deltaT 0.00025;
|
||||
|
||||
writeControl timeStep;
|
||||
|
||||
|
||||
@ -1,3 +1,5 @@
|
||||
shell mkdir ../DEM/post
|
||||
|
||||
# variables
|
||||
|
||||
# material parameters
|
||||
@ -92,8 +94,12 @@ fix walls all wall/reflect xlo EDGE xhi EDGE ylo EDGE yhi EDGE zlo EDGE zhi EDGE
|
||||
|
||||
|
||||
#cfd coupling
|
||||
fix cellids all property/atom prev_cell_ids scalar yes yes no -1
|
||||
fix cfd all couple/cfd couple_every 1 one2one
|
||||
# couping fixes for one-2-one communication
|
||||
#fix cellids all property/atom prev_cell_ids scalar yes yes no -1
|
||||
#fix cfd all couple/cfd couple_every 1 one2one
|
||||
# couping fixes for all-2-all communication
|
||||
fix cfd all couple/cfd couple_every 1 mpi
|
||||
|
||||
fix cfd2 all couple/cfd/recurrence transfer_force yes transfer_fluctuations yes
|
||||
|
||||
# this one invokes heat transfer calculation, transfers per-particle temperature and adds convective heat flux to particles
|
||||
@ -129,4 +135,6 @@ dump dmp all custom/vtk 10000 ../DEM/post/dump*.liggghts_coupled.vtk id type x
|
||||
|
||||
run 1
|
||||
set region total property/atom Temp ${Tpart}
|
||||
neigh_modify delay 0 no_build yes
|
||||
|
||||
# for one-2-one communication
|
||||
#neigh_modify delay 0 no_build yes
|
||||
|
||||
@ -1,10 +1,6 @@
|
||||
mv ../db1/DEM/liggghts.restartCFDEM_-0.005000 DEM/liggghts.restart
|
||||
|
||||
cd CFD
|
||||
cp ../../db1/CFD/0/phi 0/phiRec
|
||||
cp ../../db1/CFD/0/p 0/pRec
|
||||
cp ../../db1/CFD/0/Us 0/UsRec
|
||||
cp ../../db1/CFD/0/voidfraction 0/voidfractionRec
|
||||
|
||||
mv ../../db1/CFD/dataBase1 .
|
||||
mv ../../db2/CFD/dataBase2 .
|
||||
|
||||
@ -1,2 +1,3 @@
|
||||
cd CFD
|
||||
foamJob mpirun -np 4 rcfdemSolverCoupledHeattransfer -parallel
|
||||
rm -r dynamicCode
|
||||
mpirun -np 4 rcfdemSolverCoupledHeattransfer -parallel | tee run.log
|
||||
|
||||
Reference in New Issue
Block a user