Changes between Version 6 and Version 7 of 1DPulsedJets


Ignore:
Timestamp:
01/23/12 11:57:14 (13 years ago)
Author:
ehansen
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • 1DPulsedJets

    v6 v7  
    2424PHcooling.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 is used to reformat PHcooling.tab to 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:
    2525
    26 nDensities nTemps nXs
    27 lognemin lognemax
    28 tempmin tempmax
    29 logxmin logxmax
    30 coolingrate(1,1,1), coolingrate(2,1,1), ..., coolingrate(nDensities,nTemps,nxs)
     26nDensities nTemps nXs [[BR]]
     27lognemin lognemax [[BR]]
     28tempmin tempmax [[BR]]
     29logxmin logxmax [[BR]]
     30coolingrate(1,1,1) coolingrate(2,1,1) ... coolingrate(nDensities,nTemps,nxs)
    3131
    3232Where 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.  This reformatted table essentially gives the number of data points, the ranges for log(ne), T, and log(X), and the cooling rates on one line.  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 instantly.