Changes between Version 9 and Version 10 of 1DPulsedJets


Ignore:
Timestamp:
01/24/12 10:32:02 (13 years ago)
Author:
ehansen
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • 1DPulsedJets

    v9 v10  
    1818
    1919== Zcooling.tab ==
    20 PHcooling.tab contains a lot of data that is not needed.  Reading in this data one line at a time is inefficient, especially when astrobear is being run on multiple processors.  This is why a separate script called ph2zformat.s is used to reformat PHcooling.tab into Zcooling.tab before running astrobear.  Remember that PHcooling.tab still requires the aforementioned properties in order to be reformatted correctly.  Zcooling.tab has the following format:
     20PHcooling.tab contains a lot of data that is not needed.  Reading in this data one line at a time is inefficient, especially when astrobear is being run on multiple processors.  This is why a separate script called ph2zformat.s^*^ is used to reformat PHcooling.tab into Zcooling.tab before running astrobear.  Remember that PHcooling.tab still requires the aforementioned properties in order to be reformatted correctly.  Zcooling.tab has the following format:
    2121
    2222nDensities [[BR]]
     
    3636Where nDensities, nTemps, and nXs are the number of unique values for log(ne), T, and log(X) respectively.  So if these parameters are equal to 40, 30, and 21, then there are a total of 25,200 cooling rates (40*30*21 = 25200).  lognemin is the minimum value of the log(ne) column in PHcooling.tab, and the other minimum and maximum values are defined in the same way. Now the data does not need to be read in one line at a time for 25,200 or so values.  The entire array of cooling rates can be read in with a single READ statement.  No iteration or nested DO loops required.
    3737
     38^*^The only thing that ph2zformat.s assumes is that it is being run from the TABLES directory, and that the file you want to reformat is named PHcooling.tab.
     39
    3840[[BR]]
    3941