00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 #ifndef _chemistry_qc_dft_am05_h
00030 #define _chemistry_qc_dft_am05_h
00031
00032 #ifdef __GNUC__
00033 #pragma interface
00034 #endif
00035
00036 #include <chemistry/qc/dft/functional.h>
00037
00038 namespace sc {
00039
00048 class AM05Functional: public DenFunctional {
00049 protected:
00050 void am05xc(double rho,double gam,
00051 double &fxc,double &dfxcdrho,double &dfxcdgamma);
00052 double am05_lambertw(double z);
00053 void xs(double rho,double &ex, double &vx);
00054 void pw(double rhoa,double rhob,
00055 double &ec,double &vca,double &vcb);
00056 void cpbe_lsd(double rhoa,double rhob,
00057 double &eps,double &vca,double &vcb);
00058 void pbe_gcor(double a,double a1,
00059 double b1,double b2,double b3,double b4,
00060 double rtrs,
00061 double &gg,double &ggrs);
00062 public:
00063 AM05Functional();
00064 AM05Functional(const Ref<KeyVal> &);
00065 AM05Functional(StateIn &);
00066 ~AM05Functional();
00067 void save_data_state(StateOut &);
00068 int need_density_gradient();
00069 int need_density_hessian();
00070 void point(const PointInputData&, PointOutputData&);
00071 void set_spin_polarized(int);
00072 };
00073
00074 }
00075
00076 #endif
00077
00078
00079
00080
00081