@@ -13,17 +13,19 @@ const std::vector<double> shakingfunctions {3.92699082, 3.92699082, 3.40339204,
1313const std::vector<double > shakingfunctions2p2e {3.40339204 , 3.92699082 , 1.83259571 , 1.57079633 , 2.0943951 , 1.57079633 , 2.61799388 , 0 ., 3.92699082 , 3.92699082 ,
14142.0943951 , 2.35619449 , 2.35619449 , 2.35619449 , 2.35619449 , 3.92699082 , 3.92699082 , 3.92699082 , 2.61799388 ,
15153.40339204 , 3.92699082 , 3.66519143 , 3.66519143 , 3.66519143 , 3.66519143 , 3.66519143 , 3.66519143 , 0.78539816 ,
16- 0.78539816 , 0.78539816 , 0.78539816 , 0.78539816 }; // acceleration as 2 parameter
16+ 0.78539816 , 0.78539816 , 0.78539816 , 0.78539816 }; // acceleration as 2 parameter, Option 1
1717
1818
1919const std::vector<double > shakingfunctions2p2e_new {1.83259571 , 0 ., 1.83259571 , 2.87979327 , 1.83259571 , 1.83259571 , 1.83259571 , 3.40339204 , 3.66519143 ,
20203.40339204 , 3.40339204 , 3.14159265 , 3.92699082 , 3.92699082 , 2.35619449 , 2.35619449 , 3.92699082 , 3.92699082 ,
21213.92699082 , 3.66519143 , 3.66519143 , 3.66519143 , 2.61799388 , 3.66519143 , 1.57079633 , 1.57079633 , 1.57079633 ,
22221.04719755 , 1.04719755 , 1.04719755 , 1.04719755 , 1.57079633
23- };
23+ }; // Option2 from paper
2424
2525
26- const std::vector<double > shakingfunction2platt {1.83259571 , 1.83259571 , 1.83259571 , 1.83259571 , 1.83259571 , 1.83259571 , 1.04719755 , 1.04719755 , 1.04719755 ,0 ., 0 ., 0.52359878 , 0 ., 0 ., 0 ., 0 ., 0 ., 0 ., 0 ., 0 ., 0 ., 0 ., 0 ., 0.26179939 , 0 ., 0 ., 0 ., 0 ., 0 ., 0 ., 0 ., 0 };
26+ const std::vector<double > shakingfunction2platt {1.83259571 , 1.83259571 , 1.83259571 , 1.83259571 , 1.83259571 ,
27+ 1.83259571 , 1.04719755 , 1.04719755 , 1.04719755 ,0 ., 0 ., 0.52359878 ,
28+ 0 ., 0 ., 0 ., 0 ., 0 ., 0 ., 0 ., 0 ., 0 ., 0 ., 0 ., 0.26179939 , 0 ., 0 ., 0 ., 0 ., 0 ., 0 ., 0 ., 0 };// Lattice sensitive interferometer sequence
2729
2830const int maxSteps = shakingfunctions.size();
2931
@@ -35,10 +37,11 @@ constexpr double acclim = 0.1 * ACC_NORM; // dacc is the epsilon in acceleratio
3537
3638int main ()
3739{
38- Eigen::VectorXd a_list = Eigen::VectorXd::LinSpaced (101 ,-0.0225 ,0.0225 );
39- Eigen::VectorXd V_list = Eigen::VectorXd::LinSpaced (51 , 9.0 , 11.0 );
40+ // Eigen::VectorXd a_list = Eigen::VectorXd::LinSpaced(101,-0.0225,0.0225);
41+ Eigen::VectorXd a_list = Eigen::VectorXd::LinSpaced (101 ,-0.00446 ,0.00446 );
42+ Eigen::VectorXd V_list = Eigen::VectorXd::LinSpaced (51 , 9.5 , 10.5 );
4043
41- std::vector<double > currentshaking = shakingfunctions2p2e_new;
44+ std::vector<double > currentshaking = shakingfunctions2p2e; // Option 1
4245
4346 // Eigen::VectorXd V_list(1) ;
4447 // V_list <<10.0;
@@ -57,8 +60,8 @@ int main()
5760 for (int Vindex =0 ; Vindex < V_list.size () ; Vindex++){
5861 Wavepacket wp (a_list[aindex], V_list[Vindex]);
5962 int sign = 1 ;
60- for (int i=0 ; i< int (shakingfunctions2p2e .size ()); i++){
61- wp.step (sign *shakingfunctions2p2e [i], omega);
63+ for (int i=0 ; i< int (currentshaking .size ()); i++){
64+ wp.step (sign *currentshaking [i], omega);
6265 sign = -1 *sign;
6366 };
6467
0 commit comments