HARM
harm and utilities
 All Data Structures Files Functions Variables Typedefs Macros Pages
Macros | Functions
metric.tools.c File Reference

Functions that don't depend upon global behavior of code that are used to compute things related to the metric or coordinates. More...

#include "decs.h"
Include dependency graph for metric.tools.c:

Go to the source code of this file.

Macros

#define MAXITER   15
 
#define NRANSI
 
#define CON   1.3
 
#define CON2   (CON*CON)
 
#define NTAB   10
 
#define SAFE   2.0
 
#define TRYTOL   1E-10
 
#define OKTOL   1e-5
 
#define FAILTOL   1e-3
 
#define DEBUGDF   0
 
#define DEBUGOUTPUTAMATRIX   0
 
#define USEJONEXTENSION   1
 
#define OPTMETRICLOOP   1
 
#define COMPUTEPERTURBEDMETRIC   0
 
#define GCOV_DOT_TRANS_DOT_TRANS(a, b)
 
#define DELTAFORTIMEh(DELTA)   (Xmetricnew[TT]!=Xmetricold[TT] ? (0.0) : 2.0*DELTA)
 
#define DELTAFORTIMEl(DELTA)   (Xmetricnew[TT]!=Xmetricold[TT] ? (-(Xmetricnew[TT]-Xmetricold[TT])) : DELTA)
 
#define MYDELTAh(DELTA, k)   ( k==TT ? DELTAFORTIMEh(DELTA) : +DELTA*0.5 )
 
#define MYDELTAl(DELTA, k)   ( k==TT ? DELTAFORTIMEl(DELTA) : -DELTA*0.5 )
 

Functions

FTYPE sec (FTYPE arg)
 
int find_RinRout (FTYPE *localRin, FTYPE *localRout)
 
int gdet_func_metric (int whichcoord, FTYPE *V, FTYPE *gcov, FTYPE *gdet)
 
int gdet_func_orig (int whichcoord, FTYPE(*generalmatrixlower)[NDIM], FTYPE *gdet)
 
void matrix_inverse (int whichcoord, FTYPE(*genmatrixlower)[NDIM], FTYPE(*genmatrixupper)[NDIM])
 
FTYPE uphi_isco_calc (int which, FTYPE rold)
 
void get_and_copy_geometry (int i, int j, int k, int loc, struct of_geom *ptrgeom)
 
void alphalapse_func (struct of_geom *ptrgeom, int getprim, int whichcoord, FTYPE *X, FTYPE *gcov, FTYPE *gcon, FTYPE *alphalapse)
 
void betasqoalphasq_func (struct of_geom *ptrgeom, int getprim, int whichcoord, FTYPE *X, FTYPE *gcov, FTYPE *gcon, FTYPE *betasqoalphasq)
 
void beta_func (struct of_geom *ptrgeom, int getprim, int whichcoord, FTYPE *X, FTYPE *gcov, FTYPE *gcon, FTYPE alphalapse, FTYPE *beta)
 
void gcov2gcovprim (struct of_geom *ptrgeom, FTYPE *X, FTYPE *V, FTYPE *gcov, FTYPE *gcovpert, FTYPE *gcovprim, FTYPE *gcovpertprim)
 
void get_gcovpert (FTYPE *gcovprim, FTYPE *gcovpert, FTYPE *gcovpertprim)
 
void transgcovself (FTYPE *gcov, FTYPE(*trans)[NDIM])
 
void transgcovgcovpertself (FTYPE *gcov, FTYPE *gcovpert, FTYPE(*trans)[NDIM])
 
void transgcov (FTYPE *gcov, FTYPE(*trans)[NDIM], FTYPE *gcovprim)
 
void gcon2gconprim (struct of_geom *ptrgeom, FTYPE *X, FTYPE *V, FTYPE *gcon, FTYPE *gconprim)
 
void conn_func_numerical1 (FTYPE DELTA, FTYPE *X, struct of_geom *geom, FTYPE(*conn)[NDIM][NDIM], FTYPE *conn2)
 
FTYPE gcov_func_mcoord (struct of_geom *ptrgeom, FTYPE *X, int i, int j)
 
