createNewParticle_MEM Subroutine

public subroutine createNewParticle_MEM(pos, vel, F, radius, mass, particleID, particleGroup, geometry, scheme, myRank)

Routine to create a new particle using the information in the particleCreator object

Arguments

Type IntentOptional Attributes Name
real(kind=rk), intent(in) :: pos(6)

Create particle at this position

real(kind=rk), intent(in) :: vel(6)

Initial velocity of particle

real(kind=rk), intent(in) :: F(6)

External forces on particle

real(kind=rk), intent(in) :: radius

Particle radius

real(kind=rk), intent(in) :: mass

Particle mass

integer, intent(in) :: particleID

ID that should be assigned to this particle

type(mus_particle_group_type), intent(inout) :: particleGroup

ParticleGroup to add this particle to

type(mus_geom_type), intent(in) :: geometry

Geometry to initialize particles on the lattice

type(mus_scheme_type), intent(inout) :: scheme

Scheme to initialize particles on the lattice

integer, intent(in) :: myRank

Params for access to dt, dx, etc. This process rank