geomeTRIC
qccompute.adapters.geometric.GeometricAdapter()
¶
Adapter for geomeTRIC.
Source code in src/qccompute/adapters/geometric.py
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | |
supported_calctypes = [CalcType.optimization, CalcType.transition_state]
class-attribute
instance-attribute
¶
Supported calculation types.
program_version(*args) -> str
¶
Get the program version.
Source code in src/qccompute/adapters/geometric.py
72 73 74 | |
compute_data(input_data: ProgramInput, update_func: Callable | None = None, update_interval: float | None = None, propagate_wfn: bool = True, **kwargs) -> tuple[OptimizationData, str]
¶
Compute the requested calculation.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input_data |
ProgramInput
|
The qcdata ProgramInput object for a computation. |
required |
propagate_wfn |
bool
|
Whether to propagate the wavefunction between steps of the optimization. |
True
|
Source code in src/qccompute/adapters/geometric.py
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 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 | |
Recursive program input¶
from qcdata import ProgramInput, ProgramSpec, Structure
from qccompute import compute
structure = Structure.open("molecule.xyz")
input_data = ProgramInput(
program="geometric",
calctype="optimization",
structure=structure,
keywords={"maxiter": 250},
subprograms=[
ProgramSpec(
program="terachem",
calctype="gradient",
model={"method": "wb97x-d3", "basis": "def2-svp"},
),
],
)
output = compute(input_data)
output.results.final_structure
output.results.trajectory[0].results.provenance # Gradient producer
output.execution.wall_time # Optimizer execution time
Each child has its own model, keywords, native files, command-line arguments, and metadata. Additional role-named structures are passed to child calculations.