Skip to content

Commit

Permalink
Documentation for using/getting a new CARSUS atom_data file for STARDIS
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanGroneck committed Nov 2, 2024
1 parent e151a7b commit 24ad63b
Showing 1 changed file with 75 additions and 0 deletions.
75 changes: 75 additions & 0 deletions Carsus_atomic_data/Custom_atomic_data.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### **Using Your Own Atomic Data**\n",
"##### To run a simulation, STARDIS requires an atomic data file that has information on the properties and quntities of atoms (and possibly elements) in the stellar model you want to use. While [\"kurucz_cd23_chianti_H_He.h5\"](https://dev.azure.com/tardis-sn/TARDIS/_apis/git/repositories/tardis-refdata/items?path=atom_data/kurucz_cd23_chianti_H_He.h5&resolveLfs=true) is the default atomic data used (and recomended) by STARDIS, you can create and use other atomic data files by using [CARSUS](https://tardis-sn.github.io/carsus/). For more information of using CARSUS you can access its [documentation](https://tardis-sn.github.io/carsus/index.html)."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Relevant CARSUS Data to Collect\n",
"While CARSUS accumulates all sorts of data when compiling the atomic data files, not everything it can incude is neccisary or relevant for running STARDUS. Here is a list of what data/readers you should make sure to include when running CARSUS:\n",
"- [atomic weights & ionization energy from NIST](https://tardis-sn.github.io/carsus/io/nist.html)\n",
"- [Robert Kurucz’s Atomic Linelist (GFALL)](https://tardis-sn.github.io/carsus/io/gfall.html)\n",
"- [atomic and molecular transitions from VALD](https://tardis-sn.github.io/carsus/io/vald.html)\n",
"- [Molecular formation from Barklem & Collet 2016](https://tardis-sn.github.io/carsus/io/barklem2016.html)\n",
"\n",
"Note that including other data won't harm your simulation, but nothing else is strictly necessarily"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Use CARSUS and follow their documentation to get a data file:\n",
"### https://tardis-sn.github.io/carsus/"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"##### To use new atomic data file in a simulation, add/edit the line in your yaml file `atom_data: <path/to/atomic_data>`. This path can be *either* the relative or absolute path"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Your atom data should have the file extension '.h5'. The file 'kurucz_cd23_chianti_H_He.h5' referenced below is the default atomic_data used by STARDIS,.\n",
"``` yaml\n",
"stardis_config_version: 1.0\n",
"atom_data: kurucz_cd23_chianti_H_He.h5 # <----- put the relative or absolute path here\n",
"model:\n",
"...\n",
"```"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "stardis",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.4"
}
},
"nbformat": 4,
"nbformat_minor": 2
}

0 comments on commit 24ad63b

Please sign in to comment.