|
| 1 | +************ |
| 2 | +``eos_cell`` |
| 3 | +************ |
| 4 | + |
| 5 | +.. index:: eos_cell |
| 6 | + |
| 7 | +``eos_cell`` simply calls the equation of state on an input density, temperature, |
| 8 | +and composition, and then outputs the full thermodynamic state. This is mainly |
| 9 | +used to understand the thermodynamics one might encounter in a simulation |
| 10 | +when using a particular EOS. |
| 11 | + |
| 12 | +Getting Started |
| 13 | +=============== |
| 14 | + |
| 15 | +The ``eos_cell`` code is located in |
| 16 | +``Microphysics/unit_test/eos_cell``. An inputs file which sets the |
| 17 | +default parameters for your thermodynamic state is needed to run the |
| 18 | +test. |
| 19 | + |
| 20 | +Setting the thermodynamics |
| 21 | +-------------------------- |
| 22 | + |
| 23 | +The parameters that affect the thermodynamics are: |
| 24 | + |
| 25 | +* ``unit_test.density`` : the initial density |
| 26 | + |
| 27 | +* ``unit_test.temperature`` : the initial temperature |
| 28 | + |
| 29 | +* ``unit_test.small_temp`` : the low temperature cutoff used in the equation of state |
| 30 | + |
| 31 | +* ``unit_test.small_dens`` : the low density cutoff used in the equation of state |
| 32 | + |
| 33 | +The composition can be set in the same way as in ``burn_cell``, either |
| 34 | +by setting each mass fraction explicitly via the parameters, |
| 35 | +``unit_test.X1``, ``unit_test.X2``, ..., or forcing them to be all |
| 36 | +equal via ``unit_test.uniform_xn=1``. |
| 37 | + |
| 38 | + |
| 39 | +Building and Running the Code |
| 40 | +============================= |
| 41 | + |
| 42 | +The code can be built simply as: |
| 43 | + |
| 44 | +.. prompt:: bash |
| 45 | + |
| 46 | + make |
| 47 | + |
| 48 | +.. note:: |
| 49 | + |
| 50 | + Even though there are no reactions, a network is still required, |
| 51 | + and can be set via the ``NETWORK_DIR`` build variable. By default, |
| 52 | + the ``aprox13`` network is used. |
| 53 | + |
| 54 | + The network choice serves only to set the composition, and a |
| 55 | + ``general_null`` network may also be used. |
| 56 | + |
| 57 | +The build process will automatically create links in the build |
| 58 | +directory to any required EOS table. |
| 59 | + |
| 60 | +To run the code, in the ``eos_cell`` directory run:: |
| 61 | + |
| 62 | + ./main3d.gnu.ex inputs_eos |
| 63 | + |
| 64 | +where ``inputs_eos`` is the provided inputs file. You may edit the |
| 65 | +thermodynamic state in that file prior to running. |
| 66 | + |
| 67 | + |
| 68 | +Output |
| 69 | +====== |
| 70 | + |
| 71 | +All output is directed to ``stdout`` and simply lists the entries in the |
| 72 | +full ``eos_t`` datatype. |
0 commit comments