/* * Definition of class Bin_BH (binary black hole exportation) * */ /* * Copyright (c) 2001 Eric Gourgoulhon * * 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 * */ #ifndef __BIN_BH_H_ #define __BIN_BH_H_ /* * $Id: bin_bh.h,v 1.12 2014/10/13 08:54:05 j_novak Exp $ * $Log: bin_bh.h,v $ * Revision 1.12 2014/10/13 08:54:05 j_novak * Lorene classes and functions now belong to the namespace Lorene. * * Revision 1.11 2014/10/06 15:13:25 j_novak * Modified #include directives to use c++ syntax. * * Revision 1.10 2010/07/14 16:47:30 e_gourgoulhon * Corrected error in the documentation for K_xx, K_xy, etc...: * the components are the covariant ones, not the contravariant ones. * * Revision 1.9 2009/09/22 09:23:23 p_grandclement * forgot to commit * * Revision 1.8 2009/09/10 10:05:35 p_grandclement * slight change to read different mass BH * * Revision 1.7 2003/10/24 15:49:03 e_gourgoulhon * Updated documentation. * * Revision 1.6 2003/01/09 11:08:00 j_novak * headcpp.h is now compliant with C++ norm. * The include files have been ordered, as well as the local_settings_linux * * Revision 1.5 2002/03/20 08:27:45 e_gourgoulhon * Added the derivatives of Psi. * * Revision 1.4 2002/02/06 14:54:44 e_gourgoulhon * Update of bibliographical references * * Revision 1.3 2002/01/10 14:06:58 e_gourgoulhon * Modif commentaries. * * Revision 1.2 2001/12/19 10:14:31 e_gourgoulhon * Updated documentation * * Revision 1.1 2001/12/19 10:08:31 e_gourgoulhon * Exporting Lorene structures * * * * $Header: /cvsroot/Lorene/Export/C++/Include/bin_bh.h,v 1.12 2014/10/13 08:54:05 j_novak Exp $ * */ // Headers C #include #include #include using namespace std ; namespace Lorene { /** * Binary black hole configuration on a Cartesian grid. * * A binary black hole system is constructed on a Cartesian grid from * data stored in a file resulting from a computation by Grandclement, * Gourgoulhon and Bonazzola, Phys. Rev. D 65, 044021 (2002). * * All the quantities are in units derived from the length * scale defined by the coordinate radius $a$ of black hole 1 apparent horizon * (throat). * * Importation of Lorene data is performed by means of the constructor * {\tt Bin\_BH::Bin\_BH(int, const double*, const double*, const double*, const char*)}. * This constructor takes general arrays for the location of the Cartesian coordinates * $(x, y, z)$, i.e. it does not assume that the grid is a uniform one. Note also * that these arrays are 1-D, as well as all the metric fields, * in order to be use with any ordering of the 3-D storage. * * This class is very simple, with all data members being public. * A typical example of use is the following one * * \begin{verbatim} * // Define the Cartesian grid by means of the arrays xg, yg, zg: * for (int i=0; i