Skip to content

Commit

Permalink
Merge e285394 into 7f31e2b
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacgsmith authored Feb 9, 2021
2 parents 7f31e2b + e285394 commit 8f204bc
Show file tree
Hide file tree
Showing 29 changed files with 50 additions and 559 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ASCII Format

To use a stratified ejecta composition in TARDIS, the elemental abundances may
be specified on a per-cell basis via an external ASCII file (similar to setting
up a :doc:`custom density <densitycust>` profile). An ASCII file that could
up a :ref:`custom density <densitycust>` profile). An ASCII file that could
work on a mesh with ten cells should be formatted like this:

.. literalinclude:: abund.dat
Expand Down
443 changes: 0 additions & 443 deletions docs/using/components/models/csy/csvy_test.ipynb

This file was deleted.

File renamed without changes.
28 changes: 0 additions & 28 deletions docs/using/components/models/examples/examples.rst

This file was deleted.

43 changes: 0 additions & 43 deletions docs/using/components/models/examples/index.rst

This file was deleted.

33 changes: 0 additions & 33 deletions docs/using/components/models/examples/modelconfig.rst

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -1214,7 +1214,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.8"
"version": "3.7.8"
}
},
"nbformat": 4,
Expand Down
8 changes: 8 additions & 0 deletions docs/using/components/models/examples/tardis_example.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,11 @@ The following YAML file summarizes the tardis_example setup:
treatments and the reduced abundance set, this TARDIS setup serves for
illustrative purposes and not for detailed SNe Ia spectral synthesis
calculations.

See the following link for an example of running TARDIS with this setup in a Jupyter notebook:

.. toctree::
:maxdepth: 1

run_simple_example

50 changes: 40 additions & 10 deletions docs/using/components/models/index.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
*****
Model
*****
******
Models
******

TARDIS requires a model of the homologously expanding ejecta in order to run a simulation.
A model will include information like the velocity shell structure, abundances, density, etc.
Expand All @@ -11,6 +11,37 @@ the CSVY file format and :ref:`here <config-file>` for a link to the csvy_model
.. note::
We highly recommend using the cleaner CSVY format.


The following provides some example setups for a number of typical TARDIS use
cases. You can use these examples as blueprints for your own TARDIS
applications.


Simple Parametrized Models
==========================

These setups specify the ejecta solely via the YAML configuration file:

.. toctree::
:maxdepth: 2

examples/tardis_example


API demonstrations
==================

An example on how to use the formal integrator with tardis:

* :ref:`integrator`


Detailed Explosion Models
=========================

Coming soon


CSVY Model
==========

Expand All @@ -33,7 +64,7 @@ Example CSVY Model

Below we provide an example model.csvy file.

.. literalinclude:: examples/csvy_full_rad.csvy
.. literalinclude:: csvy_full_rad.csvy

Using the Config Model
======================
Expand All @@ -46,10 +77,9 @@ see the following links:
.. toctree::
:maxdepth: 1

examples/modelconfig
examples/densityexp
examples/densitypow
examples/densitycust
examples/abundanceuni
examples/abundancecust
densityexp/densityexp
densitypow/densitypow
densitycust/densitycust
abundanceuni/abundanceuni
abundancecust/abundancecust

0 comments on commit 8f204bc

Please sign in to comment.