| 1 |
/* |
| 2 |
* Method of class Star_bin_xcts to compute |
| 3 |
* the extrinsic curvature tensor |
| 4 |
* (see file star.h for documentation) |
| 5 |
*/ |
| 6 |
|
| 7 |
/* |
| 8 |
* Copyright (c) 2010 Michal Bejger |
| 9 |
* |
| 10 |
* This file is part of LORENE. |
| 11 |
* |
| 12 |
* LORENE is free software; you can redistribute it and/or modify |
| 13 |
* it under the terms of the GNU General Public License version 2 |
| 14 |
* as published by the Free Software Foundation. |
| 15 |
* |
| 16 |
* LORENE is distributed in the hope that it will be useful, |
| 17 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 18 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 19 |
* GNU General Public License for more details. |
| 20 |
* |
| 21 |
* You should have received a copy of the GNU General Public License |
| 22 |
* along with LORENE; if not, write to the Free Software |
| 23 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 24 |
* |
| 25 |
*/ |
| 26 |
|
| 27 |
char star_bin_extr_curv_xcts_C[] = "$Header: /cvsroot/Lorene/C++/Source/Star/star_bin_extr_curv_xcts.C,v 1.4 2014/10/13 08:53:38 j_novak Exp $" ; |
| 28 |
|
| 29 |
/* |
| 30 |
* $Id: star_bin_extr_curv_xcts.C,v 1.4 2014/10/13 08:53:38 j_novak Exp $ |
| 31 |
* $Log: star_bin_extr_curv_xcts.C,v $ |
| 32 |
* Revision 1.4 2014/10/13 08:53:38 j_novak |
| 33 |
* Lorene classes and functions now belong to the namespace Lorene. |
| 34 |
* |
| 35 |
* Revision 1.3 2014/10/06 15:13:17 j_novak |
| 36 |
* Modified #include directives to use c++ syntax. |
| 37 |
* |
| 38 |
* Revision 1.2 2010/06/15 08:10:29 m_bejger |
| 39 |
* *** empty log message *** |
| 40 |
* |
| 41 |
* Revision 1.1 2010/05/04 07:51:05 m_bejger |
| 42 |
* Initial version |
| 43 |
* |
| 44 |
* $Header: /cvsroot/Lorene/C++/Source/Star/star_bin_extr_curv_xcts.C,v 1.4 2014/10/13 08:53:38 j_novak Exp $ |
| 45 |
* |
| 46 |
*/ |
| 47 |
|
| 48 |
// C headers |
| 49 |
#include <cmath> |
| 50 |
|
| 51 |
// Headers Lorene |
| 52 |
#include "star.h" |
| 53 |
|
| 54 |
namespace Lorene { |
| 55 |
void Star_bin_xcts::extrinsic_curvature() { |
| 56 |
|
| 57 |
// D~_j beta^i |
| 58 |
const Tensor& dbeta = beta_auto.derive_con(flat) ; |
| 59 |
|
| 60 |
// Trace of D~_j beta^i : |
| 61 |
Scalar div_beta = beta_auto.divergence(flat) ; |
| 62 |
|
| 63 |
// Computation of \hat{A}^{ij}, Eq. 8.130 of arXiv:gr-qc/0703035 |
| 64 |
// ------------------------------------------------------------- |
| 65 |
|
| 66 |
for (int i=1; i<=3; i++) |
| 67 |
for (int j=1; j<=i; j++) { |
| 68 |
|
| 69 |
haij_auto.set(i, j) = dbeta(i, j) + dbeta(j, i) - |
| 70 |
double(2) /double(3) * div_beta * (flat.con())(i,j) ; |
| 71 |
} |
| 72 |
|
| 73 |
haij_auto = 0.5 * pow(Psi, 7.) * haij_auto / chi ; |
| 74 |
//## for comparison: old formulation |
| 75 |
//haij_auto = 0.5 * haij_auto / nn ; |
| 76 |
|
| 77 |
haij_auto.std_spectral_base() ; |
| 78 |
|
| 79 |
// Computation of (\hat{A}_{ij}\hat{A}^{ij})_{auto} |
| 80 |
// ------------------------------------------------ |
| 81 |
|
| 82 |
Sym_tensor haij_auto_cov = haij_auto.up_down(flat) ; |
| 83 |
|
| 84 |
hacar_auto = contract(haij_auto_cov, 0, 1, haij_auto, 0, 1, true) ; |
| 85 |
|
| 86 |
// The derived quantities are obsolete |
| 87 |
// ----------------------------------- |
| 88 |
|
| 89 |
del_deriv() ; |
| 90 |
|
| 91 |
} |
| 92 |
} |