#5 Merged
Repository
jzuhone/yt-blog yt-blog
Branch
default
Repository
yt_analysis/blog blog
Branch
default

Blog entry for the ParticleGenerator classes

Author
  1. John ZuHone avatarJohn ZuHone
Reviewers
Description

This blog entry shows how to generate some particle fields in streams using different methods.

UPDATES:

This should include all of Nathan's helpful suggestions.

Comments (5)

  1. Nathan Goldbaum

    Hi John, this is really great - it's nice to see an overview of all the code you've been working on!

    I'd like to see a little bit more text describing what you're doing in the code blocks, right now it's a bit sparse and might be confusing for a casual reader. It would also be great if you added markdown cells in the ipython notebook to match the text in the post. There's also no reason to show all of the debug output yt prints, feel free to cut it down and only show the bits that help illustrate your point.

    I would also mention that the particles callback displays all of the particles within a thick slab. This explains the slight mismatch between the particles and your ParticleGasDensity field in the plots at the end. Also, I think the field name ParticleGasDensity is a little confusing; why not something like ParticleDensity or (in the spirit of yt-3.0 field names) particle_density_cic?

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.