IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 398335b1 authored by André Schmidt's avatar André Schmidt Committed by ralfulrich
Browse files

add testEarthMagneticField

parent 36c8596a
No related branches found
No related tags found
1 merge request!404adding Geomagnetic Models
...@@ -83,4 +83,9 @@ TEST_CASE("UniformMagneticField w/ Homogeneous Medium") { ...@@ -83,4 +83,9 @@ TEST_CASE("UniformMagneticField w/ Homogeneous Medium") {
// and the associated trajectory // and the associated trajectory
setup::Trajectory const track = setup::Trajectory const track =
setup::testing::make_track<setup::Trajectory>(line, tEnd); setup::testing::make_track<setup::Trajectory>(line, tEnd);
// create earth magnetic field vector
MagneticFieldVector Earth_B = get_wmm(gCS, 2022.5, 100_km, -80, -120);
CHECK(Earth_B.getComponents(gCS) == MagneticFieldVector{gCS, 5814.9658886215_nT,
14802.9663839328_nT, -49755.3119939183_nT}.getComponents(gCS));
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment