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
- property bc_xmax#
- property bc_xmin#
- property bc_ymax#
- property bc_ymin#
- property bc_zmax#
- property bc_zmin#
- property bcs#
- property ids#
- property npart#
- property npart_alloced#
- push()#
- property px#
- property py#
- property pz#
- resize(npart=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()#
- property weight#
- property x#
- property y#
- property z#