Changes between Version 6 and Version 7 of 1DPulsedJets
- Timestamp:
- 01/23/12 11:57:14 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
1DPulsedJets
v6 v7 24 24 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 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: 25 25 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)26 nDensities nTemps nXs [[BR]] 27 lognemin lognemax [[BR]] 28 tempmin tempmax [[BR]] 29 logxmin logxmax [[BR]] 30 coolingrate(1,1,1) coolingrate(2,1,1) ... coolingrate(nDensities,nTemps,nxs) 31 31 32 32 Where 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.