|
@@ -40,10 +40,6 @@ int main(int argc, char** argv) {
|
40
|
40
|
// Set mag field info
|
41
|
41
|
// From NOAA, Laramie WY, June 9 2016, aligned with mag. north
|
42
|
42
|
earth->SetMagneticFieldIncDecMag( 67, 0, 52750, NANOTESLA );
|
43
|
|
- //earth->SetMagneticFieldIncDecMag( 90, 0, 52750, NANOTESLA );
|
44
|
|
- std::cout << "B0 " << earth->GetMagneticField( ).transpose() << std::endl;
|
45
|
|
- std::cout << "hat BO " << earth->GetMagneticFieldUnitVector().transpose() << std::endl ;
|
46
|
|
- std::cout << "hat |BO| " << earth->GetMagneticFieldUnitVector().norm() << std::endl ;
|
47
|
43
|
|
48
|
44
|
// Transmitter loops
|
49
|
45
|
auto Tx1 = CircularLoop(21, 15, 100+offset/2., 100-offset/2.);
|
|
@@ -89,10 +85,10 @@ int main(int argc, char** argv) {
|
89
|
85
|
// We could, I suppose, take the earth model in here? For non-linear that
|
90
|
86
|
// may be more natural to work with?
|
91
|
87
|
std::vector<std::string> tx = {std::string("Coil 1"), std::string("Coil 2"), std::string("Coil 3") };
|
92
|
|
- std::vector<std::string> rx = {std::string("Coil 1"), std::string("Coil 2"), std::string("Coil 3") };
|
|
88
|
+ //std::vector<std::string> rx = {std::string("Coil 1"), std::string("Coil 2"), std::string("Coil 3") };
|
93
|
89
|
//std::vector<std::string> rx = {std::string("Coil 1"), std::string("Coil 2")};//, std::string("Coil 3") };
|
94
|
|
- //std::vector<std::string> rx = {std::string(argv[3])};
|
95
|
|
- Kern->CalculateK0( tx, rx, true );
|
|
90
|
+ std::vector<std::string> rx = {std::string(argv[3])};
|
|
91
|
+ Kern->CalculateK0( tx, rx, false );
|
96
|
92
|
|
97
|
93
|
std::ofstream dout = std::ofstream(std::string("k0-3Tx-RxCh-") + std::string(argv[3]) + std::string("-tol") + std::string(argv[1])+ std::string(".dat"));
|
98
|
94
|
dout << "# Transmitters: ";
|
|
@@ -115,10 +111,9 @@ int main(int argc, char** argv) {
|
115
|
111
|
dout << Kern->GetKernel().imag() << std::endl;
|
116
|
112
|
dout.close();
|
117
|
113
|
|
118
|
|
- //std::ofstream out = std::ofstream(std::string("k0-3Tx-RxCh1-")+std::string(argv[1])+std::string(".yaml"));
|
119
|
|
- //std::ofstream out = std::ofstream(std::string("k-coincident.yaml"));
|
120
|
|
- //out << *Kern;
|
121
|
|
- //out.close();
|
|
114
|
+ std::ofstream out = std::ofstream(std::string("k0-3Tx-RxCh-") + std::string(argv[3]) + std::string("-tol") + std::string(argv[1])+ std::string(".yaml"));
|
|
115
|
+ out << *Kern;
|
|
116
|
+ out.close();
|
122
|
117
|
}
|
123
|
118
|
|
124
|
119
|
std::shared_ptr<Lemma::PolygonalWireAntenna> CircularLoop ( int nd, Real Radius, Real Offsetx, Real Offsety ) {
|