mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
removed unrelated code
This commit is contained in:
parent
476feab519
commit
a17ef0403a
1 changed files with 0 additions and 30 deletions
|
|
@ -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 '))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue