mirror of
https://github.com/wassname/simpeg.git
synced 2026-07-02 16:31:41 +08:00
Merge branch 'feat/sourceRefactor' of https://github.com/simpeg/simpegem into feat/sourceRefactor
This commit is contained in:
@@ -34,7 +34,10 @@ def hzAnalyticDipoleF(r, freq, sigma, secondary=True):
|
||||
|
||||
if secondary:
|
||||
hp =-1/(4*np.pi*r**3)
|
||||
return hz-hp
|
||||
hz = hz-hp
|
||||
|
||||
if hz.ndim == 1:
|
||||
hz = Utils.mkvc(hz,2)
|
||||
|
||||
return hz
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ from SimPEG import *
|
||||
import simpegEM as EM
|
||||
from scipy.constants import mu_0
|
||||
|
||||
plotIt = True
|
||||
plotIt = False
|
||||
freq = 1e2
|
||||
|
||||
class FDEM_analyticTests(unittest.TestCase):
|
||||
@@ -23,7 +23,7 @@ class FDEM_analyticTests(unittest.TestCase):
|
||||
x = np.linspace(-10,10,5)
|
||||
XYZ = Utils.ndgrid(x,np.r_[0],np.r_[0])
|
||||
rxList = EM.FDEM.RxFDEM(XYZ, 'exi')
|
||||
Src0 = EM.FDEM.SrcFDEM_MagDipole([rxList],freq,np.r_[0.,0.,0.])
|
||||
Src0 = EM.FDEM.SrcFDEM_MagDipole([rxList],loc=np.r_[0.,0.,0.], freq=freq)
|
||||
|
||||
survey = EM.FDEM.SurveyFDEM([Src0])
|
||||
|
||||
@@ -53,7 +53,6 @@ class FDEM_analyticTests(unittest.TestCase):
|
||||
u = self.prb.fields(self.m)
|
||||
|
||||
bfz = self.mesh.r(u[self.Src0, 'b'],'F','Fz','M')
|
||||
|
||||
x = np.linspace(-55,55,12)
|
||||
XYZ = Utils.ndgrid(x,np.r_[0],np.r_[0])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user