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

Coordinates stuff (both user and general) More...

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

Go to the source code of this file.

Functions

void set_coord_parms (int defcoordlocal)
 can call when no dependencies More...
 
void set_coord_parms_nodeps (int defcoordlocal)
 Things to set that only depend upon defcoord and nothing else NOTEMARK: By nothing else, that means things like hslope, R0, Rin, or anything else that user might set in init_grid() Otherwise, even if set hslope here for example and then use hslope to set something else, hslope could change and that other parameter would be wrong and coordinates would be mismatched. More...
 
void set_coord_parms_deps (int defcoordlocal)
 stuff that depends upon ANYTHING external that might be set by user in init_grid() or by system in init_defgrid(), like R0, Rin, hslope, h_over_r, etc. More...
 
void write_coord_parms (int defcoordlocal)
 write coordinate parameters More...
 
void read_coord_parms (int defcoordlocal)
 read coordinate parameters More...
 
void coord (int i, int j, int k, int loc, FTYPE *X)
 get X(i,j,k) CENT is default position in degenerate cases More...
 
void coord_ijk (int i, int j, int k, int loc, FTYPE *X)
 normally-used bl_coord[i,j,k] {i,j,k} -> X only More...
 
void coord_free (int i, int j, int k, int loc, FTYPE *X)
 Get X(i,j,k) like coord() but does not constrain X when in reduced dimensionality used for infinitesimal differences such as when numerically computing connection or dxdxp's at the moment this function not used since X is defined directly rather than based upon grid. More...
 
void coordf (FTYPE i, FTYPE j, FTYPE k, int loc, FTYPE *X)
 identical to coord except declaration using FTYPEs More...
 
void bl_coord (FTYPE *X, FTYPE *V)
 Returns boyer-lindquist coordinte of point. More...
 
void bl_coord_ijk (int i, int j, int k, int loc, FTYPE *V)
 normally-used bl_coord[i,j,k] {i,j,k} -> V only More...
 
void bl_coord_coord (int i, int j, int k, int loc, FTYPE *X, FTYPE *V)
 normally-used bl_coord[i,j,k] returns both X and V given i,j,k,loc and does NOT try to use stored memory – presumes could input arbitrary i,j,k not on a single CPU More...
 
