the question of velocity gaussian distribution in specific range of angles

Dear all,

I have a question about the initial the velocity with gaussian distribution, I know that there is the command of “velocity all create 300.0 1324154 dist gaussian”, but the command is about the 0~180 degree in the x y z axises,
As for me, I want to restrict the velocity in z axis 0~90 degree, is some command can do it?

Thanks a lot!

Lu Xie

Dear all,

I have a question about the initial the velocity with gaussian distribution,
I know that there is the command of "velocity all create 300.0 1324154
dist gaussian", but the command is about the 0~180 degree in the x y z
axises,
As for me, I want to restrict the velocity in z axis 0~90 degree, is some
command can do it?

you'll have to explain in more detail what you mean by this,
perhaps give an example. it don't get what you are asking.

cheers,
    axel.

I'll just note that you can input per-atom velocities
in a data file, so if LAMMPS doesn't do what you
want, create the velocity distribution yourself and
just input it.

Steve

Thanks so much! That's a good method, I'll do it.
For me, I want to deposit platinum atoms on Carbon based substrate, the initial velocity of the depositing atom should be
negative and chosen randomly. so I want to restrict the velocity in z axis 0~90° with gaussian distribution.

Thanks a lot again!

Lu Xie