1- (dev-mesh)=
1+ (dev-mesh-framework )=
22
3- # Mesh
3+ # Mesh Framework
44
55(dev-spherical-meshes)=
66
@@ -81,7 +81,7 @@ vtk_lat_lon = False
8181## Planar Meshes
8282
8383So far, there is not support for creating planar meshes in the polaris
84- framework. But there are helpful functions for creating both
84+ framework. But there are helpful functions for creating both
8585[ uniform hexagonal meshes] ( http://mpas-dev.github.io/MPAS-Tools/stable/mesh_creation.html#uniform-planar-meshes )
8686and [ more general planar meshes] ( http://mpas-dev.github.io/MPAS-Tools/stable/mesh_creation.html#planar-meshes )
8787using the [ mpas_tools] ( http://mpas-dev.github.io/MPAS-Tools/stable/index.html )
@@ -91,12 +91,12 @@ package.
9191
9292You can build a uniform planar mesh in a step by calling
9393{py: func }` mpas_tools.planar_hex.make_planar_hex_mesh() ` . The mesh is defined
94- by the number of cells in the x and y directions (` nx ` and ` ny ` ), the
94+ by the number of cells in the x and y directions (` nx ` and ` ny ` ), the
9595resolution ` dc ` in km (` dc ` is the distance between adjacent cell centers),
9696and some (admittedly oddly named) parameters for determining which directions
9797(if any) are periodic, ` nonperiodic_x ` and ` nonperiodic_y ` .
9898
99- There are a few considerations for determining ` nx ` and ` ny ` . There is a
99+ There are a few considerations for determining ` nx ` and ` ny ` . There is a
100100framework level function {py: func }` polaris.mesh.planar.compute_planar_hex_nx_ny() `
101101to take care of this for you:
102102
@@ -108,16 +108,16 @@ nx, ny = compute_planar_hex_nx_ny(lx, ly, resolution)
108108```
109109
110110What follows is an explanation of the subtleties that are accounted for in that
111- function. Typically, we need at least 4 grid cells in each direction for
112- MPAS-Ocean to be well behaved, and similar restrictions may apply to other
113- components. Second, ` ny ` needs to be an even number because of the staggering
114- of the hexagons used to create the mesh. (We typically also use even numbers
111+ function. Typically, we need at least 4 grid cells in each direction for
112+ MPAS-Ocean to be well behaved, and similar restrictions may apply to other
113+ components. Second, ` ny ` needs to be an even number because of the staggering
114+ of the hexagons used to create the mesh. (We typically also use even numbers
115115for ` nx ` but that is not strictly necessary.)
116116
117117Another important consideration is that the physical size of the mesh in the x
118- direction is ` lx = nx * dc ` . However, the physical extent in the y direction
118+ direction is ` lx = nx * dc ` . However, the physical extent in the y direction
119119is ` ly = (np.sqrt(3) / 2) * ny * dc ` because of the staggering of the hexagons
120- in that direction. As a result, if you know the desired domain size ` ly ` ,
120+ in that direction. As a result, if you know the desired domain size ` ly ` ,
121121you need to compute the number of cells in that direction including an extra
122122factor of ` 2. / np.sqrt(3) ` , as in this example:
123123``` python
@@ -139,9 +139,9 @@ ds_mesh = make_planar_hex_mesh(nx=nx, ny=ny, dc=dc, nonperiodic_x=False,
139139### General planar meshes
140140
141141One way to create a more general planar mesh is by calling
142- {py: func }` mpas_tools.mesh.creation.build_mesh.build_planar_mesh() ` , which uses
142+ {py: func }` mpas_tools.mesh.creation.build_mesh.build_planar_mesh() ` , which uses
143143JIGSAW to build a mesh with variable resolution. See
144144[ Planar Meshes] ( http://mpas-dev.github.io/MPAS-Tools/stable/mesh_creation.html#planar-meshes )
145- for more details. We plan to create framework-level steps for planar meshes
145+ for more details. We plan to create framework-level steps for planar meshes
146146similar to {py: class }` polaris.mesh.QuasiUniformSphericalMeshStep ` and
147147{py: class }` polaris.mesh.IcosahedralMeshStep ` in the not too distant future.
0 commit comments