diff --git a/openmc/mesh.py b/openmc/mesh.py index 9f191e8790..8ac4b15946 100644 --- a/openmc/mesh.py +++ b/openmc/mesh.py @@ -458,36 +458,6 @@ class RegularMesh(StructuredMesh): string += '{0: <16}{1}{2}\n'.format('\tWidth', '=\t', self._width) return string - @classmethod - def from_universe(cls, universe, dimension=[10, 10, 10], mesh_id=None, name=''): - """Create mesh from an existing openmc universe - - Parameters - ---------- - universe : openmc.Universe - Open used as a template for this mesh - dimension : Iterable of int - The number of mesh cells in each direction. - mesh_id : int - Unique identifier for the mesh - name : str - Name of the mesh - - Returns - ------- - openmc.RegularMesh - RegularMesh instance - - """ - cv.check_type('rectangular lattice', universe, openmc.Universe) - - mesh = cls(mesh_id, name) - mesh.lower_left = universe.bounding_box[0] - mesh.upper_right = universe.bounding_box[1] - mesh.dimension = dimension - - return mesh - @classmethod def from_hdf5(cls, group): mesh_id = int(group.name.split('/')[-1].lstrip('mesh '))