/****************************************************************************** This source file is part of the Avogadro project. Copyright (C) 2010 Eric C. Brown This source code is released under the New BSD License, (the "License"). Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ******************************************************************************/ #ifndef QTAIMWAVEFUNCTIONEVALUATOR_H #define QTAIMWAVEFUNCTIONEVALUATOR_H #include "qtaimwavefunction.h" #include using namespace Eigen; namespace Avogadro::QtPlugins { class QTAIMWavefunctionEvaluator { public: EIGEN_MAKE_ALIGNED_OPERATOR_NEW explicit QTAIMWavefunctionEvaluator(QTAIMWavefunction& wfn); qreal molecularOrbital(const qint64 mo, const Matrix xyz); qreal electronDensity(const Matrix xyz); Matrix gradientOfElectronDensity(const Matrix xyz); Matrix hessianOfElectronDensity(const Matrix xyz); Matrix gradientAndHessianOfElectronDensity( const Matrix xyz); qreal laplacianOfElectronDensity(const Matrix xyz); qreal electronDensityLaplacian(const Matrix xyz) { return laplacianOfElectronDensity(xyz); } Matrix gradientOfElectronDensityLaplacian( const Matrix xyz); Matrix hessianOfElectronDensityLaplacian( const Matrix xyz); Matrix gradientAndHessianOfElectronDensityLaplacian( const Matrix xyz); qreal kineticEnergyDensityG(const Matrix xyz); qreal kineticEnergyDensityK(const Matrix xyz); Matrix quantumStressTensor(const Matrix xyz); private: qint64 m_nmo; qint64 m_nprim; qint64 m_nnuc; // qint64 m_noccmo; // number of (significantly) occupied molecular // orbitals Matrix m_nucxcoord; Matrix m_nucycoord; Matrix m_nuczcoord; Matrix m_nucz; Matrix m_X0; Matrix m_Y0; Matrix m_Z0; Matrix m_xamom; Matrix m_yamom; Matrix m_zamom; Matrix m_alpha; Matrix m_occno; Matrix m_orbe; Matrix m_coef; qreal m_totalEnergy; qreal m_virialRatio; qreal m_cutoff; Matrix m_cdg000; Matrix m_cdg100; Matrix m_cdg010; Matrix m_cdg001; Matrix m_cdg200; Matrix m_cdg110; Matrix m_cdg101; Matrix m_cdg020; Matrix m_cdg011; Matrix m_cdg002; Matrix m_cdg300; Matrix m_cdg120; Matrix m_cdg102; Matrix m_cdg210; Matrix m_cdg030; Matrix m_cdg012; Matrix m_cdg201; Matrix m_cdg021; Matrix m_cdg003; Matrix m_cdg111; Matrix m_cdg400; Matrix m_cdg220; Matrix m_cdg202; Matrix m_cdg310; Matrix m_cdg130; Matrix m_cdg112; Matrix m_cdg301; Matrix m_cdg121; Matrix m_cdg103; Matrix m_cdg040; Matrix m_cdg022; Matrix m_cdg211; Matrix m_cdg031; Matrix m_cdg013; Matrix m_cdg004; static qreal ipow(qreal a, qint64 n) { return (qreal)pow(a, (int)n); } }; } // namespace Avogadro::QtPlugins #endif // QTAIMWAVEFUNCTIONEVALUATOR_H