C library for topological study of the electronic charge density
Related Experiment Video
Updated: May 19, 2026

Finite Element Modelling of a Cellular Electric Microenvironment
Published on: May 18, 2021
David Vega1, Yosslen Aray, Jesús Rodríguez
1Dpto. de Química, Facultad de Ciencias y Tecnología, Universidad de Carabobo, Ciudad Universitaria, Bárbula, Valencia, Venezuela. dvega@uc.edu.ve
Abstract:
The topological study of the electronic charge density is useful to obtain information about the kinds of bonds (ionic or covalent) and the atom charges on a molecule or crystal. For this study, it is necessary to calculate, at every space point, the electronic density and its electronic density derivatives values up to second order. In this work, a grid-based method for these calculations is described. The library, implemented for three dimensions, is based on a multidimensional Lagrange interpolation in a regular grid; by differentiating the resulting polynomial, the gradient vector, the Hessian matrix and the Laplacian formulas were obtained for every space point. More complex functions such as the Newton-Raphson method (to find the critical points, where the gradient is null) and the Cash-Karp Runge-Kutta method (used to make the gradient paths) were programmed. As in some crystals, the unit cell has angles different from 90°, the described library includes linear transformations to correct the gradient and Hessian when the grid is distorted (inclined). Functions were also developed to handle grid containing files (grd from DMol® program, CUBE from Gaussian® program and CHGCAR from VASP® program). Each one of these files contains the data for a molecular or crystal electronic property (such as charge density, spin density, electrostatic potential, and others) in a three-dimensional (3D) grid. The library can be adapted to make the topological study in any regular 3D grid by modifying the code of these functions.
More Related Videos
Related Concept Videos
Continuous Charge Distributions
The electric charge can also be subjected to an analogical...
Trends in Lattice Energy: Ion Size and Charge
The Electrical Double Layer
Electric Field of a Charged Disk
The system's symmetry is in the cylindrical directions across the plane of the charge. As a result, the electric fields created by various surface charge elements nullify each other in the direction parallel to the surface. Thereby, the resulting electric field is perpendicular to the plane. Since the disk is...
Energy Associated With a Charge Distribution
Sources and Properties of Electric Charge
Most atoms additionally constitute another fundamental particle, the neutron. It carries no electrical charge. A...

