GithubHelp home page GithubHelp logo

cnkjw / cpu-vh Goto Github PK

View Code? Open in Web Editor NEW

This project forked from derekeverett/cpu-vh

0.0 1.0 0.0 35.01 MB

A viscous hydrodynamic code for the description of ultrarelativistic heavy ion collisions. Accelerated via OpenMP.

License: MIT License

Makefile 0.11% Shell 0.01% C++ 16.01% Mathematica 82.89% C 0.74% Python 0.03% CMake 0.21%

cpu-vh's Introduction

cpu-vh (c) Dennis Bazow, Derek Everett, Lipei Du and Mike McNelis.

The following papers should be cited when referring to cpu-vh:

  1. D. Bazow, U. W. Heinz and M. Strickland, Comput. Phys. Commun. 225, 92 (2018) doi:10.1016/j.cpc.2017.01.015 [arXiv:1608.06577 [physics.comp-ph]]
  2. (L. Du) in preparation

Purpose

cpu-vh is a code designed for the hydrodynamic simulation of heavy ion collisions. Please see arXiv:1608.06577 for a description of the physics, as well as the KT algorithm which is used to solve the hydrodynamic equations of motion. This code is the CPU version of the algorithm described in the paper, and has been further optimized.

The up-to-date GPU version of this code can be found at https://github.com/derekeverett/gpu-vh The two codes are designed to be as similar as possible, with the flexibility of running on heterogeneous computing platforms.

Installation

To compile with cmake:

mkdir build & cd build
cmake ..
make
make install

There should now exist an executable cpu-vh in the parent directory.

Usage

To run the code:

sh run.sh <NUMTHREADS>

where NUMTHREADS is the number of cores on which to run the code in parallel.
Alternatively one can export the enviroment variable OMP_NUM_THREADS.

All parameters can be set in the files inside the 'rhic-conf' directory.

'lattice.properties' contains parameters which determine the hydrodynamic grid size, number of points, the time step size and number of time steps. NOTE* The number of points in x, y and eta need to be odd for the grid to be centered!

'ic.properties' contains the parameters for the initial conditions for hydrodynamics.

'hydro.properties' contains parameters related to the viscous hydrodynamic evolution (for example the shear viscosity).

The freezeout surface file 'surface.dat' is written to the directory output; this directory must exist at runtime running cpu-vh. The freezeout file is written in a format readable by the Cooper Frye and Sampling Code iS3D : https://github.com/derekeverett/iS3D.

If reading initial conditions from file, the input files are read from the input directory

cpu-vh's People

Contributors

derekeverett avatar greenbagels avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.