mirror of
https://github.com/ParticulateFlow/CFDEMcoupling-PFM.git
synced 2025-12-08 06:37:44 +00:00
release on 2014-02-12_09-39-12
This commit is contained in:
@ -38,7 +38,7 @@ if [ $postproc == "true" ]
|
||||
#- get VTK data from CFD sim
|
||||
cd $casePath/CFD
|
||||
#foamToVTK #- serial run of foamToVTK
|
||||
source $CFDEM_SRC_DIR/etc/functions.sh #- include functions
|
||||
source $CFDEM_SRC_DIR/lagrangian/cfdemParticle/etc/functions.sh #- include functions
|
||||
pseudoParallelRun "foamToVTK" $nrPostProcProcessors #- pseudo parallel run of foamToVTK
|
||||
|
||||
#- start paraview
|
||||
|
||||
@ -49,16 +49,20 @@ averagingModel dense;//dilute;//
|
||||
|
||||
clockModel off;
|
||||
|
||||
smoothingModel off;// localPSizeDiffSmoothing;// constDiffSmoothing; //
|
||||
|
||||
forceModels
|
||||
(
|
||||
off
|
||||
noDrag
|
||||
Archimedes
|
||||
volWeightedAverage
|
||||
);
|
||||
|
||||
forceModelsMS
|
||||
(
|
||||
DiFeliceDragMS
|
||||
//DiFeliceDragMS
|
||||
GidaspowDragMS
|
||||
//noDragMS
|
||||
);
|
||||
|
||||
momCoupleModels
|
||||
@ -108,7 +112,7 @@ volWeightedAverageProps
|
||||
);
|
||||
upperThreshold 0.999;
|
||||
lowerThreshold 0;
|
||||
verbose;
|
||||
//verbose;
|
||||
}
|
||||
totalMomentumExchangeProps
|
||||
{
|
||||
@ -125,7 +129,15 @@ DiFeliceDragMSProps
|
||||
densityFieldName "rho";
|
||||
voidfractionFieldName "voidfraction";
|
||||
hydraulicDiameter 0.002;
|
||||
verbose;
|
||||
//verbose;
|
||||
}
|
||||
|
||||
GidaspowDragMSProps
|
||||
{
|
||||
velFieldName "U";
|
||||
densityFieldName "rho";
|
||||
voidfractionFieldName "voidfraction";
|
||||
hydraulicDiameter 0.002;
|
||||
}
|
||||
|
||||
oneWayVTKProps
|
||||
|
||||
@ -7,7 +7,7 @@ clc;
|
||||
%====================================%
|
||||
rhoG = 5 % density in kg/m3
|
||||
%path = '../probes/0/p';
|
||||
path = '../probes/0/p';
|
||||
path = '../postProcessing/probes/0/p';
|
||||
columns=22;
|
||||
headerlines=4;
|
||||
data = loaddata(path,columns,headerlines);
|
||||
|
||||
@ -2,7 +2,7 @@ echo both
|
||||
|
||||
# Pour granular particles into chute container
|
||||
|
||||
atom_style sphere
|
||||
atom_style granular
|
||||
atom_modify map array sort 0 0
|
||||
communicate single vel yes
|
||||
|
||||
@ -14,7 +14,7 @@ units si
|
||||
region reg block -0.015 0.015 -0.015 0.015 -0.001 0.0554 units box
|
||||
create_box 1 reg
|
||||
|
||||
neighbor 0.001 bin
|
||||
neighbor 0.001 bin
|
||||
neigh_modify delay 0
|
||||
|
||||
#Material properties required for new pair styles
|
||||
@ -25,32 +25,33 @@ fix m3 all property/global coefficientRestitution peratomtypepair 1 0.3
|
||||
fix m4 all property/global coefficientFriction peratomtypepair 1 0.5
|
||||
|
||||
#pair style
|
||||
pair_style gran/hertz/history
|
||||
pair_style gran model hertz tangential history
|
||||
pair_coeff * *
|
||||
|
||||
#timestep, gravity
|
||||
timestep 0.00001
|
||||
fix gravi all gravity 9.81 vector 0.0 0.0 -1.0
|
||||
fix gravi all gravity 9.81 vector 0.0 0.0 -1.0
|
||||
|
||||
#walls
|
||||
fix zwalls1 all wall/gran/hertz/history primitive type 1 zplane 0.0
|
||||
fix zwalls2 all wall/gran/hertz/history primitive type 1 zplane 0.0553
|
||||
fix cylwalls all wall/gran/hertz/history primitive type 1 zcylinder 0.01385 0. 0. tangential_damping off
|
||||
fix zwalls1 all wall/gran model hertz tangential history primitive type 1 zplane 0.0
|
||||
fix zwalls2 all wall/gran model hertz tangential history primitive type 1 zplane 0.0553
|
||||
fix cylwalls all wall/gran model hertz tangential history primitive type 1 zcylinder 0.01385 0. 0.
|
||||
|
||||
|
||||
#============================
|
||||
#distributions for insertion
|
||||
fix pts1 all particletemplate/multisphere 1 atom_type 1 density constant 1000 nspheres 10 ntry 1000000 spheres file ../DEM/sphere10.multisphere scale 0.001 type 1
|
||||
|
||||
fix pts1 all particletemplate/multisphere 1 atom_type 1 density constant 1000 nspheres 10 ntry 1000000 spheres file ../DEM/sphere10.multisphere scale 0.001 type 1
|
||||
fix pdd1 all particledistribution/discrete 1. 1 pts1 1.0
|
||||
|
||||
#region and insertion
|
||||
group rigid_group region reg
|
||||
#group rigid_group region reg
|
||||
region bc cylinder z 0.0 0.0 0.012 0.001 0.055 units box
|
||||
|
||||
fix ins rigid_group insert/pack seed 100001 distributiontemplate pdd1 vel constant 0. 0. 0. insert_every once overlapcheck yes region bc ntry_mc 10000 particles_in_region 2500 # volumefraction_region 0.01 #
|
||||
fix ins all insert/pack seed 100001 distributiontemplate pdd1 vel constant 0. 0. 0. insert_every once overlapcheck yes region bc ntry_mc 10000 particles_in_region 2500 # volumefraction_region 0.01 #
|
||||
|
||||
#integrator for multisphere rigid bodies
|
||||
fix integr rigid_group multisphere
|
||||
fix integr all multisphere
|
||||
#============================
|
||||
|
||||
#cfd coupling
|
||||
|
||||
@ -46,3 +46,16 @@ dummyfile
|
||||
dummyfile
|
||||
dummyfile
|
||||
dummyfile
|
||||
dummyfile
|
||||
dummyfile
|
||||
dummyfile
|
||||
dummyfile
|
||||
dummyfile
|
||||
dummyfile
|
||||
dummyfile
|
||||
dummyfile
|
||||
dummyfile
|
||||
dummyfile
|
||||
dummyfile
|
||||
dummyfile
|
||||
dummyfile
|
||||
|
||||
@ -10,7 +10,7 @@
|
||||
. ~/.bashrc
|
||||
|
||||
#- include functions
|
||||
source $CFDEM_SRC_DIR/etc/functions.sh
|
||||
source $CFDEM_SRC_DIR/lagrangian/cfdemParticle/etc/functions.sh
|
||||
|
||||
#--------------------------------------------------------------------------------#
|
||||
#- define variables
|
||||
@ -59,6 +59,7 @@ if [ $cleanUp == "true" ]
|
||||
rm -rf particles
|
||||
rm -rf patchAverage_pressureDrop
|
||||
rm -rf probes
|
||||
rm -rf postProcessing
|
||||
rm log.liggghts
|
||||
rm ../DEM/post/dump.*
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user