implementations.datatype_classes.particles module

class acceleration(init, val=0.0, **kwargs)[source]

Bases: mesh

class fields(init=None, val=None)[source]

Bases: object

Field data type for 3 dimensions

This data type can be used for electric and magnetic fields in 3 dimensions

elec

contains the electric field

magn

contains the magnetic field

class electric(init, val=0.0, **kwargs)[source]

Bases: mesh

class magnetic(init, val=0.0, **kwargs)[source]

Bases: mesh

class particles(init=None, val=None)[source]

Bases: object

Particle data type for particles in 3 dimensions

This data type can be used for particles in 3 dimensions with 3 position and 3 velocity values per particle

pos

contains the positions of all particles

vel

contains the velocities of all particles

isend(dest=None, tag=None, comm=None)[source]

Routine for sending data forward in time (non-blocking)

Parameters:
  • dest (int) – target rank

  • tag (int) – communication tag

  • comm – communicator

Returns:

request handle

class position(init, val=0.0, **kwargs)[source]

Bases: mesh

recv(source=None, tag=None, comm=None)[source]

Routine for receiving in time

Parameters:
  • source (int) – source rank

  • tag (int) – communication tag

  • comm – communicator

Returns:

None

send(dest=None, tag=None, comm=None)[source]

Routine for sending data forward in time (blocking)

Parameters:
  • dest (int) – target rank

  • tag (int) – communication tag

  • comm – communicator

Returns:

None

class velocity(init, val=0.0, **kwargs)[source]

Bases: mesh