Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update installation instructions and small changes in physics_of_stardis #193

Merged
merged 4 commits into from
Jun 18, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions docs/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,16 @@ Setting Up the Environment
* STARDIS packages and dependencies are distributed only through the `conda <https://docs.conda.io/en/latest/>`__ package management system, therefore installation requires a conda distribution to be installed on your system. STARDIS uses `Miniconda <https://conda.io/projects/conda/en/latest/user-guide/install/index.html>`__ or `Mamba <https://mamba.readthedocs.io/en/latest/installation.html>`__ by default. Other distributions are untested.

STARDIS uses exclusively the packages in the TARDIS enviroment, as well
as using the TARDIS code itself. However, since STARDIS can be sensitive
to changes in TARDIS, we strongly suggest that users create a separate
environment for STARDIS that pins the TARDIS version. To do this, run
as using the TARDIS code itself. It uses a shared environment with TARDIS,
as well as the TARDIS code itself. We strongly suggest that users create a separate
environment for STARDIS. To do this, run
the following in the terminal (replacing ``{platform}`` with
``linux-64``, ``linux-64-cuda``, or ``osx-64`` as applicable).

.. code-block:: bash

$ cd <path-to-stardis-directory>
$ wget -q https://raw.githubusercontent.com/tardis-sn/tardis/master/conda-{platform}.lock
$ conda create --name stardis --file conda-{platform}.lock
$ conda activate stardis
$ pip install git+https://github.com/tardis-sn/tardis.git
Expand All @@ -35,6 +36,7 @@ If you are using Mamba, the steps are similar:
.. code-block:: bash

$ cd <path-to-stardis-directory>
$ wget -q https://raw.githubusercontent.com/tardis-sn/tardis/master/conda-{platform}.lock
$ mamba create --name stardis --file conda-{platform}.lock
$ mamba activate stardis
$ pip install git+https://github.com/tardis-sn/tardis.git
Expand Down
4 changes: 2 additions & 2 deletions docs/physics/physics_of_stardis.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Physics of STARDIS
Model and Plasma
================

STARDIS breaks down the stellar atmosphere into spherical shells as shown below and approximates that the plasma state is uniform throughout each shell. We rely on the MARCS code, a code that generates models of stellar atmospheres, to determine the temperatures, elemental abundances, and densities in each shell. The existing TARDIS plasma infrastructure determines the rest of the plasma state, namely the excitation and ionization properties and transition rates.
STARDIS breaks down the stellar atmosphere into spherically symmetric depth points as shown below and approximates that the plasma state is uniform at each radius or depth point. We ingest a model atmosphere from a third party such as the MARCS code, a code that generates models of stellar atmospheres, to initialize the temperatures, chemical abundances, and densities at each depth point. The existing TARDIS plasma infrastructure determines the rest of the plasma state, namely the excitation and ionization properties and transition rates of the plasma.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a sentence or two about depth points.


.. image:: media/model_and_plasma-1.png
:width: 500 px
Expand All @@ -22,7 +22,7 @@ To determine an output spectrum, we need to understand how photons of light move
Opacity Sources
---------------

The first four of these interactions are called continuum interactions, as they affect light at a large range of frequencies. Line interactions, on the other hand, only occur with light around specific frequencies, corresponding to the electron’s jump in energy. These are called *resonant frequencies*.
The first four of these interactions are called continuum interactions, as they affect light at a large range of frequencies. Line interactions, on the other hand, only occur with light around specific frequencies, corresponding to difference in potential energy of an electron before and after it transitions between states. These are called *resonant frequencies*.

^^^^^^^^^^^^^^^^^^^^^
Bound-Free Absorbtion
Expand Down
8 changes: 4 additions & 4 deletions docs/quickstart/quickstart.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"\n",
"from stardis.base import run_stardis\n",
"\n",
"from astropy import units as u, constants as const"
"from astropy import units as u"
]
},
{
Expand Down Expand Up @@ -93,7 +93,7 @@
"source": [
"STARDIS uses [YAML](https://yaml.org/) files for the configuration. The configuration file called `stardis_example.yml` used here can be found\n",
"[here](https://github.com/tardis-sn/stardis/tree/main/docs/quickstart),\n",
"along with any other files from this Quickstart. Below, we present an\n",
"along with the other files used in this Quickstart notebook. Below, we present an\n",
"example for instructions for customizing the configuration for your\n",
"needs.\n",
"\n",
Expand All @@ -102,7 +102,7 @@
"atom_data: <filepath to atomic data file>\n",
"model:\n",
" type: marcs # more options will be available in the future\n",
" fname: <filepath to MARCS model file>\n",
" fname: <filepath to model file>\n",
" final_atomic_number: <atomic number of largest element considered> # may be up to 30\n",
"opacity:\n",
" file: # reads a bound-free or free-free opacity file, omit if none\n",
Expand Down Expand Up @@ -259,7 +259,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.17"
"version": "3.11.5"
},
"toc": {
"base_numbering": 1,
Expand Down
Loading