Giter Site home page Giter Site logo

aritraroy24 / compchem_automations Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 25 KB

Gaussian software job automation. But can be modified for other computational softwares also.

License: GNU General Public License v3.0

Shell 93.27% VBScript 6.17% Batchfile 0.55%
automation bash bash-script bash-scripting compchem computational-chemistry g09 g16 gaussian quantum

compchem_automations's Introduction

Gaussian Job Automation (automation.sh)

This code automates running Gaussian calculations by monitoring a folder for new .gjf input files, executing the jobs, organizing the output, and launching follow-up single point energy jobs.

Features

  • Monitors a folder for new .gjf input files and automatically runs Gaussian calculations when detected
  • Runs geometry optimizations and frequency calculations
  • Extracts key output data (energies, geometries, etc.) and saves to organized output folders
  • Identifies and handles failures due to common Gaussian errors
  • Automatically generates and runs single point energy jobs using the final structures
  • Loops continuously to keep executing new jobs as input files are added

Usage

To use this automation:

  1. Save Gaussian input files (.gjf) to the root folder that the code monitors
  2. The script will automatically detect new jobs and run them
  3. Optimized geometries, energies, frequencies, etc. will be extracted and saved
  4. Follow-up single point energy calculations will be automatically generated and executed
  5. Outputs are organized into success and error folders for each job

The key output files generated are:

  • filename.log - Gaussian output log file
  • filename.chk - Checkpoint file for restarting
  • filename_result.txt - Key extracted data including energies
  • filename_coordinates.txt - Optimized geometry coordinates

Code Overview

  • runCalculation(): Main job execution function
    • Runs Gaussian, monitors for completion & errors
    • Extracts key output data and geometries
    • Organizes output files into folders
  • filenameStorage(): Automatically generates single point energy jobs
  • Main loop:
    • Continuously monitors for new input files
    • Runs jobs via runCalculation()
    • Passes data to filenameStorage() to create follow-up calculations

The code handles various errors and extraction of data/geometries when possible even for failed jobs.

Overall, this provides a convenient automation pipeline for Gaussian, requiring only input files to be provided and organized outputs are generated.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.