-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial documentation added to 'under development' section.
Changed amplitude variable name for cooling function.
- Loading branch information
Showing
4 changed files
with
47 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
.. _newtonian_cooling: | ||
|
||
Newtonian Cooling | ||
----------------------- | ||
|
||
We have added an initial implementation of Newtonian cooling to the code that adds a term to the thermal energy equation of the form | ||
|
||
.. math:: | ||
:label: newton | ||
|
||
\frac{\partial \Theta}{\partial t} = \frac{\Delta\Theta_{\mathrm{eq}}-\Theta}{\tau_\mathrm{eq}}. | ||
|
||
Here, :math:`\Delta\Theta_\mathrm{eq}` is a target temperature/entropy variation about the background state and :math:`\tau_\mathrm{eq}` is the cooling timescale. Newtonian cooling can be turned on by setting ``newtonian_cooling=.true.`` in the ``physical_controls_namelist``, and the cooling time is similarly controlled by specifying the value of ``newtonian_cooling_time``. | ||
|
||
At present, :math:`\Delta\Theta_\mathrm{eq}` is allowed to take one of two forms. These are controlled by setting the ``newtonian_cooling_type`` variable in ``physical_controls_namelist``. A value of 1 yields | ||
|
||
.. math:: | ||
:label: ncteq1 | ||
|
||
\Delta\Theta_\mathrm{eq} = A, | ||
|
||
and a value of 2 yields | ||
|
||
.. math:: | ||
:label: ncteq2 | ||
|
||
\Delta\Theta_\mathrm{eq} = A\mathrm{cos}(\theta)\mathrm{sin}(\phi). | ||
|
||
The amplitude :math:`A` is controlled by setting the variable ``newtonian_cooling_tvar_amp``. As an example, to use Newtonian cooling, one might add the following four lines to the ``physical_controls_namelist``. | ||
|
||
:: | ||
|
||
&physical_controls_namelist | ||
newtonian_cooling = .true. | ||
newtonian_cooling_type = 1 | ||
newtonian_cooling_time = 1.0d0 | ||
newtonian_cooling_tvar_amp = 1.0d0 | ||
/ | ||
|
||
|
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 |
---|---|---|
|
@@ -34,8 +34,6 @@ scalars respectively. | |
|
||
See `tests/chi_scalar` for example input files. | ||
|
||
|
||
|
||
|
||
.. include:: newtonian_cooling.txt | ||
|
||
|
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