How to have multiple particle insertions

Theo_Score's picture
Submitted by Theo_Score on Wed, 02/03/2016 - 06:39

Hi All,

Attached are STLs and input script (remove the .txt). I want to know how to run this script so that ins1 runs 20000 time steps then ins2 gets in and runs for 30000 time steps. In short, ins1 will run 50000 time steps and ins2 runs for only the last 30000 time steps.

Thank you for your help.

Daniel Queteschiner | Wed, 02/03/2016 - 09:10

Use 2 run commands and put the second insertion fix after the first run command.
fix ins1 all insert/stream seed 5330 distributiontemplate pdd1 maxattempt 100 nparticles 2500 particlerate 2500 &
overlapcheck yes vel constant 0.0 -1.0 0.0 insertion_face ins_mesh1 extrude_length 0.08
run 20000
fix ins2 all insert/stream seed 5330 distributiontemplate pdd2 maxattempt 100 nparticles 2500 particlerate 2500 &
overlapcheck yes vel constant 0.0 -1.0 0.0 insertion_face ins_mesh2 extrude_length 0.08
run 30000

Theo_Score's picture

Theo_Score | Fri, 02/05/2016 - 16:15

Thank you Daniel, it worked after I changed the particle insertion fix style from mesh/surface to mesh/surface/planar.