|
ARTEMIS
|
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() | |
| 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")
| plot_particle_path.ax = plt.gca() |
| plot_particle_path.fig = plt.gcf() |
| plot_particle_path.fn |
| plot_particle_path.fn_list = glob.glob("plt?????") |
| plot_particle_path.idata |
| plot_particle_path.ptype |
| plot_particle_path.rdata |
| list plot_particle_path.x0 = [] |
| list plot_particle_path.x1 = [] |
| list plot_particle_path.y0 = [] |
| list plot_particle_path.y1 = [] |