COSMOS API FMV - cmyoo/cosmos GitHub Wiki

COSMOS :: Class description for Fmv

  • This class is inherited from Fmv0. Note that this class is used as the controller for other Fixed Mesh Refinement layers.

Fmv :: Functions

Constructor and Destructor

Fmv(int tabs,int jupper,int jlower,int kupper,int klower,int lupper,int llower, double xupper,double xlower,double yupper,double ylower,double zupper,double zlower,double am,bool fld, bool scl, bool cuev)

input setting variable in the class description
tabs tab tab for refinement boundary
jupper jui maximum grid number to evolve for $x$
jlower jli minimum grid number to evolve for $x$
kupper jui maximum grid number to evolve for $y$
klower jli minimum grid number to evolve for $y$
lupper jui maximum grid number to evolve for $z$
llower jli minimum grid number to evolve for $z$
xupper xu maximum of coordinate length for $x$
xlower xl minimum of coordinate length for $x$
yupper yu maximum of coordinate length for $y$
ylower yl minimum of coordinate length for $y$
zupper zu maximum of coordinate length for $z$
zlower zl minimum of coordinate length for $z$
am amp amplitude of inhomogeneous grid
fld fluidevo on/off switch for fluid evolution
scl scalarevo on/off switch for scalar evolution
cuev curveval on/off switch for curvature evaluation
  • In addition, the number of layer (layn) is set to be 0.

~Fmv()

BOUNDARY functions

type name input description
void boundary_periodic() no periodic boundary condition
void boundary_reflection() no reflection boundary condition for bv
void boundary_d_reflection() no reflection boundary condition for dbv
void boundary_reflection_even(int i) i: variable number reflection boundary condition for even variable
void boundary_prim_reflection() no reflection boundary condition for fluid primitive variables
void boundary_psi_initial() no reflection boundary condition for initial psi
void boundary_reflection_fluid() no reflection boundary condition for fluid variables
void boundary_reflection_scalar() no reflection boundary condition for scalar fields
void boundary_asym0() no asymptotically flat condition by bv and bv0
void boundary_asym(int itype) itype:boundary type asymptotically flat condition by bv
void asymcond(int l,int k,int j,int i,double bgv) j,k,l:grid numbers for $x,y,z$, i:number of dynamical variables, bgv:value of flat spacetime asymptotically flat boundary condition by bv
void asymcond(int l,int k,int j,int i,double bgv1,double bgv,double dt,int itype) j,k,l:grid numbers for $x,y,z$, i:number of dynamical variables, bgv1:value of flat spacetime, bgv:value of flat spacetime, dt:time intervsl, itype asymptotically flat boundary condition by bv and bv0

Functions for specific initial conditions

type name input description
void set_Psi_nonsph(double mu,double k,double xi2,double xi3) mu,k,xi2,xi3: parameters for initial psi profile setting psi from initial data by Yoo et al.(2020)
void initial_nonsph(double mu,double k,double xi2,double xi3) mu,k,xi2,xi3: parameters for initial psi profile setting psi and flat metric
void set_Psi_nonsph(double mu,double k,double xi2,double xi3,double xit2,double xit3,double w) mu,k,xi2,xi3,xit2,xit3,w: parameters for initial psi profile setting psi from different initial data before
void initial_nonsph(double mu,double k,double xi2,double xi3,double xit2,double xit3,double w) mu,k,xi2,xi3,xit2,xit3,w: parameters for initial psi profile setting psi and flat metric
void set_initial_scalar(double mu,double k,double xi2,double xi3) mu,k,xi2,xi3: parameters for initial psi profile setting scalar field
void set_initial_fluid(double mu,double k,double xi2,double xi3) mu,k,xi2,xi3: parameters for initial psi profile setting fluid
void set_ini_from_Psi() no setting dynamical variables from initial profile of psi