star_bhns_extr_curv.C

00001 /*
00002  *  Method of class Star_bhns to compute the extrinsic curvature tensor
00003  *
00004  *    (see file star_bhns.h for documentation).
00005  *
00006  */
00007 
00008 /*
00009  *   Copyright (c) 2005-2007 Keisuke Taniguchi
00010  *
00011  *   This file is part of LORENE.
00012  *
00013  *   LORENE is free software; you can redistribute it and/or modify
00014  *   it under the terms of the GNU General Public License version 2
00015  *   as published by the Free Software Foundation.
00016  *
00017  *   LORENE is distributed in the hope that it will be useful,
00018  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00019  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00020  *   GNU General Public License for more details.
00021  *
00022  *   You should have received a copy of the GNU General Public License
00023  *   along with LORENE; if not, write to the Free Software
00024  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00025  *
00026  */
00027 
00028 char star_bhns_extr_curv_C[] = "$Header: /cvsroot/Lorene/C++/Source/Star_bhns/star_bhns_extr_curv.C,v 1.2 2008/05/15 19:14:24 k_taniguchi Exp $" ;
00029 
00030 /*
00031  * $Id: star_bhns_extr_curv.C,v 1.2 2008/05/15 19:14:24 k_taniguchi Exp $
00032  * $Log: star_bhns_extr_curv.C,v $
00033  * Revision 1.2  2008/05/15 19:14:24  k_taniguchi
00034  * Change of some parameters.
00035  *
00036  * Revision 1.1  2007/06/22 01:31:05  k_taniguchi
00037  * *** empty log message ***
00038  *
00039  *
00040  * $Header: /cvsroot/Lorene/C++/Source/Star_bhns/star_bhns_extr_curv.C,v 1.2 2008/05/15 19:14:24 k_taniguchi Exp $
00041  *
00042  */
00043 
00044 // C++ headers
00045 //#include <>
00046 
00047 // C headers
00048 #include <math.h>
00049 
00050 // Lorene headers
00051 #include "star_bhns.h"
00052 
00053 void Star_bhns::extr_curv_bhns() {
00054 
00055     // Computation of \tilde{A}_{NS}^{ij}
00056     // ----------------------------------
00057 
00058     Scalar divshift(mp) ;
00059     divshift = d_shift_auto(1,1) + d_shift_auto(2,2)
00060       + d_shift_auto(3,3) ;
00061     divshift.std_spectral_base() ;
00062 
00063     Sym_tensor flat_taij(mp, CON, mp.get_bvect_cart()) ;
00064     flat_taij.set_etat_qcq() ;
00065 
00066     for (int i=1; i<=3; i++) {
00067         for (int j=1; j<=3; j++) {
00068         flat_taij.set(i,j) = d_shift_auto(i,j)
00069           + d_shift_auto(j,i)
00070           - 2. * divshift * flat.con()(i,j) / 3. ;
00071     }
00072     }
00073     flat_taij.std_spectral_base() ;
00074 
00075     taij_auto = 0.5 * pow(confo_auto+0.5, 7.) * flat_taij
00076       / (lapconf_auto+0.5) ;
00077     taij_auto.std_spectral_base() ;
00078 
00079 
00080     // Computation of \tilde{A}_{NS}^{ij} \tilde{A}^{NS}_{ij}
00081     // ------------------------------------------------------
00082 
00083     Sym_tensor flat_dshift(mp, COV, mp.get_bvect_cart()) ;
00084     flat_dshift.set_etat_qcq() ;
00085 
00086     for (int i=1; i<=3; i++) {
00087         for (int j=1; j<=3; j++) {
00088         flat_dshift.set(i,j) =
00089           flat.cov()(j,1) % d_shift_auto(i,1)
00090           + flat.cov()(j,2) % d_shift_auto(i,2)
00091           + flat.cov()(j,3) % d_shift_auto(i,3)
00092           + flat.cov()(i,1) % d_shift_auto(j,1)
00093           + flat.cov()(i,2) % d_shift_auto(j,2)
00094           + flat.cov()(i,3) % d_shift_auto(j,3)
00095           - 2. * divshift % flat.cov()(i,j) / 3. ;
00096     }
00097     }
00098     flat_dshift.std_spectral_base() ;
00099 
00100     Sym_tensor taij_down(mp, COV, mp.get_bvect_cart()) ;
00101     taij_down.set_etat_qcq() ;
00102 
00103     taij_down = 0.5 * pow(confo_auto+0.5, 7.) * flat_dshift
00104       / (lapconf_auto+0.5) ;
00105     taij_down.std_spectral_base() ;
00106 
00107     taij_quad_auto = 0. ;
00108 
00109     for (int i=1; i<=3; i++) {
00110         for (int j=1; j<=3; j++) {
00111         taij_quad_auto += taij_down(i,j) % taij_auto(i,j) ;
00112     }
00113     }
00114 
00115     taij_quad_auto.std_spectral_base() ;
00116 
00117 }

Generated on Tue Feb 7 01:35:19 2012 for LORENE by  doxygen 1.4.6