/* * Methods of class Hole_bhns to compute Killing vectors * * (see file hole_bhns.h for documentation). * */ /* * Copyright (c) 2006-2007 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 hole_bhns_killing_C[] = "$Header: /cvsroot/Lorene/C++/Source/Hole_bhns/hole_bhns_killing.C,v 1.4 2014/10/13 08:53:00 j_novak Exp $" ; /* * $Id: hole_bhns_killing.C,v 1.4 2014/10/13 08:53:00 j_novak Exp $ * $Log: hole_bhns_killing.C,v $ * Revision 1.4 2014/10/13 08:53:00 j_novak * Lorene classes and functions now belong to the namespace Lorene. * * Revision 1.3 2014/10/06 15:13:10 j_novak * Modified #include directives to use c++ syntax. * * Revision 1.2 2008/07/02 21:01:11 k_taniguchi * A bug removed. * * Revision 1.1 2008/05/15 19:09:53 k_taniguchi * *** empty log message *** * * * $Header: /cvsroot/Lorene/C++/Source/Hole_bhns/hole_bhns_killing.C,v 1.4 2014/10/13 08:53:00 j_novak Exp $ * */ // C++ headers //#include <> // C headers #include // Lorene headers #include "hole_bhns.h" #include "unites.h" #include "utilitaires.h" //---------------------------------------------// // Killing vectors on the AH // //---------------------------------------------// namespace Lorene { Vector Hole_bhns::killing_vect(const Tbl& xi_i, const double& phi_i, const double& theta_i, const int& nrk_phi, const int& nrk_theta) const { using namespace Unites ; assert(xi_i.get_ndim() == 1) ; assert(xi_i.get_dim(0) == 3) ; const Mg3d* mg = mp.get_mg() ; int nr = mg->get_nr(1) ; int nt = mg->get_nt(1) ; int np = mg->get_np(1) ; // Vector which is returned to the main code // Spherical basis, covariant Vector killing(mp, COV, mp.get_bvect_spher()) ; if (kerrschild) { cout << "Not yet prepared!!!" << endl ; abort() ; } else { // Isotropic coordinates // Solution of the Killing vector on the equator // --------------------------------------------- double dp = 2. * M_PI / double(np) ; // Angular step // Killing vector on the equator // np+1 is for the check of xi(phi=0)= xi(phi=2pi) Tbl xi_t(np+1) ; xi_t.set_etat_qcq() ; Tbl xi_p(np+1) ; xi_p.set_etat_qcq() ; Tbl xi_l(np+1) ; xi_l.set_etat_qcq() ; xi_t.set(0) = xi_i(0) ; xi_p.set(0) = xi_i(1) ; xi_l.set(0) = xi_i(2) ; Tbl xi(3) ; xi.set_etat_qcq() ; Tbl xi_ini(3) ; xi_ini.set_etat_qcq() ; xi_ini.set(0) = xi_i(0) ; xi_ini.set(1) = xi_i(1) ; xi_ini.set(2) = xi_i(2) ; double pp_0 = phi_i ; // azimuthal angle phi for (int i=1; i