Abstract
Making use of the code presented in the previous work by Braun et al. (Eur Phys J B 92:230, 2019), finite element density functional calculations have been performed in Cartesian coordinates using the density functional approach for 18 mostly organic molecules, which are acetic acid, ammonia, benzene, butane, carbon-dioxide, ethane, ethanol, fluorine gas, iso-butane, methane, methanol, nitrogen gas, pentane, propane, urea, and water. The resulting total energies and densities were compared with those obtained using the Gaussian basis set package NWChem (Valiev et al. in Comput Phys Commun 181:1477, 2010) for a number of basis sets. We found very good agreement for the total energies and densities of the considered molecules using the two different approaches. This further highlights the success and usefulness of the finite element approach.
Similar content being viewed by others
Avoid common mistakes on your manuscript.
1 Introduction
The development of efficient methods to calculate the properties of molecules has been an ongoing task in computational physics since the 1970’s. Compared to “traditional” methods the use of finite elements as basis set in molecular calculations has been a more recent development. In a pioneering paper [3] from the early 90’s the eigenvalues of the S-states of the helium atom were calculated using the method of finite elements in two dimensions.
In another study [4], the method of finite elements was combined with the close coupling approach.
About ten years ago the method of finite elements was combined with the so-called cusp factor approach to treat the hydrogen molecular ion [5, 6]. Finally the results of a finite element Hartree Fock Code were published in [7, 8]. In a recent paper [1], a molecular finite element code employing the cusp factor has been presented and results for 5 small molecules given. The results showed that the introduction of this cusp correction in the finite element density functional calculation resulted in improved densities and total energies. Thus the advantage of the finite element method is that it is able to satisfy the cusp condition at the origin, which the NWHCEM code can not.
In the present contribution we evaluated additional 18 molecules using the finite element density functional method and compared the results with NWChem density functional calculations. The agreement is very good both for energies and densities.
2 Input information
In the current study atomic units were used, where energies are measured in Rydberg \(=13.61\) eV and distances in \(a_0=5.29 \times 10^{-11}\) m. The geometries used for these calculations were obtained from the CCCBDB database [9]. In some cases the geometries were results of density functional calculations while in the remaining cases they were the results of measurements.
Calculations for the following 18 molecules listed below were performed:
-
1.
acetic acid (CH\(_3\)COOH)
-
2.
ammonia (NH\(_3\))
-
3.
benzene (C\(_6\)H\(_6\))
-
4.
butane (C4H10)
-
5.
carbondioxide (CO2)
-
6.
cyclohexane (C6H12)
-
7.
ethane (C2H5)
-
8.
ethanol (C2OH5)
-
9.
ethylene (C2H4)
-
10.
fluorine gas (F2)
-
11.
isobutane (C4H10)
-
12.
methane (CH4)
-
13.
methanol(COH\(_4\))
-
14.
nitrogen gas (N\(_2\))
-
15.
pentane(C\(_5\)H\(_{12}\))
-
16.
propane (C\(_3\)H\(_8\))
-
17.
urea (CO(NH\(_2\))\(_2\))
-
18.
water (H\(_2\)O)
3 Method and details of calculation
The density functional approach was applied to the non-relativistic Hamiltonian for an even number of electrons. In order to mitigate the singular Coulomb potential at the nuclear locations a cusp factor was applied to the orbitals. The resulting Schrödinger-like equations were solved with the method of finite elements using the Python framework FeNics [10] and the open source meshing software gmsh [11]. Further details are given in [1].The polynomial order of the FEM calculation was \(p=2\) and the radius of the spherical domain was \(x_\textrm{max}=12\). The density functional defined by combining the Slater exchange [12] and the Perdew and Wang correlation[13] was used.
For all calculations a density grid \(\mathcal{G}=[x_0,x_1,\cdots ,x_n]^3\), with \(x_i=x_0+i h\),\(x_0=-6\) and \(h=12/N\) with \(N=200\) was used. The density values on the grid in a fixed order are thus vectors of dimension \(201^3\). The density vectors obtained using the FEM and NWChem codes are denoted by \(\textbf{u}_1\) and \(\textbf{u}_2\) and the normalized vectors are defined by \( \mathbf{w_1}=\textbf{u}_1/ \vert \textbf{u}_1 \vert \) and \( \mathbf{w_2}=\textbf{u}_2/ \vert \textbf{u}_2 \vert \,. \)
We use the following functions of the two vectors:
-
1.
The angle
$$ \alpha =\angle ( \textbf{u}_1, \textbf{u}_2)=\frac{180}{\pi }\arccos S $$with \(S=\textbf{w}_1\cdot \textbf{w}_2\)
-
2.
The approximation \(d_{12}=h^{3/2} \vert \textbf{u}_1-\textbf{u}_2\vert \,\) for the RMS density difference defined by
$$\left( \int (\rho _1-\rho _2)^2 d^3 r \right) ^{\frac{1}{2}}\,.$$
The angle is a dimensionless quantity while the RMS density difference has dimensions of the density.
4 Results and discussion
For each molecule the following quantities were calculated using the NWChem and finite element codes:
-
1.
NWChem:
-
(a)
Total energies obtained using NWChem and the basis set cc-pvqz
-
(b)
Density on chosen grid
-
(c)
Densities at nuclear positions
-
(a)
-
2.
FEM:
-
1.
Total energies obtained using the FEM code for a discretization parameter \(S=0.2\)
-
2.
Density on chosen grid.
-
3.
Densities at nuclear positions
-
1.
In Table 1 the FEM energies for \(S=2\) and NWChem energies for the cc-pvqz basis set are given. The relative energy differences are smaller than \(10^{-3}\). For some of the molecules the FEM energies are lower while for some others the NWCHem energies are lower. In Table 2 we show the angles and RMS density differences between the NWChem and FEM densities. All values of \(\alpha \) are smaller than 0.6 degree, which demonstrates a rather good agreement between the densities. As another approach to compare the densities, we consider their values at the nuclear coordinates obtained using the FEM and NWChem codes. For the molecules with at most six nuclei, these densities and their differences are given in Table 3. In all cases the FEM densities at the nuclei are larger than the NWChem densities. Finally in Table 4 the CPU times for the FEM and NWChem codes. Not unexpectedly the NWChem code is a lot faster compared with the FEM code. This is attributed to the number of degrees of freedom for the FEM approach, which is much larger than for the NWChem approach.
5 Conclusions
In this work, the results of finite element density functional calculations for 18 different molecules using the code introduced in [1] have been reported. The total energies are very close to those obtained using the NWChem implementation of density functional theory with the cc-pvqz basis set. The densities also are in rather good agreement. At the nuclei all FEM densities are larger than the NWChem densities. Thus the field of molecular computational physics has been enriched by providing an additional method that fulfills the cusp conditions at the nuclei.It also helps to validate results using other codes by estimating the accuracy of densities, in particular at the nuclei.
Future plans include improving the convergence of the FEM calculations.
Data Availibility statement
All data generated or analysed during this study are included in this published article.
References
M Braun and KO Obodo Eur. Phys. J. B 92 230 (2019). https://doi.org/10.1140/epjb/e2019-100310-6
M Valiev et al. Comput. Phys. Commun. 181 1477 (2010). https://doi.org/10.1016/j.cpc.2010.04.018.www.sciencedirect.com/science/article/pii/S0010465510001438
M Braun, W Schweizer and H Herold Phys. Rev. A 48 1916 (1993). https://doi.org/10.1103/PhysRevA.48.1916
M Braun W Schweizer and H Elster Phys Rev. A 57 3739 (1998). https://doi.org/10.1103/PhysRevA.57.3739
M. Braun J. Comput. Appl Math 236 4840 (2012). https://doi.org/10.1016/j.cam.2012.02.005. http://www.sciencedirect.com/science/article/pii/S0377042712000623.
FEMTEC 2011: 3rd International Conference on Computational Methods in Engineering and Science, May 9-13, (2011)
M. Braun, Journal of Computational and Applied Mathematics 270, 100 (2014). https://doi.org/10.1016/j.cam.2014.02.012. http://www.sciencedirect.com/science/article/pii/S0377042714000880
Fourth International Conference on Finite Element Methods in Engineering and Sciences (FEMTEC 2013)
NIST Standard Reference Database Number 101,Release 21 (August 2020). https://doi.org/10.18434/T47C7Z. http://cccbdb.nist.gov/
M.S. Alnæs, A. Logg, K.B. Ølgaard, M.E. Rognes and G.N. Wells, ACM Transact. Math. Softw. 40 (2014). https://doi.org/10.1145/2566630
C Geuzaine and J F Remacle Int. J. Numer. Methods Eng. 79 1309 (2009). https://doi.org/10.1002/nme.2579.
P A M Dirac Math. Proc. Cambridge Philos. Soc. 26 (1930).
J P Perdew and Y Wang PRB 45 13244 (1992).
Acknowledgements
M.B. acknowledges financial support by the University of South Africa. K.O.O. thanks the North-West University Potchefstroom and acknowledges support from the HySA-Infrastructure Centre of Competence, Faculty of Engineering, North-West University, South Africa for financial support via KP5 grant.
Funding
Open access funding provided by University of South Africa.
Author information
Authors and Affiliations
Contributions
MB performed the numerical calculations, while both authors were involved in the preparation of the manuscript and have read and approved the final manuscript.
Corresponding author
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Braun, M., Obodo, K.O. Comparison of finite element density functional with NWChem results for 18 molecules. Indian J Phys 97, 2899–2902 (2023). https://doi.org/10.1007/s12648-023-02663-6
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s12648-023-02663-6