In [2]:
%pylab inline
import sys
sys.path.append('../')
import numpy as np
from scipy import sparse as sp
import matplotlib.pyplot as plt
from SimPEG import TensorMesh
In [3]:
x0 = np.zeros(3)
h1 = np.ones(100)
h2 = np.ones(100)*0.5
h3 = np.ones(100)*0.5
mesh = TensorMesh([h1,h2,h3],x0)
In [4]:
# make loop centre dipole locations
loc = array(([32.3,19.8,48.3],[15,35.2,25.9]))
Lx = array((3))
Ly = array((8))
dipoleDirection = array(([3,1]))
In [6]:
e = mesh.simpleLoopSource(loc,Lx,Ly)
b = mesh.magneticDipoleSource(loc,dipoleDirection)
In [26]:
plt.colorbar(mesh.plotImage(log(mesh.r(b[:,0],'F','Fx','V')),'Fx'))
plt.colorbar(mesh.plotImage(log(mesh.r(b[:,0],'F','Fy','V')),'Fy'))
plt.colorbar(mesh.plotImage(log(mesh.r(b[:,0],'F','Fz','V')),'Fz'))
Out[26]:
In [14]:
plt.colorbar(mesh.plotImage(log(mesh.r(b[:,1],'F','Fx','V')),'Fx'))
Out[14]:
In [27]:
plt.colorbar(mesh.plotImage(log(mesh.r(b[:,1],'F','Fx','V')),'Fx'))
plt.colorbar(mesh.plotImage(log(mesh.r(b[:,1],'F','Fy','V')),'Fy'))
plt.colorbar(mesh.plotImage(log(mesh.r(b[:,1],'F','Fz','V')),'Fz'))
Out[27]:
In [22]:
plt.colorbar(mesh.plotImage(log(mesh.r(e[:,0],'E','Ex','V')),'Ex',1))
plt.colorbar(mesh.plotImage(log(mesh.r(e[:,0],'E','Ey','V')),'Ey',2))
Out[22]:
In [25]:
plt.colorbar(mesh.plotImage(mesh.r(e[:,1],'E','Ex','V'),'Ex',1))
plt.colorbar(mesh.plotImage(mesh.r(e[:,1],'E','Ey','V'),'Ey',2))
Out[25]: