![]() |
QMCPACK
|
The OptimalGrid class stores a grid which has linear spacing at the origin and exponential spacing further out. More...
Public Member Functions | |
GridType | Type () override |
Returns the type of the grid (i.e. linear, optimal, etc) More... | |
int | ReverseMap (double r) override |
Returns the index of the nearest point below r. More... | |
double | Geta () const |
Returns a parameter. More... | |
double | Getb () const |
Returns b parameter. More... | |
OptimalGrid () | |
void | Init (int numpoints, double rmax, double bval) |
This form of the constructor takes the number of points, the maximum radius and the value of b. More... | |
OptimalGrid (int numPoints, double rmax, double bval) | |
void | Init (double aval, double bval, int numPoints) |
OptimalGrid (double aval, double bval, int numPoints) | |
This form of the constructor takes a, b, and the number of points. More... | |
void | Write (IOSectionClass &outSection) override |
void | Read (IOSectionClass &inSection) override |
void | InitRatio (double end, double ratio, int numpoints) |
void | Init (double Z, double rmax) |
This form of the constructor takes a nuclear charge and a maxmimum radius and chooses an appropriate number of points for that atom. More... | |
OptimalGrid & | operator= (const OptimalGrid &opt) |
OptimalGrid (double Z, double rmax) | |
![]() | |
double | operator() (int i) const |
The i'th point in the grid. More... | |
double * | data () |
Array< double, 1 > & | Points () |
virtual | ~Grid () |
Private Attributes | |
double | a |
double | b |
Additional Inherited Members | |
![]() | |
double | Start |
First and last grid points. More... | |
double | End |
int | NumPoints |
Number of points in the grid. More... | |
![]() | |
Array< double, 1 > | grid |
Contains the grid points. More... | |
The OptimalGrid class stores a grid which has linear spacing at the origin and exponential spacing further out.
It has the analytic form
.
|
inline |
|
inline |
Definition at line 247 of file Grid.h.
References Init().
|
inline |
This form of the constructor takes a, b, and the number of points.
Definition at line 265 of file Grid.h.
References Init().
|
inline |
Definition at line 347 of file Grid.h.
References Init().
|
inline |
|
inline |
|
inline |
This form of the constructor takes the number of points, the maximum radius and the value of b.
Definition at line 234 of file Grid.h.
References a, b, Grid::End, qmcplusplus::exp(), Grid::grid, Grid::NumPoints, Array< T, D, ALLOC >::resize(), and Grid::Start.
Referenced by OptimalGrid(), and Read().
|
inline |
Definition at line 249 of file Grid.h.
References a, b, Grid::End, qmcplusplus::exp(), Grid::grid, Grid::NumPoints, Array< T, D, ALLOC >::resize(), and Grid::Start.
|
inline |
This form of the constructor takes a nuclear charge and a maxmimum radius and chooses an appropriate number of points for that atom.
Definition at line 313 of file Grid.h.
References a, b, qmcplusplus::ceil(), Grid::End, qmcplusplus::exp(), Grid::grid, qmcplusplus::log(), Grid::NumPoints, Array< T, D, ALLOC >::resize(), and Grid::Start.
|
inline |
Definition at line 295 of file Grid.h.
References a, b, Grid::End, qmcplusplus::exp(), Grid::grid, qmcplusplus::log(), Grid::NumPoints, and Array< T, D, ALLOC >::resize().
|
inline |
Definition at line 335 of file Grid.h.
References a, b, Grid::End, Grid::grid, Grid::NumPoints, Array< T, D, ALLOC >::resize(), Array< T, D, ALLOC >::shape(), and Grid::Start.
|
inlineoverridevirtual |
Implements Grid.
Definition at line 276 of file Grid.h.
References Init(), and IOSectionClass::ReadVar().
|
inlineoverridevirtual |
Returns the index of the nearest point below r.
Implements Grid.
Definition at line 213 of file Grid.h.
References a, b, qmcplusplus::Units::charge::e, qmcplusplus::floor(), and qmcplusplus::log().
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Implements Grid.
Definition at line 267 of file Grid.h.
References a, b, Grid::grid, Grid::NumPoints, and IOSectionClass::WriteVar().
|
private |
Definition at line 208 of file Grid.h.
Referenced by Geta(), Init(), InitRatio(), operator=(), ReverseMap(), and Write().
|
private |
Definition at line 208 of file Grid.h.
Referenced by Getb(), Init(), InitRatio(), operator=(), ReverseMap(), and Write().