Skip to content

Add Local Grid example notebook - #359

Open
C-Sree-Raghav wants to merge 1 commit into
theochem:masterfrom
C-Sree-Raghav:add-local-grid-example
Open

C-Sree-Raghav wants to merge 1 commit into
theochem:masterfrom
C-Sree-Raghav:add-local-grid-example

Conversation

@C-Sree-Raghav

Copy link
Copy Markdown

Closes #184

Adds examples/Local_Grid.ipynb, an example notebook showing how to use the get_localgrid method (based on cKDTree) to integrate a local property in a molecule. This covers the remaining unchecked item in #184.

The notebook uses Formaldehyde (ch2o_q+0.fchk) and:

  • builds a molecular grid and the electron density, as in Molecular_Grid.ipynb
  • creates a local grid around the Oxygen atom and integrates the density over it using dens[local.indices]
  • shows how the number of points and the integrated electrons change with the radius, with radius=np.inf recovering the full-grid integral

The install and download cell is commented out, following the other example notebooks.

Note: the diff shows about 220 added lines because the notebook is stored as JSON; it adds one file and no code changes.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Local Grid and Periodic Boundary Conditions examples

1 participant