MPQC  3.0.0-alpha
src/lib/chemistry/qc/dft/uks.h
00001 //
00002 // uks.h --- definition of the unrestricted Kohn-Sham class
00003 //
00004 // Copyright (C) 1997 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_scf_uks_h
00029 #define _chemistry_qc_scf_uks_h
00030 
00031 #include <chemistry/qc/scf/uscf.h>
00032 #include <chemistry/qc/dft/integrator.h>
00033 #include <chemistry/qc/dft/functional.h>
00034 
00035 namespace sc {
00036 
00037 // //////////////////////////////////////////////////////////////////////////
00038 
00043 class UKS: public UnrestrictedSCF {
00044   protected:
00045     Ref<DenIntegrator> integrator_;
00046     Ref<DenFunctional> functional_;
00047     RefSymmSCMatrix vaxc_;
00048     RefSymmSCMatrix vbxc_;
00049 
00050   public:
00051     UKS(StateIn&);
00066     UKS(const Ref<KeyVal>&);
00067     ~UKS();
00068 
00069     void save_data_state(StateOut&);
00070 
00071     void print(std::ostream&o=ExEnv::out0()) const;
00072 
00073     void two_body_energy(double &ec, double &ex);
00074 
00075     int value_implemented() const;
00076   protected:
00077     double exc_;
00078     
00079     void ao_fock(double accuracy);
00080     double scf_energy();
00081     Ref<SCExtrapData> extrap_data();
00082     void two_body_deriv(double*);
00083 
00084     void init_vector();
00085     void done_vector();
00086 
00087     bool analytic_gradient_implemented() const;
00088 };
00089 
00090 }
00091 
00092 #endif
00093 
00094 // Local Variables:
00095 // mode: c++
00096 // c-file-style: "ETS"
00097 // End:

Generated at Sat Jul 7 2012 11:52:44 for MPQC 3.0.0-alpha using the documentation package Doxygen 1.8.0.