FTYPE gdet_func_mcoord (struct of_geom *ptrgeom, FTYPE *X, int i, int j)
 
FTYPE gdet_func_mcoord_usegcov (FTYPE *gcovmcoord, struct of_geom *ptrgeom, FTYPE *X, int i, int j)
 
int metric_checks (struct of_geom *ptrgeom)
 

Detailed Description

Functions that don't depend upon global behavior of code that are used to compute things related to the metric or coordinates.

Definition in file metric.tools.c.

Macro Definition Documentation

#define COMPUTEPERTURBEDMETRIC   0

Definition at line 1578 of file metric.tools.c.

#define CON   1.3

Definition at line 29 of file metric.tools.c.

#define CON2   (CON*CON)

Definition at line 30 of file metric.tools.c.

#define DEBUGDF   0

Definition at line 40 of file metric.tools.c.

#define DEBUGOUTPUTAMATRIX   0

Definition at line 43 of file metric.tools.c.

#define DELTAFORTIMEh (   DELTA)    (Xmetricnew[TT]!=Xmetricold[TT] ? (0.0) : 2.0*DELTA)

Definition at line 2017 of file metric.tools.c.

#define DELTAFORTIMEl (   DELTA)    (Xmetricnew[TT]!=Xmetricold[TT] ? (-(Xmetricnew[TT]-Xmetricold[TT])) : DELTA)

Definition at line 2018 of file metric.tools.c.

#define FAILTOL   1e-3

Definition at line 36 of file metric.tools.c.

#define GCOV_DOT_TRANS_DOT_TRANS (   a,
 
)
Value:
gcov[GIND(0,0)] * trans[0][a]* trans[0][b] \
+ gcov[GIND(1,1)] * trans[1][a]* trans[1][b] \
+ gcov[GIND(2,2)] * trans[2][a]* trans[2][b] \
+ gcov[GIND(3,3)] * trans[3][a]* trans[3][b] \
+ gcov[GIND(0,1)] * (trans[0][a]* trans[1][b] + trans[1][a]* trans[0][b]) \
+ gcov[GIND(0,2)] * (trans[0][a]* trans[2][b] + trans[2][a]* trans[0][b]) \
+ gcov[GIND(0,3)] * (trans[0][a]* trans[3][b] + trans[3][a]* trans[0][b]) \
+ gcov[GIND(1,2)] * (trans[1][a]* trans[2][b] + trans[2][a]* trans[1][b]) \
+ gcov[GIND(1,3)] * (trans[1][a]* trans[3][b] + trans[3][a]* trans[1][b]) \
+ gcov[GIND(2,3)] * (trans[2][a]* trans[3][b] + trans[3][a]* trans[2][b])
#define MAXITER   15

Definition at line 27 of file metric.tools.c.

#define MYDELTAh (   DELTA,
 
)    ( k==TT ? DELTAFORTIMEh(DELTA) : +DELTA*0.5 )

Definition at line 2020 of file metric.tools.c.

#define MYDELTAl (   DELTA,
 
)    ( k==TT ? DELTAFORTIMEl(DELTA) : -DELTA*0.5 )

Definition at line 2021 of file metric.tools.c.

#define NRANSI

Definition at line 28 of file metric.tools.c.

#define NTAB   10

Definition at line 31 of file metric.tools.c.

#define OKTOL   1e-5

Definition at line 35 of file metric.tools.c.

#define OPTMETRICLOOP   1

Definition at line 1577 of file metric.tools.c.

#define SAFE   2.0

Definition at line 33 of file metric.tools.c.

#define TRYTOL   1E-10

Definition at line 34 of file metric.tools.c.

#define USEJONEXTENSION   1

Definition at line 46 of file metric.tools.c.

Function Documentation

void alphalapse_func ( struct of_geom ptrgeom,
int  getprim,
int  whichcoord,
FTYPE X,
FTYPE gcov,
FTYPE gcon,
FTYPE alphalapse 
)

Definition at line 1418 of file metric.tools.c.

Here is the caller graph for this function:

