CREST
Danger
Solvation using CREST's new default runtime, tblite
, is current buggy. For details see this issue. According to this comment only gfnff
and gfn0
work correctly with either alpb
or gbsa
solvent option. If you want to use solvation you need to use the --legacy
mode which uses xtb
instead of tblite
for the calculation backend. Some progress is being made on this issue in this PR.
qcop.adapters.crest.CRESTAdapter
¶
Adapter for CREST.
Note
The ProgramInput.keywords
attribute is used to create the input file for
CREST. This means that the structure of the keywords
attribute should match
that of CREST's input specification.
Keywords such as method, charge, and uhf (which are stored on the Model
and
Structure
; uhf is multiplicity - 1
) will be added to the input file
automatically.
supported_calctypes
class-attribute
instance-attribute
¶
supported_calctypes = [
energy,
gradient,
hessian,
optimization,
conformer_search,
]
Supported calculation types.
program_version
¶
program_version(stdout: Optional[str] = None) -> str
Get the program version.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
stdout |
Optional[str]
|
The stdout from the program. |
None
|
Returns:
Type | Description |
---|---|
str
|
The program version. |
Source code in qcop/adapters/crest.py
49 50 51 52 53 54 55 56 57 58 59 60 |
|
compute_results
¶
compute_results(
inp_obj: ProgramInput,
update_func: Optional[Callable] = None,
update_interval: Optional[float] = None,
collect_rotamers: bool = False,
**kwargs
) -> tuple[
Union[
SinglePointResults,
OptimizationResults,
ConformerSearchResults,
],
str,
]
Execute CREST on the given input.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
inp_obj |
ProgramInput
|
The qcio ProgramInput object for a computation. |
required |
update_func |
Optional[Callable]
|
A function to call with the stdout at regular intervals. |
None
|
update_interval |
Optional[float]
|
The interval at which to call the update function. |
None
|
collect_rotamers |
bool
|
Collect rotamers if doing a conformer_search. Defaults to False since rotamers are usually not of interest and there will be many. |
False
|
Returns:
Type | Description |
---|---|
tuple[Union[SinglePointResults, OptimizationResults, ConformerSearchResults], str]
|
A tuple of ConformerSearchResults and the stdout str. |
Source code in qcop/adapters/crest.py
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 |
|