Module 'openmc' has no attribute 'RegularMesh'

FYI @Auliyah openmc.RegularMesh is a class [Docs], not a attribute.

Solution

mesh = openmc.RegularMesh()

Hope this will help you.