From 8886313c939da0784ca132883b233cd2335dcc24 Mon Sep 17 00:00:00 2001 From: Paul Romano Date: Wed, 18 Apr 2018 07:17:02 -0500 Subject: [PATCH] Add description of openmc.capi.Mesh attributes in docstring --- openmc/capi/mesh.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/openmc/capi/mesh.py b/openmc/capi/mesh.py index 326f5f61ed..091c5194b9 100644 --- a/openmc/capi/mesh.py +++ b/openmc/capi/mesh.py @@ -59,6 +59,16 @@ class Mesh(_FortranObjectWithID): ---------- id : int ID of the mesh + dimension : iterable of int + The number of mesh cells in each direction. + lower_left : numpy.ndarray + The lower-left corner of the structured mesh. If only two coordinate are + given, it is assumed that the mesh is an x-y mesh. + upper_right : numpy.ndarray + The upper-right corner of the structrued mesh. If only two coordinate + are given, it is assumed that the mesh is an x-y mesh. + width : numpy.ndarray + The width of mesh cells in each direction. """ __instances = WeakValueDictionary()