Species#

Contains classes and functions for setting up particle species.

class epocpp.Species.Species(simulation, npart=0, ispecies=-1)#

Bases: Structure

creates a struct to match Species_t

ids1#

Structure/Union member

ndims#

Structure/Union member

npart#

Structure/Union member

push()#
px1#

Structure/Union member

py1#

Structure/Union member

pz1#

Structure/Union member

resize(npart=0)#
set_bc(bctype=<SpeciesBC.NULL: 0>)#
set_bc_xmax(bctype=<SpeciesBC.NULL: 0>)#
set_bc_xmin(bctype=<SpeciesBC.NULL: 0>)#
set_bc_ymax(bctype=<SpeciesBC.NULL: 0>)#
set_bc_ymin(bctype=<SpeciesBC.NULL: 0>)#
set_bc_zmax(bctype=<SpeciesBC.NULL: 0>)#
set_bc_zmin(bctype=<SpeciesBC.NULL: 0>)#
set_charge(value)#
set_density(value)#
set_mass(value)#
set_momentum(temperature_x=None, temperature_y=None, temperature_z=None, drift_x=None, drift_y=None, drift_z=None)#
set_npart_per_cell(value)#
set_nparticles(value)#
update_species()#
weight#

Structure/Union member

x1#

Structure/Union member

y1#

Structure/Union member

z1#

Structure/Union member