00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
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
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048 #include <math.h>
00049
00050
00051 #include "star_bhns.h"
00052
00053 void Star_bhns::extr_curv_bhns() {
00054
00055
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
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 }