MPQC  3.0.0-alpha
src/lib/chemistry/cca/molecule/energy.h
00001 //
00002 // energy.h
00003 //
00004 // Copyright (C) 2007 Sandia National Laboratories
00005 //
00006 // Author: Joseph Kenny <jpkenny@sandia.gov>
00007 // Maintainer: Joseph Kenny
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_cca_molecule_energy_h
00029 #define _chemistry_cca_molecule_energy_h
00030 
00031 #include <iostream>
00032 
00033 #include <util/misc/ccaenv.h>
00034 #include <math/optimize/function.h>
00035 #include <chemistry/molecule/energy.h>
00036 #include <chemistry/molecule/molecule.h>
00037 #include <chemistry/molecule/deriv.h>
00038 
00039 #include <Chemistry_QC_ModelFactoryInterface.hxx>
00040 #include <ChemistryOpt_CoordinateModelInterface.hxx>
00041 
00042 namespace sc {
00043 
00048 class MolecularEnergyCCA: public MolecularEnergy {
00049 
00050   private:
00051     std::string factory_name_;
00052     std::string coor_model_name_;
00053     Chemistry::MoleculeInterface cca_molecule_;
00054     ChemistryOpt::CoordinateModelInterface coor_model_;
00055     Chemistry::QC::ModelFactoryInterface factory_;
00056     gov::cca::ComponentID cm_id_;
00057     gov::cca::ComponentID fac_id_;
00058     gov::cca::ConnectionID con1_;
00059     gov::cca::ConnectionID con2_;
00060     sidl::array<double> sidlx_;
00061     sidl::array<double> sidlg_;
00062     RefSCDimension scdim_;
00063     
00064   protected:
00065 
00066   public:
00067     MolecularEnergyCCA(const MolecularEnergyCCA&);
00068     MolecularEnergyCCA(const Ref<KeyVal>&);
00069     MolecularEnergyCCA(StateIn&);
00070     ~MolecularEnergyCCA();
00071 
00072     void save_data_state(StateOut&);
00073     int value_implemented() const { return 1; }
00074     void init_model();
00075     void compute();
00076     void set_x(const RefSCVector& v);
00077 };
00078 
00079 }
00080 
00081 #endif

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