WarpX
Classes | Functions | Variables
plot_particle_path Namespace Reference

Classes

class  AMReXParticleHeader
 

Functions

def read_particle_data (fn, ptype="particle0")
 

Variables

list x0 = []
 
list y0 = []
 
list x1 = []
 
list y1 = []
 
 fn_list = glob.glob("plt?????")
 
 idata
 
 rdata
 
 fn
 
 ptype
 
 fig = plt.gcf()
 
 ax = plt.gca()
 

Function Documentation

◆ read_particle_data()

def plot_particle_path.read_particle_data (   fn,
  ptype = "particle0" 
)
This function returns the particle data stored in a particular
plot file and particle type. It returns two numpy arrays, the
first containing the particle integer data, and the second the
particle real data. For example, if a dataset has 3000 particles,
which have two integer and five real components, this function will
return two numpy arrays, one with the shape (3000, 2) and the other
with the shape (3000, 5).

Usage:

    idata, rdata = read_particle_data("plt00000", "particle0")

Variable Documentation

◆ ax

plot_particle_path.ax = plt.gca()

◆ fig

plot_particle_path.fig = plt.gcf()

◆ fn

plot_particle_path.fn

◆ fn_list

plot_particle_path.fn_list = glob.glob("plt?????")

◆ idata

plot_particle_path.idata

◆ ptype

plot_particle_path.ptype

◆ rdata

plot_particle_path.rdata

◆ x0

list plot_particle_path.x0 = []

◆ x1

list plot_particle_path.x1 = []

◆ y0

list plot_particle_path.y0 = []

◆ y1

list plot_particle_path.y1 = []