|
@@ -58,22 +58,23 @@ int main(int argc, char** argv) {
|
58
|
58
|
Kern->PushCoil( "Coil 2", Tx2 );
|
59
|
59
|
Kern->SetLayeredEarthEM( earth );
|
60
|
60
|
|
61
|
|
- Kern->SetIntegrationSize( (Vector3r() << 50,200,50).finished() );
|
62
|
|
- Kern->SetIntegrationOrigin( (Vector3r() << 0, 0, 0.1).finished() );
|
|
61
|
+ Kern->SetIntegrationSize( (Vector3r() << 50,200,10).finished() );
|
|
62
|
+ Kern->SetIntegrationOrigin( (Vector3r() << 0, 0, 50).finished() );
|
63
|
63
|
Kern->SetTolerance( 1e-5 );
|
64
|
64
|
|
65
|
65
|
std::vector<std::string> tx = {std::string("Coil 1")};
|
66
|
66
|
std::vector<std::string> rx = {std::string("Coil 2")};
|
67
|
67
|
VectorXr Offsets = VectorXr::LinSpaced(61, 0.00, 60.0);
|
68
|
68
|
|
69
|
|
- auto outfile = std::ofstream("interference-opposed.dat");
|
|
69
|
+
|
|
70
|
+ auto outfile = std::ofstream("interference-50-60.dat");
|
70
|
71
|
for (int ii=0; ii< Offsets.size(); ++ii) {
|
71
|
|
- MoveLoop(Tx2, 21, 15, 50, 50 + Offsets(ii), Larmor, -1.);
|
72
|
|
- #ifdef LEMMAUSEVTK
|
73
|
|
- Complex coupling = Kern->Calculate( tx, rx, true );
|
74
|
|
- #else
|
|
72
|
+ MoveLoop(Tx2, 21, 15, 50, 50 + Offsets(ii), Larmor, 1.);
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
75
|
76
|
Complex coupling = Kern->Calculate( tx, rx, false );
|
76
|
|
- #endif
|
|
77
|
+
|
77
|
78
|
std::cout << "coupling " << coupling << std::endl;
|
78
|
79
|
outfile << Offsets(ii) << "\t" << std::real(coupling) << "\t" << std::imag(coupling) << std::endl;
|
79
|
80
|
}
|