simple transmitter.

This commit is contained in:
Rowan Cockett
2015-03-21 21:59:27 -07:00
parent 224a5311d6
commit 78c98e5ad6
+12 -1
View File
@@ -82,12 +82,13 @@ class RxFDEM(Survey.BaseRx):
class TxFDEM(Survey.BaseTx):
#TODO: Break these out into Classes of Sources.
freq = None #: Frequency (float)
rxPair = RxFDEM
knownTxTypes = ['VMD', 'VMD_B', 'CircularLoop']
knownTxTypes = ['VMD', 'VMD_B', 'CircularLoop', 'Simple']
radius = None
@@ -184,6 +185,16 @@ class TxFDEM(Survey.BaseTx):
elif solType == 'e' or solType == 'j':
return C.T*mui*b_0
class SimpleTxFDEM(TxFDEM):
def __init__(self, vec, freq, rxList):
self.vec = vec
self.freq = float(freq)
TxFDEM.__init__(self, None, 'Simple', rxList)
def getSource(self, prob):
return self.vec
class FieldsFDEM(Problem.Fields):