Questions tagged [hartree-fock]

For any questions about (or related to) the Hartree-Fock method.

Filter by
Sorted by
Tagged with
4 votes
1 answer
77 views

Unrestricted Hartree-Fock : Density matrices initialization

I have some results about the energy of H2 as a function of the bond length using Restricted HF (RHF) and Unrestricted HF (UHF) methods. With a zero-initialization of the density matrix I have the ...
mle's user avatar
  • 711
5 votes
2 answers
100 views

Explicit form of Hartree Fock analytic gradient with contracted GTOs? With or without density fitting

Does anyone know of a paper, textbook, or other resource which outlines the expression for the analytic gradient of the HF energy (restricted or otherwise) in terms of Dunning's contracted Gaussian-...
Rob L's user avatar
  • 51
4 votes
1 answer
212 views

What's the best code for getting 1-particle and 2-particle density matrices with CCSD(T) in Python?

I have been using PySCF to calculate the 1-particle and 2-particle density matrix from ccsd(T) wavefunction using these modules in-built in PySCF make_rdm1() and <...
Pro's user avatar
  • 800
1 vote
0 answers
57 views

Factorization of a closed shell Slater determinant into spatial and spin part

I'm studying the HF method, so I have a non-relativistic time-independent Hamiltonian. Since in the Hamiltonian, there is no spin, we have: $$ \left[\hat{H}, \hat{S}_z \right] = 0 \quad \text{and} \...
Al1010's user avatar
  • 165
3 votes
0 answers
56 views

How to choose the orientation of basis functions in a Gaussian calculation?

I am trying to run a g09 calculation for a D5h symmetric molecule using the HF/LANL2DZ level of theory. The molecule is pentagonal planar in geometry, and I would like to visualize the canonical ...
Kevin Freddo's user avatar
10 votes
1 answer
181 views

Time Evolution of the Hartree-Fock Wave Function

The Hartree-Fock Hamiltonian is given by $$ \hat{H} = \sum_i \hat{h}_i + \frac{1}{2}\sum_i\sum_j \left[\hat{J}_{ij} - \hat{K}_{ij}\right] $$ and by choosing a basis, the Hamiltonian can be written in ...
Peter234's user avatar
  • 187
6 votes
3 answers
210 views

Frozen core Stability Calculations in G09?

I am trying to calculate the stability of CO at HF/3-21g level using G09. I am trying to reproduce an issue that was observed in PySCF, and I have made the following observations: If I use the ...
Hemanth Haridas's user avatar
3 votes
2 answers
172 views

Calculate the energy of a single electron in an atom

When we employ Hartree-Fock or coupled cluster to calculate an atom's energy, can we directly obtain the valence electron energy? Is it as simple as looking at the orbital energy? I know that summing ...
Peter234's user avatar
  • 187
3 votes
0 answers
142 views

Electronic Structure Calculation with External Field

