Peano
TP_Parameters.cpp
Go to the documentation of this file.
2 
3 namespace TP {
5  // set all the parameters
6  verbose = false;
7  keep_u_around = false;
8  give_bare_mass = false;
9  adm_tol = 1e-10;
10  grid_setup_method = "Taylor expansion";
11  initial_lapse = "twopunctures-averaged";
12  Newton_tol = 1e-10;
13  Newton_maxit = 5;
14  TP_epsilon = 0;
15  TP_Tiny = 0;
16  TP_Extend_Radius = 0;
17  par_b = 1; // Position
18  par_bv = 1;
19  par_m_plus = 1;
20  par_m_minus = 1;
21  // target ADM masses
22  target_M_plus = 0.5;
23  target_M_minus = 0.5;
24  for(int i=0; i<3; i++) {
25  // Linear momenta
26  par_P_plus[i] = 0.5;
27  par_P_minus[i] = 0.5;
28  // Spins
29  par_S_plus[i] = 0;
30  par_S_minus[i] = 0;
31  // Positions
32  center_offset[i] = 0;
33  }
35  swap_xz = false;
36  use_sources = false;
37  rescale_sources = true;
41  multiply_old_lapse = false;
44 
45  // conformal_state must be zero!
46  metric_type = "something else";
47  conformal_storage = "not conformal at all";
48 
49  // These are presumably pointers due limitations of cactus interface description
50  conformal_state = 0;
51  mp = 0;
52  mm = 0;
53  mp_adm = 0;
54  mm_adm = 0;
55 
56 } // constructor
57 
59  TP_INFO ("The two black holes have target ADM masses of %f and %f",
61  TP_INFO ("The corresponding linear momenta are:");
62  TP_INFO ("P_x1:%f\tP_x2:%f", par_P_minus[0], par_P_plus[0]);
63  TP_INFO ("P_y1:%f\tP_y2:%f", par_P_minus[1], par_P_plus[1]);
64  TP_INFO ("P_z1:%f\tP_z2:%f", par_P_minus[2], par_P_plus[2]);
65  TP_INFO ("The corresponding spins are:");
66  TP_INFO ("S_x1:%f\tS_x2:%f", par_S_minus[0], par_S_plus[0]);
67  TP_INFO ("S_y1:%f\tS_y2:%f", par_S_minus[1], par_S_plus[1]);
68  TP_INFO ("S_z1:%f\tS_z2:%f", par_S_minus[2], par_S_plus[2]);
69 
70  TP_INFO ("Impact parameter par_b: %f", par_b);
71  TP_INFO ("Center offset: [%f,%f,%f]", center_offset[0], center_offset[1], center_offset[2]);
72  TP_INFO ("Grid setup method: %s", grid_setup_method.c_str());
73  TP_INFO ("Lapse smearing epsilon: %e", TP_epsilon);
74 }
75 } // namespace
This file contains aliases for making access to the long state vector Q as used eg.
Definition: CoordTransf.cpp:13
void TP_INFO(const char *fmt,...)
Definition: TP_Logging.cpp:60
double par_S_plus[3]
Definition: TP_Parameters.h:46
std::string grid_setup_method
Definition: TP_Parameters.h:23
std::string metric_type
Definition: TP_Parameters.h:62
bool schedule_in_ADMBase_InitialData
Definition: TP_Parameters.h:57
bool use_external_initial_guess
Definition: TP_Parameters.h:53
bool multiply_old_lapse
Definition: TP_Parameters.h:56
double par_P_plus[3]
Definition: TP_Parameters.h:44
void PrintParameters()
bool solve_momentum_constraint
Definition: TP_Parameters.h:58
std::string conformal_storage
Definition: TP_Parameters.h:63
double par_S_minus[3]
Definition: TP_Parameters.h:47
double TP_Extend_Radius
Definition: TP_Parameters.h:37
double par_m_minus
Definition: TP_Parameters.h:41
double center_offset[3]
Definition: TP_Parameters.h:48
double target_M_minus
Definition: TP_Parameters.h:43
double par_P_minus[3]
Definition: TP_Parameters.h:45
double target_M_plus
Definition: TP_Parameters.h:42
bool do_residuum_debug_output
Definition: TP_Parameters.h:54
double initial_lapse_psi_exponent
Definition: TP_Parameters.h:49
std::string initial_lapse
Definition: TP_Parameters.h:24
bool do_initial_debug_output
Definition: TP_Parameters.h:55