General initialization of grid (coordinates, metric, connection coefficients, etc.) More...
#include "decs.h"
Go to the source code of this file.
Macros | |
#define | ATTEMPTSYMMETRIZATION 0 |
not necessary to symmetrize except for testing/debugging asymmetries More... | |
Functions | |
static void | set_position_stores (void) |
set positional stores More... | |
static void | set_grid_metrics (void) |
Grid functions that only exist at many locations and are assigned values on all points INCLUDING another value at the outer edges so have edge grid data there – makes setting up certain things easier. More... | |
static void | set_connection (void) |
Grid functions that only exist at one location for all grid points. More... | |
static void | set_grid_metrics_gcov (void) |
sets gcov More... | |
static void | set_grid_metrics_others (void) |
static void | set_tlab2ortho (void) |
Get tetrads that convert between X-lab frame basis to V-orthonormal basis. More... | |
int | assignmetricstorage_new (struct of_compgeom *mygeom, FTYPE **localgcov, FTYPE **localgcon, FTYPE **localgcovpert, FTYPE **localgdet, FTYPE **localgdetvol, FTYPE **localalphalapse, FTYPE **localbetasqoalphasq, FTYPE **localbeta, FTYPE **localeomfunc) |
translate compgeom to some local quantities at loc,i,j,k More... | |
int | assignmetricstorage_oldlast (int loc, int i, int j, int k, FTYPE **localgcov, FTYPE **localgcon, FTYPE **localgcovpert, FTYPE **localgdet, FTYPE **localgdetvol, FTYPE **localalphalapse, FTYPE **localbetasqoalphasq, FTYPE **localbeta, FTYPE **localeomfunc) |
old use of arrays: translate compgeom to some local quantities at loc,i,j,k uses globals More... | |
void | set_grid (int whichtime, FTYPE *CUf, FTYPE *Cunew) |
GODMARK: may want to make grid functions explicitly 2D for axisymmetric space-times when in axisymmetry with space-time axis aligned with grid. More... | |
General initialization of grid (coordinates, metric, connection coefficients, etc.)
Definition in file set_grid.c.
#define ATTEMPTSYMMETRIZATION 0 |
not necessary to symmetrize except for testing/debugging asymmetries
Definition at line 24 of file set_grid.c.
int assignmetricstorage_new | ( | struct of_compgeom * | mygeom, |
FTYPE ** | localgcov, | ||
FTYPE ** | localgcon, | ||
FTYPE ** | localgcovpert, | ||
FTYPE ** | localgdet, | ||
FTYPE ** | localgdetvol, | ||
FTYPE ** | localalphalapse, | ||
FTYPE ** | localbetasqoalphasq, | ||
FTYPE ** | localbeta, | ||
FTYPE ** | localeomfunc | ||
) |
translate compgeom to some local quantities at loc,i,j,k
Definition at line 27 of file set_grid.c.
int assignmetricstorage_oldlast | ( | int | loc, |
int | i, | ||
int | j, | ||
int | k, | ||
FTYPE ** | localgcov, | ||
FTYPE ** | localgcon, | ||
FTYPE ** | localgcovpert, | ||
FTYPE ** | localgdet, | ||
FTYPE ** | localgdetvol, | ||
FTYPE ** | localalphalapse, | ||
FTYPE ** | localbetasqoalphasq, | ||
FTYPE ** | localbeta, | ||
FTYPE ** | localeomfunc | ||
) |
old use of arrays: translate compgeom to some local quantities at loc,i,j,k uses globals
Definition at line 83 of file set_grid.c.
|
static |
Grid functions that only exist at one location for all grid points.
connection only needed at center, and only has memory on full normal grid (not like gcon/gcov that have extra upper edge)
Definition at line 1051 of file set_grid.c.
GODMARK: may want to make grid functions explicitly 2D for axisymmetric space-times when in axisymmetry with space-time axis aligned with grid.
set up all grid functions
whichtime: 0: setting initial coordinate and metric quantities. Can be called many times to solve initial value problem of coupled matter-metric system of equations. Should NOT be treated as a single call for entire simulation. 1: Setting a future metric such that old metric can be used to compute connection with temporal changes incorporated
CUf/Cunew: time-step for substeps used to iterate the metric and store into old metric when can take temporal difference and use as slope for present value of connection calculation
Definition at line 120 of file set_grid.c.
|
static |
Grid functions that only exist at many locations and are assigned values on all points INCLUDING another value at the outer edges so have edge grid data there – makes setting up certain things easier.
Notice that coord() and bl_coord() work without this. So those functions that only require those functions can do without this extra grid stuff.
Definition at line 580 of file set_grid.c.
|
static |
|
static |
|
static |
set positional stores
Definition at line 287 of file set_grid.c.
|
static |
Get tetrads that convert between X-lab frame basis to V-orthonormal basis.
Definition at line 1280 of file set_grid.c.