Manual Particle Generation

Submitted by efy3mp on Wed, 02/01/2012 - 17:11

Hi

I would like to generate 2 particles at two points in the space (p1 = [x1 y1 z1] & p2 = [x2 y2 z2]) with initial velocities (v1 = [v1x v1y v1z] & v2 = [v2x v2y v2z). I am not sure if "fix/pour" will be able to do this. Could you guide me through this?

Thank you

cstoltz | Wed, 02/01/2012 - 20:34

Use the 'create_atoms' and 'set' statements. For example, the following section of code creates a single particle at p1=(-0.9,0.0,0.5) and assigns diameter/density and initial velocity.

create_atoms 1 single -0.9 0.0 0.5 units box
set atom 1 diameter 0.01
set atom 1 density 1000
set atom 1 vx 1.0
set atom 1 vz -1.0

Chris