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

hsosks.h

00001 //
00002 // hsosks.h --- definition of the restricted open shell Kohn-Sham SCF class
00003 // derived from clks.h
00004 //
00005 // Copyright (C) 1997 Limit Point Systems, Inc.
00006 //
00007 // Author: Edward Seidl <seidl@janed.com>
00008 // Maintainer: LPS
00009 //
00010 // This file is part of the SC Toolkit.
00011 //
00012 // The SC Toolkit is free software; you can redistribute it and/or modify
00013 // it under the terms of the GNU Library General Public License as published by
00014 // the Free Software Foundation; either version 2, or (at your option)
00015 // any later version.
00016 //
00017 // The SC Toolkit is distributed in the hope that it will be useful,
00018 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00019 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00020 // GNU Library General Public License for more details.
00021 //
00022 // You should have received a copy of the GNU Library General Public License
00023 // along with the SC Toolkit; see the file COPYING.LIB.  If not, write to
00024 // the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
00025 //
00026 // The U.S. Government is granted a limited license as per AL 91-7.
00027 //
00028 
00029 #ifndef _chemistry_qc_dft_hsosks_h
00030 #define _chemistry_qc_dft_hsosks_h
00031 
00032 #ifdef __GNUC__
00033 #pragma interface
00034 #endif
00035 
00036 #include <chemistry/qc/scf/hsosscf.h>
00037 #include <chemistry/qc/dft/integrator.h>
00038 #include <chemistry/qc/dft/functional.h>
00039 
00040 // //////////////////////////////////////////////////////////////////////////
00041 
00042 class HSOSKS: public HSOSSCF {
00043   protected:
00044     Ref<DenIntegrator> integrator_;
00045     Ref<DenFunctional> functional_;
00046     RefSymmSCMatrix vxc_a_;
00047     RefSymmSCMatrix vxc_b_;
00048 
00049     RefSymmSCMatrix cl_vxc();
00050     RefSymmSCMatrix op_vxc();
00051     
00052   public:
00053     HSOSKS(StateIn&);
00054     HSOSKS(const Ref<KeyVal>&);
00055     ~HSOSKS();
00056 
00057     void save_data_state(StateOut&);
00058 
00059     void print(std::ostream&o=ExEnv::out()) const;
00060 
00061     void two_body_energy(double &ec, double &ex);
00062 
00063     int value_implemented() const;
00064     int gradient_implemented() const;
00065 
00066   protected:
00067     void ao_fock(double accuracy);
00068     double exc_;
00069     double scf_energy();
00070     Ref<SCExtrapData> extrap_data();
00071     RefSymmSCMatrix effective_fock();
00072 
00073     void init_vector();
00074     void done_vector();
00075     
00076     void two_body_deriv(double*);
00077 
00078     RefSymmSCMatrix lagrangian();
00079 };
00080 
00081 #endif
00082 
00083 // Local Variables:
00084 // mode: c++
00085 // c-file-style: "ETS"
00086 // End:

Generated at Thu Oct 4 18:08:44 2001 for MPQC 2.0.0 using the documentation package Doxygen 1.2.5.