Skip to content

FelixCTH/Delta_Cube

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 

Repository files navigation

Delta_Cube: Cube Density Interpolation and Subtraction

This Python utility provides a robust framework for interpolating and subtracting electron density data from Gaussian .cube files with differing spatial grids. It ensures accurate alignment of molecular coordinates and volumetric data, making it ideal for comparative analysis, such as difference density visualization or reaction-induced charge migration studies.

πŸ“Œ Features

  • Reads Gaussian .cube files with full metadata retention
  • Interpolates a secondary density grid onto a reference grid using scipy.interpolate.RegularGridInterpolator
  • Subtracts volumetric electron densities
  • Outputs a new .cube file with proper molecular alignment
  • Preserves atomic coordinates, origin, and grid metadata

πŸ§ͺ Use Case

Suppose you have two .cube files (file1.cube, file2.cube) corresponding to different molecular states or quantum chemical calculations. This script will align and subtract them, writing a new cube file delta_density.cube that captures their density difference on the same grid.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published