Error while specifying the position for the particle

Submitted by krobot on Tue, 01/10/2023 - 14:24

I am trying to create a simulation where particle will take some specific position.

fix pts1 all particletemplate/multiplespheres ${seed1} atom_type 1 density constant ${den1} nspheres 6 ntry 50000 spheres 0.0 0.0 5.8 ${rad1} 0.0 30.0 11.6 ${rad1} bonded no
fix pts1 all particletemplate/multiplespheres 25409 atom_type 1 density constant ${den1} nspheres 6 ntry 50000 spheres 0.0 0.0 5.8 ${rad1} 0.0 30.0 11.6 ${rad1} bonded no
fix pts1 all particletemplate/multiplespheres 25409 atom_type 1 density constant 4.75 nspheres 6 ntry 50000 spheres 0.0 0.0 5.8 ${rad1} 0.0 30.0 11.6 ${rad1} bonded no
fix pts1 all particletemplate/multiplespheres 25409 atom_type 1 density constant 4.75 nspheres 6 ntry 50000 spheres 0.0 0.0 5.8 3 0.0 30.0 11.6 ${rad1} bonded no
fix pts1 all particletemplate/multiplespheres 25409 atom_type 1 density constant 4.75 nspheres 6 ntry 50000 spheres 0.0 0.0 5.8 3 0.0 30.0 11.6 3 bonded no
ERROR: Fix particletemplate/multiplespheres (id pts1): not enough arguments (../fix_template_multiplespheres.cpp:182)

It has been shown that not enough argument. What does it mean by it?

mschramm | Tue, 01/10/2023 - 20:40

Hello,
Your command is stating that your muleiplespheres template has 6 spheres in it, thus you need 6 x,y,z,r pairs while you only have provided two.
You may want to use newlines to better organize your call

fix pts3 all particletemplate/multiplespheres 123457 atom_type 1 density constant 2500 nspheres 3 ntry 100000 spheres &
0.0 0.0 0.000 0.002 &
0.0 0.0 0.004 0.002 &
0.0 0.0 0.008 0.002 &
bonded no