|
@@ -44,10 +44,11 @@ int main() {
|
44
|
44
|
|
45
|
45
|
Kern->SetIntegrationSize( (Vector3r() << 200,200,200).finished() );
|
46
|
46
|
Kern->SetIntegrationOrigin( (Vector3r() << 0,0,0).finished() );
|
47
|
|
- Kern->SetTolerance( 1e-10 );
|
|
47
|
+ Kern->SetTolerance( 1e-9 );
|
48
|
48
|
|
49
|
49
|
Kern->SetPulseDuration(0.020);
|
50
|
50
|
VectorXr I(36);
|
|
51
|
+
|
51
|
52
|
I << 397.4208916184016, 352.364477036168, 313.0112765842783, 278.37896394065376, 247.81424224324982,
|
52
|
53
|
220.77925043190442, 196.76493264105017, 175.31662279234038, 156.0044839325404, 138.73983004230124,
|
53
|
54
|
123.42064612625474, 109.82713394836259, 97.76534468972267, 87.06061858367781, 77.56000002944572, 69.1280780096311,
|
|
@@ -59,20 +60,30 @@ int main() {
|
59
|
60
|
Kern->SetPulseCurrent( I );
|
60
|
61
|
|
61
|
62
|
|
62
|
|
-
|
63
|
|
- VectorXr interfaces = VectorXr::LinSpaced(21, std::log10(2), std::log10(50));
|
64
|
|
- for (int i=0; i<interfaces.size(); ++i) {
|
65
|
|
- interfaces(i) = std::pow(10, interfaces(i));
|
|
63
|
+ VectorXr interfaces = VectorXr::LinSpaced( 31, 1, 45.5 );
|
|
64
|
+ Real thick = .5;
|
|
65
|
+ for (int ilay=1; ilay<interfaces.size(); ++ilay) {
|
|
66
|
+ interfaces(ilay) = interfaces(ilay-1) + thick;
|
|
67
|
+ thick *= 1.1;
|
66
|
68
|
}
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
67
|
77
|
Kern->SetDepthLayerInterfaces( interfaces );
|
68
|
78
|
|
69
|
79
|
|
70
|
80
|
|
71
|
|
- std::vector<std::string> tx = {std::string("Coil 1"), std::string("Coil 2") };
|
|
81
|
+
|
|
82
|
+ std::vector<std::string> tx = {std::string("Coil 1")};
|
72
|
83
|
std::vector<std::string> rx = {std::string("Coil 1")};
|
73
|
84
|
Kern->CalculateK0( tx, rx, true );
|
74
|
85
|
|
75
|
|
- ofstream out = ofstream("k.yaml");
|
|
86
|
+ std::ofstream out = std::ofstream("k.yaml");
|
76
|
87
|
out << *Kern;
|
77
|
88
|
out.close();
|
78
|
89
|
}
|