mirror of
https://github.com/wassname/simpeg.git
synced 2026-07-15 11:26:09 +08:00
FEM -> FDEM in tests for analytics
This commit is contained in:
@@ -23,7 +23,7 @@ def hzAnalyticDipoleF(r, freq, sigma, secondary=True):
|
||||
|
||||
"""
|
||||
r = np.abs(r)
|
||||
k = np.sqrt(-1j*2.*np.pi*f*mu_0*sigma)
|
||||
k = np.sqrt(-1j*2.*np.pi*freq*mu_0*sigma)
|
||||
|
||||
m = 1
|
||||
front = m / (2. * np.pi * (k**2) * (r**5) )
|
||||
|
||||
@@ -58,7 +58,7 @@ class FDEM_analyticTests(unittest.TestCase):
|
||||
|
||||
P = self.mesh.getInterpolationMat(XYZ, 'Fz')
|
||||
|
||||
an = EM.Analytics.FEM.hzAnalyticDipoleF(x, self.Tx0.freq, self.sig)
|
||||
an = EM.Analytics.FDEM.hzAnalyticDipoleF(x, self.Tx0.freq, self.sig)
|
||||
|
||||
diff = np.log10(np.abs(P*np.imag(u[self.Tx0, 'b']) - mu_0*np.imag(an)))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user