COSMOS API DOCUMENTATION - cmyoo/cosmos GitHub Wiki

Overview

  • COSMOS is an independent tool for numerical relativity simulations in the three dimensional box.

Class List

name description
Fmv0 Evolution Tools for Physical variables defined in the three dimensional box
Fmv Controller for other Fixed Mesh Refinement levels
Fmv1 Evolution Tools for variables in the refinement grid
Ahf2d Tools to detect Apparent Horizon in the three dimensional box

File list

  • Definition of classes, variables and functions
name description
ahf2d.h Ahf2d class is defined for Apparent Horizon Finder.
cosmos.h Fmv0, Fmv and Fmv1 classes are defined for physical variables in the three dimensional box.
  • Implementation of functions defined in the class
name description
cosmos_ahf.cpp functions for Apparent Horizon Finder
cosmos_boundary.cpp boundary conditions
cosmos_bssn.cpp calculation of r.h.s of evolution equations and flux terms
cosmos.cpp main file
cosmos_fluid.cpp functions for fluid treatment
cosmos_fmr.cpp higher layer treatment for the mesh refinement
cosmos_initial.cpp initial conditions and settings
cosmos_ipol.cpp interpolation functions with Lagrange interpolation
cosmos_output.cpp for output
  • Makefile for compilling the code
name description
makefile slightly dependent on computer you want to compile
  • Parameter files for the COSMOS simulation setup
name description
par_ini.d main parameter setting
par_ahf.d apparent horizon parameter setting
par_fmr.d mesh-refinement parameter setting

Inclusion of Standard Library

Library name
cmath
iostream
iomanip
fstream
cstdio
cstdlib

Global parameters

name value description
M_PI 3.14159265358979323846 Pi
M_E 2.71828182845904523536 Napier's number

Files expected to be generated by running COSMOS

name description
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"