This commit is contained in:
rowanc1
2014-05-19 11:34:14 -07:00
parent 95f0cb9972
commit e334d3efa9
3 changed files with 38 additions and 28 deletions
+5 -5
View File
@@ -8,11 +8,11 @@ class MagFwdProblemTests(unittest.TestCase):
def setUp(self):
hxind = ((5,25,1.3),(41, 12.5),(5,25,1.3))
hyind = ((5,25,1.3),(41, 12.5),(5,25,1.3))
hzind = ((5,25,1.3),(40, 12.5),(5,25,1.3))
hx, hy, hz = Utils.meshTensors(hxind, hyind, hzind)
M = Mesh.TensorMesh([hx, hy, hz], [-hx.sum()/2,-hy.sum()/2,-hz.sum()/2])
cs = 25.
hxind = [(cs,5,-1.3), (cs/2.0, 41),(cs,5,1.3)]
hyind = [(cs,5,-1.3), (cs/2.0, 41),(cs,5,1.3)]
hzind = [(cs,5,-1.3), (cs/2.0, 40),(cs,5,1.3)]
M = Mesh.TensorMesh([hxind, hyind, hzind], 'CCC')
chibkg = 0.
chiblk = 0.01
+5 -6
View File
@@ -9,12 +9,11 @@ from scipy.constants import mu_0
class MagSensProblemTests(unittest.TestCase):
def setUp(self):
hxind = ((5,25,1.3),(21, 25.),(5,25,1.3))
hyind = ((5,25,1.3),(21, 25.),(5,25,1.3))
hzind = ((5,25,1.3),(20, 25.),(5,25,1.3))
hx, hy, hz = Utils.meshTensors(hxind, hyind, hzind)
M = Mesh.TensorMesh([hx, hy, hz], [-hx.sum()/2,-hy.sum()/2,-hz.sum()/2])
cs = 25.
hxind = [(cs,5,-1.3), (cs, 21),(cs,5,1.3)]
hyind = [(cs,5,-1.3), (cs, 21),(cs,5,1.3)]
hzind = [(cs,5,-1.3), (cs, 20),(cs,5,1.3)]
M = Mesh.TensorMesh([hxind, hyind, hzind], 'CCC')
chibkg = 0.001
chiblk = 0.01
chi = np.ones(M.nC)*chibkg