Cyl: Plot GridΒΆ

You can use mesh.plotGrid() to plot a z and theta slice through a 3D cyl mesh.

If you wish to plot only one slice, you can use mesh.plotGrid(slice='z') or mesh.plotGrid(slice='theta')

../_images/sphx_glr_plot_3D_cyl_001.png
import discretize
import matplotlib.pyplot as plt


def run(plotIt=True):
    mesh = discretize.CylMesh([7, 6, 10])
    mesh.plotGrid()
    # mesh.plotGrid(slice='z')
    # mesh.plotGrid(slice='theta')

if __name__ == '__main__':
    run()
    plt.show()

Total running time of the script: ( 0 minutes 1.556 seconds)

Gallery generated by Sphinx-Gallery