votca 2024.1-dev
Loading...
Searching...
No Matches
density_integration.h
Go to the documentation of this file.
1/*
2 * Copyright 2009-2020 The VOTCA Development Team
3 * (http://www.votca.org)
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License")
6 *
7 * You may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 *
18 */
19
20#pragma once
21#ifndef VOTCA_XTP_DENSITY_INTEGRATION_H
22#define VOTCA_XTP_DENSITY_INTEGRATION_H
23
24// Local VOTCA includes
25#include "aobasis.h"
26#include "eigen.h"
27#include "regular_grid.h"
28#include "vxc_grid.h"
29
30namespace votca {
31namespace xtp {
32
34 double mass;
35 Eigen::Vector3d centroid;
36 Eigen::Matrix3d gyration;
37};
38
39template <class Grid>
41 public:
42 explicit DensityIntegration(const Grid& grid) : grid_(grid) {};
43
44 double IntegrateDensity(const Eigen::MatrixXd& density_matrix);
45 double IntegratePotential(const Eigen::Vector3d& rvector) const;
46 Eigen::Vector3d IntegrateField(const Eigen::Vector3d& rvector) const;
47 Eigen::MatrixXd IntegratePotential(const AOBasis& externalbasis) const;
48
49 Gyrationtensor IntegrateGyrationTensor(const Eigen::MatrixXd& density_matrix);
50
51 const std::vector<std::vector<double> >& getDensities() const {
52 return densities_;
53 }
54
55 private:
57 const Grid grid_;
58
59 std::vector<std::vector<double> > densities_;
60};
61
62} // namespace xtp
63} // namespace votca
64#endif // VOTCA_XTP_DENSITY_INTEGRATION_H
Container to hold Basisfunctions for all atoms.
Definition aobasis.h:42
const std::vector< std::vector< double > > & getDensities() const
Gyrationtensor IntegrateGyrationTensor(const Eigen::MatrixXd &density_matrix)
double IntegratePotential(const Eigen::Vector3d &rvector) const
std::vector< std::vector< double > > densities_
Eigen::Vector3d IntegrateField(const Eigen::Vector3d &rvector) const
double IntegrateDensity(const Eigen::MatrixXd &density_matrix)
base class for all analysis tools
Definition basebead.h:33