Refactoring the MT code to relect on the FDEM parent.

The test work for FDEM branch feat/sourceRefactor commit 9eede4e840
This commit is contained in:
GudniRos
2015-06-03 11:12:55 -07:00
parent 10f098c0b5
commit c4229b4906
21 changed files with 920 additions and 267 deletions
+2 -3
View File
@@ -16,8 +16,8 @@ def homo1DModelSource(mesh,freq,m_back):
from simpegMT.Utils import get1DEfields
# Get a 1d solution for a halfspace background
mesh1d = simpeg.Mesh.TensorMesh([mesh.hz],np.array([mesh.x0[2]]))
# Note: Need to conjugate the source field to comply with orientations
e0_1d = get1DEfields(mesh1d,mesh.r(m_back,'CC','CC','M')[0,0,:],freq).conj()
# Note: Everything is using e^iwt
e0_1d = get1DEfields(mesh1d,mesh.r(m_back,'CC','CC','M')[0,0,:],freq)
# Setup x (east) polarization (_x)
ex_px = np.zeros(mesh.vnEx,dtype=complex)
ey_px = np.zeros((mesh.nEy,1),dtype=complex)
@@ -26,7 +26,6 @@ def homo1DModelSource(mesh,freq,m_back):
for i in np.arange(mesh.vnEx[0]):
for j in np.arange(mesh.vnEx[1]):
ex_px[i,j,:] = -e0_1d
# ex_px[1:-1,1:-1,1:-1] = 0
eBG_px = np.vstack((simpeg.Utils.mkvc(ex_px,2),ey_px,ez_px))
# Setup y (north) polarization (_py)
ex_py = np.zeros((mesh.nEx,1), dtype='complex128')