Google

Main Page   Class Hierarchy   Compound List   File List   Compound Members   Related Pages  

integral.h

00001 //
00002 // integral.h --- definition of the Integral class
00003 //
00004 // Copyright (C) 1996 Limit Point Systems, Inc.
00005 //
00006 // Author: Edward Seidl <seidl@janed.com>
00007 // Maintainer: LPS
00008 //
00009 // This file is part of the SC Toolkit.
00010 //
00011 // The SC Toolkit is free software; you can redistribute it and/or modify
00012 // it under the terms of the GNU Library General Public License as published by
00013 // the Free Software Foundation; either version 2, or (at your option)
00014 // any later version.
00015 //
00016 // The SC Toolkit is distributed in the hope that it will be useful,
00017 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00018 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00019 // GNU Library General Public License for more details.
00020 //
00021 // You should have received a copy of the GNU Library General Public License
00022 // along with the SC Toolkit; see the file COPYING.LIB.  If not, write to
00023 // the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
00024 //
00025 // The U.S. Government is granted a limited license as per AL 91-7.
00026 //
00027 
00028 #ifndef _chemistry_qc_basis_integral_h
00029 #define _chemistry_qc_basis_integral_h
00030 
00031 #ifdef __GNUC__
00032 #pragma interface
00033 #endif
00034 
00035 #include <stddef.h>
00036 
00037 #include <util/state/state.h>
00038 #include <util/group/message.h>
00039 #include <chemistry/qc/basis/basis.h>
00040 #include <chemistry/qc/basis/obint.h>
00041 #include <chemistry/qc/basis/tbint.h>
00042 
00043 namespace sc {
00044 
00045 class SymmetryOperation;
00046 class RefSymmSCMatrix;
00047 class ShellRotation;
00048 class CartesianIter;
00049 class RedundantCartesianIter;
00050 class RedundantCartesianSubIter;
00051 class SphericalTransformIter;
00052 class SphericalTransform;
00053 class PointBag_double;
00054 class PetiteList;
00055 
00058 class Integral : public SavableState {
00059   protected:
00062     Integral(const Ref<GaussianBasisSet> &b1,
00063              const Ref<GaussianBasisSet> &b2,
00064              const Ref<GaussianBasisSet> &b3,
00065              const Ref<GaussianBasisSet> &b4);
00066     Ref<GaussianBasisSet> bs1_;
00067     Ref<GaussianBasisSet> bs2_;
00068     Ref<GaussianBasisSet> bs3_;
00069     Ref<GaussianBasisSet> bs4_;
00070 
00071     // the maximum number of bytes that should be used for
00072     // storing intermediates
00073     size_t storage_;
00074     size_t storage_used_;
00075 
00076     Ref<MessageGrp> grp_;
00077   public:
00079     Integral(StateIn&);
00081     Integral(const Ref<KeyVal>&);
00082     
00083     void save_data_state(StateOut&);
00084 
00087     virtual int equiv(const Ref<Integral> &);
00088 
00090     void set_storage(size_t i) { storage_=i; };
00092     size_t storage_used() { return storage_used_; }
00094     size_t storage_unused();
00095 
00098     void adjust_storage(ptrdiff_t s) { storage_used_ += s; }
00099 
00101     Ref<PetiteList> petite_list();
00103     Ref<PetiteList> petite_list(const Ref<GaussianBasisSet>&);
00106     ShellRotation shell_rotation(int am, SymmetryOperation&, int pure=0);
00107 
00109     virtual void set_basis(const Ref<GaussianBasisSet> &b1,
00110                            const Ref<GaussianBasisSet> &b2 = 0,
00111                            const Ref<GaussianBasisSet> &b3 = 0,
00112                            const Ref<GaussianBasisSet> &b4 = 0);
00113 
00114     // /////////////////////////////////////////////////////////////////////
00115     // the following must be defined in the specific integral package
00116 
00119     virtual CartesianIter * new_cartesian_iter(int) =0;
00122     virtual RedundantCartesianIter * new_redundant_cartesian_iter(int) =0;
00125     virtual RedundantCartesianSubIter *
00126                                  new_redundant_cartesian_sub_iter(int) =0;
00129     virtual SphericalTransformIter *
00130                   new_spherical_transform_iter(int l,
00131                                                int inv=0, int subl=-1) =0;
00134     virtual const SphericalTransform *
00135                   spherical_transform(int l,
00136                                       int inv=0, int subl=-1) =0;
00137     
00139     virtual Ref<OneBodyInt> overlap() =0;
00140     
00142     virtual Ref<OneBodyInt> kinetic() =0;
00143 
00146     virtual Ref<OneBodyInt> point_charge(const Ref<PointChargeData>&) =0;
00147 
00150     virtual Ref<OneBodyInt> nuclear() = 0;
00151 
00153     virtual Ref<OneBodyInt> hcore() = 0;
00154 
00157     virtual Ref<OneBodyInt> efield_dot_vector(const Ref<EfieldDotVectorData>&) =0;
00158 
00160     virtual Ref<OneBodyInt> dipole(const Ref<DipoleData>&) =0;
00161 
00163     virtual Ref<OneBodyDerivInt> overlap_deriv() =0;
00164                                              
00166     virtual Ref<OneBodyDerivInt> kinetic_deriv() =0;
00167                                              
00169     virtual Ref<OneBodyDerivInt> nuclear_deriv() =0;
00170                                      
00172     virtual Ref<OneBodyDerivInt> hcore_deriv() =0;
00173                                              
00175     virtual Ref<TwoBodyInt> electron_repulsion() =0;
00176     
00178     virtual Ref<TwoBodyDerivInt> electron_repulsion_deriv() =0;
00179 
00181     Ref<MessageGrp> messagegrp() { return grp_; }
00182 };
00183 
00184 }
00185 
00186 #endif
00187 
00188 // Local Variables:
00189 // mode: c++
00190 // c-file-style: "ETS"
00191 // End:

Generated at Fri Jan 10 08:14:09 2003 for MPQC 2.1.3 using the documentation package Doxygen 1.2.14.