PHYSICS 141/241

Winter 2020

Laboratory Session IX.




1. The Kuijken-Dubinski Galaxy Modeling Package

We will use the code of Konrad Kuijken and John Dubinski to generate disk-bulge-halo galaxies. The method is described in this paper .

The complete source package (mostly f77) is in the tar file galactics.tar.gz .

  • Getting the source and unpacking (no pgplot in tar file)

  • Create directory tree galaxy: gunzip -d -c galaxy.tar.gz | tar xvf -

  • use gfortran for compilation
  • #F77=/software/ports/bin/gfortran-mp-4.5
    F77=gfortran
    CC=gcc
    FFLAGS = -O
    #FLIBS = -L/usr/X11R6/lib/ -lX11
    #FLIBS = -L/usr/X11R6/lib/ -lX11 -L/software/physics/lib
    #FLIBS = -L/usr/X11R6/lib/ -lX11 -L/software/physics/lib -lpgplot
    CFLAGS = -O -DRINGASCII -DASCII
  • read the README file

  • Using the Makefile in /src directory you issue there:

  • make all

  • make install

  • change to MilkyWay/C directory and issue:

  • make galaxy

  • Minor adjustment of source code is needed in the lab


     First test of the BULGE

  • We will use the data file bulge.data to run the Aarseth code with it.

  • Visualization

  •  First test of the HALO

  • We will use the data file halo.data to run the Aarseth code with it.

  • Visualization

  •  First test of the DISK

  • We will use the data file disk.data to run the Aarseth code with it.

  • Visualization

  •  First test of the complete GALAXY

  • We will use the data file galaxy.data to run the Aarseth code with it.

  • Visualization

  • 2. Treecode User Guide (Fortran Language)

    PDF DOCUMENT

    .


    3. Treecode User Guide (C Language)

    PDF DOCUMENT

    .

    4. Treecode in F77 and C

    Minor adjustments of both source codes are needed in the lab:

    gzipped C code (tar file)


    gzipped fortran code (tar file)

    .


    5. GyrfalcON code

    In Lecture 18 with code instructions

    .