implementations.datatype_classes.particles module¶
- 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 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
- 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