Compile and run (COSMOS) - cmyoo/cosmos GitHub Wiki

Structure

  • Main file:

    • "cosmos.cpp"
  • Header file:

    • "cosmos.h": main header file
    • "ahf2d.h": header file for the apparent horizon finder
  • Definitions:

    • "cosmos_bssn.cpp": calculation of r.h.s of evolution equations and flux terms
    • "cosmos_initial.cpp": initial conditions and settings
    • "cosmos_output.cpp": output functions
    • "cosmos_boundary.cpp": boundary conditions
    • "cosmos_ahf.cpp": apparent horizon finder
    • "cosmos_ipol.cpp": interpolation functions with Lagrange interpolation
    • "cosmos_fluid.cpp": functions for fluid treatment
    • "cosmos_fmr.cpp": higher layer treatment for the mesh refinement
  • Makefile:

    • "makefile"
  • Parameter files:

    • "par_ini.d": main parameter setting
    • "par_fmr.d": mesh-refinement parameter setting
    • "par_ahf.d": apparent horizon finder parameter setting

Compile and run

  • Compile: make
    Choose a compiler by changing the makefile.

  • OpenMP: export OMP_NUM_THREADS=#
    Set the number of threads you use.

  • Execute: ./cosmos

Files expected to be generated

  • "out_AHfig.dat": Shape of the apparent horizon
  • "out_AH.dat": Time evolution of geometrical variables of the apparent horizon
  • "out_jkz.dat": Variables on $z$-axis as functions of $z$
  • "out_jyl.dat": Variables on $y$-axis as functions of $y$
  • "out_xkl.dat": Variables on $x$-axis as functions of $x$
  • "out_xyl.dat": Variables on $xy$-plane as functions of $x$ and $y$
  • "out_xkz.dat": Variables on $xz$-plane as functions of $x$ and $z$
  • "out_const.dat": Time evolution of constraint violations
  • "out_all.dat": Data file that can be used as an initial data file to continue the time evolution
  • (Only for examples) "out_diff.dat": The differences from the expected values listed in "exp_jkz.dat".