mirror of
https://github.com/wassname/simpeg.git
synced 2026-07-02 12:49:30 +08:00
added def of k to utils and have getSourceDeriv take fields and vector
This commit is contained in:
@@ -125,7 +125,7 @@ class BaseFDEMProblem(BaseEMProblem):
|
||||
|
||||
return S_m, S_e
|
||||
|
||||
def getSourceDeriv(self,freq,adjoint=False):
|
||||
def getSourceDeriv(self,freq,m,v,u=None,adjoint=False):
|
||||
raise NotImplementedError('getSourceDeriv not implemented yet')
|
||||
return None, None
|
||||
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
import numpy as np
|
||||
from scipy.constants import mu_0, epsilon_0
|
||||
|
||||
def omega(freq):
|
||||
"""Change frequency to angular frequency, omega"""
|
||||
return 2.*np.pi*freq
|
||||
"""Angular frequency, omega"""
|
||||
return 2.*np.pi*freq
|
||||
|
||||
def k(freq, sigma, mu=mu_0, eps=epsilon_0):
|
||||
w = omega(freq)
|
||||
return np.sqrt(mu * eps * w**2 - 1j * w* mu * sigma)
|
||||
Reference in New Issue
Block a user