mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 06:05:58 -04:00
Apply suggestions from code review
Co-authored-by: Patrick Shriwise <pshriwise@gmail.com>
This commit is contained in:
parent
5a716f1f3a
commit
3794673c70
1 changed files with 4 additions and 2 deletions
|
|
@ -172,7 +172,8 @@ class StructuredMesh(MeshBase):
|
|||
-------
|
||||
vertices : numpy.ndarray
|
||||
Returns a numpy.ndarray representing the coordinates of the mesh
|
||||
vertices with a shape equal to (ndim, dim1 + 1, ..., dimn + 1).
|
||||
vertices with a shape equal to (ndim, dim1 + 1, ..., dimn + 1). Can be
|
||||
unpacked along the first dimension with xx, yy, zz = mesh.vertices.
|
||||
|
||||
"""
|
||||
return np.stack(np.meshgrid(*self._grids, indexing='ij'), axis=0)
|
||||
|
|
@ -186,7 +187,8 @@ class StructuredMesh(MeshBase):
|
|||
centroids : numpy.ndarray
|
||||
Returns a numpy.ndarray representing the mesh element centroid
|
||||
coordinates with a shape equal to (ndim, dim1, ..., dimn). Can be
|
||||
unpacked by the first dimension with xx, yy, zz = mesh.centroids
|
||||
unpacked along the first dimension with xx, yy, zz = mesh.centroids.
|
||||
|
||||
|
||||
"""
|
||||
ndim = self.n_dimension
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue