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

Generalized USER initial conditions routines that can be used for many different (but not all) initial conditions. More...

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

Go to the source code of this file.

Macros

#define FIELDBETANORMMETHOD   1
 
#define NORMALIZEFIELDMETHOD   0
 
#define TAUADJUSTATM   (10.0)
 

Functions

int init_dsandvels (int inittype, int pos, int *whichvel, int *whichcoord, SFTYPE time, int i, int j, int k, FTYPE *p, FTYPE *pstag)
 
int setRin_withchecks (FTYPE *rin)
 
int user1_prepre_init_specific_init (void)
 
int user1_post_init_specific_init (void)
 
int user1_init_global (void)
 
int user1_init_primitives (int inittype, FTYPE(*prim)[NSTORE2][NSTORE3][NPR], FTYPE(*pstag)[NSTORE2][NSTORE3][NPR], FTYPE(*ucons)[NSTORE2][NSTORE3][NPR], FTYPE(*vpot)[NSTORE1+SHIFTSTORE1][NSTORE2+SHIFTSTORE2][NSTORE3+SHIFTSTORE3], FTYPE(*Bhat)[NSTORE2][NSTORE3][NPR], FTYPE(*panalytic)[NSTORE2][NSTORE3][NPR], FTYPE(*pstaganalytic)[NSTORE2][NSTORE3][NPR], FTYPE(*vpotanalytic)[NSTORE1+SHIFTSTORE1][NSTORE2+SHIFTSTORE2][NSTORE3+SHIFTSTORE3], FTYPE(*Bhatanalytic)[NSTORE2][NSTORE3][NPR], FTYPE(*F1)[NSTORE2][NSTORE3][NPR+NSPECIAL], FTYPE(*F2)[NSTORE2][NSTORE3][NPR+NSPECIAL], FTYPE(*F3)[NSTORE2][NSTORE3][NPR+NSPECIAL], FTYPE(*Atemp)[NSTORE1+SHIFTSTORE1][NSTORE2+SHIFTSTORE2][NSTORE3+SHIFTSTORE3])
 
int user1_init_vpot2field_user (SFTYPE time, int *fieldfrompotential, FTYPE(*A)[NSTORE1+SHIFTSTORE1][NSTORE2+SHIFTSTORE2][NSTORE3+SHIFTSTORE3], FTYPE(*prim)[NSTORE2][NSTORE3][NPR], FTYPE(*pstag)[NSTORE2][NSTORE3][NPR], FTYPE(*ucons)[NSTORE2][NSTORE3][NPR], FTYPE(*Bhat)[NSTORE2][NSTORE3][NPR])
 
int user1_normalize_densities (int eqline, FTYPE *parms, FTYPE(*prim)[NSTORE2][NSTORE3][NPR], FTYPE *rhomax, FTYPE *umax)
 
int user1_getmax_densities (FTYPE(*prim)[NSTORE2][NSTORE3][NPR], SFTYPE *rhomax, SFTYPE *umax)
 
int user1_getmax_densities_full (FTYPE(*prim)[NSTORE2][NSTORE3][NPR], SFTYPE *rhomax, SFTYPE *umax, SFTYPE *uradmax, SFTYPE *utotmax, SFTYPE *pmax, SFTYPE *pradmax, SFTYPE *ptotmax)
 
int user1_get_maxes (int eqslice, FTYPE *parms, FTYPE(*prim)[NSTORE2][NSTORE3][NPR], FTYPE *bsq_max, FTYPE *ptot_max, FTYPE *beta_min)
 
int user1_normalize_field (FTYPE beta, FTYPE(*prim)[NSTORE2][NSTORE3][NPR], FTYPE(*pstag)[NSTORE2][NSTORE3][NPR], FTYPE(*ucons)[NSTORE2][NSTORE3][NPR], FTYPE(*vpot)[NSTORE1+SHIFTSTORE1][NSTORE2+SHIFTSTORE2][NSTORE3+SHIFTSTORE3], FTYPE(*Bhat)[NSTORE2][NSTORE3][NPR])
 
int user1_normalize_field_sigma (FTYPE sigma0, FTYPE bpole, FTYPE(*prim)[NSTORE2][NSTORE3][NPR], FTYPE(*pstag)[NSTORE2][NSTORE3][NPR], FTYPE(*ucons)[NSTORE2][NSTORE3][NPR], FTYPE(*vpot)[NSTORE1+SHIFTSTORE1][NSTORE2+SHIFTSTORE2][NSTORE3+SHIFTSTORE3], FTYPE(*Bhat)[NSTORE2][NSTORE3][NPR])
 
int user1_normalize_densities_postnormalizefield (SFTYPE time, FTYPE(*prim)[NSTORE2][NSTORE3][NPR])
 
int user1_get_sigmabsq_atpole (FTYPE(*prim)[NSTORE2][NSTORE3][NPR], FTYPE *sigma_pole, FTYPE *bsq_pole)
 

Variables

FTYPE normglobal
 
int inittypeglobal
 

Detailed Description

Generalized USER initial conditions routines that can be used for many different (but not all) initial conditions.

Definition in file init.tools.c.

Macro Definition Documentation

#define FIELDBETANORMMETHOD   1

Definition at line 1007 of file init.tools.c.

#define NORMALIZEFIELDMETHOD   0

Definition at line 1056 of file init.tools.c.

#define TAUADJUSTATM   (10.0)

Definition at line 1277 of file init.tools.c.

Function Documentation

int init_dsandvels ( int  inittype,
int  pos,
int *  whichvel,
int *  whichcoord,
SFTYPE  time,
int  i,
int  j,
int  k,
FTYPE p,
FTYPE pstag 
)

Definition at line 3669 of file init.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int setRin_withchecks ( FTYPE rin)

Definition at line 17 of file init.tools.c.

Here is the call graph for this function:

int user1_get_maxes ( int  eqslice,
FTYPE parms,
FTYPE(*)  prim[NSTORE2][NSTORE3][NPR],
FTYPE bsq_max,
FTYPE ptot_max,
FTYPE beta_min 
)

Definition at line 898 of file init.tools.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int user1_get_sigmabsq_atpole ( FTYPE(*)  prim[NSTORE2][NSTORE3][NPR],
FTYPE sigma_pole,
FTYPE bsq_pole 
)

Definition at line 1190 of file init.tools.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int user1_getmax_densities ( FTYPE(*)  prim[NSTORE2][NSTORE3][NPR],
SFTYPE rhomax,
SFTYPE umax 
)

Definition at line 796 of file init.tools.c.

int user1_getmax_densities_full ( FTYPE(*)  prim[NSTORE2][NSTORE3][NPR],
SFTYPE rhomax,
SFTYPE umax,
SFTYPE uradmax,
SFTYPE utotmax,
SFTYPE pmax,
SFTYPE pradmax,
SFTYPE ptotmax 
)

not really meaningful since different frames

Definition at line 836 of file init.tools.c.

Here is the caller graph for this function:

int user1_init_global ( void  )

Definition at line 108 of file init.tools.c.

Here is the caller graph for this function:

int user1_init_primitives ( int  inittype,
FTYPE(*)  prim[NSTORE2][NSTORE3][NPR],
FTYPE(*)  pstag[NSTORE2][NSTORE3][NPR],
FTYPE(*)  ucons[NSTORE2][NSTORE3][NPR],
FTYPE(*)  vpot[NSTORE1+SHIFTSTORE1][NSTORE2+SHIFTSTORE2][NSTORE3+SHIFTSTORE3],
FTYPE(*)  Bhat[NSTORE2][NSTORE3][NPR],
FTYPE(*)  panalytic[NSTORE2][NSTORE3][NPR],
FTYPE(*)  pstaganalytic[NSTORE2][NSTORE3][NPR],
FTYPE(*)  vpotanalytic[NSTORE1+SHIFTSTORE1][NSTORE2+SHIFTSTORE2][NSTORE3+SHIFTSTORE3],
FTYPE(*)  Bhatanalytic[NSTORE2][NSTORE3][NPR],
FTYPE(*)  F1[NSTORE2][NSTORE3][NPR+NSPECIAL],
FTYPE(*)  F2[NSTORE2][NSTORE3][NPR+NSPECIAL],
FTYPE(*)  F3[NSTORE2][NSTORE3][NPR+NSPECIAL],
FTYPE(*)  Atemp[NSTORE1+SHIFTSTORE1][NSTORE2+SHIFTSTORE2][NSTORE3+SHIFTSTORE3] 
)

Definition at line 332 of file init.tools.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int user1_init_vpot2field_user ( SFTYPE  time,
int *  fieldfrompotential,
FTYPE(*)  A[NSTORE1+SHIFTSTORE1][NSTORE2+SHIFTSTORE2][NSTORE3+SHIFTSTORE3],
FTYPE(*)  prim[NSTORE2][NSTORE3][NPR],
FTYPE(*)  pstag[NSTORE2][NSTORE3][NPR],
FTYPE(*)  ucons[NSTORE2][NSTORE3][NPR],
FTYPE(*)  Bhat[NSTORE2][NSTORE3][NPR] 
)

Definition at line 661 of file init.tools.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int user1_normalize_densities ( int  eqline,
FTYPE parms,
FTYPE(*)  prim[NSTORE2][NSTORE3][NPR],
FTYPE rhomax,
FTYPE umax 
)

Definition at line 730 of file init.tools.c.

Here is the caller graph for this function:

int user1_normalize_densities_postnormalizefield ( SFTYPE  time,
FTYPE(*)  prim[NSTORE2][NSTORE3][NPR] 
)

Definition at line 1114 of file init.tools.c.

Here is the call graph for this function:

int user1_normalize_field ( FTYPE  beta,
FTYPE(*)  prim[NSTORE2][NSTORE3][NPR],
FTYPE(*)  pstag[NSTORE2][NSTORE3][NPR],
FTYPE(*)  ucons[NSTORE2][NSTORE3][NPR],
FTYPE(*)  vpot[NSTORE1+SHIFTSTORE1][NSTORE2+SHIFTSTORE2][NSTORE3+SHIFTSTORE3],
FTYPE(*)  Bhat[NSTORE2][NSTORE3][NPR] 
)

Definition at line 1010 of file init.tools.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int user1_normalize_field_sigma ( FTYPE  sigma0,
FTYPE  bpole,
FTYPE(*)  prim[NSTORE2][NSTORE3][NPR],
FTYPE(*)  pstag[NSTORE2][NSTORE3][NPR],
FTYPE(*)  ucons[NSTORE2][NSTORE3][NPR],
FTYPE(*)  vpot[NSTORE1+SHIFTSTORE1][NSTORE2+SHIFTSTORE2][NSTORE3+SHIFTSTORE3],
FTYPE(*)  Bhat[NSTORE2][NSTORE3][NPR] 
)

Definition at line 1065 of file init.tools.c.

Here is the call graph for this function:

int user1_post_init_specific_init ( void  )

Definition at line 95 of file init.tools.c.

Here is the caller graph for this function:

int user1_prepre_init_specific_init ( void  )

Definition at line 53 of file init.tools.c.

Here is the caller graph for this function:

Variable Documentation

int inittypeglobal

Definition at line 56 of file init.c.

FTYPE normglobal

Definition at line 55 of file init.c.