GQCP
|
#include <WeightedGrid.hpp>
Public Member Functions | |
WeightedGrid (const std::vector< Vector< double, 3 > > &points, const ArrayX< double > &weights) | |
template<typename T > | |
T | integrate (const Field< T > &field) const |
size_t | numberOfPoints () const |
const Vector< double, 3 > & | point (const size_t index) const |
const std::vector< Vector< double, 3 > > & | points () const |
size_t | size () const |
double | weight (const size_t index) const |
const ArrayX< double > & | weights () const |
Static Public Member Functions | |
static WeightedGrid | FromCubicGrid (const CubicGrid &cubic_grid) |
static WeightedGrid | ReadIntegrationGridFile (const std::string &filename) |
A collection of points in 3D-space, with each point associated to a weight.
GQCP::WeightedGrid::WeightedGrid | ( | const std::vector< Vector< double, 3 > > & | points, |
const ArrayX< double > & | weights | ||
) |
A memberwise constructor.
points | the grid points |
weights | a 1-D array containing the weights for each of the grid points |
|
static |
Convert a cubic grid into a weighted grid, where the weights are all equal to the CubicGrid's voxel volume.
cubic_grid | the cubic grid |
|
inline |
Integrate a Field over this grid.
field | the field that should be integrated, i.e. provided as the integrand |
|
inline |
|
inline |
Access one of the grid's points.
index | the index of the grid point |
|
inline |
|
static |
Parse an .igrid-file and create the WeightedGrid that is contained in it. The values for the scalar field or vector field are discarded.
filename | the name of the .igrid-file |
|
inline |
|
inline |
Access one of the grid's weights.
index | the index of the weight |
|
inline |