HARM
harm and utilities
 All Data Structures Files Functions Variables Typedefs Macros Pages
Functions
transforms.funcdeclare.h File Reference

function declrations for global use of functions in transforms.c More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int bl2met2metp2v (int whichvel, int whichcoord, FTYPE *pr, int ii, int jj, int kk)
 assumes all centered quantities (so for FLUXB==FLUXCTSTAG assumes operates on centered field versions) More...
 
int bl2met2metp2v_genloc (int whichvel, int whichcoord, FTYPE *pr, int ii, int jj, int kk, int loc)
 converts whichvel/whichcoord velocity to WHICHVEL/(->MCOORD->PRIMECOORDS) converts field too More...
 
int bl2met2metp2v_genloc_fieldonly (int whichvel, int whichcoord, FTYPE *pr, int ii, int jj, int kk, int loc)
 converts field only and otherwise like normal function More...
 
int bl2met2metp2v_gen (int whichvel, int whichcoord, int newwhichvel, int newwhichcoord, FTYPE *pr, int ii, int jj, int kk)
 converts whichvel/whichcoord velocity to WHICHVEL/MCOORD More...
 
int ucov_whichcoord2primecoords (int whichcoord, int ii, int jj, int kk, int loc, FTYPE *ucov)
 converts u_ in whichcoord to PRIMECOORDS More...
 
int metp2met2bl (int whichvel, int whichcoord, FTYPE *pr, int ii, int jj, int kk)
 transform MCOORD prime primitive velocity to whichcoord whichvel velocity (also converts field) More...
 
int metp2met2bl_genloc (int whichvel, int whichcoord, FTYPE *pr, int ii, int jj, int kk, int loc)
 transform MCOORD prime primitive velocity to whichcoord whichvel velocity (also converts field) More...
 
int coordtrans (int whichcoordin, int whichcoordout, int ii, int jj, int kk, int loc, FTYPE *ucon)
 whichcoordin -> whichcoordout More...
 
void transVtoVmetric (int whichcoord, int ii, int jj, int kk, int loc, FTYPE ROTANGLE, FTYPE *X, FTYPE *V, FTYPE *Xmetric, FTYPE *Vmetric, FTYPE *gcov, FTYPE *gcovpert)
 
void transVmetrictoV (int whichcoord, int ii, int jj, int kk, int loc, FTYPE ROTANGLE, FTYPE *X, FTYPE *V, FTYPE *Xmetric, FTYPE *Vmetric, FTYPE *gcov, FTYPE *gcovpert)
 transformation of metric written in Vmetric-type coordinates with dVmetric differentials to one written in V[X] coordinates with dVdifferentials More...
 
void transVmetrictoV_trans (FTYPE ROTANGLE, FTYPE *Vmetric, FTYPE(*trans)[NDIM])
 transformation of metric written in Vmetric-type coordinates with dVmetric differentials to one written in V[X] coordinates with dVdifferentials More...
 
void transVmetrictoV_ucov (FTYPE ROTANGLE, FTYPE *Vmetric, FTYPE *ucov)
 Transform u_ from Vmetric form (where z-axis is BH spin axis) to V form [tilted BH spin axis]. More...
 
void bltoks_trans (int ii, int jj, int kk, int loc, FTYPE(*bl2ks)[NDIM])
 
void kstobl_trans (int ii, int jj, int kk, int loc, FTYPE(*ks2bl)[NDIM])
 
void bltoks (int ii, int jj, int kk, int loc, FTYPE *ucon)
 
void kstobl (int ii, int jj, int kk, int loc, FTYPE *ucon)
 
void bltoks_ucov (int ii, int jj, int kk, int loc, FTYPE *ucov)
 
void mettometp (int ii, int jj, int kk, FTYPE *ucon)
 
void metptomet (int ii, int jj, int kk, FTYPE *ucon)
 
void mettometp_genloc (int ii, int jj, int kk, int loc, FTYPE *ucon)
 MCOORD -> prime MCOORD. More...
 
void metptomet_genloc (int ii, int jj, int kk, int loc, FTYPE *ucon)
 prime MCOORD -> MCOORD for u^ More...
 
void metptomet_Tud (int ii, int jj, int kk, FTYPE(*Tud)[NDIM])
 prime MCOORD -> MCOORD for T^ More...
 
void metptomet_simple_Tud (FTYPE(*dxdxp)[NDIM], FTYPE(*idxdxp)[NDIM], FTYPE(*Tud)[NDIM])
 prime MCOORD -> MCOORD feed in coordinate dependent quantities instead of computing them useful when wanting to speep up calculation when calling function needs dxdxp and/or idxdxp More...
 
int vcon2pr (int whichvel, FTYPE *vcon, struct of_geom *geom, FTYPE *pr)
 convert 3-velocity to whichvel velocity More...
 

Detailed Description

function declrations for global use of functions in transforms.c

Definition in file transforms.funcdeclare.h.

Function Documentation

int bl2met2metp2v ( int  whichvel,
int  whichcoord,
FTYPE pr,
int  ii,
int  jj,
int  kk 
)

assumes all centered quantities (so for FLUXB==FLUXCTSTAG assumes operates on centered field versions)

Definition at line 17 of file transforms.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int bl2met2metp2v_gen ( int  whichvel,
int  whichcoord,
int  newwhichvel,
int  newwhichcoord,
FTYPE pr,
int  ii,
int  jj,
int  kk 
)

converts whichvel/whichcoord velocity to WHICHVEL/MCOORD

Definition at line 189 of file transforms.c.

Here is the call graph for this function:

int bl2met2metp2v_genloc ( int  whichvel,
int  whichcoord,
FTYPE pr,
int  ii,
int  jj,
int  kk,
int  loc 
)

