Python codeblock¶
my-program.py
1 2 3 4 5 6from discretize import TensorMesh hx = [(1, 40)] hy = [(1, 40)] mesh = TensorMesh([hx, hy])
Code 1:Creating a TensorMesh using SimPEG
my-program.py
3 4 5 6hx = [(1, 40)] hy = [(1, 40)] mesh = TensorMesh([hx, hy])
Code 2:only taking parts
In the Program 1, we create a mesh for simulation using SimPEG.