![]()
|
hsosks.h00001 // 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 namespace sc { 00041 00042 // ////////////////////////////////////////////////////////////////////////// 00043 00044 class HSOSKS: public HSOSSCF { 00045 protected: 00046 Ref<DenIntegrator> integrator_; 00047 Ref<DenFunctional> functional_; 00048 RefSymmSCMatrix vxc_a_; 00049 RefSymmSCMatrix vxc_b_; 00050 00051 RefSymmSCMatrix cl_vxc(); 00052 RefSymmSCMatrix op_vxc(); 00053 00054 public: 00055 HSOSKS(StateIn&); 00056 HSOSKS(const Ref<KeyVal>&); 00057 ~HSOSKS(); 00058 00059 void save_data_state(StateOut&); 00060 00061 void print(std::ostream&o=ExEnv::out0()) const; 00062 00063 void two_body_energy(double &ec, double &ex); 00064 00065 int value_implemented() const; 00066 int gradient_implemented() const; 00067 00068 protected: 00069 void ao_fock(double accuracy); 00070 double exc_; 00071 double scf_energy(); 00072 Ref<SCExtrapData> extrap_data(); 00073 RefSymmSCMatrix effective_fock(); 00074 00075 void init_vector(); 00076 void done_vector(); 00077 00078 void two_body_deriv(double*); 00079 00080 RefSymmSCMatrix lagrangian(); 00081 }; 00082 00083 } 00084 00085 #endif 00086 00087 // Local Variables: 00088 // mode: c++ 00089 // c-file-style: "ETS" 00090 // End: Generated at Fri Jan 10 08:14:09 2003 for MPQC 2.1.3 using the documentation package Doxygen 1.2.14. |