Dear lammps-users,
Originally I tried to simulate a funnel using a cone region in combination with fix wall/region and particles with gravity but as soon as the falling particles (inside the cone) touch the wall the error "Particle on or inside fix wall/region surface" occurs.
In a simulation with just one particle it depends on the position of the particle. If it is located above the flat part of the "funnel" (where later should be the hole) the simulation works fine (shift the "#" in the example code one line up):
# === Code 1 ===
atom_style granular
dimension 3
boundary f f f
newton off
communicate single vel yes
region R_gesamt block 0 10. 0 10. 0 10. units box
create_box 1 R_gesamt
neighbor 0.2 bin
neigh_modify delay 0
pair_style gran/hooke/history 2. NULL 50.0 NULL 0.5 0
pair_coeff * *
timestep 0.001
fix F_1 all nve/sphere
fix F_2 all gravity 1.00 spherical 0.0 -180
lattice bcc 10.
region R_trichter cone z 5.0 5.0 0.2 15.0 4.1 9.9 side in units box
region R_insert cone z 5.0 5.0 0.2 2.0 6.0 8.0 units box
# ==========
create_atoms 1 single 6.0 6.0 8.0 units box
#create_atoms 1 single 5.0 5.0 8.0 units box
# ==========
group G_korn type 1
fix F_trichter G_korn wall/region R_trichter lj126 0.00001 0.04 2.1
set group G_korn diameter 0.02
fix F_visco G_korn viscous 0.002 scale 1 0.003
compute C_1 G_korn erotate/sphere
thermo_style custom step atoms ke c_C_1 vol
thermo 100
compute_modify thermo_temp dynamic yes
dump D_2 all custom 100.0 dump.test04 id type x y z &
ix iy iz vx vy vz fx fy fz omegax omegay omegaz radius
run 20000.0
# === Code 1 ===
Trying to find the reason I used a box instead of the cone. There it depends on the position of the bottom (z_lo) whether the simulation works or not (using a smaller diameter would also help in this simulation).
# === Code 2 ===
atom_style granular
dimension 3
boundary f f f
newton off
communicate single vel yes
region R_gesamt block 0 10. 0 10. 0 10. units box
create_box 1 R_gesamt
neighbor 0.2 bin
neigh_modify delay 0
pair_style gran/hooke/history 2 NULL 50.5 NULL 0.5 0
pair_coeff * *
timestep 0.001
fix F_1 all nve/sphere
fix F_2 all gravity 1.00 spherical 0.0 -180.0
lattice bcc 10.
# =========
#region R_box block 3 7 3 7 2.96 8 side in units box
region R_box block 3 7 3 7 2.97 8 side in units box
# =========
lattice bcc 100.
region R_insert cone z 5.0 5.0 0.2 2.0 6.0 8.0 units box
create_atoms 1 region R_insert units box
group G_korn type 1
fix F_form1 G_korn wall/region R_box lj126 0.00001 0.04 2.1
# =========
set group G_korn diameter 0.02
#set group G_korn diameter 0.01
# =========
fix F_visco G_korn viscous 0.002 scale 1 0.003
compute C_1 G_korn erotate/sphere
thermo_style custom step atoms ke c_C_1 vol
thermo 100
compute_modify thermo_temp dynamic yes
dump D_2 all custom 100.0 dump.test04 id type x y z &
ix iy iz vx vy vz fx fy fz omegax omegay omegaz radius
run 20000.0
# === Code 2 ===
Maybe there are any suggestions for creating boundary regions in combination with the granular style. The idea is to use "region union" for developing complex geometries in future.
Regards,
Christian