Skip to content

Commit

Permalink
more docs and cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
maxscheurer committed May 4, 2021
1 parent ef3da3e commit d3267fa
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 21 deletions.
24 changes: 4 additions & 20 deletions adcc/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,10 @@ def run_adc(data_or_matrix, n_states=None, kind="any", conv_tol=None,
virtuals for both the MP and ADC methods performed). For ways to define
these see the description in :py:class:`adcc.ReferenceState`.
environment : bool or list or dict, optional
The keywords to specify how coupling to an environment model,
e.g. PE, is treated. For details see :ref:`environment`.
Other parameters
----------------
max_subspace : int, optional
Expand Down Expand Up @@ -513,26 +517,6 @@ def setup_environment(matrix, environment):
Internal function called from run_adc.
"""
valid_envs = ["ptss", "ptlr", "linear_response"]
# valid_solvent_schemes = {
# "hf": """
# only couple via the 'solvated' orbitals of the HF reference
# state, no additional matrix terms or perturbative corrections
# are used automatically
# """,
# "ptss": """
# perturbative state-specific (ptSS) correction, computed based on
# the difference density between the ground and excited state
# """,
# "ptlr": """
# perturbative linear-response (ptLR) correction, computed based on
# the transition density between the ground and excited state
# """,
# # NOTE: could also be called 'lr'...
# "postscf": """
# iterative coupling to the solvent via a CIS-like coupling
# density matrix, the term is added to the ADC matrix
# """,
# }
hf = matrix.reference_state
if hf.environment and environment is None:
raise InputError(
Expand Down
6 changes: 5 additions & 1 deletion docs/calculations.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ to be applied. Arbitrary combinations of these variants,
e.g. applying **both** CVS and FC approximations are supported as well.
See :ref:`frozen-spaces` for details.

Calculations with :ref:`environment` models are also supported.
Calculations with :ref:`environment` are also supported.

General ADC(n) calculations
---------------------------
Expand Down Expand Up @@ -719,6 +719,10 @@ the following table:
| | | the additional term is added to the ADC matrix | |
+------------------------------------------------+-----------------------+--------------------------------------------------------------------------+-----------------------------------------------+

The scheme can be selected with the ``environment`` parameter in :func:`adcc.run_adc` (and also in the short-hand method functions, e.g. :func:`adcc.adc2`).
If a PE-SCF ground state is found but no ``environment`` parameter is specified, an error will be thrown.
Specifying ``environment=True`` will enable both perturbative corrections, equivalent to ``environment=["ptss", "ptlr"]``.
Combining ``"ptlr"`` with ``"linear_response"`` is not allowed since both describe the same physical effect in a different manner.

The following example computes PE-ADC(2) excited states of para-nitroaniline in the presence of six water molecules
a) with perturbative corrections and
Expand Down

0 comments on commit d3267fa

Please sign in to comment.