From d6bd19fa292d3817623663096eceb706c138f92d Mon Sep 17 00:00:00 2001 From: Alexander Holas <70367168+AlexHls@users.noreply.github.com> Date: Wed, 1 Nov 2023 03:57:36 +0100 Subject: [PATCH 1/3] update plasma docs --- docs/io/configuration/components/plasma.rst | 26 +++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/docs/io/configuration/components/plasma.rst b/docs/io/configuration/components/plasma.rst index bf0b5b3579d..f62c30d93bd 100644 --- a/docs/io/configuration/components/plasma.rst +++ b/docs/io/configuration/components/plasma.rst @@ -16,10 +16,10 @@ ionization equilibrium and level population calculations (see :ref:`plasma` for The radiative rates describe how to calculate the :math:`J_\textrm{blue}` needed for the :ref:`nlte` calculations and :ref:`macroatom` calculations. There are three options for ``radiative_rates_type``: -1) ``lte``, in which +1) ``blackbody``, in which :math:`J_\textrm{blue} = \textrm{Blackbody}(T_\textrm{rad})` -2) ``nebular`` in which +2) ``dilute-blackbody`` in which :math:`J_\textrm{blue} = W \times \textrm{Blackbody}(T_\textrm{rad})` 3) ``detailed`` in which the :math:`J_\textrm{blue}` @@ -32,6 +32,28 @@ version of ``macroatom`` in which only downward transitions are allowed (see :re Finally, ``w_epsilon`` describes the dilution factor to use to calculate :math:`J_\textrm{blue}` that are 0, which causes problems with the code (so :math:`J_\textrm{blue}` are set to a very small number). +Continuum Interaction +^^^^^^^^^^^^^^^^^^^^^ + +NLTE +^^^^ + +.. code-block:: yaml + + plasma: + link_t_rad_t_electron: 1.0 + continuum_interaction: + species: + - H I + - H II + - He I + - He II + enable_adiabatic_cooling: True + +This will add continuum interactions for all specified species. Setting :math:`T_\textrm{rad} = T_\textrm{electron}` through +``link_t_rad_t_electron: 1.0`` is recommended to enforce LTE (unless the simulation uses NLTE treatment). +``enable_adiabatic_cooling`` enables adiabatic cooling. + NLTE ^^^^ From 84c122fb6daa6c9f68fca61fc5ad8523e5163569 Mon Sep 17 00:00:00 2001 From: Alexander Holas Date: Tue, 31 Oct 2023 23:26:13 -0400 Subject: [PATCH 2/3] Update mailmap --- .mailmap | 1 + 1 file changed, 1 insertion(+) diff --git a/.mailmap b/.mailmap index e8de40e3ee3..0525b2ec384 100644 --- a/.mailmap +++ b/.mailmap @@ -5,6 +5,7 @@ Alexander Holas Alexander Holas Alexander Holas AlexHls <70367168+AlexHls@users.noreply.github.com> Alexander Holas AlexHls +Alexander Holas <70367168+AlexHls@users.noreply.github.com> Alice Harpole Alice Harpole Alice Harpole From fc730a7738cd72f94b4c569dc1fc5d2af20007e6 Mon Sep 17 00:00:00 2001 From: Alexander Holas Date: Wed, 1 Nov 2023 10:35:36 -0400 Subject: [PATCH 3/3] Fix typo --- docs/io/configuration/components/plasma.rst | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/docs/io/configuration/components/plasma.rst b/docs/io/configuration/components/plasma.rst index f62c30d93bd..bef23b8110c 100644 --- a/docs/io/configuration/components/plasma.rst +++ b/docs/io/configuration/components/plasma.rst @@ -35,9 +35,6 @@ causes problems with the code (so :math:`J_\textrm{blue}` are set to a very smal Continuum Interaction ^^^^^^^^^^^^^^^^^^^^^ -NLTE -^^^^ - .. code-block:: yaml plasma: @@ -66,4 +63,4 @@ NLTE The NLTE configuration currently allows setting ``coronal_approximation``, which sets all :math:`J_\textrm{blue}` to 0. This is useful for debugging with :term:`chianti` for example. Furthermore, one can enable 'classical_nebular' to set all :math:`\beta_\textrm{Sobolev}` to 1. Both options are used for checking with other codes and should not be enabled in -normal operations. \ No newline at end of file +normal operations.