mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 05:35:49 -04:00
Property name swap for points in local mesh coordinates (#2732)
This commit is contained in:
parent
7fe80e1490
commit
55a682d44d
1 changed files with 10 additions and 10 deletions
|
|
@ -171,8 +171,8 @@ class StructuredMesh(MeshBase):
|
|||
@property
|
||||
def vertices(self):
|
||||
"""Return coordinates of mesh vertices in Cartesian coordinates. Also
|
||||
see :meth:`CylindricalMesh.cylindrical_vertices` and
|
||||
:meth:`SphericalMesh.spherical_vertices` for coordinates in other coordinate
|
||||
see :meth:`CylindricalMesh.vertices_cylindrical` and
|
||||
:meth:`SphericalMesh.vertices_spherical` for coordinates in other coordinate
|
||||
systems.
|
||||
|
||||
Returns
|
||||
|
|
@ -1520,10 +1520,10 @@ class CylindricalMesh(StructuredMesh):
|
|||
@property
|
||||
def vertices(self):
|
||||
warnings.warn('Cartesian coordinates are returned from this property as of version 0.13.4')
|
||||
return self._convert_to_cartesian(self.cylindrical_vertices, self.origin)
|
||||
return self._convert_to_cartesian(self.vertices_cylindrical, self.origin)
|
||||
|
||||
@property
|
||||
def cylindrical_vertices(self):
|
||||
def vertices_cylindrical(self):
|
||||
"""Returns vertices of the mesh in cylindrical coordinates.
|
||||
"""
|
||||
return super().vertices
|
||||
|
|
@ -1531,10 +1531,10 @@ class CylindricalMesh(StructuredMesh):
|
|||
@property
|
||||
def centroids(self):
|
||||
warnings.warn('Cartesian coordinates are returned from this property as of version 0.13.4')
|
||||
return self._convert_to_cartesian(self.cylindrical_centroids, self.origin)
|
||||
return self._convert_to_cartesian(self.centroids_cylindrical, self.origin)
|
||||
|
||||
@property
|
||||
def cylindrical_centroids(self):
|
||||
def centroids_cylindrical(self):
|
||||
"""Returns centroids of the mesh in cylindrical coordinates.
|
||||
"""
|
||||
return super().centroids
|
||||
|
|
@ -1815,10 +1815,10 @@ class SphericalMesh(StructuredMesh):
|
|||
@property
|
||||
def vertices(self):
|
||||
warnings.warn('Cartesian coordinates are returned from this property as of version 0.13.4')
|
||||
return self._convert_to_cartesian(self.spherical_vertices, self.origin)
|
||||
return self._convert_to_cartesian(self.vertices_spherical, self.origin)
|
||||
|
||||
@property
|
||||
def spherical_vertices(self):
|
||||
def vertices_spherical(self):
|
||||
"""Returns vertices of the mesh in cylindrical coordinates.
|
||||
"""
|
||||
return super().vertices
|
||||
|
|
@ -1826,10 +1826,10 @@ class SphericalMesh(StructuredMesh):
|
|||
@property
|
||||
def centroids(self):
|
||||
warnings.warn('Cartesian coordinates are returned from this property as of version 0.13.4')
|
||||
return self._convert_to_cartesian(self.spherical_centroids, self.origin)
|
||||
return self._convert_to_cartesian(self.centroids_spherical, self.origin)
|
||||
|
||||
@property
|
||||
def spherical_centroids(self):
|
||||
def centroids_spherical(self):
|
||||
"""Returns centroids of the mesh in cylindrical coordinates.
|
||||
"""
|
||||
return super().centroids
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue