Fill regions with atoms

Hi LAMMPS Users,

I have a cylindrical region inside a block region. I want to fill the cylindrical region with ‘atoms 1’ and outside the cylindrical region with ‘atoms 2’. How I can do this?

Hi LAMMPS Users,

I have a cylindrical region inside a block region. I want to fill the
cylindrical region with 'atoms 1' and outside the cylindrical region with
'atoms 2'. How I can do this?

with the region and the create_atoms commands, for example.

axel.

But if I use create_atom ‘1’ for the block region, the cylindrical region, that is inside the block, will filled with atoms ‘1’ too and I want fill the cylindrical region with atoms ‘2’.

But if I use create_atom '1' for the block region, the cylindrical region,
that is inside the block, will filled with atoms '1' too and I want fill the
cylindrical region with atoms '2'.

ever considered deleting the atoms that you don't want?

Hi,
You can define a simulation box in the shape of block and define two regions:
1-region 1 with the cylinder boundaries and keyword side out
2-region 2 with the cylinder boundaries and keyword side in
fill in the region 1 with atoms of type 1 and fill in the other region with atoms of type 2

But if I use create_atom ‘1’ for the block region, the cylindrical region,
that is inside the block, will filled with atoms ‘1’ too and I want fill the
cylindrical region with atoms ‘2’.

ever considered deleting the atoms that you don’t want?

Surely it is easier to create a block of atoms – type 1 – then create a cylindrical region, then use
set region type 2