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

clscf.h

00001 //
00002 // clscf.h --- definition of the closed shell SCF 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_scf_clscf_h
00029 #define _chemistry_qc_scf_clscf_h
00030 
00031 #ifdef __GNUC__
00032 #pragma interface
00033 #endif
00034 
00035 #include <chemistry/qc/scf/scf.h>
00036 
00037 // //////////////////////////////////////////////////////////////////////////
00038 
00041 class CLSCF: public SCF {
00042   protected:
00043     Ref<PointGroup> most_recent_pg_;
00044     int user_occupations_;
00045     int tndocc_;
00046     int nirrep_;
00047     int *initial_ndocc_;
00048     int *ndocc_;
00049 
00050     ResultRefSymmSCMatrix cl_fock_;
00051 
00052   public:
00053     CLSCF(StateIn&);
00067     CLSCF(const Ref<KeyVal>&);
00068     ~CLSCF();
00069 
00070     void save_data_state(StateOut&);
00071 
00072     void print(std::ostream&o=ExEnv::out()) const;
00073 
00074     double occupation(int irrep, int vectornum);
00075 
00076     int n_fock_matrices() const;
00077     RefSymmSCMatrix fock(int);
00078     RefSymmSCMatrix effective_fock();
00079 
00080     RefSymmSCMatrix density();
00081 
00082     void symmetry_changed();
00083     
00084     // returns 0
00085     int spin_polarized();
00086 
00087   protected:
00088     // these are temporary data, so they should not be checkpointed
00089     RefSymmSCMatrix cl_dens_;
00090     RefSymmSCMatrix cl_dens_diff_;
00091     RefSymmSCMatrix cl_gmat_;
00092 
00093     void set_occupations(const RefDiagSCMatrix& evals);
00094 
00095     // scf things
00096     void init_vector();
00097     void done_vector();
00098     void reset_density();
00099     double new_density();
00100     double scf_energy();
00101 
00102     Ref<SCExtrapData> extrap_data();
00103     
00104     // gradient things
00105     void init_gradient();
00106     void done_gradient();
00107 
00108     RefSymmSCMatrix lagrangian();
00109     RefSymmSCMatrix gradient_density();
00110 
00111     // hessian things
00112     void init_hessian();
00113     void done_hessian();
00114 
00115     // The Hartree-Fock derivatives
00116     void two_body_deriv_hf(double*grad,double exchange_fraction);
00117 };
00118 
00119 #endif
00120 
00121 // Local Variables:
00122 // mode: c++
00123 // c-file-style: "ETS"
00124 // End:

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