move/mesh illegal ID

Submitted by PPhurit on Tue, 10/09/2018 - 08:15

Hi all,

I run into [illegal mesh ID provided] error when I tried to drop a mesh (box).
The attached file contains all the script.
The command I used is
fix db all move/mesh mesh meshes/boxdrop.stl type 1 linear 0.0 0.0 -1.0

I tried change to a mesh that works, but still.
Thank you in advance.

Best regards,
Ernest

AttachmentSize
Plain text icon boxdrop.txt2.5 KB

Ermek Asylbekov | Wed, 10/10/2018 - 12:57

Hi Ernest,

what you have given is the path to the stl but you are missing a mesh-ID.
First you have to import the stl in liggghts and give this geometry an ID with
fix *mesh-ID* all mesh/surface file *filepath* type *atom type for mesh*
in your case:
fix mymesh all mesh/surface file meshes/boxdrop.stl type 1
then move the mesh with:
fix db all move/mesh mesh mymesh linear 0.0 0.0 -1.0

Regards,
Ermek

Daniel Queteschiner | Wed, 10/10/2018 - 12:58

fix move/mesh needs the ID (i.e., mesh ID) of a fix mesh/surface, not a new mesh definition, e.g.

fix bxdrp all mesh/surface file meshes/boxdrop.stl type 1
fix db all move/mesh mesh bxdrp linear 0.0 0.0 -1.0

also
fix wall all wall/gran model hertz tangential history mesh n_meshes 2 meshes bx db
will fail since db is not a mesh but just a way to move existing meshes, i.e. with the above example it should read
fix wall all wall/gran model hertz tangential history mesh n_meshes 2 meshes bx bxdrp