Basic Calculation
Basic calculation workflow - perform quantum chemical calculations.
BasicCalculationResult
dataclass
BasicCalculationResult(
workflow_data: dict[str, Any],
workflow_type: str,
workflow_uuid: str,
complete: bool = True,
)
Bases: WorkflowResult
Result from a basic-calculation workflow.
calculation
property
Lazily fetched Calculation object with full molecule data.
molecule
property
The final molecule geometry with all computed properties.
molecules
property
All molecules from the calculation (e.g., optimization trajectory).
spin_densities
property
Spin densities on each atom (for open-shell systems).
frequencies
property
Vibrational frequencies in cm^-1 (if frequency calculation was performed).
xrd_peaks
property
XRD reflections as (h, k, l, intensity) tuples.
band_structure
property
Electronic band structure and DOS (periodic systems only).
density_of_states
property
Total DOS as (energy in Hartree, k-weighted count) pairs (Fermi level = 0).
elastic_tensor
property
elastic_tensor: (
tuple[
tuple[float, float, float, float, float, float],
tuple[float, float, float, float, float, float],
tuple[float, float, float, float, float, float],
tuple[float, float, float, float, float, float],
tuple[float, float, float, float, float, float],
tuple[float, float, float, float, float, float],
]
| None
)
Elastic stiffness matrix in GPa (Voigt order: xx yy zz yz xz xy).
optimization_energies
Energies for each optimization step.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
relative
|
bool
|
If True, return relative energies in kcal/mol (relative to the lowest energy step). If False (default), return absolute energies in Hartree. |
False
|
Returns:
| Type | Description |
|---|---|
list[float]
|
List of energies for each optimization step. |
settings_from_preset
Construct a Settings object from a named preset.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
preset
|
PresetName
|
Preset name — see |
required |
overrides
|
Any
|
Any |
{}
|
Returns:
| Type | Description |
|---|---|
Settings
|
Validated |
Raises:
| Type | Description |
|---|---|
ValueError
|
if an unknown preset name is given. |
submit_basic_calculation_workflow
submit_basic_calculation_workflow(
initial_molecule: StructureInput,
tasks: list[str],
method: Method | str | None = None,
basis_set: BasisSet | str | None = None,
mode: str = "auto",
engine: Engine | str | None = None,
corrections: list[str] | None = None,
solvent_settings: SolventSettings
| dict[str, Any]
| None = None,
opt_settings: OptimizationSettings
| dict[str, Any]
| None = None,
pbc_dft_settings: PBCDFTSettings
| dict[str, Any]
| None = None,
excited_state_settings: TDDFTSettings
| dict[str, Any]
| None = None,
preset: PresetName | None = None,
name: str = "Basic Calculation Workflow",
folder_uuid: str | None = None,
folder: Folder | None = None,
max_credits: int | None = None,
webhook_url: str | None = None,
is_draft: bool = False,
) -> Workflow
Submit a basic-calculation workflow to the API.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
initial_molecule
|
StructureInput
|
Molecule to perform the calculation on. |
required |
tasks
|
list[str]
|
Tasks to perform, see |
required |
method
|
Method | str | None
|
Computational method, see |
None
|
basis_set
|
BasisSet | str | None
|
Basis set, see |
None
|
mode
|
str
|
Accuracy mode, see |
'auto'
|
engine
|
Engine | str | None
|
Compute engine, see |
None
|
corrections
|
list[str] | None
|
Dispersion corrections, see |
None
|
solvent_settings
|
SolventSettings | dict[str, Any] | None
|
Solvent settings as a dict or |
None
|
opt_settings
|
OptimizationSettings | dict[str, Any] | None
|
Optimization settings as a dict or |
None
|
pbc_dft_settings
|
PBCDFTSettings | dict[str, Any] | None
|
Periodic boundary condition DFT settings as a dict or
|
None
|
excited_state_settings
|
TDDFTSettings | dict[str, Any] | None
|
Excited-state settings for TDDFT calculations. |
None
|
preset
|
PresetName | None
|
Named preset, mutually exclusive with method/engine/basis_set/corrections.
- |
None
|
name
|
str
|
Workflow name. |
'Basic Calculation Workflow'
|
folder_uuid
|
str | None
|
UUID of the folder to place the workflow in. |
None
|
folder
|
Folder | None
|
Folder to place the workflow in. |
None
|
max_credits
|
int | None
|
Maximum credits to use. |
None
|
webhook_url
|
str | None
|
URL that Rowan will POST to when the workflow completes. |
None
|
is_draft
|
bool
|
If True, submit the workflow as a draft without starting execution. |
False
|
Returns:
| Type | Description |
|---|---|
Workflow
|
Submitted workflow. |
Raises:
| Type | Description |
|---|---|
requests.HTTPError
|
if the API request fails. |
ValueError
|
if preset is combined with method/engine/basis_set/corrections. To resubmit with identical settings insulated from future preset changes, use
|