00001 /* 00002 * Copyright (c) 2000-2001 Philippe Grandclement 00003 * 00004 * This file is part of LORENE. 00005 * 00006 * LORENE is free software; you can redistribute it and/or modify 00007 * it under the terms of the GNU General Public License as published by 00008 * the Free Software Foundation; either version 2 of the License, or 00009 * (at your option) any later version. 00010 * 00011 * LORENE is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License 00017 * along with LORENE; if not, write to the Free Software 00018 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00019 * 00020 */ 00021 00022 00023 char bhole_pseudo_viriel_C[] = "$Header: /cvsroot/Lorene/C++/Source/Bhole_binaire/bhole_pseudo_viriel.C,v 1.3 2005/08/29 15:10:14 p_grandclement Exp $" ; 00024 00025 /* 00026 * $Id: bhole_pseudo_viriel.C,v 1.3 2005/08/29 15:10:14 p_grandclement Exp $ 00027 * $Log: bhole_pseudo_viriel.C,v $ 00028 * Revision 1.3 2005/08/29 15:10:14 p_grandclement 00029 * Addition of things needed : 00030 * 1) For BBH with different masses 00031 * 2) Provisory files for the mixted binaries (Bh and NS) : THIS IS NOT 00032 * WORKING YET !!! 00033 * 00034 * Revision 1.2 2003/10/03 15:58:44 j_novak 00035 * Cleaning of some headers 00036 * 00037 * Revision 1.1.1.1 2001/11/20 15:19:28 e_gourgoulhon 00038 * LORENE 00039 * 00040 * Revision 2.6 2000/12/15 13:52:38 phil 00041 * modification critere sans les derivees 00042 * 00043 * Revision 2.5 2000/12/14 14:09:11 phil 00044 * simplification 00045 * 00046 * Revision 2.4 2000/12/14 10:45:30 phil 00047 * ATTENTION : PASSAGE DE PHI A PSI 00048 * 00049 * Revision 2.3 2000/11/15 18:27:08 phil 00050 * retour ancienne version (avec signe) 00051 * 00052 * Revision 2.2 2000/11/15 15:13:44 phil 00053 * *** empty log message *** 00054 * 00055 * Revision 2.1 2000/11/15 09:45:04 phil 00056 * *** empty log message *** 00057 * 00058 * Revision 2.0 2000/11/15 09:43:49 phil 00059 * *** empty log message *** 00060 * 00061 * 00062 * $Header: /cvsroot/Lorene/C++/Source/Bhole_binaire/bhole_pseudo_viriel.C,v 1.3 2005/08/29 15:10:14 p_grandclement Exp $ 00063 * 00064 */ 00065 00066 #include<math.h> 00067 00068 // Lorene 00069 #include "tenseur.h" 00070 #include "bhole.h" 00071 00072 double Bhole::viriel_seul () const{ 00073 00074 int nz = mp.get_mg()->get_nzone() ; 00075 00076 Valeur** devel_psi (psi_auto().asymptot(1)) ; 00077 Valeur** devel_n (n_auto().asymptot(1)) ; 00078 00079 double erreur = (2*(*devel_psi[1])(nz-1, 0, 0, 0) 00080 + (*devel_n[1])(nz-1, 0, 0, 0))/fabs ((*devel_n[1])(nz-1, 0, 0, 0)) ; 00081 00082 return erreur ; 00083 } 00084 00085 00086 double Bhole_binaire::viriel () const{ 00087 00088 int nz_un = hole1.mp.get_mg()->get_nzone() ; 00089 int nz_deux = hole2.mp.get_mg()->get_nzone() ; 00090 00091 Valeur** devel_psi_un (hole1.psi_auto().asymptot(1)) ; 00092 Valeur** devel_psi_deux (hole2.psi_auto().asymptot(1)) ; 00093 Valeur** devel_n_un (hole1.n_auto().asymptot(1)) ; 00094 Valeur** devel_n_deux (hole2.n_auto().asymptot(1)) ; 00095 00096 double res = 00097 (2*(*devel_psi_un[1])(nz_un-1, 0, 0, 0)+ 00098 2*(*devel_psi_deux[1])(nz_deux-1, 0, 0, 0)+ 00099 (*devel_n_deux[1])(nz_deux-1, 0, 0, 0) + 00100 (*devel_n_un[1])(nz_un-1, 0, 0, 0)) 00101 / fabs ((*devel_n_deux[1])(nz_deux-1, 0, 0, 0) + 00102 (*devel_n_un[1])(nz_un-1, 0, 0, 0)) ; 00103 00104 return res ; 00105 } 00106
1.4.6