chem-dft-orca-advanced-calculation
Skill174 starsChanged 6 months agoMITView on GitHub
Write and run custom ORCA input files for advanced electronic structure methods or settings not available through the SCINE wrapper, including multi-reference methods, excited states, relativistic effects, advanced SCF, NMR/EPR, and more.
In this repository133 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/atomisticskills.mdcCursor rule
- .cursor/rules/use-agent-skills.mdcCursor rule
- chem-bond-dissociationSkill
- chem-conformer-searchSkill
- chem-db-mofSkill
- chem-db-qmofSkill
- chem-db-spectraSkill
- chem-dft-orca-optimizationSkill
- chem-dft-orca-singlepointSkill
- chem-docking-voidSkill
- chem-hazard-toxicitySkill
- chem-irc-verificationSkill
- chem-msms-predictSkill
- chem-neb-barrierSkill
- chem-nmr-analysisSkill
- chem-nmr-predictSkill
- chem-react-otSkill
- chem-similarity-searchSkill
- chem-solution-mdSkill
- chem-sorption-gcmcSkill
- chem-sorption-relaxSkill
- chem-sorption-widomSkill
- chem-spectrum-matcherSkill
- chem-thermochemistrySkill
- chem-ts-optimizationSkill
- chem-vibrationSkill
- drug-admet-predictionSkill
- drug-binding-site-definitionSkill
- drug-bioactivity-assaySkill
- drug-complex-system-builderSkill
- drug-db-chemblSkill
- drug-db-pdbSkill
- drug-db-pubchemSkill
- drug-docking-analysisSkill
- drug-docking-vinaSkill
- drug-ligand-prepSkill
- drug-mmpbsa-gbsaSkill
- drug-molecular-fingerprintsSkill
- drug-pocket-detectionSkill
- drug-pose-validationSkill
- drug-protein-ligand-mdSkill
- drug-protein-prepSkill
- drug-redocking-rmsdSkill
- drug-retrosynthesisSkill
- drug-trajectory-analysisSkill
- general-arxiv-searchSkill
- general-biorxiv-searchSkill
- general-chemical-literatureSkill
- general-chemical-pricingSkill
- general-deep-researchSkill
- general-fair-data-reviewSkill
- general-patent-searchSkill
- general-peer-reviewSkill
- general-plot-digitizerSkill
- general-presentationSkill
- general-property-unitsSkill
- general-publisher-access-guardSkill
- general-query-literature-databaseSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 33
Create a .inp file following ORCA input syntax.
- Very specific: line 154
SCF convergence: Always check that the SCF converged.
- Very specific: line 158
Environment: All commands require the orca-agent conda environment.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Advanced ORCA Calculation
Goal
Enable advanced ORCA quantum chemistry calculations by constructing a custom ORCA input file from scratch. This skill covers methods and features not available through the SCINE wrapper, including multi-reference methods, excited states, relativistic effects, advanced SCF settings, NMR/EPR properties, and more.
[!IMPORTANT] For standard DFT single-point calculations (energy, gradients, Hessian), use the singlepoint skill instead. For geometry optimization, use the optimization skill. This skill is for cases where those wrappers do not expose the needed method or settings.
1. Prerequisites
- Conda environment:
orca-agentwithaseinstalled (SCINE not required for this skill) - ORCA binary: The environment variable
ORCA_BINARY_PATHmust point to the ORCA executableexport ORCA_BINARY_PATH=/path/to/orca - ORCA documentation: Consult the ORCA 6.1 tutorials for method-specific input syntax, keyword blocks, and recommended settings
2. Workflow
Step 1: Understand the user's request
Identify the target method, property, and system. Determine which ORCA keywords and blocks are needed. If unsure, consult the tutorials linked above for the specific method.
Step 2: Write the ORCA input file
Create a .inp file following ORCA input syntax. Every input file should include:
Mandatory elements:
- A keyword line starting with
!specifying the method, basis set, and job type - A
*xyzfileentry referencesing an external .xyz file
Strongly recommended elements:
%pal nprocs N end: parallelization (always set this to avoid single-core runs)%maxcore M: memory per core in MB (e.g. 4000 for 4 GB per core)
Example — TD-DFT excited states:
! B3LYP def2-TZVP TightSCF
%pal nprocs 4 end
%maxcore 4000
%tddft
NRoots 10
MaxDim 5
end
* xyzfile 0 1 molecule.xyzExample: DLPNO-CCSD(T) single point:
! DLPNO-CCSD(T) def2-TZVPP def2-TZVPP/C TightSCF
%pal nprocs 8 end
%maxcore 4000
* xyzfile 0 1 molecule.xyzExample: Geometry optimization with frequency calculation:
! B3LYP def2-TZVP D3BJ Opt Freq TightSCF
%pal nprocs 4 end
%maxcore 4000
* xyzfile 0 1 molecule.xyzExample: CASSCF multi-reference:
! CASSCF def2-TZVP
%pal nprocs 4 end
%maxcore 8000
%casscf
nel 6
norb 6
nroots 3
end
* xyzfile 0 1 molecule.xyz[!TIP] When using an external
.xyzfile with* xyzfile charge mult filename.xyz, the.xyzfile must be placed in the same directory where ORCA runs (the--output_dir).
Step 3: Run the calculation
# Env: orca-agent
python .agent/skills/chem-dft-orca-advanced-calculation/scripts/run_orca_input.py \
--input_file calculation.inp \
--output_dir research/my_project/advanced_calcThe script will:
- Validate basic input structure and warn about missing
%pal/%maxcore - Copy the input file to the output directory
- Execute ORCA and capture all output
- Parse the final electronic energy from the output
- Save a
calculation_results.jsonsummary
Step 4: Parse results
For standard energies, the runner script already extracts the final energy. For other properties, use the dedicated parser:
# Env: orca-agent
python .agent/skills/chem-dft-orca-advanced-calculation/scripts/parse_orca_output.py \
--output_file research/my_project/advanced_calc/calculation.out \
--property energy orbitalsAvailable --property options in the parser:
energy: Final energy, nuclear repulsion, dispersion correctionorbitals: Orbital energies, HOMO/LUMO, gapfrequencies: Vibrational frequencies, imaginary modes, IR intensitiesthermochemistry: ZPE, enthalpy, Gibbs energy, entropyall: Parse everything available
Step 5: Manual output inspection
For properties not covered by the built-in parser (excited-state energies, NMR shifts, spin populations, natural orbitals, etc.), read the ORCA calculation.property.txt file directly.
3. Common Use Cases
| Method | Key ORCA Keywords | Notes |
| Multi-step SCF convergence | ! GuessMode=CMatrix | Some SCFs are difficult to converge, solving it multiple steps, converging first on a small basis set and loose criterion and launching it again with the desired parameters |
| TD-DFT excited states | ! B3LYP def2-TZVP, %tddft NRoots N end | Use TDA for faster approximation |
| CASSCF/NEVPT2 | ! CASSCF def2-TZVP, %casscf nel N norb M end | Active space selection is critical |
| DFT + NMR | ! B3LYP def2-TZVP NMR | Shielding tensors in output |
| DFT + EPR | ! B3LYP def2-TZVP EPR/ORP | g-tensor and hyperfine couplings |
| Relativistic (ZORA) | ! B3LYP ZORA def2-TZVP SARC/J | For heavy elements; use SARC basis sets |
| Scan/Relaxed scan | ! B3LYP def2-SVP Opt, %geom Scan ... end | Potential energy surface scans |
4. Output Files
calculation_results.json: Summary with energy, SCF convergence, return code, and any input warnings<input_stem>.property.txt: Structured ORCA output file of all properties<input_stem>.out: Full ORCA output file, only suitable for debugging errors- Various ORCA-generated files (
.gbw,.densities,.engrad, etc.) in the output directory parsed_results.json(if parser was run): Structured extraction of requested properties
5. Constraints
- Input correctness: The agent is responsible for writing a valid ORCA input file. The runner performs basic validation but cannot catch all syntax errors, ORCA itself will report those in the output.
- SCF convergence: Always check that the SCF converged. If it did not, try
SlowConv,VerySlowConv, or adjust%scf MaxIterand damping settings. - Memory: ORCA can be memory-intensive for correlated methods. Set
%maxcoreappropriately (rule of thumb: total available RAM / nprocs, leaving some for the OS). - Disk: Post-HF methods (CCSD(T), CASSCF) can generate large temporary files. Ensure sufficient disk space.
- ORCA binary:
ORCA_BINARY_PATHmust be set and point to a working ORCA installation. - Environment: All commands require the
orca-agentconda environment. - Parallelization: ORCA uses OpenMPI internally. Do not run multiple ORCA instances on overlapping core sets.
- Output parsing: The built-in parser covers common output patterns. For uncommon methods or output formats, the raw
.outfile must be inspected directly.
References
- Neese, F., "Software update: The ORCA program system—Version 5.0", WIREs Comput. Mol. Sci., 2022. DOI
- ORCA 6.1 Tutorials: https://www.faccts.de/docs/orca/6.1/tutorials/
Author: Miguel Steiner Contact: GitHub @steinmig
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

