mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
Apply suggestions from @paulromano
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
This commit is contained in:
parent
8bced043f5
commit
cc8f1f3e6b
2 changed files with 3 additions and 6 deletions
|
|
@ -215,7 +215,7 @@ class RegularMesh(MeshBase):
|
|||
|
||||
Returns
|
||||
-------
|
||||
volumes : Iterable of float
|
||||
volumes : numpy.ndarray
|
||||
Volumes
|
||||
|
||||
"""
|
||||
|
|
@ -604,7 +604,7 @@ class RectilinearMesh(MeshBase):
|
|||
|
||||
Returns
|
||||
-------
|
||||
volumes : Iterable of float
|
||||
volumes : numpy.ndarray
|
||||
Volumes
|
||||
|
||||
"""
|
||||
|
|
@ -1202,7 +1202,7 @@ class UnstructuredMesh(MeshBase):
|
|||
|
||||
Returns
|
||||
-------
|
||||
volumes : Iterable of float
|
||||
volumes : numpy.ndarray
|
||||
Volumes
|
||||
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -50,7 +50,6 @@ def model():
|
|||
reg_mesh_exp_vols = np.full(mesh_3d.dimension, dx*dy*dz)
|
||||
np.testing.assert_equal(mesh_3d.volumes, reg_mesh_exp_vols)
|
||||
|
||||
|
||||
recti_mesh = openmc.RectilinearMesh()
|
||||
recti_mesh.x_grid = np.linspace(-7.5, 7.5, 18)
|
||||
recti_mesh.y_grid = np.linspace(-7.5, 7.5, 18)
|
||||
|
|
@ -73,7 +72,6 @@ def model():
|
|||
cyl_mesh_exp_vols = np.multiply.outer(drdp, dz)
|
||||
np.testing.assert_allclose(cyl_mesh.volumes, cyl_mesh_exp_vols)
|
||||
|
||||
|
||||
sph_mesh = openmc.SphericalMesh()
|
||||
sph_mesh.r_grid = np.linspace(0, 7.5, 18)
|
||||
sph_mesh.theta_grid = np.linspace(0, pi, 9)
|
||||
|
|
@ -85,7 +83,6 @@ def model():
|
|||
sph_mesh_exp_vols = np.multiply.outer(drdt, dp)
|
||||
np.testing.assert_allclose(sph_mesh.volumes, sph_mesh_exp_vols)
|
||||
|
||||
|
||||
# Create filters
|
||||
reg_filters = [
|
||||
openmc.MeshFilter(mesh_1d),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue