mirror of
https://github.com/ParticulateFlow/CFDEMcoupling-PFM.git
synced 2025-12-08 06:37:44 +00:00
75 lines
2.2 KiB
Plaintext
Executable File
75 lines
2.2 KiB
Plaintext
Executable File
echo both
|
|
|
|
# Pour granular particles into chute container
|
|
|
|
atom_style hybrid granular molecular
|
|
atom_modify map array sort 0 0
|
|
communicate single vel yes
|
|
|
|
boundary m m m
|
|
newton off
|
|
|
|
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
|
|
neigh_modify delay 0
|
|
|
|
mass 1 1.0
|
|
|
|
#Material properties required for new pair styles
|
|
|
|
fix m1 all property/global youngsModulus peratomtype 5.e6
|
|
fix m2 all property/global poissonsRatio peratomtype 0.45
|
|
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 1 0 #Hertzian without cohesion
|
|
pair_coeff * *
|
|
|
|
#timestep, gravity
|
|
timestep 0.00001
|
|
fix gravi all gravity 9.81 vector 0.0 0.0 -1.0
|
|
|
|
#walls
|
|
fix zwalls all wall/gran/hertz/history 1 0 zplane 0.0 0.0553 1
|
|
fix cylwalls all wall/gran/hertz/history 1 0 zcylinder 0.01385 1
|
|
|
|
|
|
#============================
|
|
#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 pdd1 all particledistribution/discrete 1. 1 pts1 1.0
|
|
|
|
#region and insertion
|
|
group rigid_group region reg
|
|
region bc cylinder z 0.0 0.0 0.012 0.001 0.05 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 #
|
|
|
|
#integrator for multisphere rigid bodies
|
|
fix integr rigid_group rigid/multisphere
|
|
#============================
|
|
|
|
#cfd coupling
|
|
fix cfd all couple/cfd couple_every 100000 mpi
|
|
fix cfd2 all couple/cfd/force/multisphere
|
|
|
|
|
|
#screen output
|
|
compute 1 all erotate/sphere
|
|
thermo_style custom step atoms ke c_1 vol
|
|
thermo 1000
|
|
thermo_modify lost ignore norm no
|
|
compute_modify thermo_temp dynamic yes
|
|
|
|
#insert the first particles so that dump is not empty
|
|
run 1
|
|
dump dmp all custom 5000 ../DEM/post/dump.liggghts_init id type type x y z ix iy iz vx vy vz fx fy fz omegax omegay omegaz radius
|
|
|
|
run 80000 upto
|
|
#write_restart liggghts.restart
|