LORENE
hole_bhns.C
1/*
2 * Methods of class Hole_bhns
3 *
4 * (see file hole_bhns.h for documentation).
5 *
6 */
7
8/*
9 * Copyright (c) 2005-2007 Keisuke Taniguchi
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 version 2
15 * as published by the Free Software Foundation.
16 *
17 * LORENE is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
21 *
22 * You should have received a copy of the GNU General Public License
23 * along with LORENE; if not, write to the Free Software
24 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25 *
26 */
27
28
29
30/*
31 * $Id: hole_bhns.C,v 1.5 2016/12/05 16:17:55 j_novak Exp $
32 * $Log: hole_bhns.C,v $
33 * Revision 1.5 2016/12/05 16:17:55 j_novak
34 * Suppression of some global variables (file names, loch, ...) to prevent redefinitions
35 *
36 * Revision 1.4 2014/10/13 08:52:59 j_novak
37 * Lorene classes and functions now belong to the namespace Lorene.
38 *
39 * Revision 1.3 2014/10/06 15:13:10 j_novak
40 * Modified #include directives to use c++ syntax.
41 *
42 * Revision 1.2 2008/05/15 19:03:00 k_taniguchi
43 * Change of some parameters.
44 *
45 * Revision 1.1 2007/06/22 01:24:16 k_taniguchi
46 * *** empty log message ***
47 *
48 *
49 * $Header: /cvsroot/Lorene/C++/Source/Hole_bhns/hole_bhns.C,v 1.5 2016/12/05 16:17:55 j_novak Exp $
50 *
51 */
52
53// C++ headers
54//#include <>
55
56// C headers
57#include <cmath>
58
59// Lorene headers
60#include "hole_bhns.h"
61#include "unites.h"
62
63
64 //----------------------//
65 // Constructors //
66 //----------------------//
67
68// Standard constructor
69// --------------------
70namespace Lorene {
71Hole_bhns::Hole_bhns(Map& mp_i, bool kerrschild_i, bool bc_nd_i,
72 bool bc_fs_i, bool irrot_i, double massbh)
73 : Black_hole(mp_i, kerrschild_i, massbh),
74 bc_lapconf_nd(bc_nd_i),
75 bc_lapconf_fs(bc_fs_i),
76 irrotational(irrot_i),
77 lapconf_auto_rs(mp_i),
78 lapconf_auto_bh(mp_i),
79 lapconf_auto(mp_i),
80 lapconf_comp(mp_i),
81 lapconf_tot(mp_i),
82 lapse_auto(mp_i),
83 lapse_tot(mp_i),
84 d_lapconf_auto_rs(mp_i, COV, mp_i.get_bvect_cart()),
85 d_lapconf_auto_bh(mp_i, COV, mp_i.get_bvect_cart()),
86 d_lapconf_auto(mp_i, COV, mp_i.get_bvect_cart()),
87 d_lapconf_comp(mp_i, COV, mp_i.get_bvect_cart()),
88 shift_auto_rs(mp_i, CON, mp_i.get_bvect_cart()),
89 shift_auto_bh(mp_i, CON, mp_i.get_bvect_cart()),
90 shift_auto(mp_i, CON, mp_i.get_bvect_cart()),
91 shift_comp(mp_i, CON, mp_i.get_bvect_cart()),
92 shift_tot(mp_i, CON, mp_i.get_bvect_cart()),
93 d_shift_auto_rs(mp_i, 2, CON, mp_i.get_bvect_cart()),
94 d_shift_auto_bh(mp_i, 2, CON, mp_i.get_bvect_cart()),
95 d_shift_auto(mp_i, 2, CON, mp_i.get_bvect_cart()),
96 d_shift_comp(mp_i, 2, CON, mp_i.get_bvect_cart()),
97 confo_auto_rs(mp_i),
98 confo_auto_bh(mp_i),
99 confo_auto(mp_i),
100 confo_comp(mp_i),
101 confo_tot(mp_i),
102 d_confo_auto_rs(mp_i, COV, mp_i.get_bvect_cart()),
103 d_confo_auto_bh(mp_i, COV, mp_i.get_bvect_cart()),
104 d_confo_auto(mp_i, COV, mp_i.get_bvect_cart()),
105 d_confo_comp(mp_i, COV, mp_i.get_bvect_cart()),
106 taij_tot_rs(mp_i, CON, mp_i.get_bvect_cart()),
107 taij_tot_rot(mp_i, CON, mp_i.get_bvect_cart()),
108 taij_tot_bh(mp_i, CON, mp_i.get_bvect_cart()),
109 taij_tot(mp_i, CON, mp_i.get_bvect_cart()),
110 taij_auto_rs(mp_i, CON, mp_i.get_bvect_cart()),
111 taij_auto(mp_i, CON, mp_i.get_bvect_cart()),
112 taij_comp(mp_i, CON, mp_i.get_bvect_cart()),
113 taij_quad_tot_rs(mp_i),
114 taij_quad_tot_rot(mp_i),
115 taij_quad_tot_bh(mp_i),
116 taij_quad_tot(mp_i),
117 taij_quad_auto(mp_i),
118 taij_quad_comp(mp_i)
119{
120
121 omega_spin = 0. ;
122
123 // The metric quantities are initialized to the flat one or zero
124 lapconf_auto_rs = 0. ;
125 lapconf_auto_rs.std_spectral_base() ;
126 lapconf_auto_bh = 1. ;
127 lapconf_auto_bh.std_spectral_base() ;
128 lapconf_auto = 1. ;
129 lapconf_auto.std_spectral_base() ;
130 lapconf_comp = 0. ;
131 lapconf_comp.std_spectral_base() ;
132 lapconf_tot = 1. ;
133 lapconf_tot.std_spectral_base() ;
134
135 lapse_auto = 1. ;
136 lapse_auto.std_spectral_base() ;
137 lapse_tot = 1. ;
138 lapse_tot.std_spectral_base() ;
139
140 d_lapconf_auto_rs.set_etat_zero() ;
141 d_lapconf_auto_bh.set_etat_zero() ;
142 d_lapconf_auto.set_etat_zero() ;
143 d_lapconf_comp.set_etat_zero() ;
144
145 shift_auto_rs.set_etat_zero() ;
146 shift_auto_bh.set_etat_zero() ;
147 shift_auto.set_etat_zero() ;
148 shift_comp.set_etat_zero() ;
149 shift_tot.set_etat_zero() ;
150
151 d_shift_auto_rs.set_etat_zero() ;
152 d_shift_auto_bh.set_etat_zero() ;
153 d_shift_auto.set_etat_zero() ;
154 d_shift_comp.set_etat_zero() ;
155
156 confo_auto_rs = 0. ;
157 confo_auto_rs.std_spectral_base() ;
158 confo_auto_bh = 1. ;
159 confo_auto_bh.std_spectral_base() ;
160 confo_auto = 1. ;
161 confo_auto.std_spectral_base() ;
162 confo_comp = 0. ;
163 confo_comp.std_spectral_base() ;
164 confo_tot = 1. ;
165 confo_tot.std_spectral_base() ;
166
167 d_confo_auto_rs.set_etat_zero() ;
168 d_confo_auto_bh.set_etat_zero() ;
169 d_confo_auto.set_etat_zero() ;
170 d_confo_comp.set_etat_zero() ;
171
172 taij_tot_rs.set_etat_zero() ;
173 taij_tot_rot.set_etat_zero() ;
174 taij_tot_bh.set_etat_zero() ;
175 taij_tot.set_etat_zero() ;
176 taij_auto_rs.set_etat_zero() ;
177 taij_auto.set_etat_zero() ;
178 taij_comp.set_etat_zero() ;
179
180 taij_quad_tot_rs = 0. ;
181 taij_quad_tot_rs.std_spectral_base() ;
182 taij_quad_tot_rot = 0. ;
183 taij_quad_tot_rot.std_spectral_base() ;
184 taij_quad_tot_bh = 0. ;
185 taij_quad_tot_bh.std_spectral_base() ;
186 taij_quad_tot = 0. ;
187 taij_quad_tot.std_spectral_base() ;
188 taij_quad_auto = 0. ;
189 taij_quad_auto.std_spectral_base() ;
190 taij_quad_comp = 0. ;
191 taij_quad_comp.std_spectral_base() ;
192
193 // Pointers of derived quantities initialized to zero :
194 set_der_0x0() ;
195
196}
197
198// Copy constructor
199// ----------------
201 : Black_hole(hole),
212 lapse_tot(hole.lapse_tot),
221 shift_tot(hole.shift_tot),
230 confo_tot(hole.confo_tot),
238 taij_tot(hole.taij_tot),
240 taij_auto(hole.taij_auto),
241 taij_comp(hole.taij_comp),
248{
249 set_der_0x0() ;
250}
251
252// Constructor from a file
253// -----------------------
254Hole_bhns::Hole_bhns(Map& mp_i, FILE* fich)
255 : Black_hole(mp_i, fich),
256 lapconf_auto_rs(mp_i, *(mp_i.get_mg()), fich),
257 lapconf_auto_bh(mp_i),
258 lapconf_auto(mp_i),
259 lapconf_comp(mp_i),
260 lapconf_tot(mp_i),
261 lapse_auto(mp_i),
262 lapse_tot(mp_i),
263 d_lapconf_auto_rs(mp_i, COV, mp_i.get_bvect_cart()),
264 d_lapconf_auto_bh(mp_i, COV, mp_i.get_bvect_cart()),
265 d_lapconf_auto(mp_i, COV, mp_i.get_bvect_cart()),
266 d_lapconf_comp(mp_i, COV, mp_i.get_bvect_cart()),
267 shift_auto_rs(mp_i, mp_i.get_bvect_cart(), fich),
268 shift_auto_bh(mp_i, CON, mp_i.get_bvect_cart()),
269 shift_auto(mp_i, CON, mp_i.get_bvect_cart()),
270 shift_comp(mp_i, CON, mp_i.get_bvect_cart()),
271 shift_tot(mp_i, CON, mp_i.get_bvect_cart()),
272 d_shift_auto_rs(mp_i, 2, CON, mp_i.get_bvect_cart()),
273 d_shift_auto_bh(mp_i, 2, CON, mp_i.get_bvect_cart()),
274 d_shift_auto(mp_i, 2, CON, mp_i.get_bvect_cart()),
275 d_shift_comp(mp_i, 2, CON, mp_i.get_bvect_cart()),
276 confo_auto_rs(mp_i, *(mp_i.get_mg()), fich),
277 confo_auto_bh(mp_i),
278 confo_auto(mp_i),
279 confo_comp(mp_i),
280 confo_tot(mp_i),
281 d_confo_auto_rs(mp_i, COV, mp_i.get_bvect_cart()),
282 d_confo_auto_bh(mp_i, COV, mp_i.get_bvect_cart()),
283 d_confo_auto(mp_i, COV, mp_i.get_bvect_cart()),
284 d_confo_comp(mp_i, COV, mp_i.get_bvect_cart()),
285 taij_tot_rs(mp_i, CON, mp_i.get_bvect_cart()),
286 taij_tot_rot(mp_i, CON, mp_i.get_bvect_cart()),
287 taij_tot_bh(mp_i, CON, mp_i.get_bvect_cart()),
288 taij_tot(mp_i, CON, mp_i.get_bvect_cart()),
289 taij_auto_rs(mp_i, CON, mp_i.get_bvect_cart()),
290 taij_auto(mp_i, CON, mp_i.get_bvect_cart()),
291 taij_comp(mp_i, CON, mp_i.get_bvect_cart()),
292 taij_quad_tot_rs(mp_i),
293 taij_quad_tot_rot(mp_i),
294 taij_quad_tot_bh(mp_i),
295 taij_quad_tot(mp_i),
296 taij_quad_auto(mp_i),
297 taij_quad_comp(mp_i)
298{
299
300 // bc_lapconf_nd, bc_lapconf_fs, irrotational, and omega_spin
301 // are read from the file
302 fread(&bc_lapconf_nd, sizeof(bool), 1, fich) ;
303 fread(&bc_lapconf_fs, sizeof(bool), 1, fich) ;
304 fread(&irrotational, sizeof(bool), 1, fich) ;
305 fread(&omega_spin, sizeof(double), 1, fich) ;
306
307 // All other quantities are initialized to zero
308 // --------------------------------------------
309
310 lapconf_auto_bh = 1. ;
311 lapconf_auto_bh.std_spectral_base() ;
312 lapconf_auto = 1. ;
313 lapconf_auto.std_spectral_base() ;
314 lapconf_comp = 0. ;
315 lapconf_comp.std_spectral_base() ;
316 lapconf_tot = 1. ;
317 lapconf_tot.std_spectral_base() ;
318
319 lapse_auto = 1. ;
320 lapse_auto.std_spectral_base() ;
321 lapse_tot = 1. ;
322 lapse_tot.std_spectral_base() ;
323
324 d_lapconf_auto_rs.set_etat_zero() ;
325 d_lapconf_auto_bh.set_etat_zero() ;
326 d_lapconf_auto.set_etat_zero() ;
327 d_lapconf_comp.set_etat_zero() ;
328
329 shift_auto_bh.set_etat_zero() ;
330 shift_auto.set_etat_zero() ;
331 shift_comp.set_etat_zero() ;
332 shift_tot.set_etat_zero() ;
333 d_shift_auto_rs.set_etat_zero() ;
334 d_shift_auto_bh.set_etat_zero() ;
335 d_shift_auto.set_etat_zero() ;
336 d_shift_comp.set_etat_zero() ;
337
338 confo_auto_bh = 1. ;
339 confo_auto_bh.std_spectral_base() ;
340 confo_auto = 1. ;
341 confo_auto.std_spectral_base() ;
342 confo_comp = 0. ;
343 confo_comp.std_spectral_base() ;
344 confo_tot = 1. ;
345 confo_tot.std_spectral_base() ;
346
347 d_confo_auto_rs.set_etat_zero() ;
348 d_confo_auto_bh.set_etat_zero() ;
349 d_confo_auto.set_etat_zero() ;
350 d_confo_comp.set_etat_zero() ;
351
352 taij_tot_rs.set_etat_zero() ;
353 taij_tot_rot.set_etat_zero() ;
354 taij_tot_bh.set_etat_zero() ;
355 taij_tot.set_etat_zero() ;
356 taij_auto_rs.set_etat_zero() ;
357 taij_auto.set_etat_zero() ;
358 taij_comp.set_etat_zero() ;
359 taij_quad_tot_rs = 0. ;
360 taij_quad_tot_rs.std_spectral_base() ;
361 taij_quad_tot_rot = 0. ;
362 taij_quad_tot_rot.std_spectral_base() ;
363 taij_quad_tot_bh = 0. ;
364 taij_quad_tot_bh.std_spectral_base() ;
365 taij_quad_tot = 0. ;
366 taij_quad_tot.std_spectral_base() ;
367 taij_quad_auto = 0. ;
368 taij_quad_auto.std_spectral_base() ;
369 taij_quad_comp = 0. ;
370 taij_quad_comp.std_spectral_base() ;
371
372 // Pointers of derived quantities initialized to zero
373 // --------------------------------------------------
374 set_der_0x0() ;
375
376}
377
378
379 //--------------------//
380 // Destructor //
381 //--------------------//
382
384{
385
386 del_deriv() ;
387
388}
389
390
391 //------------------------------------------//
392 // Management of derived quantities //
393 //------------------------------------------//
394
396
398
399 if (p_mass_irr_bhns != 0x0) delete p_mass_irr_bhns ;
400 if (p_spin_am_bhns != 0x0) delete p_spin_am_bhns ;
401
402 set_der_0x0() ;
403
404}
405
407
409
410 p_mass_irr_bhns = 0x0 ;
411 p_spin_am_bhns = 0x0 ;
412
413}
414
415
416 //--------------------//
417 // Assignment //
418 //--------------------//
419
420// Assignment to another Hole_bhns
421// -------------------------------
423
424 // Assignment of quantities common to the derived classes of Black_hole
426
427 // Assignment of proper quantities of class Hole_bhns
431 omega_spin = hole.omega_spin ;
436 lapconf_tot = hole.lapconf_tot ;
437 lapse_auto = hole.lapse_auto ;
438 lapse_tot = hole.lapse_tot ;
445 shift_auto = hole.shift_auto ;
446 shift_comp = hole.shift_comp ;
447 shift_tot = hole.shift_tot ;
454 confo_auto = hole.confo_auto ;
455 confo_comp = hole.confo_comp ;
456 confo_tot = hole.confo_tot ;
461 taij_tot_rs = hole.taij_tot_rs ;
463 taij_tot_bh = hole.taij_tot_bh ;
464 taij_tot = hole.taij_tot ;
466 taij_auto = hole.taij_auto ;
467 taij_comp = hole.taij_comp ;
474
475 del_deriv() ;
476
477}
478
479
481
482 del_deriv() ;
483 return lapconf_auto_rs ;
484
485}
486
488
489 del_deriv() ;
490 return lapconf_auto_bh ;
491
492}
493
495
496 del_deriv() ;
497 return lapconf_auto ;
498
499}
500
502
503 del_deriv() ;
504 return lapconf_comp ;
505
506}
507
509
510 del_deriv() ;
511 return lapconf_tot ;
512
513}
514
516
517 del_deriv() ;
518 return lapse_auto ;
519
520}
521
523
524 del_deriv() ;
525 return lapse_tot ;
526
527}
528
530
531 del_deriv() ;
532 return shift_auto_rs ;
533
534}
535
537
538 del_deriv() ;
539 return shift_auto_bh ;
540
541}
542
544
545 del_deriv() ;
546 return shift_auto ;
547
548}
549
551
552 del_deriv() ;
553 return shift_comp ;
554
555}
556
558
559 del_deriv() ;
560 return shift_tot ;
561
562}
563
565
566 del_deriv() ;
567 return confo_auto_rs ;
568
569}
570
572
573 del_deriv() ;
574 return confo_auto_bh ;
575
576}
577
579
580 del_deriv() ;
581 return confo_auto ;
582
583}
584
586
587 del_deriv() ;
588 return confo_comp ;
589
590}
591
593
594 del_deriv() ;
595 return confo_tot ;
596
597}
598
599
600 //-----------------//
601 // Outputs //
602 //-----------------//
603
604// Save in a file
605// --------------
606void Hole_bhns::sauve(FILE* fich) const {
607
608 Black_hole::sauve(fich) ;
609
610 lapconf_auto_rs.sauve(fich) ;
611 shift_auto_rs.sauve(fich) ;
612 confo_auto_rs.sauve(fich) ;
613
614 fwrite(&bc_lapconf_nd, sizeof(bool), 1, fich) ;
615 fwrite(&bc_lapconf_fs, sizeof(bool), 1, fich) ;
616 fwrite(&irrotational, sizeof(bool), 1, fich) ;
617 fwrite(&omega_spin, sizeof(double), 1, fich) ;
618
619}
620
621// Printing
622// --------
623ostream& Hole_bhns::operator>>(ostream& ost) const {
624
625 using namespace Unites ;
626
627 // Black_hole::operator>>(ost) ;
628
629 ost << endl ;
630 ost << "Black hole in a BHNS binary" << endl ;
631 ost << "---------------------------" << endl ;
632
633 int nt = mp.get_mg()->get_nt(1) ;
634
635 ost << "Irreducible mass of BH : "
636 << mass_irr_bhns() / msol << " [Mo]" << endl ;
637 ost << "Mass in the background : "
638 << mass_bh / msol << " [Mo]" << endl ;
639 ost << "Radius of the apparent horison : "
640 << rad_ah() / km << " [km]" << endl ;
641 ost << "Spin angular velocity : "
642 << omega_spin * f_unit << " [rad/s]" << endl ;
643 ost << "Lapse function on the AH : "
644 << lapse_tot.val_grid_point(1,0,nt-1,0) << endl ;
645 ost << "Conformal factor on the AH : "
646 << confo_tot.val_grid_point(1,0,nt-1,0) << endl ;
647 ost << "shift(1) on the AH : "
648 << shift_tot(1).val_grid_point(1,0,nt-1,0) << endl ;
649 ost << "shift(2) on the AH : "
650 << shift_tot(2).val_grid_point(1,0,nt-1,0) << endl ;
651 ost << "shift(3) on the AH : "
652 << shift_tot(3).val_grid_point(1,0,nt-1,0) << endl ;
653
654 return ost ;
655
656}
657
658 //--------------------------------//
659 // Computational routines //
660 //--------------------------------//
661
662void Hole_bhns::relax_bhns(const Hole_bhns& hole_prev,
663 double relax_met, int mer, int fmer_met) {
664
665 double relax_met_jm1 = 1. - relax_met ;
666
667 if ( (mer != 0) && (mer % fmer_met == 0)) {
668
669 lapconf_auto_rs = relax_met * lapconf_auto_rs
670 + relax_met_jm1 * hole_prev.lapconf_auto_rs ;
671
672 shift_auto_rs = relax_met * shift_auto_rs
673 + relax_met_jm1 * hole_prev.shift_auto_rs ;
674
675 confo_auto_rs = relax_met * confo_auto_rs
676 + relax_met_jm1 * hole_prev.confo_auto_rs ;
677
678 }
679
680 del_deriv() ;
681
682}
683
684}
Black_hole(Map &mp_i, bool Kerr_schild, double massbh)
Standard constructor.
Definition blackhole.C:74
Map & mp
Mapping associated with the black hole.
Definition blackhole.h:80
virtual double rad_ah() const
Radius of the apparent horizon.
void set_der_0x0() const
Sets to 0x0 all the pointers on derived quantities.
Definition blackhole.C:221
virtual void sauve(FILE *) const
Save in a file.
Definition blackhole.C:270
void operator=(const Black_hole &)
Assignment to another Black_hole.
Definition blackhole.C:239
double mass_bh
Gravitational mass of BH.
Definition blackhole.h:88
virtual void del_deriv() const
Deletes all the derived quantities.
Definition blackhole.C:208
Scalar confo_auto
Conformal factor generated by the black hole.
Definition hole_bhns.h:163
Sym_tensor taij_tot_bh
Part of the extrinsic curvature tensor from the analytic background.
Definition hole_bhns.h:200
Scalar lapconf_auto
Lapconf function generated by the black hole.
Definition hole_bhns.h:95
Vector shift_tot
Total shift vector ;.
Definition hole_bhns.h:138
Scalar & set_confo_comp()
Read/write of the conformal factor generated by the companion star.
Definition hole_bhns.C:585
Sym_tensor taij_comp
Part of the extrinsic curvature tensor generated by the companion star.
Definition hole_bhns.h:221
Vector d_lapconf_auto
Derivative of the lapconf function generated by the black hole.
Definition hole_bhns.h:120
Tensor d_shift_auto
Derivative of the shift vector generated by the black hole.
Definition hole_bhns.h:151
Scalar & set_lapconf_auto_bh()
Read/write of the lapconf function generated by the black hole.
Definition hole_bhns.C:487
Vector d_lapconf_auto_rs
Derivative of the part of the lapconf function from the numerical computation.
Definition hole_bhns.h:112
Sym_tensor taij_auto
Part of the extrinsic curvature tensor generated by the black hole.
Definition hole_bhns.h:216
Scalar confo_auto_bh
Part of the conformal factor from the analytic background.
Definition hole_bhns.h:160
Tensor d_shift_auto_rs
Derivative of the part of the shift vector from the numerical computation.
Definition hole_bhns.h:143
Sym_tensor taij_tot_rs
Part of the extrinsic curvature tensor from the numerical computation.
Definition hole_bhns.h:190
virtual ostream & operator>>(ostream &) const
Operator >> (virtual function called by the operator <<).
Definition hole_bhns.C:623
Scalar taij_quad_auto
Part of the scalar from the black hole.
Definition hole_bhns.h:238
virtual ~Hole_bhns()
Destructor.
Definition hole_bhns.C:383
virtual double mass_irr_bhns() const
Irreducible mass of the black hole.
Vector & set_shift_auto()
Read/write of the shift vector generated by the black hole.
Definition hole_bhns.C:543
Hole_bhns(Map &mp_i, bool kerrschild_i, bool bc_lapconf_nd, bool bc_lapconf_fs, bool irrotational, double massbh)
Standard constructor.
Definition hole_bhns.C:71
Vector shift_auto_rs
Part of the shift vector from the numerical computation.
Definition hole_bhns.h:126
double omega_spin
Spin angular velocity of the black hole.
Definition hole_bhns.h:86
Vector & set_shift_auto_rs()
Read/write of the shift vector generated by the black hole.
Definition hole_bhns.C:529
Scalar & set_confo_auto_rs()
Read/write of the conformal factor generated by the black hole.
Definition hole_bhns.C:564
virtual void del_deriv() const
Deletes all the derived quantities.
Definition hole_bhns.C:395
Tensor d_shift_auto_bh
Derivative of the part of the shift vector from the analytic background.
Definition hole_bhns.h:148
Scalar & set_lapconf_auto_rs()
Read/write of the lapconf function generated by the black hole.
Definition hole_bhns.C:480
Scalar & set_confo_tot()
Read/write of the total conformal factor.
Definition hole_bhns.C:592
void operator=(const Hole_bhns &)
Assignment to another Hole_bhns.
Definition hole_bhns.C:422
void relax_bhns(const Hole_bhns &hole_prev, double relax_met, int mer, int fmer_met)
Performs a relaxation on lapse_auto , shift_auto , confo_auto .
Definition hole_bhns.C:662
bool bc_lapconf_fs
true for the first type BC for the lapconf function, false for the second type BH
Definition hole_bhns.h:78
Vector d_lapconf_auto_bh
Derivative of the part of the lapconf function from the analytic background.
Definition hole_bhns.h:117
Scalar & set_confo_auto()
Read/write of the conformal factor generated by the black hole.
Definition hole_bhns.C:578
Scalar & set_lapconf_tot()
Read/write of the total lapconf function.
Definition hole_bhns.C:508
Vector d_confo_auto_rs
Derivative of the part of the conformal factor from the numerical computation.
Definition hole_bhns.h:174
Scalar confo_auto_rs
Part of the conformal factor from the numerical computation.
Definition hole_bhns.h:157
Scalar taij_quad_tot_rot
Part of the scalar from the rotation shift vector.
Definition hole_bhns.h:227
Vector & set_shift_tot()
Read/write of the total shift vector.
Definition hole_bhns.C:557
Scalar taij_quad_tot
Total scalar generated by .
Definition hole_bhns.h:235
Scalar lapse_tot
Total lapse function.
Definition hole_bhns.h:107
Vector & set_shift_auto_bh()
Read/write of the shift vector generated by the black hole.
Definition hole_bhns.C:536
Scalar & set_lapse_auto()
Read/write of the lapse function generated by the black hole.
Definition hole_bhns.C:515
Sym_tensor taij_tot_rot
Part of the extrinsic curvature tensor from the rotation shift vector.
Definition hole_bhns.h:195
Vector & set_shift_comp()
Read/write of the shift vector generated by the companion star.
Definition hole_bhns.C:550
Vector d_lapconf_comp
Derivative of the lapconf function generated by the companion star.
Definition hole_bhns.h:123
Sym_tensor taij_tot
Total extrinsic curvature tensor generated by shift_tot , lapse_tot , and confo_tot .
Definition hole_bhns.h:206
Scalar lapse_auto
Lapse function of the "black hole" part.
Definition hole_bhns.h:104
Vector shift_auto_bh
Part of the shift vector from the analytic background.
Definition hole_bhns.h:129
Scalar confo_comp
Conformal factor generated by the companion star.
Definition hole_bhns.h:166
Scalar lapconf_comp
Lapconf function generated by the companion star.
Definition hole_bhns.h:98
Scalar lapconf_auto_bh
Part of the lapconf function from the analytic background.
Definition hole_bhns.h:92
Vector d_confo_auto
Derivative of the conformal factor generated by the black hole.
Definition hole_bhns.h:182
virtual void sauve(FILE *) const
Save in a file.
Definition hole_bhns.C:606
Vector shift_auto
Shift vector generated by the black hole.
Definition hole_bhns.h:132
void set_der_0x0() const
Sets to 0x0 all the pointers on derived quantities.
Definition hole_bhns.C:406
Scalar lapconf_auto_rs
Part of the lapconf function from the numerical computation.
Definition hole_bhns.h:89
Scalar & set_lapconf_auto()
Read/write of the lapconf function generated by the black hole.
Definition hole_bhns.C:494
Vector d_confo_comp
Derivative of the conformal factor generated by the companion star.
Definition hole_bhns.h:185
Scalar taij_quad_comp
Part of the scalar from the companion star.
Definition hole_bhns.h:241
bool bc_lapconf_nd
true for the Neumann type BC for the lapconf function, false for the Dirichlet type BH
Definition hole_bhns.h:73
Scalar & set_lapconf_comp()
Read/write of the lapconf function generated by the companion star.
Definition hole_bhns.C:501
Scalar lapconf_tot
Total lapconf function.
Definition hole_bhns.h:101
Tensor d_shift_comp
Derivative of the shift vector generated by the companion star.
Definition hole_bhns.h:154
Vector d_confo_auto_bh
Derivative of the part of the conformal factor from the analytic background.
Definition hole_bhns.h:179
Vector shift_comp
Shift vector generated by the companion star.
Definition hole_bhns.h:135
Scalar confo_tot
Total conformal factor.
Definition hole_bhns.h:169
Scalar & set_confo_auto_bh()
Read/write of the conformal factor generated by the black hole.
Definition hole_bhns.C:571
double * p_spin_am_bhns
Irreducible mass of BH.
Definition hole_bhns.h:248
Sym_tensor taij_auto_rs
Part of the extrinsic curvature tensor numericalty computed for the black hole.
Definition hole_bhns.h:211
Scalar taij_quad_tot_rs
Part of the scalar from the numerical computation.
Definition hole_bhns.h:224
Scalar taij_quad_tot_bh
Part of the scalar from the analytic background.
Definition hole_bhns.h:230
bool irrotational
true for an irrotational black hole, false for a corotating one
Definition hole_bhns.h:83
Scalar & set_lapse_tot()
Read/write of the total lapse function.
Definition hole_bhns.C:522
Tensor field of valence 0 (or component of a tensorial field).
Definition scalar.h:393
Tensor field of valence 1.
Definition vector.h:188
Lorene prototypes.
Definition app_hor.h:67
const Base_vect_cart & get_bvect_cart() const
Returns the Cartesian basis associated with the coordinates (x,y,z) of the mapping,...
Definition map.h:803
const Mg3d * get_mg() const
Gives the Mg3d on which the mapping is defined.
Definition map.h:777
Map(const Mg3d &)
Constructor from a multi-domain 3D grid.
Definition map.C:142
Standard units of space, time and mass.