Skip to content

Commit 5dae361

Browse files
authored
Merge pull request #13 from jaclark5/update
Add 'adding an eos' section to setting up page and links to eos and c…
2 parents 24d576b + 74c9892 commit 5dae361

File tree

5 files changed

+30
-2
lines changed

5 files changed

+30
-2
lines changed

docs/eos.rst

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ Here we list list the available equations of state and the function used to acce
66

77
.. autofunction:: despasito.equations_of_state.eos
88

9+
10+
.. _eos-types:
11+
912
Available EOS
1013
-------------
1114

docs/getting_started.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Install Package
55
---------------
66
.. note:: DESPASITO is not yet available on pip or conda-forge, but it is a package that can be installed in your python environment.
77

8-
**Step 1:** Download the master branch from our github page as a zip file, or clone it with gitand save in your desired directory.
8+
**Step 1:** Download the master branch from our github page as a zip file, or clone it with git and save in your desired directory.
99

1010
**Step 2:** Install with ``pip install .``
1111

docs/index.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ First open-source application for thermodynamic calculations and parameter fitti
1212

1313
The first facet is a means to evaluate the SAFT-:math:`\gamma`-Mie EOS for binary vapor-liquid equilibria (VLE). This framework allows easy implementation of more advanced thermodynamic calculations as well as additional forms of SAFT or other equations of state. Feel free to contribute!
1414

15-
The second facet is parameterization, not only of the equation of state (EOS) but also for simulations. The SAFT-:math:`\gamma`-Mie formalism is an attractive source of simulation parameters as it offers a means to directly link the intermolecular potential with thermodynamic properties. This application has the ability to fit EOS parameters to experimental thermodynamic data in a top down approach for self and cross interaction parameters. Once published, we will also provide an scripts to estimate cross interaction parameters for SAFT-:math:`\gamma`-Mie from DFT calculations. It should be noted that it is recommended to additionally fine tune simulation parameters in an iterative fashion, but previous works have found close agreement with those fit to the EOS.
15+
The second facet is parameterization, not only of the equation of state (EOS) but also for simulations. The SAFT-:math:`\gamma`-Mie formalism is an attractive source of simulation parameters as it offers a means to directly link the intermolecular potential with thermodynamic properties. This application has the ability to fit EOS parameters to experimental thermodynamic data in a top down approach for self and cross interaction parameters. Once published, we will also provide scripts to estimate cross interaction parameters for SAFT-:math:`\gamma`-Mie from DFT calculations. It should be noted that it is recommended to additionally fine tune simulation parameters in an iterative fashion, but previous works have found close agreement with those fit to the EOS.
1616

1717
.. toctree::
1818
:maxdepth: 1

docs/settingup.rst

+18
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
Setting Up a Thermodynamic Calculation
33
======================================
44

5+
.. contents:: :local:
6+
57
Basic Use
68
#########
79
In this tutorial we will assume the user is creating the necessary files for the python module use of this package (rather than as an imported library). A basic calculation requires 2 files:
@@ -29,6 +31,8 @@ The first three lines are used in producing our EOS object. The `bead_config` li
2931

3032
The last 4 lines for thermodynamic calculation instructions, although only `calculation_type` is actually required. The other lines depend on the calculation type being used. In this case, defining the pressure is optional, if it was missing DESPASITO would assume atmospheric pressure.
3133

34+
See :ref:`calc-types` for a list of available types of thermodynamic calculations.
35+
3236
`EOSgroup.json`::
3337
3438
{
@@ -80,3 +84,17 @@ If you checked our examples folder in DESPASITO, you might have noticed that the
8084
#. In the command line, include the `-p` option to define the absolute or relative path.
8185

8286
Other options for controlling the output are also available in the command line implementation. Type `python -m despasito -h` to discover more.
87+
88+
Specifying Equation of State (EOS)
89+
##################################
90+
91+
By default, DESPASITO used the SAFT-:math:`\gamma`-Mie equation of state. However, you can change the EOS by adding the "eos" option to the `input.json` file. This option is passed to the :func:`~despasito.equations_of_state.eos` function, an example of this can be found in the Peng-Robinson calculations in the `examples` directory. The syntax for an equation of state is module.eos, where module is the family the eos belongs to, and eos is the equation of state. For Peng-Robinson this entry would be,
92+
93+
"eos": "cubic.peng_robinson"
94+
95+
and for SAFT-:math:`\gamma`-Mie,
96+
97+
"eos": "saft.gamma_mie"
98+
99+
See :ref:`eos-types` for a list of available equations of state.
100+

docs/thermo.rst

+7
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,13 @@ Thermodynamic Calculations
44

55
.. autofunction:: despasito.thermodynamics.thermo
66

7+
.. _calc-types:
8+
79
Available Calculation Types
810
---------------------------
911

12+
Click below!
13+
1014
.. currentmodule:: despasito
1115
.. autosummary::
1216
:toctree: _autosummary
@@ -15,6 +19,9 @@ Available Calculation Types
1519

1620
Supporting Thermodynamic Functions
1721
----------------------------------
22+
23+
Click below!
24+
1825
.. autosummary::
1926
:toctree: _autosummary
2027

0 commit comments

Comments
 (0)