Skip to content
forked from oyvach/AsGRD

This is the public repository for the AsGRD cosmological N-body code, which is based on asevolution and additionally evolves gravitational waves.

License

Notifications You must be signed in to change notification settings

JulianAdamek/AsGRD

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AsGRD

-- Asymmetron with General Relativity Dynamics


Compilation and usage

Before compilation, make sure that all required external libraries are installed:

Make sure that the include paths are set properly, or add them to the makefile. Also check the compiler settings in the makefile. The code is compiled by typing:

make clean; make

A typical command to run a simulation looks like this:

mpirun -np 16 ./AsGRD -n 4 -m 4 -s settings.ini

For further information, please refer to the User Manual (manual.pdf)

Additional parameters added for AsGRD are explained in metadata.hpp

A settings.ini file that makes a cosmological run with the (a)symmetron may be found in ./settings/ together with a settings file for evolving the LCDM universe.

GWs

To evolve dynamic hij, use compiler directive -DGW in makefile. Then, additional outputs hij, hij_prime and hij_prime_norm become available for output in Pk, snap and animation. In order to reduce noise from displacement of particles on the discrete grid upon mass projection, use the more expensive compiler option DCIC_PROJECT_TIJ.

The important changes of the code for GWs should be in

  • GWs.hpp
  • interface_main.hpp (in doICs() and doSolveEinsteinEquation())
  • interface_fifth.hpp (in doConstructAchiSEtensor() or doFindBackgroundQuantities())
  • Output functions..

animations

In order to use animation, use the LATfield2 version linked to above. animation parameters are set in example ideal wall files.

convention

  • Snapshots and animations of the B-field are outputted with a factor $a^2\cdot$ sim.numpts too large and need to be adjusted in post-processing.
  • Snapshots and animations of the hij_prime- and aq fields are outputted dimensionfully and need to be adjusted by division with e.g. H_prime in post-processing.

About

This is the public repository for the AsGRD cosmological N-body code, which is based on asevolution and additionally evolves gravitational waves.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 99.8%
  • Makefile 0.2%