| 1 | /* |
| 2 | * Definition of Lorene class Hole_bhns |
| 3 | * |
| 4 | */ |
| 5 | |
| 6 | /* |
| 7 | * Copyright (c) 2005-2007 Keisuke Taniguchi |
| 8 | * |
| 9 | * This file is part of LORENE. |
| 10 | * |
| 11 | * LORENE is free software; you can redistribute it and/or modify |
| 12 | * it under the terms of the GNU General Public License version 2 |
| 13 | * as published by the Free Software Foundation. |
| 14 | * |
| 15 | * LORENE is distributed in the hope that it will be useful, |
| 16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 18 | * GNU General Public License for more details. |
| 19 | * |
| 20 | * You should have received a copy of the GNU General Public License |
| 21 | * along with LORENE; if not, write to the Free Software |
| 22 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 23 | * |
| 24 | */ |
| 25 | |
| 26 | #ifndef __HOLE_BHNS_H_ |
| 27 | #define __HOLE_BHNS_H_ |
| 28 | |
| 29 | /* |
| 30 | * $Id: hole_bhns.h,v 1.3 2014/10/13 08:52:35 j_novak Exp $ |
| 31 | * $Log: hole_bhns.h,v $ |
| 32 | * Revision 1.3 2014/10/13 08:52:35 j_novak |
| 33 | * Lorene classes and functions now belong to the namespace Lorene. |
| 34 | * |
| 35 | * Revision 1.2 2008/05/15 18:55:04 k_taniguchi |
| 36 | * Change of some parameters and introduction of some |
| 37 | * computational routines. |
| 38 | * |
| 39 | * Revision 1.1 2007/06/22 01:04:14 k_taniguchi |
| 40 | * *** empty log message *** |
| 41 | * |
| 42 | * |
| 43 | * $Header: /cvsroot/Lorene/C++/Include/hole_bhns.h,v 1.3 2014/10/13 08:52:35 j_novak Exp $ |
| 44 | * |
| 45 | */ |
| 46 | |
| 47 | // Headers Lorene |
| 48 | #include "blackhole.h" |
| 49 | #include "metric.h" |
| 50 | |
| 51 | namespace Lorene { |
| 52 | |
| 53 | // External classes which appear in the declaration of class Hole_bhns: |
| 54 | class Star_bhns ; |
| 55 | |
| 56 | //-------------------------// |
| 57 | // Class Hole_bhns // |
| 58 | //-------------------------// |
| 59 | |
| 60 | /** |
| 61 | * Class for black holes in black hole-neutron star binaries. |
| 62 | * \ingroup(star) |
| 63 | * |
| 64 | */ |
| 65 | class Hole_bhns : public Black_hole { |
| 66 | |
| 67 | // Data : |
| 68 | // ----- |
| 69 | protected: |
| 70 | /** \c true for the Neumann type BC for the lapconf function, |
| 71 | * \c false for the Dirichlet type BH |
| 72 | */ |
| 73 | bool bc_lapconf_nd ; |
| 74 | |
| 75 | /** \c true for the first type BC for the lapconf function, |
| 76 | * \c false for the second type BH |
| 77 | */ |
| 78 | bool bc_lapconf_fs ; |
| 79 | |
| 80 | /** \c true for an irrotational black hole, \c false for |
| 81 | * a corotating one |
| 82 | */ |
| 83 | bool irrotational ; |
| 84 | |
| 85 | /// Spin angular velocity of the black hole |
| 86 | double omega_spin ; |
| 87 | |
| 88 | /// Part of the lapconf function from the numerical computation |
| 89 | Scalar lapconf_auto_rs ; |
| 90 | |
| 91 | /// Part of the lapconf function from the analytic background |
| 92 | Scalar lapconf_auto_bh ; |
| 93 | |
| 94 | /// Lapconf function generated by the black hole |
| 95 | Scalar lapconf_auto ; // = lapconf_auto_rs + lapconf_auto_bh |
| 96 | |
| 97 | /// Lapconf function generated by the companion star |
| 98 | Scalar lapconf_comp ; |
| 99 | |
| 100 | /// Total lapconf function |
| 101 | Scalar lapconf_tot ; // = lapconf_auto + lapconf_comp |
| 102 | |
| 103 | /// Lapse function of the "black hole" part |
| 104 | Scalar lapse_auto ; // = lapconf_auto / confo_tot |
| 105 | |
| 106 | /// Total lapse function |
| 107 | Scalar lapse_tot ; // = lapconf_tot / confo_tot |
| 108 | |
| 109 | /** Derivative of the part of the lapconf function |
| 110 | * from the numerical computation |
| 111 | */ |
| 112 | Vector d_lapconf_auto_rs ; |
| 113 | |
| 114 | /** Derivative of the part of the lapconf function |
| 115 | * from the analytic background |
| 116 | */ |
| 117 | Vector d_lapconf_auto_bh ; |
| 118 | |
| 119 | /// Derivative of the lapconf function generated by the black hole |
| 120 | Vector d_lapconf_auto ; |
| 121 | |
| 122 | /// Derivative of the lapconf function generated by the companion star |
| 123 | Vector d_lapconf_comp ; |
| 124 | |
| 125 | /// Part of the shift vector from the numerical computation |
| 126 | Vector shift_auto_rs ; |
| 127 | |
| 128 | /// Part of the shift vector from the analytic background |
| 129 | Vector shift_auto_bh ; |
| 130 | |
| 131 | /// Shift vector generated by the black hole |
| 132 | Vector shift_auto ; |
| 133 | |
| 134 | /// Shift vector generated by the companion star |
| 135 | Vector shift_comp ; |
| 136 | |
| 137 | /// Total shift vector ; |
| 138 | Vector shift_tot ; |
| 139 | |
| 140 | /** Derivative of the part of the shift vector |
| 141 | * from the numerical computation |
| 142 | */ |
| 143 | Tensor d_shift_auto_rs ; |
| 144 | |
| 145 | /** Derivative of the part of the shift vector |
| 146 | * from the analytic background |
| 147 | */ |
| 148 | Tensor d_shift_auto_bh ; |
| 149 | |
| 150 | /// Derivative of the shift vector generated by the black hole |
| 151 | Tensor d_shift_auto ; |
| 152 | |
| 153 | /// Derivative of the shift vector generated by the companion star |
| 154 | Tensor d_shift_comp ; |
| 155 | |
| 156 | /// Part of the conformal factor from the numerical computation |
| 157 | Scalar confo_auto_rs ; |
| 158 | |
| 159 | /// Part of the conformal factor from the analytic background |
| 160 | Scalar confo_auto_bh ; |
| 161 | |
| 162 | /// Conformal factor generated by the black hole |
| 163 | Scalar confo_auto ; |
| 164 | |
| 165 | /// Conformal factor generated by the companion star |
| 166 | Scalar confo_comp ; |
| 167 | |
| 168 | /// Total conformal factor |
| 169 | Scalar confo_tot ; |
| 170 | |
| 171 | /** Derivative of the part of the conformal factor |
| 172 | * from the numerical computation |
| 173 | */ |
| 174 | Vector d_confo_auto_rs ; |
| 175 | |
| 176 | /** Derivative of the part of the conformal factor |
| 177 | * from the analytic background |
| 178 | */ |
| 179 | Vector d_confo_auto_bh ; |
| 180 | |
| 181 | /// Derivative of the conformal factor generated by the black hole |
| 182 | Vector d_confo_auto ; |
| 183 | |
| 184 | /// Derivative of the conformal factor generated by the companion star |
| 185 | Vector d_confo_comp ; |
| 186 | |
| 187 | /** Part of the extrinsic curvature tensor |
| 188 | * from the numerical computation |
| 189 | */ |
| 190 | Sym_tensor taij_tot_rs ; |
| 191 | |
| 192 | /** Part of the extrinsic curvature tensor |
| 193 | * from the rotation shift vector |
| 194 | */ |
| 195 | Sym_tensor taij_tot_rot ; |
| 196 | |
| 197 | /** Part of the extrinsic curvature tensor |
| 198 | * from the analytic background |
| 199 | */ |
| 200 | Sym_tensor taij_tot_bh ; |
| 201 | |
| 202 | /** Total extrinsic curvature tensor \f$\ A^{ij}\f$ |
| 203 | * generated by \c shift_tot , \c lapse_tot , and |
| 204 | * \c confo_tot . |
| 205 | */ |
| 206 | Sym_tensor taij_tot ; |
| 207 | |
| 208 | /** Part of the extrinsic curvature tensor numericalty computed |
| 209 | * for the black hole. |
| 210 | */ |
| 211 | Sym_tensor taij_auto_rs ; |
| 212 | |
| 213 | /** Part of the extrinsic curvature tensor generated by |
| 214 | * the black hole. |
| 215 | */ |
| 216 | Sym_tensor taij_auto ; |
| 217 | |
| 218 | /** Part of the extrinsic curvature tensor generated by |
| 219 | * the companion star. |
| 220 | */ |
| 221 | Sym_tensor taij_comp ; |
| 222 | |
| 223 | /// Part of the scalar from the numerical computation |
| 224 | Scalar taij_quad_tot_rs ; |
| 225 | |
| 226 | /// Part of the scalar from the rotation shift vector |
| 227 | Scalar taij_quad_tot_rot ; |
| 228 | |
| 229 | /// Part of the scalar from the analytic background |
| 230 | Scalar taij_quad_tot_bh ; |
| 231 | |
| 232 | /** Total scalar \f$\eta_{ik} \eta_{jl} A^{ij} A^{kl}\f$ |
| 233 | * generated by \f$A_{ij}^{\rm tot}\f$ |
| 234 | */ |
| 235 | Scalar taij_quad_tot ; |
| 236 | |
| 237 | /// Part of the scalar from the black hole. |
| 238 | Scalar taij_quad_auto ; |
| 239 | |
| 240 | /// Part of the scalar from the companion star. |
| 241 | Scalar taij_quad_comp ; |
| 242 | |
| 243 | // Derived data : |
| 244 | // ------------ |
| 245 | protected: |
| 246 | mutable double* p_mass_irr_bhns ; /// Irreducible mass of BH |
| 247 | /// Quasilocal spin angular momentum of BH |
| 248 | mutable double* p_spin_am_bhns ; |
| 249 | |
| 250 | // Constructors - Destructor |
| 251 | // ------------------------- |
| 252 | public: |
| 253 | |
| 254 | /** Standard constructor. |
| 255 | * |
| 256 | * @param mp_i Mapping on which the black hole will be defined |
| 257 | */ |
| 258 | Hole_bhns(Map& mp_i, bool kerrschild_i, bool bc_lapconf_nd, |
| 259 | bool bc_lapconf_fs, bool irrotational, double massbh) ; |
| 260 | |
| 261 | Hole_bhns(const Hole_bhns& ) ; ///< Copy constructor |
| 262 | |
| 263 | /** Constructor from a file (see \c sauve(FILE*) ) |
| 264 | * |
| 265 | * @param mp_i Mapping on which the black hole will be defined |
| 266 | * @param fich input file (must have been created by the function |
| 267 | * \c sauve ) |
| 268 | */ |
| 269 | Hole_bhns(Map& mp_i, FILE* fich) ; |
| 270 | |
| 271 | virtual ~Hole_bhns() ; ///< Destructor |
| 272 | |
| 273 | // Memory management |
| 274 | // ----------------- |
| 275 | protected: |
| 276 | /// Deletes all the derived quantities |
| 277 | virtual void del_deriv() const ; |
| 278 | |
| 279 | /// Sets to \c 0x0 all the pointers on derived quantities |
| 280 | void set_der_0x0() const ; |
| 281 | |
| 282 | |
| 283 | // Mutators / assignment |
| 284 | // --------------------- |
| 285 | public: |
| 286 | /// Assignment to another \c Hole_bhns |
| 287 | void operator=(const Hole_bhns&) ; |
| 288 | |
| 289 | /// Sets the spin angular velocity of the black hole [{\tt f\_unit}] |
| 290 | double& set_omega_spin() { return omega_spin ; } ; |
| 291 | |
| 292 | /// Read/write of the lapconf function generated by the black hole |
| 293 | Scalar& set_lapconf_auto_rs() ; |
| 294 | |
| 295 | /// Read/write of the lapconf function generated by the black hole |
| 296 | Scalar& set_lapconf_auto_bh() ; |
| 297 | |
| 298 | /// Read/write of the lapconf function generated by the black hole |
| 299 | Scalar& set_lapconf_auto() ; |
| 300 | |
| 301 | /// Read/write of the lapconf function generated by the companion star |
| 302 | Scalar& set_lapconf_comp() ; |
| 303 | |
| 304 | /// Read/write of the total lapconf function |
| 305 | Scalar& set_lapconf_tot() ; |
| 306 | |
| 307 | /// Read/write of the lapse function generated by the black hole |
| 308 | Scalar& set_lapse_auto() ; |
| 309 | |
| 310 | /// Read/write of the total lapse function |
| 311 | Scalar& set_lapse_tot() ; |
| 312 | |
| 313 | /// Read/write of the shift vector generated by the black hole |
| 314 | Vector& set_shift_auto_rs() ; |
| 315 | |
| 316 | /// Read/write of the shift vector generated by the black hole |
| 317 | Vector& set_shift_auto_bh() ; |
| 318 | |
| 319 | /// Read/write of the shift vector generated by the black hole |
| 320 | Vector& set_shift_auto() ; |
| 321 | |
| 322 | /// Read/write of the shift vector generated by the companion star |
| 323 | Vector& set_shift_comp() ; |
| 324 | |
| 325 | /// Read/write of the total shift vector |
| 326 | Vector& set_shift_tot() ; |
| 327 | |
| 328 | /// Read/write of the conformal factor generated by the black hole |
| 329 | Scalar& set_confo_auto_rs() ; |
| 330 | |
| 331 | /// Read/write of the conformal factor generated by the black hole |
| 332 | Scalar& set_confo_auto_bh() ; |
| 333 | |
| 334 | /// Read/write of the conformal factor generated by the black hole |
| 335 | Scalar& set_confo_auto() ; |
| 336 | |
| 337 | /// Read/write of the conformal factor generated by the companion star |
| 338 | Scalar& set_confo_comp() ; |
| 339 | |
| 340 | /// Read/write of the total conformal factor |
| 341 | Scalar& set_confo_tot() ; |
| 342 | |
| 343 | // Accessors |
| 344 | // --------- |
| 345 | public: |
| 346 | /** Returns \c true for the Neumann type BC for the lapconf function, |
| 347 | * \c false for the Dirichlet type BH |
| 348 | */ |
| 349 | bool has_bc_lapconf_nd() const {return bc_lapconf_nd; } ; |
| 350 | |
| 351 | /** Returns \c true for the first type BC for the lapconf function, |
| 352 | * \c false for the second type BH |
| 353 | */ |
| 354 | bool has_bc_lapconf_fs() const {return bc_lapconf_fs; } ; |
| 355 | |
| 356 | /** Returns \c true for an irrotational black hole, \c false for |
| 357 | * a corotating one |
| 358 | */ |
| 359 | bool is_irrotational() const {return irrotational; } ; |
| 360 | |
| 361 | /// Returns the spin angular velocity of the black hole [{\tt f\_unit}] |
| 362 | double get_omega_spin() const {return omega_spin; } ; |
| 363 | |
| 364 | /// Returns the part of the lapconf function from numerical computation |
| 365 | const Scalar& get_lapconf_auto_rs() const {return lapconf_auto_rs; } ; |
| 366 | |
| 367 | /** Returns the part of the lapconf function generated by |
| 368 | * the black hole |
| 369 | */ |
| 370 | const Scalar& get_lapconf_auto() const {return lapconf_auto; } ; |
| 371 | |
| 372 | /** Returns the part of the lapconf function generated by the |
| 373 | * companion star |
| 374 | */ |
| 375 | const Scalar& get_lapconf_comp() const {return lapconf_comp; } ; |
| 376 | |
| 377 | /// Returns the total lapconf function |
| 378 | const Scalar& get_lapconf_tot() const {return lapconf_tot; } ; |
| 379 | |
| 380 | /** Returns the part of the lapse function generated by |
| 381 | * the black hole |
| 382 | */ |
| 383 | const Scalar& get_lapse_auto() const {return lapse_auto; } ; |
| 384 | |
| 385 | /// Returns the total lapse function |
| 386 | const Scalar& get_lapse_tot() const {return lapse_tot; } ; |
| 387 | |
| 388 | /** Returns the derivative of the lapconf function generated by |
| 389 | * the black hole |
| 390 | */ |
| 391 | const Vector& get_d_lapconf_auto_rs() const |
| 392 | {return d_lapconf_auto_rs; } ; |
| 393 | |
| 394 | /** Returns the derivative of the lapconf function generated by |
| 395 | * the black hole |
| 396 | */ |
| 397 | const Vector& get_d_lapconf_auto() const {return d_lapconf_auto; } ; |
| 398 | |
| 399 | /** Returns the derivative of the lapconf function generated by the |
| 400 | * companion star |
| 401 | */ |
| 402 | const Vector& get_d_lapconf_comp() const {return d_lapconf_comp; } ; |
| 403 | |
| 404 | /// Returns the part of the shift vector from numerical computation |
| 405 | const Vector& get_shift_auto_rs() const {return shift_auto_rs; } ; |
| 406 | |
| 407 | /// Returns the part of the shift vector generated by the black hole |
| 408 | const Vector& get_shift_auto() const {return shift_auto; } ; |
| 409 | |
| 410 | /** Returns the part of the shift vector generated by the |
| 411 | * companion star |
| 412 | */ |
| 413 | const Vector& get_shift_comp() const {return shift_comp; } ; |
| 414 | |
| 415 | /// Returns the total shift vector |
| 416 | const Vector& get_shift_tot() const {return shift_tot; } ; |
| 417 | |
| 418 | /** Returns the derivative of the shift vector generated by the |
| 419 | * black hole |
| 420 | */ |
| 421 | const Tensor& get_d_shift_auto_rs() const {return d_shift_auto_rs; } ; |
| 422 | |
| 423 | /** Returns the derivative of the shift vector generated by the |
| 424 | * black hole |
| 425 | */ |
| 426 | const Tensor& get_d_shift_auto() const {return d_shift_auto; } ; |
| 427 | |
| 428 | /** Returns the derivative of the shift vector generated by the |
| 429 | * companion star |
| 430 | */ |
| 431 | const Tensor& get_d_shift_comp() const {return d_shift_comp; } ; |
| 432 | |
| 433 | /// Returns the part of the conformal factor from numerical computation |
| 434 | const Scalar& get_confo_auto_rs() const {return confo_auto_rs; } ; |
| 435 | |
| 436 | /** Returns the part of the conformal factor generated by the |
| 437 | * black hole |
| 438 | */ |
| 439 | const Scalar& get_confo_auto() const {return confo_auto; } ; |
| 440 | |
| 441 | /** Returns the part of the conformal factor generated by the |
| 442 | * companion star |
| 443 | */ |
| 444 | const Scalar& get_confo_comp() const {return confo_comp; } ; |
| 445 | |
| 446 | /// Returns the total conformal factor |
| 447 | const Scalar& get_confo_tot() const {return confo_tot; } ; |
| 448 | |
| 449 | /** Returns the derivative of the conformal factor generated by |
| 450 | * the black hole |
| 451 | */ |
| 452 | const Vector& get_d_confo_auto_rs() const {return d_confo_auto_rs; } ; |
| 453 | |
| 454 | /** Returns the derivative of the conformal factor generated by the |
| 455 | * black hole |
| 456 | */ |
| 457 | const Vector& get_d_confo_auto() const {return d_confo_auto; } ; |
| 458 | |
| 459 | /** Returns the derivative of the conformal factor generated by the |
| 460 | * companion star |
| 461 | */ |
| 462 | const Vector& get_d_confo_comp() const {return d_confo_comp; } ; |
| 463 | |
| 464 | /// Returns the part of rs of the extrinsic curvature tensor |
| 465 | const Sym_tensor& get_taij_tot_rs() const {return taij_tot_rs; } ; |
| 466 | |
| 467 | /// Returns the total extrinsic curvature tensor |
| 468 | const Sym_tensor& get_taij_tot() const {return taij_tot; } ; |
| 469 | |
| 470 | /** Returns the part of rs of the extrinsic curvature tensor |
| 471 | * generated by the black hole |
| 472 | */ |
| 473 | const Sym_tensor& get_taij_auto_rs() const {return taij_auto_rs; } ; |
| 474 | |
| 475 | /** Returns the part of the extrinsic curvature tensor |
| 476 | * generated by the black hole |
| 477 | */ |
| 478 | const Sym_tensor& get_taij_auto() const {return taij_auto; } ; |
| 479 | |
| 480 | /** Returns the part of the extrinsic curvature tensor |
| 481 | * generated by the companion star |
| 482 | */ |
| 483 | const Sym_tensor& get_taij_comp() const {return taij_comp; } ; |
| 484 | |
| 485 | /// Returns the part of rs |
| 486 | const Scalar& get_taij_quad_tot_rs() const {return taij_quad_tot_rs; } ; |
| 487 | /// Returns the part of rot |
| 488 | const Scalar& get_taij_quad_tot_rot() const {return taij_quad_tot_rot; } ; |
| 489 | |
| 490 | /// Returns the total scalar \f$\eta_{ik} \eta_{jl} A^{ij} A^{kl}\f$ |
| 491 | const Scalar& get_taij_quad_tot() const {return taij_quad_tot; } ; |
| 492 | |
| 493 | /// Returns the part of rs generated by the black hole |
| 494 | const Scalar& get_taij_quad_auto() const {return taij_quad_auto; } ; |
| 495 | |
| 496 | /// Returns the part of rs generated by the companion star |
| 497 | const Scalar& get_taij_quad_comp() const {return taij_quad_comp; } ; |
| 498 | |
| 499 | // Outputs |
| 500 | // ------- |
| 501 | public: |
| 502 | virtual void sauve(FILE *) const ; ///< Save in a file |
| 503 | |
| 504 | protected: |
| 505 | /// Operator >> (virtual function called by the operator <<) |
| 506 | virtual ostream& operator>>(ostream& ) const ; |
| 507 | |
| 508 | // Global quantities |
| 509 | // ----------------- |
| 510 | public: |
| 511 | /// Irreducible mass of the black hole |
| 512 | virtual double mass_irr_bhns() const ; |
| 513 | |
| 514 | /// Spin angular momentum of the black hole |
| 515 | double spin_am_bhns(const Tbl& xi_i, const double& phi_i, |
| 516 | const double& theta_i, const int& nrk_phi, |
| 517 | const int& nrk_theta) const ; |
| 518 | |
| 519 | // Computational routines |
| 520 | // ---------------------- |
| 521 | public: |
| 522 | /** Boundary condition on the apparent horizon of the black hole |
| 523 | * for the lapconf function: 2-D \c Valeur |
| 524 | */ |
| 525 | const Valeur bc_lapconf() const ; |
| 526 | |
| 527 | /** Boundary condition on the apparent horizon of the black hole |
| 528 | * for the shift vector of the \fx\f direction: 2-D \c Valeur |
| 529 | */ |
| 530 | const Valeur bc_shift_x(double ome_orb, double y_rot) const ; |
| 531 | |
| 532 | /** Boundary condition on the apparent horizon of the black hole |
| 533 | * for the shift vector of the \fy\f direction: 2-D \c Valeur |
| 534 | */ |
| 535 | const Valeur bc_shift_y(double ome_orb, double x_rot) const ; |
| 536 | |
| 537 | /** Boundary condition on the apparent horizon of the black hole |
| 538 | * for the shift vector of the \fz\f direction: 2-D \c Valeur |
| 539 | */ |
| 540 | const Valeur bc_shift_z() const ; |
| 541 | |
| 542 | /** Boundary condition on the apparent horizon of the black hole |
| 543 | * for the conformal factor: 2-D \c Valeur |
| 544 | * |
| 545 | * @param ome_orb orbital angular velocity |
| 546 | * @param x_rot position of the rotation axis |
| 547 | */ |
| 548 | const Valeur bc_confo(double ome_orb, double x_rot, |
| 549 | double y_rot) const ; |
| 550 | |
| 551 | /** Computes metric coefficients from known potentials |
| 552 | * with relaxation when the companion is a black hole. |
| 553 | * |
| 554 | * The calculation is performed starting from the quantities |
| 555 | * \c lapse_auto , \c shift_auto , \c confo_auto , |
| 556 | * \c comp.lapse_auto , \c comp.confo_auto |
| 557 | * which are supposed to be up to date. |
| 558 | * From these, the following fields are updated: |
| 559 | * \c lapse_comp , \c lapse_tot, \c confo_comp, |
| 560 | * \c confo_tot , \c psi4 , |
| 561 | * |
| 562 | * @param star companion neutron star |
| 563 | * @param hole_prev previous value of the hole |
| 564 | * @param relax relaxation parameter |
| 565 | * |
| 566 | */ |
| 567 | void update_metric_bhns(const Star_bhns& star, |
| 568 | const Hole_bhns& hole_prev, |
| 569 | double relax) ; |
| 570 | |
| 571 | /** Computes derivative of metric quantities from |
| 572 | * the companion neutron star |
| 573 | * |
| 574 | * @param star companion neutron star |
| 575 | * |
| 576 | */ |
| 577 | void update_met_der_comp_bhns(const Star_bhns& star) ; |
| 578 | |
| 579 | /** Computes \c taij_tot , \c taij_quad_tot from |
| 580 | * \c shift_tot , \c lapse_tot , \c confo_tot . |
| 581 | * |
| 582 | * @param omega_orb [input] Orbital angular velocity |
| 583 | * @param x_rot [input] Position of the rotation axis |
| 584 | */ |
| 585 | void extr_curv_bhns(double omega_orb, double x_rot, double y_rot) ; |
| 586 | |
| 587 | /** Computes a black-hole part in a black hole-neutron star binary |
| 588 | * by giving boundary conditions on the apparent horizon. |
| 589 | * |
| 590 | * @param mer [input] Number of iteration |
| 591 | * @param mermax_bh [input] Maximum number of iteration steps |
| 592 | * @param filter_r [input] No. points to be deleted for (r): lap,conf |
| 593 | * @param filter_r_s [input] No. points to be deleted for (r): shift |
| 594 | * @param filter_p_s [input] No. points to be deleted for (phi): shift |
| 595 | * @param x_rot [input] Position of the rotation axis |
| 596 | * @param y_rot [input] Position of the rotation axis |
| 597 | * @param precis [input] threshold in the relative difference of |
| 598 | * a metric quantity between two succesive steps |
| 599 | * to stop the iterative procedure |
| 600 | * (default value: 1.e-14) |
| 601 | * @param omega_orb [input] Orbital angular velocity |
| 602 | * @param resize_bh [input] Resize factor for the first shell |
| 603 | * @param fact_resize [input] 1-D \c Tbl for the input of some |
| 604 | * factors : \\ |
| 605 | * \c fact(0) : A resizing factor for the first shell |
| 606 | * @param diff [output] 1-D \c Tbl for the storage of some |
| 607 | * error indicators : |
| 608 | */ |
| 609 | void equilibrium_bhns(int mer, int mermax_bh, |
| 610 | int filter_r, int filter_r_s, int filter_p_s, |
| 611 | double x_rot, double y_rot, double precis, |
| 612 | double omega_orb, double resize_bh, |
| 613 | const Tbl& fact_resize, Tbl& diff) ; |
| 614 | |
| 615 | /** Performs a relaxation on \c lapse_auto , |
| 616 | * \c shift_auto , \c confo_auto . |
| 617 | * |
| 618 | * @param hole_prev [input] black hole at the previous step |
| 619 | * @param relax_met [input] Relaxation factor for \c lapse_auto , |
| 620 | * \c shift_auto , \c confo_auto , |
| 621 | * only if \c (mer%fmer_met=0) . |
| 622 | * @param mer [input] Step number |
| 623 | * @param fmer_met [input] Step interval between metric updates |
| 624 | */ |
| 625 | void relax_bhns(const Hole_bhns& hole_prev, |
| 626 | double relax_met, int mer, int fmer_met) ; |
| 627 | |
| 628 | /** Compute a forth-order Runge-Kutta integration to the phi |
| 629 | * direction for the solution of the Killing vectors on the |
| 630 | * equator |
| 631 | * |
| 632 | * @param xi_i [input] initial set of the Killing vectors |
| 633 | * at the starting point on the equator |
| 634 | * @param phi_i [input] initial phi coordinate at which the |
| 635 | * integration starts |
| 636 | * @param nrk [input] number of the Runge-Kutta integration |
| 637 | * between two successive collocation points |
| 638 | */ |
| 639 | Tbl runge_kutta_phi(const Tbl& xi_i, const double& phi_i, |
| 640 | const int& nrk) const ; |
| 641 | |
| 642 | /** Compute a forth-order Runge-Kutta integration to the theta |
| 643 | * direction for the solution of the Killing vectors |
| 644 | * |
| 645 | * @param xi_i [input] initial set of the Killing vectors |
| 646 | * at the starting point on the equator |
| 647 | * @param theta_i [input] initial theta coordinate at which the |
| 648 | * integration starts |
| 649 | * @param phi [input] fixed phi coordinate during integration to |
| 650 | * the theta direction |
| 651 | * @param nrk [input] number of the Runge-Kutta integration |
| 652 | * between two successive collocation points |
| 653 | */ |
| 654 | |
| 655 | Tbl runge_kutta_theta(const Tbl& xi_i, const double& theta_i, |
| 656 | const double& phi, const int& nrk) const ; |
| 657 | |
| 658 | /** Compute the Killing vector of a black hole normalized so that |
| 659 | * its affine length is 2 M_PI |
| 660 | * |
| 661 | * @param xi_i [input] initial set of the Killing vectors |
| 662 | * at the starting point on the equator |
| 663 | * @param phi_i [input] initial phi coordinate at which the |
| 664 | * integration starts |
| 665 | * @param theta_i [input] initial theta coordinate at which the |
| 666 | * integration starts |
| 667 | * @param nrk_phi [input] number of the Runge-Kutta integration |
| 668 | * between two successive collocation points |
| 669 | * for the phi direction |
| 670 | * @param nrk_theta [input] number of the Runge-Kutta integration |
| 671 | * between two successive collocation points |
| 672 | * for the theta direction |
| 673 | */ |
| 674 | Vector killing_vect(const Tbl& xi_i, const double& phi_i, |
| 675 | const double& theta_i, const int& nrk_phi, |
| 676 | const int& nrk_theta) const ; |
| 677 | |
| 678 | friend class Bin_bhns ; |
| 679 | |
| 680 | }; |
| 681 | |
| 682 | } |
| 683 | #endif |