void dxdxprim (FTYPE *X, FTYPE *V, FTYPE(*dxdxp)[NDIM])
 Jacobian for dx uniform per dx nonuniform (dx/dr / dx/dr') i.e. More...
 
void dxdxprim_ijk (int i, int j, int k, int loc, FTYPE(*dxdxp)[NDIM])
 normally-used dxdxp[i,j,k] = dV/dX More...
 
void idxdxprim (FTYPE(*dxdxp)[NDIM], FTYPE(*idxdxp)[NDIM])
 Get (dV/dX)^{-1}. More...
 
void idxdxprim_ijk (int i, int j, int k, int loc, FTYPE(*idxdxp)[NDIM])
 normally-used dxdxp[i,j,k] More...
 
int setihor (void)
 set i(horizon) More...
 
FTYPE setRin (int ihor)
 there's probably a way to do this in general probably can root find to get this set Rin so horizon exactly on FACE1 at i=ihor More...
 
int is_inside_surface (int dir, int ii, int jj, int kk, int pp)
 see if point inside surface dir=X1UP,X1DN,etc. More...
 
int is_on_surface (int dir, int ii, int jj, int kk, int pp)
 see if point is on surface More...
 

Detailed Description

Coordinates stuff (both user and general)

Definition in file coord.funcdeclare.h.

Function Documentation

void bl_coord ( FTYPE X,
FTYPE V 
)

Returns boyer-lindquist coordinte of point.

Definition at line 1260 of file coord.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void bl_coord_coord ( int  i,
int  j,
int  k,
int  loc,
FTYPE X,
FTYPE V 
)

normally-used bl_coord[i,j,k] returns both X and V given i,j,k,loc and does NOT try to use stored memory – presumes could input arbitrary i,j,k not on a single CPU

Definition at line 4176 of file coord.c.

Here is the call graph for this function:

void bl_coord_ijk ( int  i,
int  j,
int  k,
int  loc,
FTYPE V 
)

normally-used bl_coord[i,j,k] {i,j,k} -> V only

Definition at line 4098 of file coord.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void coord ( int  i,
int  j,
int  k,
int  loc,
FTYPE X 
)

get X(i,j,k) CENT is default position in degenerate cases

Definition at line 3450 of file coord.c.

Here is the caller graph for this function:

void coord_free ( int  i,
int  j,
int  k,
int  loc,
FTYPE X 
)

Get X(i,j,k) like coord() but does not constrain X when in reduced dimensionality used for infinitesimal differences such as when numerically computing connection or dxdxp's at the moment this function not used since X is defined directly rather than based upon grid.

Definition at line 3573 of file coord.c.

void coord_ijk ( int  i,
int  j,
int  k,
int  loc,
FTYPE X 
)

normally-used bl_coord[i,j,k] {i,j,k} -> X only

Definition at line 4187 of file coord.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void coordf ( FTYPE  i,
FTYPE  j,
FTYPE  k,
int  loc,
FTYPE X 
)

identical to coord except declaration using FTYPEs

Definition at line 3637 of file coord.c.

void dxdxprim ( FTYPE X,
FTYPE V,
FTYPE(*)  dxdxp[NDIM] 
)

Jacobian for dx uniform per dx nonuniform (dx/dr / dx/dr') i.e.

Just take d(bl-coord)/d(ksp uniform coord) e.g. dr/dx1 d/dx2

take note of the ordering of indicies dxdxp[j][k]=dxdxp[mu][nu]=(dx^{BL}/dx^{KSP uni})

should make this numerical like connection, then to conserve CPU, would need all over grid

Definition at line 2239 of file coord.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void dxdxprim_ijk ( int  i,
int  j,
int  k,
int  loc,
FTYPE(*)  dxdxp[NDIM] 
)

normally-used dxdxp[i,j,k] = dV/dX

Definition at line 3932 of file coord.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void idxdxprim ( FTYPE(*)  dxdxp[NDIM],
FTYPE(*)  idxdxp[NDIM] 
)

Get (dV/dX)^{-1}.

Definition at line 4003 of file coord.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void idxdxprim_ijk ( int  i,
int  j,
int  k,
int  loc,
FTYPE(*)  idxdxp[NDIM] 
)

normally-used dxdxp[i,j,k]

Definition at line 4014 of file coord.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int is_inside_surface ( int  dir,
int  ii,
int  jj,
int  kk,
int  pp 
)

see if point inside surface dir=X1UP,X1DN,etc.

Definition at line 3863 of file coord.c.

Here is the call graph for this function:

int is_on_surface ( int  dir,
int  ii,
int  jj,
int  kk,
int  pp 
)

see if point is on surface

Definition at line 3896 of file coord.c.

Here is the caller graph for this function:

void read_coord_parms ( int  defcoordlocal)

read coordinate parameters

Definition at line 932 of file coord.c.

Here is the call graph for this function:

void set_coord_parms ( int  defcoordlocal)

can call when no dependencies

Definition at line 110 of file coord.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void set_coord_parms_deps ( int  defcoordlocal)

stuff that depends upon ANYTHING external that might be set by user in init_grid() or by system in init_defgrid(), like R0, Rin, hslope, h_over_r, etc.

Definition at line 631 of file coord.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void set_coord_parms_nodeps ( int  defcoordlocal)

Things to set that only depend upon defcoord and nothing else NOTEMARK: By nothing else, that means things like hslope, R0, Rin, or anything else that user might set in init_grid() Otherwise, even if set hslope here for example and then use hslope to set something else, hslope could change and that other parameter would be wrong and coordinates would be mismatched.

Definition at line 124 of file coord.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int setihor ( void  )

set i(horizon)

Definition at line 3261 of file coord.c.

Here is the caller graph for this function:

FTYPE setRin ( int  ihor)

there's probably a way to do this in general probably can root find to get this set Rin so horizon exactly on FACE1 at i=ihor

Definition at line 3272 of file coord.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void write_coord_parms ( int  defcoordlocal)

write coordinate parameters

Definition at line 826 of file coord.c.

Here is the call graph for this function:

Here is the caller graph for this function: