|
@@ -58,27 +58,34 @@ def loadAkvoData(fnamein):
|
58
|
58
|
|
59
|
59
|
|
60
|
60
|
def main():
|
|
61
|
+
|
61
|
62
|
if len(sys.argv) < 3:
|
62
|
|
- print ("usage python calcAkvoKernel.py AkvoDataset.yaml Coil1.yaml " )
|
|
63
|
+ print ("usage python calcAkvoKernel.py AkvoDataset.yaml Coil1.yaml SaveString " )
|
63
|
64
|
exit()
|
64
|
|
-
|
65
|
|
- gamma = 2.67518e8
|
66
|
|
- fL = 2289.
|
67
|
|
- B0 = (fL*2.*np.pi) /gamma * 1e9
|
68
|
65
|
|
69
|
66
|
AKVO = loadAkvoData(sys.argv[1])
|
|
67
|
+
|
|
68
|
+ B_inc = AKVO.META["B_0"]["inc"]
|
|
69
|
+ B_dec = AKVO.META["B_0"]["dec"]
|
|
70
|
+ B0 = AKVO.META["B_0"]["intensity"]
|
|
71
|
+
|
|
72
|
+ gamma = 2.67518e8
|
|
73
|
+ fT = AKVO.transFreq
|
|
74
|
+
|
|
75
|
+
|
70
|
76
|
Coil1 = em1d.PolygonalWireAntenna.DeSerialize( sys.argv[2] )
|
71
|
77
|
Coil1.SetNumberOfFrequencies(1)
|
72
|
|
- Coil1.SetFrequency(0, fL)
|
|
78
|
+ Coil1.SetFrequency(0, fT)
|
73
|
79
|
Coil1.SetCurrent(1.)
|
74
|
80
|
|
75
|
|
-
|
|
81
|
+
|
76
|
82
|
lmod = em1d.LayeredEarthEM()
|
77
|
83
|
lmod.SetNumberOfLayers(4)
|
78
|
84
|
lmod.SetLayerThickness([15.49, 28.18])
|
79
|
85
|
lmod.SetLayerConductivity([0.0, 1./16.91, 1./24.06, 1./33.23])
|
80
|
|
- lmod.SetMagneticFieldIncDecMag( 68.9, 0, B0, lc.NANOTESLA )
|
81
|
86
|
|
|
87
|
+ lmod.SetMagneticFieldIncDecMag( B_inc, B_dec, B0, lc.NANOTESLA )
|
|
88
|
+
|
82
|
89
|
|
83
|
90
|
Kern = mrln.KernelV0()
|
84
|
91
|
Kern.PushCoil( "Coil 1", Coil1 )
|
|
@@ -100,29 +107,13 @@ def main():
|
100
|
107
|
|
101
|
108
|
|
102
|
109
|
|
103
|
|
-
|
104
|
|
-
|
105
|
|
-
|
106
|
|
-
|
107
|
|
-
|
108
|
|
-
|
109
|
|
-
|
110
|
|
-
|
111
|
|
-
|
112
|
|
-
|
113
|
|
-
|
114
|
|
-
|
115
|
|
-
|
116
|
|
-
|
117
|
|
-
|
118
|
|
-
|
119
|
|
-
|
120
|
110
|
Kern.CalculateK0( ["Coil 1"], ["Coil 1"], False )
|
121
|
111
|
|
122
|
|
- yml = open('akvoK3-' + str(Kern.GetTolerance()) + '.yaml', 'w')
|
|
112
|
+
|
|
113
|
+ yml = open( sys.argv[3], 'w' )
|
123
|
114
|
print(Kern, file=yml)
|
124
|
115
|
|
125
|
|
- K0 = Kern.GetKernel()
|
|
116
|
+
|
126
|
117
|
|
127
|
118
|
|
128
|
119
|
|