Peano
Loading...
Searching...
No Matches
TP_Parameters.cpp
Go to the documentation of this file.
2
3namespace 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;
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
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.
void TP_INFO(const char *fmt,...)
double par_S_plus[3]
std::string grid_setup_method
std::string metric_type
bool schedule_in_ADMBase_InitialData
bool use_external_initial_guess
double par_P_plus[3]
bool solve_momentum_constraint
std::string conformal_storage
double par_S_minus[3]
double TP_Extend_Radius
double center_offset[3]
double target_M_minus
double par_P_minus[3]
bool do_residuum_debug_output
double initial_lapse_psi_exponent
std::string initial_lapse
bool do_initial_debug_output