void beta_func ( struct of_geom ptrgeom,
int  getprim,
int  whichcoord,
FTYPE X,
FTYPE gcov,
FTYPE gcon,
FTYPE  alphalapse,
FTYPE beta 
)

Definition at line 1439 of file metric.tools.c.

Here is the caller graph for this function:

void betasqoalphasq_func ( struct of_geom ptrgeom,
int  getprim,
int  whichcoord,
FTYPE X,
FTYPE gcov,
FTYPE gcon,
FTYPE betasqoalphasq 
)

Definition at line 1428 of file metric.tools.c.

Here is the caller graph for this function:

void conn_func_numerical1 ( FTYPE  DELTA,
FTYPE X,
struct of_geom geom,
FTYPE(*)  conn[NDIM][NDIM],
FTYPE conn2 
)

Definition at line 2026 of file metric.tools.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int find_RinRout ( FTYPE localRin,
FTYPE localRout 
)

Definition at line 682 of file metric.tools.c.

Here is the call graph for this function:

void gcon2gconprim ( struct of_geom ptrgeom,
FTYPE X,
FTYPE V,
FTYPE gcon,
FTYPE gconprim 
)

Definition at line 1811 of file metric.tools.c.

Here is the caller graph for this function:

void gcov2gcovprim ( struct of_geom ptrgeom,
FTYPE X,
FTYPE V,
FTYPE gcov,
FTYPE gcovpert,
FTYPE gcovprim,
FTYPE gcovpertprim 
)

Definition at line 1580 of file metric.tools.c.

Here is the call graph for this function:

Here is the caller graph for this function:

FTYPE gcov_func_mcoord ( struct of_geom ptrgeom,
FTYPE X,
int  i,
int  j 
)

Definition at line 2517 of file metric.tools.c.

Here is the call graph for this function:

Here is the caller graph for this function:

FTYPE gdet_func_mcoord ( struct of_geom ptrgeom,
FTYPE X,
int  i,
int  j 
)

Definition at line 2557 of file metric.tools.c.

Here is the call graph for this function:

FTYPE gdet_func_mcoord_usegcov ( FTYPE gcovmcoord,
struct of_geom ptrgeom,
FTYPE X,
int  i,
int  j 
)

Definition at line 2577 of file metric.tools.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int gdet_func_metric ( int  whichcoord,
FTYPE V,
FTYPE gcov,
FTYPE gdet 
)

Definition at line 801 of file metric.tools.c.

Here is the caller graph for this function:

int gdet_func_orig ( int  whichcoord,
FTYPE(*)  generalmatrixlower[NDIM],
FTYPE gdet 
)

Definition at line 849 of file metric.tools.c.

void get_and_copy_geometry ( int  i,
int  j,
int  k,
int  loc,
struct of_geom ptrgeom 
)

Definition at line 1342 of file metric.tools.c.

void get_gcovpert ( FTYPE gcovprim,
FTYPE gcovpert,
FTYPE gcovpertprim 
)

Definition at line 1631 of file metric.tools.c.

Here is the caller graph for this function:

void matrix_inverse ( int  whichcoord,
FTYPE(*)  genmatrixlower[NDIM],
FTYPE(*)  genmatrixupper[NDIM] 
)

Definition at line 1009 of file metric.tools.c.

Here is the caller graph for this function:

int metric_checks ( struct of_geom ptrgeom)

Definition at line 2616 of file metric.tools.c.

Here is the caller graph for this function:

FTYPE sec ( FTYPE  arg)

Definition at line 508 of file metric.tools.c.

void transgcov ( FTYPE gcov,
FTYPE(*)  trans[NDIM],
FTYPE gcovprim 
)

Definition at line 1748 of file metric.tools.c.

Here is the caller graph for this function:

void transgcovgcovpertself ( FTYPE gcov,
FTYPE gcovpert,
FTYPE(*)  trans[NDIM] 
)

Definition at line 1728 of file metric.tools.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void transgcovself ( FTYPE gcov,
FTYPE(*)  trans[NDIM] 
)

Definition at line 1716 of file metric.tools.c.

Here is the call graph for this function:

FTYPE uphi_isco_calc ( int  which,
FTYPE  rold 
)

Definition at line 1292 of file metric.tools.c.