... | ... | @@ -11,8 +11,10 @@ with logger.Reader(basename) as f: |
|
|
particle_set = f.get_particles(type="Gas")
|
|
|
particle_set -= f.get_particles(ids=[...])
|
|
|
|
|
|
# Read some fields for some particles.
|
|
|
positions, velocities = f.get_particle_data(
|
|
|
# Read some fields for some particles. This generates a new ParticleSet that
|
|
|
# contains the particles from `particle_set` that exist at time `time`, and
|
|
|
# populates their position and velocities.
|
|
|
particles_at_time_t = f.get_particle_data(
|
|
|
particles=particle_set,
|
|
|
fields=["Coordinates", "Velocities"],
|
|
|
time=time,
|
... | ... | |