LORENE
bhole_binaire.C
1/*
2 * Methods of class Bhole_binaire
3 *
4 * (see file bhole.h for documentation)
5 *
6 */
7
8/*
9 * Copyright (c) 2000-2001 Philippe Grandclement
10 *
11 * This file is part of LORENE.
12 *
13 * LORENE is free software; you can redistribute it and/or modify
14 * it under the terms of the GNU General Public License as published by
15 * the Free Software Foundation; either version 2 of the License, or
16 * (at your option) any later version.
17 *
18 * LORENE is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU General Public License for more details.
22 *
23 * You should have received a copy of the GNU General Public License
24 * along with LORENE; if not, write to the Free Software
25 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26 *
27 */
28
29
30char bhole_binaire_C[] = "$Header: /cvsroot/Lorene/C++/Source/Bhole_binaire/bhole_binaire.C,v 1.5 2014/10/13 08:52:40 j_novak Exp $" ;
31
32/*
33 * $Id: bhole_binaire.C,v 1.5 2014/10/13 08:52:40 j_novak Exp $
34 * $Log: bhole_binaire.C,v $
35 * Revision 1.5 2014/10/13 08:52:40 j_novak
36 * Lorene classes and functions now belong to the namespace Lorene.
37 *
38 * Revision 1.4 2014/10/06 15:12:58 j_novak
39 * Modified #include directives to use c++ syntax.
40 *
41 * Revision 1.3 2005/08/29 15:10:14 p_grandclement
42 * Addition of things needed :
43 * 1) For BBH with different masses
44 * 2) Provisory files for the mixted binaries (Bh and NS) : THIS IS NOT
45 * WORKING YET !!!
46 *
47 * Revision 1.2 2002/10/16 14:36:32 j_novak
48 * Reorganization of #include instructions of standard C++, in order to
49 * use experimental version 3 of gcc.
50 *
51 * Revision 1.1.1.1 2001/11/20 15:19:28 e_gourgoulhon
52 * LORENE
53 *
54 * Revision 2.46 2001/05/07 09:11:43 phil
55 * *** empty log message ***
56 *
57 * Revision 2.45 2001/04/26 12:04:23 phil
58 * *** empty log message ***
59 *
60 * Revision 2.44 2001/04/02 12:16:32 phil
61 * *** empty log message ***
62 *
63 * Revision 2.43 2001/03/30 15:52:15 phil
64 * y
65 *
66 * Revision 2.42 2001/03/22 10:43:05 phil
67 * *** empty log message ***
68 *
69 * Revision 2.41 2001/03/01 08:17:43 phil
70 * mets les procedures ailleurs
71 *
72 * Revision 2.40 2001/02/28 15:26:44 phil
73 * correction dans construction source_deux
74 *
75 * Revision 2.39 2001/02/28 14:36:03 phil
76 * modif etat_zero dans solve_shift
77 *
78 * Revision 2.38 2001/02/28 13:22:51 phil
79 * vire kk_auto
80 *
81 * Revision 2.37 2001/02/12 15:37:29 phil
82 * ajout calcul de J infini
83 *
84 * Revision 2.36 2001/01/29 14:30:26 phil
85 * ajout type_rotation
86 *
87 * Revision 2.35 2001/01/22 09:29:23 phil
88 * vire trucs sur bare masse
89 *
90 * Revision 2.34 2001/01/10 11:03:27 phil
91 * utilisation de homothetie_interne dans fixe_bare
92 *
93 * Revision 2.33 2001/01/10 09:52:24 phil
94 * correction de fait_kk_auto
95 *
96 * Revision 2.32 2001/01/10 09:31:41 phil
97 * ajout de fait_kk_auto
98 *
99 * Revision 2.31 2001/01/09 13:38:42 phil
100 * ajout membre kk_auto
101 *
102 * Revision 2.30 2001/01/04 10:53:44 phil
103 * modification des sources pour tenir compte sommation
104 *
105 * Revision 2.29 2000/12/21 10:49:34 phil
106 * retour a la version 2.27
107 *
108 * Revision 2.27 2000/12/20 10:43:14 phil
109 * correction calcul de la distance propre
110 *
111 * Revision 2.26 2000/12/20 09:09:29 phil
112 * modification calcul de la masse ADM
113 *
114 * Revision 2.25 2000/12/18 17:43:21 phil
115 * correction homothetie
116 *
117 * Revision 2.24 2000/12/18 16:38:19 phil
118 * ajout de convergence vers une masse donnee
119 *
120 * Revision 2.23 2000/12/15 16:44:20 phil
121 * *** empty log message ***
122 *
123 * Revision 2.22 2000/12/15 16:41:17 phil
124 * ajout calcul de la separation
125 *
126 * Revision 2.21 2000/12/14 15:13:02 phil
127 * corection equation sur Psi
128 *
129 * Revision 2.20 2000/12/14 14:12:14 phil
130 * correction cl sur Psi
131 *
132 * Revision 2.19 2000/12/14 12:41:41 phil
133 * on met les bases dans les sources
134 *
135 * Revision 2.18 2000/12/14 10:53:18 phil
136 * *** empty log message ***
137 *
138 * Revision 2.17 2000/12/14 10:45:11 phil
139 * ATTENTION : PASSAGE DE PHI A PSI
140 *
141 * Revision 2.16 2000/12/13 15:35:32 phil
142 * ajout calcul de bare_masse
143 *
144 * Revision 2.15 2000/12/04 14:30:00 phil
145 * ajout de grad_n_tot
146 *
147 * Revision 2.14 2000/12/01 16:13:04 phil
148 * *** empty log message ***
149 *
150 * Revision 2.13 2000/12/01 14:27:24 phil
151 * *** empty log message ***
152 *
153 * Revision 2.12 2000/12/01 14:18:19 phil
154 * *** empty log message ***
155 *
156 * Revision 2.11 2000/12/01 14:16:29 phil
157 * ahout verifie_cl
158 *
159 * Revision 2.10 2000/11/24 11:05:16 phil
160 * calcul moment foireux
161 *
162 * Revision 2.9 2000/11/24 09:57:46 phil
163 * ajout calcul masse et moment pour systeme
164 *
165 * Revision 2.8 2000/11/15 18:26:53 phil
166 * vire recherches de minimum
167 *
168 * Revision 2.7 2000/11/15 13:03:40 phil
169 * *** empty log message ***
170 *
171 * Revision 2.6 2000/11/15 13:00:16 phil
172 * changements diverses
173 *
174 * Revision 2.5 2000/10/26 09:01:26 phil
175 * *** empty log message ***
176 *
177 * Revision 2.4 2000/10/26 08:25:24 phil
178 * *** empty log message ***
179 *
180 * Revision 2.3 2000/10/26 08:21:04 phil
181 * ajout de verifie_shift
182 *
183 * Revision 2.2 2000/10/24 13:38:36 phil
184 * on ne resout qu une fois quand omega est bloque
185 *
186 * Revision 2.1 2000/10/23 09:24:43 phil
187 * rearangement constructeurs.
188 *
189 * Revision 2.0 2000/10/20 09:19:20 phil
190 * *** empty log message ***
191 *
192 *
193 * $Header: /cvsroot/Lorene/C++/Source/Bhole_binaire/bhole_binaire.C,v 1.5 2014/10/13 08:52:40 j_novak Exp $
194 *
195 */
196
197//standard
198#include <cstdlib>
199#include <cmath>
200
201// Lorene
202#include "nbr_spx.h"
203#include "tenseur.h"
204#include "bhole.h"
205#include "proto.h"
206#include "utilitaires.h"
207#include "graphique.h"
208
209// Constucteur standard
210namespace Lorene {
212 hole1(mp1), hole2(mp2), pos_axe(mp1.get_ori_x()), omega(0){
213
214 holes[0] = &hole1 ;
215 holes[1] = &hole2 ;
216}
217
218// Copy
220 hole1(source.hole1), hole2(source.hole2), pos_axe(source.pos_axe), omega(source.omega) {
221
222 holes[0] = &hole1 ;
223 holes[1] = &hole2 ;
224 }
225
228
229//Affectation
231 hole1 = source.hole1 ;
232 hole2 = source.hole2 ;
233
234 pos_axe = source.pos_axe ;
235 omega = source.omega ;
236}
237
238//Initialise : somme de deux statiques
252
253// Bouge axe :
254void Bhole_binaire::set_pos_axe (double new_pos) {
255
256 double distance_tot = hole1.mp.get_ori_x() - hole2.mp.get_ori_x() ;
257 pos_axe = new_pos ;
258 hole1.mp.set_ori(pos_axe, 0, 0) ;
259 hole2.mp.set_ori(pos_axe-distance_tot, 0, 0) ;
260}
261
262}
Binary black holes system.
Definition bhole.h:757
~Bhole_binaire()
Destructor.
void operator=(const Bhole_binaire &)
Affectation operator.
Bhole * holes[2]
Array on the black holes.
Definition bhole.h:766
Bhole_binaire(Map_af &mp1, Map_af &mp2)
Standard constructor.
double omega
Position of the axis of rotation.
Definition bhole.h:769
Bhole hole1
Black hole one.
Definition bhole.h:762
void set_omega(double ome)
Sets the orbital velocity to ome.
Definition bhole.h:791
Bhole hole2
Black hole two.
Definition bhole.h:763
void fait_decouple()
Calculates {tt decouple} which is used to obtain tkij_auto by the formula : tkij_auto = decouple * tk...
Definition bhole_kij.C:314
void init_bhole_binaire()
Initialisation of the system.
void init_bhole()
Sets the values of the fields to :
Definition bhole.C:409
Map_af & mp
Affine mapping.
Definition bhole.h:273
void fait_psi_comp(const Bhole &comp)
Imports the part of due to the companion hole comp .
Definition bhole.C:280
void fait_n_comp(const Bhole &comp)
Imports the part of N due to the companion hole comp .
Definition bhole.C:254
Affine radial mapping.
Definition map.h:2027
void set_ori(double xa0, double ya0, double za0)
Sets a new origin.
Definition map.C:253
double get_ori_x() const
Returns the x coordinate of the origin.
Definition map.h:768
Lorene prototypes.
Definition app_hor.h:64