code: def particles_by_name(self, name):
          
          for particle in self.particles():
              if particle.name == name:
                  yield particle
docs: Return all Particles of the Compound with a specific name
  
          Parameters
          ----------
          name : str
              Only particles with this name are returned
  
          Yields
          ------
          mb.Compound
              The next Particle in the Compound with the user-specified name