1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144
|
/*
* Methods Et_bin_nsbh::update_metric
*
* (see file et_bin_nsbh.h for documentation).
*
*/
/*
* Copyright (c) 2003 Philippe Grandclement
* 2003 Keisuke Taniguchi
*
* This file is part of LORENE.
*
* LORENE is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2
* as published by the Free Software Foundation.
*
* LORENE is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with LORENE; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*/
char et_bin_nsbh_upmetr_C[] = "$Header: /cvsroot/Lorene/C++/Source/Etoile/et_bin_nsbh_upmetr.C,v 1.4 2014/10/13 08:52:56 j_novak Exp $" ;
/*
* $Id: et_bin_nsbh_upmetr.C,v 1.4 2014/10/13 08:52:56 j_novak Exp $
* $Log: et_bin_nsbh_upmetr.C,v $
* Revision 1.4 2014/10/13 08:52:56 j_novak
* Lorene classes and functions now belong to the namespace Lorene.
*
* Revision 1.3 2007/04/24 20:14:45 f_limousin
* Implementation of Dirichlet and Neumann BC for the lapse
*
* Revision 1.2 2005/08/29 15:10:17 p_grandclement
* Addition of things needed :
* 1) For BBH with different masses
* 2) Provisory files for the mixted binaries (Bh and NS) : THIS IS NOT
* WORKING YET !!!
*
* Revision 1.1 2003/10/24 12:28:39 k_taniguchi
* Method of update metric for the BH companion
*
*
*
* $Header: /cvsroot/Lorene/C++/Source/Etoile/et_bin_nsbh_upmetr.C,v 1.4 2014/10/13 08:52:56 j_novak Exp $
*
*/
// Lorene headers
#include "et_bin_nsbh.h"
#include "bhole.h"
//----------------------------------//
// Version a BH companion //
//----------------------------------//
namespace Lorene {
void Et_bin_nsbh::update_metric(const Bhole& comp) {
// Computation of quantities coming from the companion
// ---------------------------------------------------
// Computes N_comp ---> stored in logn_comp
if ( (comp.get_n_auto()).get_etat() == ETATZERO ) {
n_comp.set_etat_zero() ;
}
else{
n_comp.set_etat_qcq() ;
(n_comp.set()).import( comp.get_n_auto()() ) ;
n_comp.set_std_base() ; // set the bases for spectral expansions
}
// Computes Psi_comp ---> stored in beta_comp
if ( (comp.get_psi_auto()).get_etat() == ETATZERO ) {
confpsi_comp.set_etat_zero() ;
}
else{
confpsi_comp.set_etat_qcq() ;
(confpsi_comp.set()).import( comp.get_psi_auto()() ) ;
confpsi_comp.set_std_base() ; // set the bases for spectral expansions
}
// Computes N^i_comp ---> stored in shift_comp
if ( (comp.get_shift_auto()).get_etat() == ETATZERO ) {
shift_comp.set_etat_zero() ;
}
else{
shift_comp.set_etat_qcq() ;
(shift_comp.set(0)).import( comp.get_shift_auto()(0) ) ; // N^x antisym
(shift_comp.set(1)).import( comp.get_shift_auto()(1) ) ; // N^y sym.
(shift_comp.set(2)).import( comp.get_shift_auto()(2) ) ; // N^z anisym
shift_comp.set_std_base() ; // set the bases for spectral expansions
}
// Lapse function N
// ----------------
nnn = n_auto + n_comp ;
// Conformal factor confpsi
// ------------------------
confpsi = confpsi_auto + confpsi_comp ;
confpsi.set_std_base() ; // set the bases for spectral expansions
// Conformal factor A^2
// ---------------------
a_car = pow(confpsi, 4.);
a_car.set_std_base() ; // set the bases for spectral expansions
// Shift vector N^i
// ----------------
shift = shift_auto + shift_comp ;
// Derivatives of metric coefficients
// ----------------------------------
// ... (d/dX,d/dY,d/dZ)(n_auto) :
d_n_auto = n_auto.gradient() ; // (d/dx, d/dy, d/dz)
d_n_auto.change_triad(ref_triad) ; // --> (d/dX, d/dY, d/dZ)
// ... (d/dX,d/dY,d/dZ)(confpsi_auto) :
d_confpsi_auto = confpsi_auto.gradient() ; // (d/dx, d/dy, d/dz)
d_confpsi_auto.change_triad(ref_triad) ; // --> (d/dX, d/dY, d/dZ)
// The derived quantities are obsolete
// -----------------------------------
del_deriv() ;
}
}
|