Working on ProblemMT_e_ps, not tested yet.

This commit is contained in:
GudniRos
2015-05-07 19:22:28 -07:00
parent 03383cf092
commit 22febe331b
3 changed files with 66 additions and 220 deletions
-1
View File
@@ -14,7 +14,6 @@ def getEHfields(m1d,sigma,freq,zd):
'''
# Note add an error check for the mesh and sigma are the same size.
# Need make the solution e^-iwt dependent
# Constants: Assume constant
mu = 4*np.pi*1e-7*np.ones((m1d.nC+1))
+1 -1
View File
@@ -21,7 +21,7 @@ def get1DEfields(m1d,sigma,freq,sourceAmp=1.0):
# Set the boundary conditions
Ed, Eu, Hd, Hu = getEHfields(m1d,sigma,freq,m1d.vectorNx)
Etot = (Ed + Eu).conj()
Etot = (Ed + Eu)
if sourceAmp is not None:
Etot = ((Etot/Etot[-1])*sourceAmp) # Scale the fields to be equal to sourceAmp at the top
## Note: need to use conjugate of the analytic solution. It is derived with e^iwt