The GODUNOV code
Copyright (C) 2007-2016 Grzegorz Kowal
GODUNOV is a code to perform numerical simulations in a fluid approximation on
a uniform mesh. The goal in developing this code is to create a solid framework
for simulations on uniform mesh in the Cartesian, cylindrical, or spherical
coordinate systems with a number of numerical methods which can be selected in
an easy manner. The code is completely written in Fortran 2003.
The following features are already implemented:
- hydrodynamic and magnetohydrodynamic set of equations (HD and MHD),
- both classical and special relativity cases for the above equations,
- Cartesian coordinate system,
- 2nd to 4th order time integration using Strong Stability Preserving
- 2nd order TVD interpolation with number of limiters and higher order
- Riemann solvers of Roe- and HLL-types (HLL, HLLC, and HLLD),
- periodic and open boundary conditions,
- viscous and resistive source terms,
- data stored in the HDF5 format,
- MPI parallelization.
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see http://www.gnu.org/licenses/.
- Grzegorz Kowal email@example.com
- Fortran 2003 compiler (tested compilers include
GNU Fortran version 4.5 or newer,
Intel Fortran compiler
version 9.0 or newer,
PathScale EKOPath(tm) compiler
version 1.0 or newer)
- HDF5 libraries version 1.8 or newer,
- Open MPI libraries version 1.4 or newer - optional, for running on parallel machines.
- Clone or unpack the code sources downloaded from
- Go to directory build/hosts/ and copy file default to a new file
named exactly as your host name (name returned by command
- Customize your compiler and compilation options in your new host file.
- Go up to directory build/ and copy file make.default to make.config.
- Customize compilation time options in make.config.
- Compile sources by typing
makein directory build/. The executable file
godunov.x should be created.
In order to run some test problems you can simply copy corresponding parameter
from directory problems/ to the location when you wish to run your test.
Copy the executable file godunov.x compiled earlier to the same directory.
If you provide option -i <parameter_file>, the code will know that the
parameters have to be read from file <parameter_file>. If you don't provide
this option, the code will assume that the parameters are stored in file
params.in in the same director.
In order to run serial version, type in your terminal:
./godunov.x -i params.in.
In order to run the parallel version (after compiling the code with MPI
version), type in your terminal:
mpirun -n N ./godunov.x -i params.in, where N
is the number of processors.