LAMMPS WWW Site - LAMMPS Documentation - LAMMPS Mailing List Archives
Re: [lammps-users] how to group atoms introduce randomly with create_atoms?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lammps-users] how to group atoms introduce randomly with create_atoms?


From: Michał Kański <michal.kanski@...2460...>
Date: Mon, 28 Aug 2017 11:46:42 +0000

There are several methods to achieve that:


  1. Set another type to the additional atoms (group group-id type X).
  2. Create the atoms at the beginning (group group-id id > 0). 
  3. Use IDs of atoms (group group-id id > X).


Michal


From: Christophe Ortiz <christophe.ortiz@...4080...>
Sent: Monday, August 28, 2017 12:26:14 PM
To: LAMMPS
Subject: [lammps-users] how to group atoms introduce randomly with create_atoms?
 
Dear LAMMPS users,

Inside a Fe bcc crystal I have introduced randomly some additional atoms the following way:

create_atoms 1 random 5000 6538 crystalFe

Now I would like to set their velocity (all the same). This can be done with the command velocity group-id set v_x v_y v_z.

The question is how to group the atoms that I have introduced randomly. Any idea?

Many thanks in advance and best regards,
Christophe