votca 2026-dev
Loading...
Searching...
No Matches
dftgradient.h
Go to the documentation of this file.
1/*
2 * Copyright 2009-2024 The VOTCA Development Team
3 * (http://www.votca.org)
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License")
6 *
7 * You may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 *
18 */
19
20// Analytic DFT nuclear gradient terms (nuclear repulsion, RI-J, RI-K),
21// assembled from the integral derivatives of libint2_derivative_calls.cc.
22// All functions return dE/dR as (Natoms x 3) in Hartree/Bohr.
23
24#pragma once
25#ifndef VOTCA_XTP_DFTGRADIENT_H
26#define VOTCA_XTP_DFTGRADIENT_H
27
28// Local VOTCA includes
29#include "aobasis.h"
30#include "qmmolecule.h"
31
32namespace votca {
33namespace xtp {
34
36 public:
47 static Eigen::MatrixXd NuclearRepulsionDerivative(const QMMolecule& mol);
48
57 static Eigen::MatrixXd RIJGradient(const Eigen::MatrixXd& density,
58 const AOBasis& auxbasis,
59 const AOBasis& dftbasis);
60
73 static Eigen::MatrixXd RIKGradient(const Eigen::MatrixXd& occ_mo_coeffs,
74 const AOBasis& auxbasis,
75 const AOBasis& dftbasis);
76};
77
78} // namespace xtp
79} // namespace votca
80
81#endif // VOTCA_XTP_DFTGRADIENT_H
Container to hold Basisfunctions for all atoms.
Definition aobasis.h:42
static Eigen::MatrixXd RIKGradient(const Eigen::MatrixXd &occ_mo_coeffs, const AOBasis &auxbasis, const AOBasis &dftbasis)
static Eigen::MatrixXd NuclearRepulsionDerivative(const QMMolecule &mol)
static Eigen::MatrixXd RIJGradient(const Eigen::MatrixXd &density, const AOBasis &auxbasis, const AOBasis &dftbasis)
Provides a means for comparing floating point numbers.
Definition basebead.h:33