mirror of
https://github.com/wassname/simpeg.git
synced 2026-07-10 22:34:28 +08:00
Reduce number of frequencies in forward problem MT example.
This commit is contained in:
@@ -9,7 +9,7 @@ try:
|
|||||||
except:
|
except:
|
||||||
from SimPEG import Solver
|
from SimPEG import Solver
|
||||||
|
|
||||||
def run(plotIt=True):
|
def run(plotIt=True, nFreq=1):
|
||||||
"""
|
"""
|
||||||
MT: 3D: Forward
|
MT: 3D: Forward
|
||||||
=======================
|
=======================
|
||||||
@@ -40,13 +40,13 @@ def run(plotIt=True):
|
|||||||
rxList.append(MT.Rx(simpeg.mkvc(loc,2).T,rxType))
|
rxList.append(MT.Rx(simpeg.mkvc(loc,2).T,rxType))
|
||||||
# Source list
|
# Source list
|
||||||
srcList =[]
|
srcList =[]
|
||||||
for freq in np.logspace(3,-3,7):
|
for freq in np.logspace(3,-3,nFreq):
|
||||||
srcList.append(MT.SrcMT.polxy_1Dprimary(rxList,freq))
|
srcList.append(MT.SrcMT.polxy_1Dprimary(rxList,freq))
|
||||||
# Survey MT
|
# Survey MT
|
||||||
survey = MT.Survey(srcList)
|
survey = MT.Survey(srcList)
|
||||||
|
|
||||||
## Setup the problem object
|
## Setup the problem object
|
||||||
problem = MT.Problem3D.eForm_ps(M,sigmaPrimary = sigBG)
|
problem = MT.Problem3D.eForm_ps(M, sigmaPrimary=sigBG)
|
||||||
problem.pair(survey)
|
problem.pair(survey)
|
||||||
problem.Solver = Solver
|
problem.Solver = Solver
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user