converts whichvel/whichcoord velocity to WHICHVEL/(->MCOORD->PRIMECOORDS) converts field too

Definition at line 30 of file transforms.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int bl2met2metp2v_genloc_fieldonly ( int  whichvel,
int  whichcoord,
FTYPE pr,
int  ii,
int  jj,
int  kk,
int  loc 
)

converts field only and otherwise like normal function

Definition at line 102 of file transforms.c.

Here is the call graph for this function:

void bltoks ( int  ii,
int  jj,
int  kk,
int  loc,
FTYPE ucon 
)

Definition at line 427 of file transforms.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void bltoks_trans ( int  ii,
int  jj,
int  kk,
int  loc,
FTYPE(*)  bl2ks[NDIM] 
)

Definition at line 368 of file transforms.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void bltoks_ucov ( int  ii,
int  jj,
int  kk,
int  loc,
FTYPE ucov 
)

Definition at line 448 of file transforms.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int coordtrans ( int  whichcoordin,
int  whichcoordout,
int  ii,
int  jj,
int  kk,
int  loc,
FTYPE ucon 
)

whichcoordin -> whichcoordout

Definition at line 346 of file transforms.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void kstobl ( int  ii,
int  jj,
int  kk,
int  loc,
FTYPE ucon 
)

Definition at line 529 of file transforms.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void kstobl_trans ( int  ii,
int  jj,
int  kk,
int  loc,
FTYPE(*)  ks2bl[NDIM] 
)

Definition at line 470 of file transforms.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int metp2met2bl ( int  whichvel,
int  whichcoord,
FTYPE pr,
int  ii,
int  jj,
int  kk 
)

transform MCOORD prime primitive velocity to whichcoord whichvel velocity (also converts field)

Definition at line 258 of file transforms.c.

Here is the call graph for this function:

int metp2met2bl_genloc ( int  whichvel,
int  whichcoord,
FTYPE pr,
int  ii,
int  jj,
int  kk,
int  loc 
)

transform MCOORD prime primitive velocity to whichcoord whichvel velocity (also converts field)

Definition at line 269 of file transforms.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void metptomet ( int  ii,
int  jj,
int  kk,
FTYPE ucon 
)

Definition at line 833 of file transforms.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void metptomet_genloc ( int  ii,
int  jj,
int  kk,
int  loc,
FTYPE ucon 
)

prime MCOORD -> MCOORD for u^

Definition at line 843 of file transforms.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void metptomet_simple_Tud ( FTYPE(*)  dxdxp[NDIM],
FTYPE(*)  idxdxp[NDIM],
FTYPE(*)  Tud[NDIM] 
)

prime MCOORD -> MCOORD feed in coordinate dependent quantities instead of computing them useful when wanting to speep up calculation when calling function needs dxdxp and/or idxdxp

Definition at line 914 of file transforms.c.

Here is the caller graph for this function:

void metptomet_Tud ( int  ii,
int  jj,
int  kk,
FTYPE(*)  Tud[NDIM] 
)

prime MCOORD -> MCOORD for T^

Definition at line 890 of file transforms.c.

Here is the call graph for this function:

void mettometp ( int  ii,
int  jj,
int  kk,
FTYPE ucon 
)

Definition at line 762 of file transforms.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void mettometp_genloc ( int  ii,
int  jj,
int  kk,
int  loc,
FTYPE ucon 
)

MCOORD -> prime MCOORD.

Definition at line 772 of file transforms.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void transVmetrictoV ( int  whichcoord,
int  ii,
int  jj,
int  kk,
int  loc,
FTYPE  ROTANGLE,
FTYPE X,
FTYPE V,
FTYPE Xmetric,
FTYPE Vmetric,
FTYPE gcov,
FTYPE gcovpert 
)

transformation of metric written in Vmetric-type coordinates with dVmetric differentials to one written in V[X] coordinates with dVdifferentials

This is what's used to take original metric from set_gcov and get the one with new differentials based upon V[X]

Definition at line 616 of file transforms.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void transVmetrictoV_trans ( FTYPE  ROTANGLE,
FTYPE Vmetric,
FTYPE(*)  trans[NDIM] 
)

transformation of metric written in Vmetric-type coordinates with dVmetric differentials to one written in V[X] coordinates with dVdifferentials

This is what's used to take original metric from set_gcov and get the one with new differentials based upon V[X] Generate trans[mu][nu] = T^mu[Vmetric]_nu[V] Such that g_{mup nup} = g_{mu nu} T^mu_mup T^nu_nup

Definition at line 683 of file transforms.c.

Here is the caller graph for this function:

void transVmetrictoV_ucov ( FTYPE  ROTANGLE,
FTYPE Vmetric,
FTYPE ucov 
)

Transform u_ from Vmetric form (where z-axis is BH spin axis) to V form [tilted BH spin axis].

Definition at line 649 of file transforms.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void transVtoVmetric ( int  whichcoord,
int  ii,
int  jj,
int  kk,
int  loc,
FTYPE  ROTANGLE,
FTYPE X,
FTYPE V,
FTYPE Xmetric,
FTYPE Vmetric,
FTYPE gcov,
FTYPE gcovpert 
)
int ucov_whichcoord2primecoords ( int  whichcoord,
int  ii,
int  jj,
int  kk,
int  loc,
FTYPE ucov 
)

converts u_ in whichcoord to PRIMECOORDS

Definition at line 153 of file transforms.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int vcon2pr ( int  whichvel,
FTYPE vcon,
struct of_geom geom,
FTYPE pr 
)

convert 3-velocity to whichvel velocity

Definition at line 950 of file transforms.c.

Here is the call graph for this function:

Here is the caller graph for this function: