mbuild_polybuild.cg_monomers.bead.Bead.particles_by_element

Bead.particles_by_element(element)

Return all Particles of the Compound with a specific element.

Parameters:

name (str or ele.Element) – element abbreviation or element

Yields:

mb.Compound – The next Particle in the Compound with the user-specified element