Hello all,
I am simulating granular molecules being first poured into a periodic box,
and then compressed. I have been having a lot of trouble with differences
between the Windows, Linux and Mac versions of LAMMPS, but I have found one
in particular that I cannot seem to find a workaround for.
I want to pour first spheres, and then a granular molecule "m1" and then a
second granular molecule "m2." In the Mac version of LAMMPS, I can
accomplish this with the following commands:
molecule m1 molecule1.shape
group mol1_group type molecule m1
fix rm1 mol1_group rigid/small molecule mol m1
molecule m2 molecule2.shape
group mol2_group type molecule m2
fix rm2 mol2_group rigid/small molecule mol m2
I can then pour these molecules later. Initially, each group has 0 members,
and only acquires them as I pour them into the box. For my second molecule,
I do the same thing, first making a group with 0 members and then fixing
this group "rigid/small" and then pouring later.
This procedure only works on the Mac version, and not the Windows or Linux
versions. I cannot seem to use create_atoms and then fix this rigid as a
molecule either.
How can I pour multiple granular molecules, defined by multiple molecule
files and fix rigid/small, into the same box? I cannot figure this out. Any
help would be greatly appreciated.
first of all, more important whether you run on Mac, Linux, or Windows
is to know the exact version of LAMMPS you are using (should be a
date). all versions for the different platforms are built from the
exact same source code and thus should result in the exact same
behavior. if this is not the case, then this is likely a bug or a
porting issues, and then please produce a *minimal* input example that
can be used to reproduce the discrepancy.
second, your description is far too vague and thus it is impossible to
help you. rather than writing "i cannot make it work", you should
provide the exact (and complete!) lammps input that you are using,
explain what you expect to happen from the documentation and show what
you get instead (error message, image or other indication that things
did not work as expected).
third, as a point of reference, the group commands in your input is
incorrect. it should produce an error message like this.
ERROR: Expected integer parameter in input script or data file
so if this works, it works by chance and because the LAMMPS version
you have on the mac being old (i.e. before we updated the code in the
group command to more carefully checknot by construction). this also
hints at the fact, that you haven't studied the documentation
carefully enough. what the group command on the mac actually does
execute is the same as: group mol1_group type 0
axel.