/* * Definition of class Bin_NS (binary neutron star exportation) * */ /* * Copyright (c) 2002 Eric Gourgoulhon * Copyright (c) 2002 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 * */ #ifndef __BIN_NS_H_ #define __BIN_NS_H_ /* * $Id: bin_ns.h,v 1.7 2014/10/13 08:54:05 j_novak Exp $ * $Log: bin_ns.h,v $ * Revision 1.7 2014/10/13 08:54:05 j_novak * Lorene classes and functions now belong to the namespace Lorene. * * Revision 1.6 2014/10/06 15:13:25 j_novak * Modified #include directives to use c++ syntax. * * Revision 1.5 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.4 2004/10/20 15:01:37 e_gourgoulhon * Corrected error in the comments on the shift vector: * corotating coordinates -> non rotating coordinates. * * Revision 1.3 2003/10/24 15:49:03 e_gourgoulhon * Updated documentation. * * Revision 1.2 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.1 2002/01/11 17:03:02 e_gourgoulhon * Exportation of binary neutron stars configuration to a Cartesian grid * * * $Header: /cvsroot/Lorene/Export/C++/Include/bin_ns.h,v 1.7 2014/10/13 08:54:05 j_novak Exp $ * */ // Headers C #include #include #include using namespace std ; namespace Lorene { /** * Binary neutron star 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 Taniguchi * and Gourgoulhon. * * Importation of Lorene data is performed by means of the constructor * {\tt Bin\_NS::Bin\_NS(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