PHYSICS 141

Winter 2004

Laboratory Session III

1/26/04

1. Redhat Linux Getting Started II

HTML online manual

We will practice the following selected topics:

  • Work With Your Users Account (Intro)
  • Getting Started
  • KDE and Gnome Desktops
  • The Shells
  • Text Editors
  • Assignment:

    Work through your important selected topics from the list above.


    2. Practice with Data Visualization: IBM Data Explorer

    The introductory manual (Quickstart Guide) is available for a first look. You can read the manual in HTML format using your Netscape browser. You can also download the manual in postscript and PDF format.
    The IBM Documentation for Data Explorer exists in different formats.

    Quickstart Guide: This guide presents a "hands on" introduction to Data Explorer and is designed to help you start working with it immediately.
    [ PDF | HTML ]

    The web site of OpenDX where you can find a vast amount of further information on the graphics package is

    OpenDX Home Page

    Assignment:

    Read Chapters 3-5 from the Quickstart Guide manual and work out the suggested tutorial exercises.

    3. First Practice with the Aarseth Code

  • Fetching the gnuzipped tar file:

    nbody0.tar.gz

    nbody.c: Xylar's famous C code version

  • Save, gunzip and untar in a directory:

    gunzip nbody0.tar.gz

    tar tvf nbody0.tar

    tar xvf nbody0.tar

    equivalently:

    gunzip -d -c nbody.tar.gz | tar xvf -

  • Use f2c to transform fortran code into c code:

    f2c nb0.f -lf2c -lm -o nb0.c

    f2c pgen.f -lf2c -lm -o pgen.c

  • Compile the c code:

    gcc -o xnb0 nb0.c

    gcc -o xpgen xpgen.c

  • Generate initial star distribution with xpgen

  • Run the program for 100 stars in the sphere

    xnb0 < data.in &

    note that data file sphere.data is created for DX

  • Visualize and animate with DX