Files
CFDEMcoupling-PFM/tutorials/cfdemSolverPiso/ErgunTestCG/DEM/in.liggghts_init
2013-05-16 16:27:59 +02:00

79 lines
2.6 KiB
Plaintext
Executable File

#######################################################
# tutorial case showing coarse graining functionality #
# Christoph Goniva 08.02.2013 #
#######################################################
echo both
#######################################################
# variables #
#######################################################
variable cg equal 2
variable nPorg equal 19531
variable nPscal equal ${nPorg}/(${cg}*${cg}*${cg})
#######################################################
atom_style granular
atom_modify map array
communicate single vel yes
coarsegraining ${cg}
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
#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
fix m5 all property/global characteristicVelocity scalar 1.
#pair style
pair_style gran/hooke/history
pair_coeff * *
#timestep, gravity
timestep 0.000005
fix gravi all gravity 9.81 vector 0.0 0.0 -1.0
#walls
fix zwalls1 all wall/gran/hooke/history primitive type 1 zplane 0.0
fix zwalls2 all wall/gran/hooke/history primitive type 1 zplane 0.0553
fix cylwalls all wall/gran/hooke/history primitive type 1 zcylinder 0.01385 0. 0. tangential_damping off
#particle distributions and insertion
region bc cylinder z 0.0 0.0 0.012 0. 0.055 units box
fix pts1 all particletemplate/sphere 1 atom_type 1 density constant 200 radius constant 0.0004
fix pdd1 all particledistribution/discrete 1. 1 pts1 1.0
fix ins all insert/pack seed 100001 distributiontemplate pdd1 vel constant 0. 0. -1. insert_every once overlapcheck yes all_in yes particles_in_region ${nPscal} region bc
#apply nve integration to all particles that are inserted as single particles
fix integr all nve/sphere
#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 post/dump.liggghts_init id type type x y z ix iy iz vx vy vz fx fy fz omegax omegay omegaz radius
#force : f_couple_cfd[0] f_couple_cfd[1] f_couple_cfd[2]
#node : f_couple_cfd[6]
#cell id : f_couple_cfd[7]
run 10000 upto
write_restart liggghts.restart_coarseGraining_${cg}