Mesh: Tensor: Creation¶
For tensor meshes, there are some functions that can come in handy. For example, creating mesh tensors can be a bit time consuming, these can be created speedily by just giving numbers and sizes of padding. See the example below, that follows this notation:
h1 = ( (cellSize, numPad, [, increaseFactor]), (cellSize, numCore), (cellSize, numPad, [, increaseFactor]) )
You can center your mesh by passing a ‘C’ for the x0[i] position. A ‘N’ will make the entire mesh negative, and a ‘0’ (or a 0) will make the mesh start at zero.
/Users/lindseyjh/git/simpeg/simpeg/examples/02-mesh/plot_tensor_creation.py:35: UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure. plt.show()
Total running time of the script: ( 0 minutes 0.096 seconds)