mirror of
https://github.com/ParticulateFlow/CFDEMcoupling-PFM.git
synced 2025-12-08 06:37:44 +00:00
release on 2014-04-15_09-22-01
This commit is contained in:
@ -67,8 +67,6 @@ dpUmf= L * (
|
||||
%====================================%
|
||||
% plot data
|
||||
%====================================%
|
||||
length(U)
|
||||
length(dp_sim)
|
||||
figure(2)
|
||||
plot(U,dp_sim)
|
||||
title("Ergun pressure drop vs. simulation")
|
||||
|
||||
@ -8,6 +8,7 @@ echo both
|
||||
# variables #
|
||||
#######################################################
|
||||
variable cg equal 2
|
||||
variable r0 equal 0.0004
|
||||
variable nPorg equal 19531
|
||||
variable nPscal equal ${nPorg}/(${cg}*${cg}*${cg})
|
||||
#######################################################
|
||||
@ -52,7 +53,7 @@ fix cylwalls all wall/gran model hooke tangential history primitive type 1 zcyli
|
||||
|
||||
#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 pts1 all particletemplate/sphere 1 atom_type 1 density constant 200 radius constant ${r0}
|
||||
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
|
||||
|
||||
@ -8,6 +8,7 @@ echo both
|
||||
# variables #
|
||||
#######################################################
|
||||
variable cg equal 2
|
||||
variable r0 equal 0.0004
|
||||
variable nPorg equal 19531
|
||||
variable nPscal equal ${nPorg}/(${cg}*${cg}*${cg})
|
||||
#######################################################
|
||||
@ -68,11 +69,11 @@ fix integr all nve/sphere
|
||||
compute centerOfMass all com
|
||||
|
||||
#compute total dragforce
|
||||
#compute dragtotal all reduce sum f_dragforce[1] f_dragforce[2] f_dragforce[3]
|
||||
compute dragtotal all reduce sum f_dragforce[1] f_dragforce[2] f_dragforce[3]
|
||||
|
||||
#screen output
|
||||
compute 1 all erotate/sphere
|
||||
thermo_style custom step atoms ke c_1 vol c_centerOfMass[3] #c_dragtotal[1] c_dragtotal[2] c_dragtotal[3]
|
||||
thermo_style custom step atoms ke c_1 vol c_centerOfMass[3] c_dragtotal[1] c_dragtotal[2] c_dragtotal[3]
|
||||
thermo 10
|
||||
thermo_modify lost ignore norm no
|
||||
compute_modify thermo_temp dynamic yes
|
||||
@ -80,7 +81,7 @@ compute_modify thermo_temp dynamic yes
|
||||
#insert the first particles so that dump is not empty
|
||||
dump myDump all stl 1 post/dump_*.stl
|
||||
#run 1
|
||||
dump dmp all custom 5000 ../DEM/post/dump*.liggghts_restart id type type x y z ix iy iz vx vy vz fx fy fz omegax omegay omegaz radius
|
||||
dump dmp all custom 5000 ../DEM/post/dump*.liggghts_restart id type type x y z ix iy iz vx vy vz fx fy fz omegax omegay omegaz f_dragforce[1] f_dragforce[2] f_dragforce[3] radius
|
||||
undump myDump
|
||||
|
||||
run 1
|
||||
|
||||
Reference in New Issue
Block a user