PHYSICS 141/241

Winter 2016

Laboratory Session VI.




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 from /software/ports/bin/gfortran-mp-4.5
  • 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


  •  First test of the BULGE

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

  • Visualization with DX

  •  First test of the HALO

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

  • Visualization with DX

  •  First test of the DISK

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

  • Visualization with DX

  •  First test of the complete GALAXY

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

  • Visualization with DX

  • 2. Treecode User Guide (Fortran Language)

    POSTSCRIPT DOCUMENT

    .


    3. Treecode User Guide (C Language)

    PDF DOCUMENT

    .


    4. Treecode in F77 and C

     

    The complete C source package is in the tar file:

    gzipped tar file

    href