Added derivative support for the 3D problem.

This commit is contained in:
GudniRos
2015-10-15 08:09:31 -07:00
parent 1654c1c8b5
commit 0e45d3674a
3 changed files with 301 additions and 29 deletions
+5 -8
View File
@@ -104,16 +104,13 @@ class eForm_ps(BaseMTProblem):
# Store the fields
Src = self.survey.getSrcByFreq(freq)[0]
# Calculate total e
e = Src.ePrimary(self) + e_s
# Store the fieldss
F[Src, 'e_px'] = e[:,0]
F[Src, 'e_py'] = e[:,1]
F[Src, 'e_pxSolution'] = e_s[:,0]
F[Src, 'e_pySolution'] = e_s[:,1]
# Note curl e = -iwb so b = -curl/iw
b = -( self.mesh.edgeCurl * e )/( 1j*omega(freq) )
F[Src, 'b_px'] = b[:,0]
F[Src, 'b_py'] = b[:,1]
# b = -( self.mesh.edgeCurl * e )/( 1j*omega(freq) )
# F[Src, 'b_px'] = b[:,0]
# F[Src, 'b_py'] = b[:,1]
if self.verbose:
print 'Ran for {:f} seconds'.format(time.time()-startTime)
sys.stdout.flush()