@@ -295,14 +295,17 @@ writevtk(new_grid,"half_cylinder_quadratic")
295295# 1. Standard non-periodic mesh:
296296model = cartesian_model ((0 ,1 ,0 ,1 ),(3 ,3 ))
297297plot_node_numbering (model)
298+ # 
298299
299300# 2. Mesh with periodicity in x-direction:
300301model = cartesian_model ((0 ,1 ,0 ,1 ),(3 ,3 ),isperiodic= (true ,false ))
301302plot_node_numbering (model)
303+ # 
302304
303305# 3. Mesh with periodicity in both directions:
304306model = cartesian_model ((0 ,1 ,0 ,1 ),(3 ,3 ),isperiodic= (true ,true ))
305307plot_node_numbering (model)
308+ # 
306309
307310# Notice how the vertex numbers (displayed at node positions) show the topological
308311# connectivity, while the nodes remain at their physical positions.
@@ -361,7 +364,7 @@ cell_vertex_ids = Table(cell_vertex_ids)
361364
362365# Get coordinates for the vertices:
363366vertex_coords = node_coords[vertex_to_node]
364- polys = map (get_polytope,reffes)
367+ polytopes = map (get_polytope,reffes)
365368
366369# #### Step 4: Create the Model
367370#
@@ -385,3 +388,4 @@ mobius = UnstructuredDiscreteModel(grid,topo,labels)
385388
386389# Visualize the vertex numbering:
387390plot_node_numbering (mobius)
391+ # 
0 commit comments