There are various programs for calculating energy states for molecules (ORCA, Gaussian, ...). Is there also software that allows the same simulations with an additional external potential (e.g. ...
Johny Dow's user avatar
3 votes
1 answer
75 views

Molecular integrals in spherical harmonics?

I have been trying to write a basic HF code that can compute the MOs and total energy of a molecule. I followed the following reference for overlap and kinetic integrals. During a conversation with a ...
Hemanth Haridas's user avatar
1 vote
0 answers
82 views

Hartree Fock method

Currently, I'm studying (again from zero and more in detail) Hartree Fock (HF) method, specifically the Restricted Hartree Fock (RHF). I'm following two books: "Introduction to Computational ...
Al1010's user avatar
  • 165
4 votes
1 answer
155 views

Is the Broyden's algorithm sufficient to obtain the crystal structure of a hypothetical alloy, or should something else be used?

The Broyden (Broyden—Fletcher—Goldfarb—Shanno or BFGS) algorithm can be known in the matter modeling to optimize a crystal lattice geometry — to clarify positions of nodes of a crystal lattice in ...
SFriendly's user avatar
  • 877
10 votes
2 answers
759 views

Free and optimized code for Hartree-Fock calculation in solids

I am looking for a free code for Hartree-Fock calculations in solids especially a code optimized (quite fast) compared to Pyscf which is quite slow and unstable. I do not have any clue to explain why ...
M06-2x's user avatar
  • 896
5 votes
1 answer
143 views

Can specifications of a second-order phase transition of a solid be obtained with the Hartree-Fock (or DFT) calculation?

At some temperature a crystal lattice of a solid can be rearranged or to say it more precise - got new positions of its cores. This phenomenon is well-known to be called a second-order phase ...
SFriendly's user avatar
  • 877
5 votes
1 answer
565 views

Numerical Evaluation of Hessian?

I am trying to understand the construction of Hessian matrix using numerical differentiation (NUMFREQ option in ORCA for example). I understand that Hessian is a square matrix containing second ...
Hemanth Haridas's user avatar
3 votes
0 answers
126 views

Locating Symmetry Equivalent Atoms from Distance Matrix?

As a follow up to my previous question here, I am now trying to implement symmetry detection in my code. I am following the paper by Beruski et. al to understand the background required. I am able to ...
Hemanth Haridas's user avatar
4 votes
2 answers
613 views

How to use libint with Python

I am trying to write a basic Hartree-Fock code to compute orbital energies and total energy of a molecule at almost all basis sets. I wrote the integral code in Cython/Python and is very slow. I would ...
Hemanth Haridas's user avatar
7 votes
1 answer
350 views

How is the zero energy defined for molecular orbitals?

In DFT and Hartree-Fock bonding orbitals have negative energies while antibonding orbitals have positive energies. Why is this the case? It seems this is due to the zero-point energy being defined for ...
lex2763's user avatar
  • 321
6 votes
1 answer
267 views

Effective core potential (ECP) calculations

I'm setting up a simple Hartree-Fock problem in pyscf with ECPs to test things out. However, the numbers I get do not make sense to me as the energies are very different. I have never used ECPs before ...
NPHA's user avatar
  • 163
5 votes
2 answers
222 views

How to evaluate Hartree--Fock exchange energy density on grids in pyscf?

I am trying to evaluate the Hartree--Fock exchange energy density on grids in pyscf with an instance of class "UKS", in order to test some functionals depending on the exchange energy ...
Lex Lee's user avatar
  • 123
2 votes
0 answers
53 views

How to calculate the forces of attraction between a surface and molecules of a substance at a corrosion affection? [closed]

Previously, a question was asked about an equation that is able to calculate the forces of attraction between a surface and molecules (of another substance). During the discussion of the question a ...
SFriendly's user avatar
  • 877
15 votes
3 answers
874 views

Is there a simple free working code that implements Hartree–Fock or DFT?

Is there somewhere in the internet a good simple free working code (with a minimal number of lines in its presentation) that implements a calculation of eigenvalues with Hartree–Fock (or DFT) ...
SFriendly's user avatar
  • 877
8 votes
1 answer
690 views

How to detect an "open shell" molecule?

I feel like this is a really stupid question, and I've been ashamed to ask for a while... When I'm about to run some electronic structure calculation on a molecule, how do I know if I need to use an ...
Zane Beckwith's user avatar
5 votes
1 answer
307 views

Hartree Fock Algorithm too high values for Molecules

I am working on a high school graduation paper on Hartree Fock and have gotten pretty far already. With help from this community, I managed to generate all the necessary integrals and implement the ...
lela2011's user avatar
  • 125
5 votes
1 answer
122 views

Implementation of one-elecron integrals in a Hartree-Fock program

Absolute newbie in quantum chemistry here. I was recently looking through some Fortran libraries from my university to see if I understand all of the mathematics. In a Hartree-Fock library, I found ...
Nagash's user avatar
  • 53
2 votes
0 answers
376 views

How to read two electron integrals from pyscf

This is a follow-up question to this one I asked a few days ago. I in the meantime talked to my teacher and generate all the necessary integrals in PySCF. For the one electron integrals that isn't an ...
lela2011's user avatar
  • 125
5 votes
1 answer
165 views

What is the best algorithm for ERIs of contracted gaussian atomic orbitals

I am currently working on python script that does Hartree-Fock-Calculations. I try to avoid packages as good as possible. I've figured out how to calculate the one electron integrals when it comes to ...
lela2011's user avatar
  • 125
9 votes
2 answers
505 views

What is the physical meaning of the term "non-local interaction"?

This term pops up through out Hartree-Fock and DFT. Does this term have any physical significance to actual(real) system or it is a mathematical by-product?
Alukaar's user avatar
  • 333
6 votes
1 answer
238 views

Continuously-varying Hartree-Fock transition matrix?

Suppose we have a parametrized molecular Hamiltonian $H(R)$, where $R$ are the nuclear coordinates. If we let $B(R)$ be some chosen atomic basis set (like STO-3G) centred at $R$, then using $B(R)$, we ...
Jack Ceroni's user avatar
4 votes
1 answer
465 views

Molecular orbital values on grid points in PySCF?

I am looking for a way to easily evaluate individual molecular orbitals on a grid(assuming a single determinant method for now) in PySCF. I am aware on how to generate efficient grids for real-space ...
Szgoger's user avatar
  • 400
4 votes
0 answers
120 views

Is it possible to obtain the current-voltage characteristic for a crystal using the Hartree–Fock (or DFT) calculation? [closed]

In continuation of the question of obtaining an electrical conductivity tensor (ECT) from the “first characteristics”, will my following suggestion be correct? Since a crystal with an applied-to-it ...
SFriendly's user avatar
  • 877
7 votes
2 answers
195 views

Simple question about Hartree-Fock algorithm

Classically in Hartree-Fock implementations we define the wave-function in term of a basis set: $$\phi_i = \sum_{\alpha} C_{\alpha i}\chi_\alpha$$ If I understand correctly the problem is reduced to ...
Okano's user avatar
  • 1,222
3 votes
1 answer
124 views

Can the electrical conductivity tensor of a crystal be obtained from a Hartree-Fock calculation?

Let’s assume that a crystal has been calculated by Hartree–Fock (HF) method (or DFT one), i.d., so to speak, the "first characteristics", which are eigenvalues and eigenvectors, as well as ...
SFriendly's user avatar
  • 877
5 votes
1 answer
173 views

In which part of the Hartree–Fock algorithm (or DFT one) could a neural network be most effectively used?

I understand that the task of implementing machine learning in DFT and Hartree–Fock (HF) algorithm has already been solved, perhaps to some extent, but it is interesting to think about how to ...
SFriendly's user avatar
  • 877
4 votes
0 answers
77 views

Rys Quadrature method for integrating over Gaussian basis functions: 1D integral recursion relation [closed]

I'm trying to implement the Rys Quadrature method for integrations of Gaussians, from scratch. I'm using this paper as a reference. So, how does the overall recursion relation for evaluating 1D ...
Dmitry Govorov's user avatar
4 votes
2 answers
597 views

Which formalism is better suited to model a crystal with defects: Hartree–Fock, Kohn–Sham, or something else?

Let’s suppose that (1) it’s required to calculate a crystal with certain parameters of a crystal lattice; (2) this crystal has some defects (let it be Frenkel defects for simplicity); (3) these ...
SFriendly's user avatar
  • 877
7 votes
1 answer
260 views

Hartree-Fock Method: Projection of density matrix onto a larger basis set

I am implementing a Hartree-Fock SCF program with an educational purpose. Although the code works fine using a Core Hamiltonian guess for the SCF iterative process, I want to implement a more accurate ...
dav267's user avatar
  • 133
5 votes
1 answer
93 views

About the order of indices in basis set expansion

In many books, e.g., Szabo and Ostlund, Helgaker Jorgensen and Olsen, etc etc, the expansion of Hartree-Fock orbital by basis set is written as a kind of $$ \phi_i = \sum_{\mu} C_{\mu i} \chi_{\mu} $$ ...
Lancashire3000's user avatar
18 votes
4 answers
2k views

What are the physical reasons if the SCF doesn't converge?

I've been mostly using ab initio methods as a routine calculation tool, so even though I know some things from the theoretical side, I still have mostly hands-on experience. One of the things that I ...
user avatar
7 votes
0 answers
294 views

Evaluating Coulomb and exchange integrals in practice using cartesian coordinates [closed]

Many software packages provide means to calculate the Coulomb and exchange integrals, for example, the exchange $$\int \phi^*(1) \, \psi^*(2) \frac{1}{|\mathbf{r_1} - \mathbf{r_2}|} \, \psi(1) \, \phi(...
Arc's user avatar
  • 593
7 votes
1 answer
287 views

Exploiting 8-fold symmetry of ERI tensor for building Coulomb and Exchange matrices

I'm trying to write a restricted Hartree Fock code in Fortran that reads in a file of zeroth-iteration 1 and 2 electron integrals (FCIDUMP format) and uses them to do the SCF procedure from an initial ...
user avatar
8 votes
1 answer
769 views

What do size-extensivity and size-consistency mean?

I have heard both terms in various lectures and books on quantum chemistry, however, I have not found a proper explanation of them. As I understand now, size consistency of a method means for example, ...
S R Maiti's user avatar
  • 6,516
6 votes
1 answer
925 views

How to compute the overlap matrix in Python

I want to calculate the overlap integral (S), I made the code, but it is only worked when I use a basis function that describe 1s and when I include 2s orbital, I start to get error. The First Problem ...
Abd-Elazeem Mohamed's user avatar
7 votes
0 answers
93 views

Is the formula of a Dyson orbital independent of whether there is degeneracy or not in the HOMO of the neutral?

A Dyson orbital is defined as: $$ \textrm{Dy}(x) = \int dx_1 \ldots dx_{N-1} \, (\Psi^+(x_1,\ldots,x_{N-1}))^* \, \Psi^0(x_1,\ldots,x_{N-1}, x),\tag{1} $$ where $\Psi^0$ and $\Psi^+$ are the total ...
nougako's user avatar
  • 595
8 votes
1 answer
140 views

How to read data from an input and form two-electrons integral?

I am doing a code that can calculate the hartree-fock energy. I want to form the two-electrons integral by reading the data from the input like this one below. The first four number are the indices ...
Abd-Elazeem Mohamed's user avatar
6 votes
0 answers
153 views

Differences between DFTB3 energy and HF energy [closed]

I was performing DFTB3 calculation with DFTB+ on water monomer. This is my input. ...
Pro's user avatar
  • 800
17 votes
3 answers
1k views

Why is uncertainty not a big problem in computational chemistry?

The molecular Hamiltonian (or, for simplicity, the Fock operator) contains coulomb potentials as well as momentum operators. To evaluate the coulomb potential, we need to know where the electrons are. ...
M0M0's user avatar
  • 457
12 votes
2 answers
790 views

For DFT and Hartree-Fock, how can we know that we have a true minimum? Is there an equivalent to the "frequency analysis" for geometry optimization?

In a geometry optimisation, one can check if they have reached a minimum by checking the phonons. And to a certain extent, the global minimum can be confirmed by relaxing from different starting ...
Wychh's user avatar
  • 2,015
10 votes
1 answer
2k views

Convert reduced density matrix from M.O. to A.O. basis

I am interested in converting the one-particle reduced matrix (rdm1) from the molecular orbital (M.O.) basis to the atomic orbital (A.O.) basis. Is the following method correct (in an identical ...
Wychh's user avatar
  • 2,015
10 votes
2 answers
1k views

Visualize electron density using pyscf

I found the following example of code which uses density functional theory to compute the electron density $\rho$: ...
ErwinSchroedinger's user avatar