Dracorex hogwartsia or just Dracorex is a dinosaur genus of the family Pachycephalosauridae. His name means “dragon king of Hogwarts” and it was named such as a tribute to dragons (which it resembles) and the world of Harry Potter!
These were discovered in the Hell Creek Formation in South Dakota by three amateur paleontologists from Iowa. They described it as an herbivore, with a skull with spiky horns, bumps, and a long muzzle.Besides it's flat, nodal skull, the most prominent feature of Dracorex is the pair of huge unrestricted superior temporal openings!
The name itself however, was inspired not by the paleontologists, but by young visitors to the Children’s Museum of Indianapolis as a tribute to both dragons (Dracorex means “dragon king”), which the dinosaur resembles, as well as the Harry Potter series of books (Hogwartsia for the Hogwarts School of Witchcraft and Wizardry, the fictional school from the awesome series).
So yes, Harry Potter has contributed to science! How awesome is that?