Changes LRM to Curvilinear

This commit is contained in:
Lindsey
2015-05-14 14:12:52 -07:00
parent 4bda4b6019
commit 0f703739ed
7 changed files with 18 additions and 18 deletions
+2 -2
View File
@@ -29,7 +29,7 @@ the implementations.
tM = Mesh.TensorMesh(sz)
qM = Mesh.TreeMesh(sz)
qM.refine(lambda X: 1 if np.sqrt(((X-0.5)**2).sum()) < 0.3 else 0)
rM = Mesh.LogicallyRectMesh(Utils.meshutils.exampleLrmGrid(sz,'rotate'))
rM = Mesh.CurvilinearMesh(Utils.meshutils.exampleLrmGrid(sz,'rotate'))
fig, axes = plt.subplots(1,3,figsize=(14,5))
opts = {}
@@ -38,7 +38,7 @@ the implementations.
qM.plotGrid(ax=axes[1], **opts)
axes[1].set_title('TreeMesh')
rM.plotGrid(ax=axes[2], **opts)
axes[2].set_title('LogicallyRectMesh')
axes[2].set_title('CurvilinearMesh')
plt.show()