MPQC 3.0.0-alpha
Loading...
Searching...
No Matches
libint2.h
1//
2// libint2.h
3//
4// Copyright (C) 2001 Edward Valeev
5//
6// Author: Edward Valeev <evaleev@vt.edu>
7// Maintainer: EV
8//
9// This file is part of the SC Toolkit.
10//
11// The SC Toolkit is free software; you can redistribute it and/or modify
12// it under the terms of the GNU Library General Public License as published by
13// the Free Software Foundation; either version 2, or (at your option)
14// any later version.
15//
16// The SC Toolkit is distributed in the hope that it will be useful,
17// but WITHOUT ANY WARRANTY; without even the implied warranty of
18// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19// GNU Library General Public License for more details.
20//
21// You should have received a copy of the GNU Library General Public License
22// along with the SC Toolkit; see the file COPYING.LIB. If not, write to
23// the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
24//
25// The U.S. Government is granted a limited license as per AL 91-7.
26//
27
28// these provide integrals using the CINTS/libint routines
29
30#ifndef _chemistry_qc_libint2_libint2_h
31#define _chemistry_qc_libint2_libint2_h
32
33#include <chemistry/qc/basis/integral.h>
34
35namespace sc {
36
37class SphericalTransformLibint2;
38class ISphericalTransformLibint2;
39
41class IntegralLibint2 : public Integral {
42 private:
43 int maxl_;
46
47 void free_transforms();
48 void initialize_transforms();
49
50 // Check if fully general contractions are present in any of the basis sets
51 void check_fullgencon() const;
52
53 public:
55 const Ref<GaussianBasisSet> &b2=0,
56 const Ref<GaussianBasisSet> &b3=0,
57 const Ref<GaussianBasisSet> &b4=0);
61
63
65
68
70 const Ref<GaussianBasisSet> &b2 = 0,
71 const Ref<GaussianBasisSet> &b3 = 0,
72 const Ref<GaussianBasisSet> &b4 = 0);
74 const Ref<GaussianBasisSet> &b2 = 0,
75 const Ref<GaussianBasisSet> &b3 = 0,
76 const Ref<GaussianBasisSet> &b4 = 0);
78 const Ref<GaussianBasisSet> &b2 = 0,
79 const Ref<GaussianBasisSet> &b3 = 0,
80 const Ref<GaussianBasisSet> &b4 = 0);
82 const Ref<GaussianBasisSet> &b2 = 0,
83 const Ref<GaussianBasisSet> &b3 = 0,
84 const Ref<GaussianBasisSet> &b4 = 0);
85
90 int inv=0,
91 int subl=-1);
93 int inv=0, int subl=-1);
94
96
98
100
102
104
106
108
110
112
114
116
118
120
122
124
128
130
132
136
138
142
145 Ref<TwoBodyTwoCenterInt> r12m1g12_2(const Ref<IntParamsG12>& p);
146
149 Ref<TwoBodyTwoCenterInt> g12t1g12_2(const Ref<IntParamsG12>& p);
150
152 Ref<TwoBodyThreeCenterInt> delta_function_3();
153 Ref<TwoBodyTwoCenterInt> delta_function_2();
154
156 const Ref<GaussianBasisSet> &b2 = 0,
157 const Ref<GaussianBasisSet> &b3 = 0,
158 const Ref<GaussianBasisSet> &b4 = 0);
159};
160
161/* Libint2StaticInterface is an initializer class for the static part
162 of libint's interface (one per executable) */
164 bool ready;
165
166 public:
168 ~Libint2StaticInterface() { ready = false; }
169};
170
171}
172
173#endif
174
175// Local Variables:
176// mode: c++
177// c-file-style: "CLJ"
178// End:
CartesianIter gives the ordering of the Cartesian functions within a shell for the particular integra...
Definition cartiter.h:35
Definition tform.h:65
IntegralLibint2 computes integrals between Gaussian basis functions.
Definition libint2.h:41
Ref< OneBodyDerivInt > nuclear_deriv()
Return a OneBodyDerivInt that computes nuclear repulsion derivatives.
Ref< OneBodyInt > dipole(const Ref< IntParamsOrigin > &=0)
Return a OneBodyInt that computes electric dipole moment integrals, i.e.
Ref< TwoBodyThreeCenterInt > electron_repulsion3()
Return a TwoBodyThreeCenterInt that computes electron repulsion integrals.
CartesianIter * new_cartesian_iter(int)
Return a CartesianIter object.
size_t storage_required_g12nc(const Ref< GaussianBasisSet > &b1, const Ref< GaussianBasisSet > &b2=0, const Ref< GaussianBasisSet > &b3=0, const Ref< GaussianBasisSet > &b4=0)
Returns how much storage will be needed to initialize a two-body integrals evaluator for G12NC integr...
Ref< OneBodyInt > efield_dot_vector(const Ref< EfieldDotVectorData > &=0)
Return a OneBodyInt that computes the electric field integrals at a given position dotted with a give...
void set_basis(const Ref< GaussianBasisSet > &b1, const Ref< GaussianBasisSet > &b2=0, const Ref< GaussianBasisSet > &b3=0, const Ref< GaussianBasisSet > &b4=0)
Set the basis set for each center.
Ref< TwoBodyInt > delta_function_4()
Return a TwoBodyInt that computes two-electron integrals of TwoBodyOper::delta.
RedundantCartesianIter * new_redundant_cartesian_iter(int)
Return a RedundantCartesianIter object.
SphericalTransformIter * new_spherical_transform_iter(int l, int inv=0, int subl=-1)
Return a SphericalTransformIter object.
size_t storage_required_g12(const Ref< GaussianBasisSet > &b1, const Ref< GaussianBasisSet > &b2=0, const Ref< GaussianBasisSet > &b3=0, const Ref< GaussianBasisSet > &b4=0)
Returns how much storage will be needed to initialize a two-body integrals evaluator for G12 integral...
Ref< OneBodyInt > kinetic()
Return a OneBodyInt that computes the kinetic energy.
Ref< OneBodyInt > point_charge(const Ref< PointChargeData > &=0)
Return a OneBodyInt that computes the integrals for interactions with point charges.
Ref< TwoBodyInt > r12m1g12_4(const Ref< IntParamsG12 > &p)
Return a TwoBodyInt that computes two-electron integrals of TwoBodyOper::r12_m1_g12.
Ref< OneBodyInt > overlap()
Return a OneBodyInt that computes the overlap.
Ref< OneBodyInt > efield(const Ref< IntParamsOrigin > &)
Return a OneBodyInt that computes the electric field integrals at specified point.
Ref< TwoBodyInt > g12t1g12_4(const Ref< IntParamsG12 > &p)
Return a TwoBodyInt that computes two-electron integrals of TwoBodyOper::g12t1g12.
Ref< TwoBodyTwoCenterInt > electron_repulsion2()
Return a TwoBodyTwoCenterInt that computes electron repulsion integrals.
Ref< TwoBodyInt > g12_4(const Ref< IntParamsG12 > &p)
Return a TwoBodyInt that computes two-electron integrals specific to explicitly correlated methods wh...
size_t storage_required_g12dkh(const Ref< GaussianBasisSet > &b1, const Ref< GaussianBasisSet > &b2=0, const Ref< GaussianBasisSet > &b3=0, const Ref< GaussianBasisSet > &b4=0)
Returns how much storage will be needed to initialize a two-body integrals evaluator for G12DKH integ...
Ref< TwoBodyInt > electron_repulsion()
Return a TwoBodyInt that computes electron repulsion integrals.
RedundantCartesianSubIter * new_redundant_cartesian_sub_iter(int)
Return a RedundantCartesianSubIter object.
Ref< OneBodyDerivInt > kinetic_deriv()
Return a OneBodyDerivInt that computes kinetic energy derivatives.
CartesianOrdering cartesian_ordering() const
implements Integral::cartesian_ordering()
Ref< OneBodyInt > hcore()
Return a OneBodyInt that computes the core Hamiltonian integrals.
Ref< OneBodyDerivInt > hcore_deriv()
Return a OneBodyDerivInt that computes core Hamiltonian derivatives.
Ref< OneBodyInt > nuclear()
Return a OneBodyInt that computes the nuclear repulsion integrals.
Ref< OneBodyInt > quadrupole(const Ref< IntParamsOrigin > &=0)
Return a OneBodyInt that computes electric quadrupole moment integrals, i.e.
size_t storage_required_eri(const Ref< GaussianBasisSet > &b1, const Ref< GaussianBasisSet > &b2=0, const Ref< GaussianBasisSet > &b3=0, const Ref< GaussianBasisSet > &b4=0)
Returns how much storage will be needed to initialize a two-body integrals evaluator for electron rep...
Ref< TwoBodyInt > g12nc_4(const Ref< IntParamsG12 > &p)
Return a TwoBodyInt that computes two-electron integrals specific to explicitly correlated methods wh...
Ref< TwoBodyInt > r120g12_4(const Ref< IntParamsG12 > &p)
Return a TwoBodyInt that computes two-electron integrals of TwoBodyOper::r12_0_g12.
const SphericalTransform * spherical_transform(int l, int inv=0, int subl=-1)
Return a SphericalTransform object.
Integral * clone()
Clones the given Integral factory. The new factory may need to have set_basis and set_storage to be c...
Ref< OneBodyDerivInt > overlap_deriv()
Return a OneBodyDerivInt that computes overlap derivatives.
Ref< TwoBodyInt > g12dkh_4(const Ref< IntParamsG12 > &p)
Return a TwoBodyInt that computes two-electron integrals specific to relativistic explicitly correlat...
void save_data_state(StateOut &)
Save the base classes (with save_data_state) and the members in the same order that the StateIn CTOR ...
Ref< TwoBodyDerivInt > electron_repulsion_deriv()
Return a TwoBodyDerivInt that computes electron repulsion derivatives.
Ref< OneBodyInt > p4()
Return a OneBodyInt that computes .
Ref< OneBodyInt > efield_gradient(const Ref< IntParamsOrigin > &)
Return a OneBodyInt that computes the electric field gradient integrals at specified point.
The Integral abstract class acts as a factory to provide objects that compute one and two electron in...
Definition integral.h:111
CartesianOrdering
Describes the ordering of the cartesian functions in a shell.
Definition integral.h:175
Definition libint2.h:163
RedundantCartesianIter objects loop through all possible combinations of a given number of axes.
Definition cartiter.h:82
Like RedundantCartesianIter, except a, b, and c are fixed to a given value.
Definition cartiter.h:172
A template class that maintains references counts.
Definition ref.h:361
This iterates through the components of a SphericalTransform.
Definition transform.h:138
Definition tform.h:54
This is a base class for a container for a sparse Cartesian to solid harmonic basis function transfor...
Definition transform.h:75
Restores fundamental and user-defined types from images created with StateOut.
Definition statein.h:79
Serializes fundamental and user-defined types.
Definition stateout.h:71
Contains all MPQC code up to version 3.
Definition mpqcin.h:14

Generated at Wed Sep 25 2024 02:45:29 for MPQC 3.0.0-alpha using the documentation package Doxygen 1.12.0.