-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use single metallicity cooling tables
- Loading branch information
Showing
19 changed files
with
1,473 additions
and
351 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -122,15 +122,14 @@ | |
"source": [ | ||
"header=\"\"\"Cooling rates generated from Schure 2009 (doi.org/10.1051/0004-6361/200912495)\n", | ||
"containing temperatures in the first column (in log10 K) and collisional ionisation\n", | ||
"equilibrium (CIE) cooling rates (in log10 erg cm^3/s) for Z=1 solar metalicity, Z=0.5,\n", | ||
"and Z=0.3 across the columns. Cooling rates are in the convention Lambda_hd from eq. 1,\n", | ||
"equilibrium (CIE) cooling rates (in log10 erg cm^3/s).\n", | ||
"Cooling rates are in the convention Lambda_hd from eq. 1,\n", | ||
"where the proton ratio n_e/n_H is taken from table 2.\n", | ||
"Lambda_N is computed from eq. 3. The cooling rate Lambda_N(X_i,T) from eq. 3 is contained\n", | ||
"in table 4. n_i/n_i(solar) is taken to be 1.0 for all elements for Z=1 while for Z=0.5\n", | ||
"and Z=0.5 n_i/n_i(solar) is set to 1 for H and He and set to 0.5 and 0.3 respectively for\n", | ||
"and Z=0.3 n_i/n_i(solar) is set to 1 for H and He and set to 0.5 and 0.3 respectively for\n", | ||
"all other elements. Made by Forrest Glines ([email protected])\n", | ||
"-----------------------------------------------------------------------------------------\n", | ||
"log10 T [K] Z=1 log10 Lambda_N [erg cm^3/s] Z=0.5 log10 Lambda_N [erg cm^3/s] Z=0.3 log10 Lambda_N [erg cm^3/s]\"\"\"" | ||
"-----------------------------------------------------------------------------------------\\n\"\"\"" | ||
] | ||
}, | ||
{ | ||
|
@@ -140,7 +139,59 @@ | |
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"np.savetxt(\"updated_schure.cooling\",schure_data.T,header=header,fmt=(\"%1.2f\",\"%2.4f\",\"%2.4f\",\"%2.4f\"))" | ||
"for i, z in enumerate([1.0, 0.5, 0.3]):\n", | ||
" np.savetxt(f\"schure.cooling_{z:.1f}Z\",\n", | ||
" schure_data.T[:,[0, i + 1]],\n", | ||
" header=header + f\"log10 T [K] Z={z:.1f} log10 Lambda_N [erg cm^3/s]\",\n", | ||
" fmt=(\"%1.2f\",\"%2.4f\"))" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"id": "ebd552ea-937d-4d26-9517-cffaf98dbeb4", | ||
"metadata": {}, | ||
"source": [ | ||
"### Process Gnat Sternberg Cooling Table" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "1a9b0fd3-a27e-46eb-b356-4d46e53bcc55", | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"gnat_sternberg_data = np.loadtxt(\"gnat_sternberg_cie_table.txt\", skiprows=23)" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "fdf5d5db-a0eb-43e7-9283-29339d1d6d5a", | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"header=\"\"\"Adapted from: http://wise-obs.tau.ac.il/~orlyg/cooling/CIEcool/tab13.txt\n", | ||
"Title: Time-Dependent Ionization in Radiatively Cooling Gas \n", | ||
"Authors: Orly Gnat and Amiel Sternberg\n", | ||
"Table: CIE Cooling Efficiencies\n", | ||
"-----------------------------------------------------------------------------------------\n", | ||
"Our assumed Z=1 solar abundances are listed in Table 1.\n", | ||
"-----------------------------------------------------------------------------------------\\n\"\"\"" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "0abce35b-6775-4c43-b6a8-2ed0cd6f0e1c", | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"for i, z in enumerate([1e-3, 1e-2, 1e-1, 1, 2]):\n", | ||
" np.savetxt(f\"gnat-sternberg.cooling_{z:.1g}Z\",\n", | ||
" np.log10(gnat_sternberg_data[:,[0, i + 1]]),\n", | ||
" header=header + f\"log10 T [K] Z={z:.1g} log10 Lambda_N [erg cm^3/s]\",\n", | ||
" fmt=(\"%1.2f\",\"%2.4f\"))" | ||
] | ||
}, | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.