centre attribute to CylindricalMesh and SphericalMesh

This commit is contained in:
RemDelaporteMathurin 2022-10-07 06:47:11 +00:00
parent facc1995e3
commit 2a4c8bbb9b

View file

@ -1052,6 +1052,7 @@ class CylindricalMesh(StructuredMesh):
self._r_grid = None
self._phi_grid = [0.0, 2*pi]
self._z_grid = None
self._centre = [0, 0, 0]
@property
def dimension(self):
@ -1284,6 +1285,7 @@ class SphericalMesh(StructuredMesh):
self._r_grid = None
self._theta_grid = [0, pi]
self._phi_grid = [0, 2*pi]
self._centre = [0, 0, 0]
@property
def dimension(self):