MPQC  3.0.0-alpha
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 
35 namespace sc {
36 
37 class SphericalTransformLibint2;
38 class ISphericalTransformLibint2;
39 
41 class 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);
60  ~IntegralLibint2();
61 
63 
64  Integral* clone();
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 
140  Ref<TwoBodyThreeCenterInt> r120g12_3(const Ref<IntParamsG12>& p);
141  Ref<TwoBodyTwoCenterInt> r120g12_2(const Ref<IntParamsG12>& p);
142 
144  Ref<TwoBodyThreeCenterInt> r12m1g12_3(const Ref<IntParamsG12>& p);
145  Ref<TwoBodyTwoCenterInt> r12m1g12_2(const Ref<IntParamsG12>& p);
146 
148  Ref<TwoBodyThreeCenterInt> g12t1g12_3(const Ref<IntParamsG12>& p);
149  Ref<TwoBodyTwoCenterInt> g12t1g12_2(const Ref<IntParamsG12>& p);
150 
152  Ref<TwoBodyThreeCenterInt> delta_function_3();
153  Ref<TwoBodyTwoCenterInt> delta_function_2();
154 
155  void set_basis(const Ref<GaussianBasisSet> &b1,
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:
sc::IntegralLibint2::storage_required_eri
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...
sc::IntegralLibint2::nuclear_deriv
Ref< OneBodyDerivInt > nuclear_deriv()
Return a OneBodyDerivInt that computes nuclear repulsion derivatives.
sc::IntegralLibint2::nuclear
Ref< OneBodyInt > nuclear()
Return a OneBodyInt that computes the nuclear repulsion integrals.
sc::RedundantCartesianIter
RedundantCartesianIter objects loop through all possible combinations of a given number of axes.
Definition: cartiter.h:82
sc::IntegralLibint2::electron_repulsion_deriv
Ref< TwoBodyDerivInt > electron_repulsion_deriv()
Return a TwoBodyDerivInt that computes electron repulsion derivatives.
sc::IntegralLibint2::new_cartesian_iter
CartesianIter * new_cartesian_iter(int)
Return a CartesianIter object.
sc::CartesianIter
CartesianIter gives the ordering of the Cartesian functions within a shell for the particular integra...
Definition: cartiter.h:35
sc::Ref
A template class that maintains references counts.
Definition: ref.h:361
sc::IntegralLibint2::new_redundant_cartesian_iter
RedundantCartesianIter * new_redundant_cartesian_iter(int)
Return a RedundantCartesianIter object.
sc::IntegralLibint2::efield
Ref< OneBodyInt > efield(const Ref< IntParamsOrigin > &)
Return a OneBodyInt that computes the electric field integrals at specified point.
sc::IntegralLibint2::p4
Ref< OneBodyInt > p4()
Return a OneBodyInt that computes .
sc::IntegralLibint2::overlap
Ref< OneBodyInt > overlap()
Return a OneBodyInt that computes the overlap.
sc::Integral::CartesianOrdering
CartesianOrdering
Describes the ordering of the cartesian functions in a shell.
Definition: integral.h:175
sc::IntegralLibint2::electron_repulsion2
Ref< TwoBodyTwoCenterInt > electron_repulsion2()
Return a TwoBodyTwoCenterInt that computes electron repulsion integrals.
sc::IntegralLibint2::g12dkh_4
Ref< TwoBodyInt > g12dkh_4(const Ref< IntParamsG12 > &p)
Return a TwoBodyInt that computes two-electron integrals specific to relativistic explicitly correlat...
sc::IntegralLibint2::delta_function_4
Ref< TwoBodyInt > delta_function_4()
Return a TwoBodyInt that computes two-electron integrals of TwoBodyOper::delta.
sc::RedundantCartesianSubIter
Like RedundantCartesianIter, except a, b, and c are fixed to a given value.
Definition: cartiter.h:172
sc::IntegralLibint2::save_data_state
void save_data_state(StateOut &)
Save the base classes (with save_data_state) and the members in the same order that the StateIn CTOR ...
sc::IntegralLibint2::point_charge
Ref< OneBodyInt > point_charge(const Ref< PointChargeData > &=0)
Return a OneBodyInt that computes the integrals for interactions with point charges.
sc::IntegralLibint2::clone
Integral * clone()
Clones the given Integral factory. The new factory may need to have set_basis and set_storage to be c...
sc::IntegralLibint2::cartesian_ordering
CartesianOrdering cartesian_ordering() const
implements Integral::cartesian_ordering()
sc::IntegralLibint2::spherical_transform
const SphericalTransform * spherical_transform(int l, int inv=0, int subl=-1)
Return a SphericalTransform object.
sc::IntegralLibint2::quadrupole
Ref< OneBodyInt > quadrupole(const Ref< IntParamsOrigin > &=0)
Return a OneBodyInt that computes electric quadrupole moment integrals, i.e.
sc::IntegralLibint2::g12t1g12_4
Ref< TwoBodyInt > g12t1g12_4(const Ref< IntParamsG12 > &p)
Return a TwoBodyInt that computes two-electron integrals of TwoBodyOper::g12t1g12.
sc::SphericalTransformIter
This iterates through the components of a SphericalTransform.
Definition: transform.h:136
sc::StateIn
Definition: statein.h:79
sc::IntegralLibint2::storage_required_g12nc
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...
sc::ISphericalTransformLibint2
Definition: tform.h:65
sc::IntegralLibint2::set_basis
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.
sc::IntegralLibint2::efield_dot_vector
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...
sc::IntegralLibint2::hcore
Ref< OneBodyInt > hcore()
Return a OneBodyInt that computes the core Hamiltonian integrals.
sc::IntegralLibint2::hcore_deriv
Ref< OneBodyDerivInt > hcore_deriv()
Return a OneBodyDerivInt that computes core Hamiltonian derivatives.
sc::Libint2StaticInterface
Definition: libint2.h:163
sc::IntegralLibint2::kinetic
Ref< OneBodyInt > kinetic()
Return a OneBodyInt that computes the kinetic energy.
sc::IntegralLibint2::g12_4
Ref< TwoBodyInt > g12_4(const Ref< IntParamsG12 > &p)
Return a TwoBodyInt that computes two-electron integrals specific to explicitly correlated methods wh...
sc::IntegralLibint2::kinetic_deriv
Ref< OneBodyDerivInt > kinetic_deriv()
Return a OneBodyDerivInt that computes kinetic energy derivatives.
sc::IntegralLibint2::storage_required_g12
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...
sc::Integral
The Integral abstract class acts as a factory to provide objects that compute one and two electron in...
Definition: integral.h:111
sc::SphericalTransformLibint2
Definition: tform.h:54
sc::IntegralLibint2::overlap_deriv
Ref< OneBodyDerivInt > overlap_deriv()
Return a OneBodyDerivInt that computes overlap derivatives.
sc::IntegralLibint2::dipole
Ref< OneBodyInt > dipole(const Ref< IntParamsOrigin > &=0)
Return a OneBodyInt that computes electric dipole moment integrals, i.e.
sc::StateOut
Definition: stateout.h:71
sc::SphericalTransform
This is a base class for a container for a sparse Cartesian to solid harmonic basis function transfor...
Definition: transform.h:73
sc::IntegralLibint2::new_redundant_cartesian_sub_iter
RedundantCartesianSubIter * new_redundant_cartesian_sub_iter(int)
Return a RedundantCartesianSubIter object.
sc::IntegralLibint2::r120g12_4
Ref< TwoBodyInt > r120g12_4(const Ref< IntParamsG12 > &p)
Return a TwoBodyInt that computes two-electron integrals of TwoBodyOper::r12_0_g12.
sc::IntegralLibint2
IntegralLibint2 computes integrals between Gaussian basis functions.
Definition: libint2.h:41
sc::IntegralLibint2::r12m1g12_4
Ref< TwoBodyInt > r12m1g12_4(const Ref< IntParamsG12 > &p)
Return a TwoBodyInt that computes two-electron integrals of TwoBodyOper::r12_m1_g12.
sc::IntegralLibint2::electron_repulsion
Ref< TwoBodyInt > electron_repulsion()
Return a TwoBodyInt that computes electron repulsion integrals.
sc::IntegralLibint2::storage_required_g12dkh
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...
sc::IntegralLibint2::efield_gradient
Ref< OneBodyInt > efield_gradient(const Ref< IntParamsOrigin > &)
Return a OneBodyInt that computes the electric field gradient integrals at specified point.
sc::IntegralLibint2::new_spherical_transform_iter
SphericalTransformIter * new_spherical_transform_iter(int l, int inv=0, int subl=-1)
Return a SphericalTransformIter object.
sc::IntegralLibint2::electron_repulsion3
Ref< TwoBodyThreeCenterInt > electron_repulsion3()
Return a TwoBodyThreeCenterInt that computes electron repulsion integrals.
sc::IntegralLibint2::g12nc_4
Ref< TwoBodyInt > g12nc_4(const Ref< IntParamsG12 > &p)
Return a TwoBodyInt that computes two-electron integrals specific to explicitly correlated methods wh...
sc
Contains all MPQC code up to version 3.
Definition: mpqcin.h:14

Generated at Sun Jan 26 2020 23:23:58 for MPQC 3.0.0-alpha using the documentation package Doxygen 1.8.16.