mirror of
https://github.com/wassname/simpeg.git
synced 2026-07-05 22:01:33 +08:00
Derivative test MT1D is now working and passing with 2 order convergence.
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -17,4 +17,7 @@ class FieldsMT(Problem.Fields):
|
||||
"""
|
||||
The derivative of b_1d wrt u
|
||||
"""
|
||||
return -( self.mesh.nodalGrad * v)/( 1j*omega(src.freq) )
|
||||
nG = self.mesh.nodalGrad
|
||||
if adjoint:
|
||||
return - 1./( 1j*omega(src.freq) ) * ( nG.T * v)
|
||||
return - 1./( 1j*omega(src.freq) ) * ( nG * v)
|
||||
@@ -140,7 +140,7 @@ class RxMT(Survey.BaseRx):
|
||||
Pbx = mesh.getInterpolationMat(self.locs,'Ex')
|
||||
# ex = Pex*mkvc(f[src,'e_1d'],2)
|
||||
# bx = Pbx*mkvc(f[src,'b_1d'],2)/mu_0
|
||||
deriv_complex = Utils.sdiag(1/(Pbx*mkvc(f[src,'b_1d'],2)/mu_0))*(Pex*v) - Utils.sdiag(1/(Pbx*mkvc(f[src,'b_1d'],2)/mu_0)).T*Utils.sdiag(1/(Pbx*mkvc(f[src,'b_1d'],2)/mu_0))*(Pbx*f._b_1dDeriv_u(src,v)/mu_0)
|
||||
deriv_complex = Utils.sdiag(1./(Pbx*mkvc(f[src,'b_1d'],2)/mu_0))*(Pex*v) - Utils.sdiag(Pex*mkvc(f[src,'e_1d'],2))*(Utils.sdiag(1./(Pbx*mkvc(f[src,'b_1d'],2)/mu_0)).T*Utils.sdiag(1./(Pbx*mkvc(f[src,'b_1d'],2)/mu_0)))*(Pbx*f._b_1dDeriv_u(src,v)/mu_0)
|
||||
# elif self.projType is 'Z2D
|
||||
elif self.projType is 'Z3D':
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user