Skip to content

Commit 8fa6b97

Browse files
committed
ASCII picture
1 parent d076961 commit 8fa6b97

File tree

1 file changed

+7
-15
lines changed

1 file changed

+7
-15
lines changed

pyro/mesh/patch.py

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -890,26 +890,18 @@ class PolarGrid(Grid2d):
890890
the 2-d grid class. The grid object will contain the coordinate
891891
information (at various centerings).
892892
893-
A basic (1-d) representation of the layout is::
894-
895-
| | | X | | | | X | | |
896-
+--*--+- // -+--*--X--*--+--*--+- // -+--*--+--*--X--*--+- // -+--*--+
897-
0 ng-1 ng ng+1 ... ng+nx-1 ng+nx 2ng+nx-1
893+
A basic representation of the layout is::
898894
899-
ilo ihi
900-
901-
|<- ng guardcells->|<---- nx interior zones ----->|<- ng guardcells->|
902-
903-
____
904-
/ |
895+
*---* \theta_{i+1/2}
896+
/ |
905897
/ |
906-
/ |
898+
/ * \theta_i
907899
/ |
908900
/ |
909-
/_________|
901+
*____*____* \theta_{i-1/2}
902+
r_{i-1/2} r_i r_{i+1/2}
910903
911-
912-
The '*' marks the data locations.
904+
The '*' marks represent the vertices; i index is the data location.
913905
"""
914906

915907
# pylint: disable=too-many-instance-attributes

0 commit comments

Comments
 (0)