Skip to content

Commit

Permalink
Update config.rst [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
danieljprice committed Aug 4, 2023
1 parent 5a57aea commit 0dc559b
Showing 1 changed file with 51 additions and 62 deletions.
113 changes: 51 additions & 62 deletions docs/config.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,11 @@ number of particles use:
make SETUP=disc MAXP=10000000

Setup block
~~~~~~~~~~~
-----------

The compile-time configuration of Phantom is specified using the SETUP
block in `build/Makefile_setups <https://github.com/danieljprice/phantom/blob/master/build/Makefile_setups>`__. For example the default disc setup is
“disc”:

::
“disc”::

ifeq ($(SETUP), disc)
# locally isothermal gas disc
Expand All @@ -37,59 +35,59 @@ particular physics. Otherwise these are specified using variables in
this block as follows:

Pre-cooked setups
~~~~~~~~~~~~~~~~~
-----------------
For many applications a :doc:`pre-cooked SETUP block <setups>` already exists. View the full list :doc:`here <setups>`. You can also override any of the compile-time settings manually, using the options below.

Code modules
------------

+-----------------+-----------------+-----------------+-----------------+
| *Variable* | *Setting* | *Default value* | *Description* |
+=================+=================+=================+=================+
| SETUPFILE | .f90 file(s) | setup_unifdis.F | The setup |
| | | 90 | routine and any |
| | | | auxiliary |
| | | | routines needed |
| | | | by phantomsetup |
+-----------------+-----------------+-----------------+-----------------+
| LINKLIST | .f90 file(s) | linklist.F90 | The neighbour |
| | | | finding |
| | | | algorithm |
| | | | (fixed grid, |
| | | | fixed |
| | | | cylindrical |
| | | | grid or kdtree) |
+-----------------+-----------------+-----------------+-----------------+
| ANALYSIS | .f90 file(s) | analysis_dthead | (optional) The |
| | | er.f90 | analysis |
| | | | routine and any |
| | | | auxiliary |
| | | | routines used |
| | | | by the |
| | | | phantomanalysis |
| | | | utility |
+-----------------+-----------------+-----------------+-----------------+
| SRCTURB | .f90 file(s) | forcing_ouproce | (optional) |
| | | ss.f90 | Turbulence |
| | | | driving routine |
| | | | (triggers |
| | | | -DDRIVING) |
+-----------------+-----------------+-----------------+-----------------+
| SRCINJECT | .f90 file(s) | inject_rochelob | (optional) |
| | | e.f90 | Module handling |
| | | | particle |
| | | | injection |
| | | | (triggers |
| | | | -DINJECT_PARTIC |
| | | | LES) |
+-----------------+-----------------+-----------------+-----------------+
| MODFILE | .f90 file(s) | moddump.f90 | (optional) |
| | | | Routine used by |
| | | | moddump utility |
| | | | (to modify an |
| | | | existing dump |
| | | | file) |
+-----------------+-----------------+-----------------+-----------------+
+-----------------+-----------------+-----------------------+-----------------+
| *Variable* | *Setting* | *Default value* | *Description* |
+=================+=================+=======================+=================+
| SETUPFILE | .f90 file(s) | setup_unifdis.F90 | The setup |
| | | | routine and any |
| | | | auxiliary |
| | | | routines needed |
| | | | by phantomsetup |
+-----------------+-----------------+-----------------------+-----------------+
| LINKLIST | .f90 file(s) | linklist.F90 | The neighbour |
| | | | finding |
| | | | algorithm |
| | | | (fixed grid, |
| | | | fixed |
| | | | cylindrical |
| | | | grid or kdtree) |
+-----------------+-----------------+-----------------------+-----------------+
| ANALYSIS | .f90 file(s) | analysis_dtheader.f90 | (optional) The |
| | | | analysis |
| | | | routine and any |
| | | | auxiliary |
| | | | routines used |
| | | | by the |
| | | | phantomanalysis |
| | | | utility |
+-----------------+-----------------+-----------------------+-----------------+
| SRCTURB | .f90 file(s) | forcing.f90 | (optional) |
| | | | Turbulence |
| | | | driving routine |
| | | | (triggers |
| | | | -DDRIVING) |
+-----------------+-----------------+-----------------------+-----------------+
| SRCINJECT | .f90 file(s) | inject_rochelobe.f90 | (optional) |
| | | | Module handling |
| | | | particle |
| | | | injection |
| | | | (triggers |
| | | | -DINJECT_PARTIC |
| | | | LES) |
+-----------------+-----------------+-----------------------+-----------------+
| MODFILE | .f90 file(s) | moddump.f90 | (optional) |
| | | | Routine used by |
| | | | moddump utility |
| | | | (to modify an |
| | | | existing dump |
| | | | file) |
+-----------------+-----------------+-----------------------+-----------------+

Code performance and accuracy
-----------------------------
Expand Down Expand Up @@ -250,15 +248,6 @@ or put this in the SETUP block:

::

ifeq ($(SETUP), isodisc)
FPPFLAGS= -DDISC_VISCOSITY -DSORT_RADIUS_INIT -DISOTHERMAL
ifeq ($(SETUP), disc)
...
IND_TIMESTEPS=yes

or add it as a preprocessor flag:

::

ifeq ($(SETUP), isodisc)
FPPFLAGS= -DDISC_VISCOSITY -DSORT_RADIUS_INIT -DISOTHERMAL -DIND_TIMESTEPS
...

0 comments on commit 0dc559b

Please sign in to comment.