mirror of
https://github.com/wassname/simpeg.git
synced 2026-06-27 18:25:42 +08:00
- doc the simple regularization, sparse regularization and regularization mesh
- typo fix in MT_3D_Forward example - Solver - use EM.Static.DC for DC example
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
from SimPEG import *
|
||||
import SimPEG.DCIP as DC
|
||||
import SimPEG.EM.Static.DC as DC
|
||||
|
||||
def run(plotIt=False):
|
||||
cs = 25.
|
||||
@@ -21,10 +21,10 @@ def run(plotIt=False):
|
||||
# ax.plot(xyz_rxP[:,0],xyz_rxP[:,1], 'w.')
|
||||
# ax.plot(xyz_rxN[:,0],xyz_rxN[:,1], 'r.', ms = 3)
|
||||
|
||||
rx = DC.RxDipole(xyz_rxP, xyz_rxN)
|
||||
src = DC.SrcDipole([rx], [-200, 0, -12.5], [+200, 0, -12.5])
|
||||
survey = DC.SurveyDC([src])
|
||||
problem = DC.ProblemDC_CC(mesh)
|
||||
rx = DC.Rx.Dipole(xyz_rxP, xyz_rxN)
|
||||
src = DC.Src.Dipole([rx], np.r_[-200, 0, -12.5], np.r_[+200, 0, -12.5])
|
||||
survey = DC.Survey([src])
|
||||
problem = DC.Problem3D_CC(mesh)
|
||||
problem.pair(survey)
|
||||
try:
|
||||
from pymatsolver import MumpsSolver
|
||||
|
||||
@@ -5,9 +5,9 @@ import SimPEG as simpeg
|
||||
from SimPEG import MT
|
||||
import numpy as np
|
||||
try:
|
||||
from pymatsolver import MumpsSolver as solver
|
||||
from pymatsolver import MumpsSolver as Solver
|
||||
except:
|
||||
from SimPEG import solver
|
||||
from SimPEG import Solver
|
||||
|
||||
def run(plotIt=True, nFreq=1):
|
||||
"""
|
||||
@@ -46,7 +46,7 @@ def run(plotIt=True, nFreq=1):
|
||||
survey = MT.Survey(srcList)
|
||||
|
||||
## Setup the problem object
|
||||
problem = MT.Problem3D.eForm_ps(M, sigmaPrimary=sigBG, Solver=solver)
|
||||
problem = MT.Problem3D.eForm_ps(M, sigmaPrimary=sigBG, Solver=Solver)
|
||||
problem.pair(survey)
|
||||
|
||||
# Calculate the data
|
||||
|
||||
@@ -91,10 +91,21 @@ The API
|
||||
:members:
|
||||
:undoc-members:
|
||||
|
||||
.. autoclass:: SimPEG.Regularization.Simple
|
||||
:show-inheritance:
|
||||
:members:
|
||||
|
||||
.. autoclass:: SimPEG.Regularization.Tikhonov
|
||||
:show-inheritance:
|
||||
:members:
|
||||
|
||||
.. autoclass:: SimPEG.Regularization.Sparse
|
||||
:show-inheritance:
|
||||
:members:
|
||||
|
||||
.. autoclass:: SimPEG.Regularization.RegularizationMesh
|
||||
:show-inheritance:
|
||||
:members:
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user