Go to the U of M home page
School of Physics & Astronomy
School of Physics and Astronomy Wiki

User Tools


classes:2008:fall:astro4001.001:weblog

This is an old revision of the document!


Question and Answers - Web Log

Title of First Question

How do I start?


I assume everyone has the code installed. I also assume that everyone knows how to get to the directory EZ_3_6_3.

1 problem:

Change to directory 'src':

cd src

Open file dispatch.f:

emacs dispatch.f

You need to change this file so it looks as follows:

    PROGRAM dispatch
    USE demo1
    USE demo2
    USE ez_example
    CALL Do_Example
    END PROGRAM dispatch

Save and close it

Open ez_example.f:

emacs ez_example.f &

In there you find the lines to change metalicity and the mass:

For z = 0.02:

metals_dir = '../metals/z02' ! metallicity – use z0001, z0003, z001, z004, z01, z02, or z03

Change the mass:

mass = 25D0 ! initial mass – anything from 0.3 to 100

After you did the changes save and go to the directory 'make'. Type:

make

Now it should compile everything.

When it's done go to the directory 'run' and type:

./EZ

You see an output on your screen. To redirect this output to a textfile:

./EZ > textfile.txt

This textfile contains a table of values which you will use to plot the evolution of the star.

Repeat for z = 0.001:

metals_dir = '../metals/z001' ! metallicity – use z0001, z0003, z001, z004, z01, z02, or z03

Title of Second Question

What is my second question? (alex 20080924-075729)


This is my second answer. (alex 20080924-075823)

classes/2008/fall/astro4001.001/weblog.1223950616.txt.gz · Last modified: 2008/10/13 21:16 by x500_mehne002