et_bin_extr_curv.C
/*
* Method of class Etoile_bin to compute the extrinsic curvature tensor
*
*/
/*
* Copyright (c) 2000-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 as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* 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
*
*/
char et_bin_extr_curv_C[] = "$Header: /cvsroot/Lorene/C++/Source/Etoile/et_bin_extr_curv.C,v 1.6 2014/10/13 08:52:55 j_novak Exp $" ;
/*
* $Id: et_bin_extr_curv.C,v 1.6 2014/10/13 08:52:55 j_novak Exp $
* $Log: et_bin_extr_curv.C,v $
* Revision 1.6 2014/10/13 08:52:55 j_novak
* Lorene classes and functions now belong to the namespace Lorene.
*
* Revision 1.5 2005/08/29 15:21:37 p_grandclement
* Suppression of Etoile_bion::fait_taij_auto, that was not used (I think)
*
* Revision 1.4 2003/02/13 16:40:25 p_grandclement
* Addition of various things for the Bin_ns_bh project, non of them being
* completely tested
*
* Revision 1.3 2003/01/17 13:33:35 f_limousin
* Add comments
*
* Revision 1.2 2002/12/10 14:20:43 k_taniguchi
* Change the multiplication "*" to "%".
*
* Revision 1.1.1.1 2001/11/20 15:19:28 e_gourgoulhon
* LORENE
*
* Revision 2.0 2000/03/07 14:51:49 eric
* *** empty log message ***
*
*
* $Header: /cvsroot/Lorene/C++/Source/Etoile/et_bin_extr_curv.C,v 1.6 2014/10/13 08:52:55 j_novak Exp $
*
*/
// Headers Lorene
#include "etoile.h"
namespace Lorene {
void Etoile_bin::extrinsic_curvature(){
// Components of shift_auto with respect to the Cartesian triad
// (d/dx, d/dy, d/dz) of the mapping :
Tenseur shift_auto_local = shift_auto ;
shift_auto_local.change_triad( mp.get_bvect_cart() ) ;
// Gradient (partial derivatives with respect to the Cartesian coordinates
// of the mapping)
// D_j N^i
Tenseur dn = shift_auto_local.gradient() ;
// Return to the absolute reference frame
dn.change_triad(ref_triad) ;
// Trace of D_j N^i = divergence of N^i :
Tenseur divn = contract(dn, 0, 1) ;
// Computation of A^2 K^{ij}
// See Eq (49) from Gourgoulhon et al. (2001)
// -----------------------------------------
tkij_auto.set_etat_qcq() ;
for (int i=0; i<3; i++) {
for (int j=i; j<3; j++) {
tkij_auto.set(i, j) = dn(i, j) + dn(j, i) ;
}
tkij_auto.set(i, i) -= double(2) /double(3) * divn() ;
}
tkij_auto = - 0.5 * tkij_auto / nnn ;
tkij_auto.set_std_base() ;
// Computation of A^2 K_{ij} K^{ij}
// --------------------------------
akcar_auto.set_etat_qcq() ;
akcar_auto.set() = 0 ;
akcar_auto.set_std_base() ;
for (int i=0; i<3; i++) {
for (int j=0; j<3; j++) {
akcar_auto.set() += tkij_auto(i, j) % tkij_auto(i, j) ;
}
}
akcar_auto.set_std_base() ;
akcar_auto = a_car % akcar_auto ;
}
}
Lorene::Etoile_bin::ref_triad
const Base_vect & ref_triad
Reference triad ("absolute frame"), with respect to which the components of all the member Tenseur 's...
Definition etoile.h:828
Lorene::Etoile_bin::shift_auto
Tenseur shift_auto
Part of the shift vector generated principaly by the star.
Definition etoile.h:889
Lorene::Etoile_bin::tkij_auto
Tenseur_sym tkij_auto
Part of the extrinsic curvature tensor generated by shift_auto .
Definition etoile.h:925
Lorene::Etoile_bin::akcar_auto
Tenseur akcar_auto
Part of the scalar generated by shift_auto , i.e.
Definition etoile.h:938
Lorene::Etoile_bin::extrinsic_curvature
virtual void extrinsic_curvature()
Computes tkij_auto and akcar_auto from shift_auto , nnn and a_car .
Definition et_bin_extr_curv.C:64
Lorene::Etoile::nnn
Tenseur nnn
Total lapse function.
Definition etoile.h:509
Lorene::Etoile::mp
Map & mp
Mapping associated with the star.
Definition etoile.h:429
Lorene::Etoile::a_car
Tenseur a_car
Total conformal factor .
Definition etoile.h:515
Lorene::Tenseur
Tensor handling *** DEPRECATED : use class Tensor instead ***.
Definition tenseur.h:301
Lorene::Tenseur::gradient
const Tenseur & gradient() const
Returns the gradient of *this (Cartesian coordinates).
Definition tenseur.C:1542
Lorene::Tenseur::change_triad
void change_triad(const Base_vect &new_triad)
Sets a new vectorial basis (triad) of decomposition and modifies the components accordingly.
Definition tenseur.C:668
Lorene::contract
Tenseur contract(const Tenseur &, int id1, int id2)
Self contraction of two indices of a Tenseur .
Definition tenseur_operateur.C:279
Lorene
Lorene prototypes.
Definition app_hor.h:64