From 2a4c8bbb9b0253562131ddd207ebf1be523edc69 Mon Sep 17 00:00:00 2001 From: RemDelaporteMathurin Date: Fri, 7 Oct 2022 06:47:11 +0000 Subject: [PATCH] centre attribute to CylindricalMesh and SphericalMesh --- openmc/mesh.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openmc/mesh.py b/openmc/mesh.py index 4059fee2d3..59d64a1464 100644 --- a/openmc/mesh.py +++ b/openmc/mesh.py @@ -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):