sisi4s
|
#include <FiniteSizeCorrection.hpp>
Classes | |
class | Momentum |
Public Member Functions | |
virtual std::string | getName () |
FiniteSizeCorrection (std::vector< Argument > const &argumentList) | |
virtual | ~FiniteSizeCorrection () |
virtual void | run () |
Calculates the finite size correction. | |
virtual void | dryRun () |
Performs a Dry Run. | |
![]() | |
Algorithm (std::vector< Argument > const &argumentList) | |
virtual | ~Algorithm () |
virtual std::string | getName ()=0 |
virtual void | run ()=0 |
virtual void | dryRun () |
The dryRun estimates resource consumption, especially memory and processor time. | |
bool | isArgumentGiven (std::string const &argumentName) |
std::string | getTextArgument (std::string const &argumentName) |
std::string | getTextArgument (std::string const &argumentName, std::string const &defaultValue) |
bool | getBooleanArgument (std::string const &name) |
bool | getBooleanArgument (std::string const &name, bool const &defaultValue) |
int64_t | getIntegerArgument (std::string const &argumentName) |
int64_t | getIntegerArgument (std::string const &argumentName, int64_t const defaultValue) |
real | getRealArgument (std::string const &argumentName) |
real | getRealArgument (std::string const &argumentName, real const defaultValue) |
template<typename F = real, typename T = Tensor<F>> | |
T * | getTensorArgument (std::string const &argumentName) |
template<typename F = real, typename C = std::vector<F>> | |
C * | getContainerArgument (std::string const &argumentName) |
template<typename F = real, typename C = std::vector<F>> | |
void | allocateContainerArgument (std::string const &argumentName, C *container) |
std::vector< std::string > | getGivenArgumentNames () const |
void | checkArgumentsOrDie (const std::vector< std::string > args) const |
template<typename F = real, typename T = Tensor<F>> | |
void | allocatedTensorArgument (std::string const &argumentName, T *tensor) |
Specifies the location of an output tensor data. | |
void | setRealArgument (std::string const &argumentName, real const value) |
void | setIntegerArgument (std::string const &argumentName, int const value) |
real | getRealArgumentFromInteger (IntegerData *data) |
real | getRealArgumentFromTensor (TensorData< real > *data) |
template<typename F = real, typename T = Tensor<F>> | |
T * | getTensorArgumentFromReal (RealData *realData) |
Converts the given real data into a scalar tensor. | |
Data * | getArgumentData (std::string const &argumentName) |
Static Public Attributes | |
static sisi4s::AlgorithmRegistrar< FiniteSizeCorrection > | registrar_ |
Protected Member Functions | |
void | readFromFile () |
void | calculateRealStructureFactor () |
void | calculateComplexStructureFactor () |
void | constructFibonacciGrid (double R, int N) |
void | interpolation3D () |
bool | IsInSmallBZ (Vector< double > point, double scale, std::vector< sisi4s::Vector< double > > smallBZ) |
double | SGxVG (sisi4s::Inter1D< double > Int1d, double x) |
double | integrate (sisi4s::Inter1D< double > Int1d, double start, double end, int steps) |
double | simpson (sisi4s::Inter1D< double > Int1d, double x, double h) |
void | calculateFiniteSizeCorrection () |
void | dryCalculateStructureFactor () |
void | dryInterpolation3D () |
void | dryCalculateFiniteSizeCorrection () |
void | extrapolation (double minG, double maxG, int basisSetExtrapolation) |
double | simplestWindow (double Gmin, double Gmax, double G) |
double | integrateSimplestWindow (double Gmin, double Gmax) |
double | leastSquareFit (std::vector< double > fitabsG, std::vector< double > fitSF) |
void | basisSetCompleteness () |
Protected Attributes | |
int | NG |
std::vector< double > | GLengths |
std::vector< double > | averageSGs |
std::vector< double > | meanErrorSG |
std::vector< double > | structureFactors |
std::vector< double > | VofG |
double | GC |
double | inter3D |
double | sum3D |
Momentum * | fibonacciGrid |
Momentum * | cartesianGrid |
Static Protected Attributes | |
static constexpr int | DEFAULT_NUM_FIBONACCI = 128 |
Additional Inherited Members | |
![]() | |
std::string | note |
bool | fallible = false |
std::map< std::string, std::string > | arguments |
FiniteSizeCorrection::FiniteSizeCorrection | ( | std::vector< Argument > const & | argumentList | ) |
|
virtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
virtual |
|
protected |
|
inlinevirtual |
Implements sisi4s::Algorithm.
|
protected |
|
protected |
|
protected |
gte::IntpTrilinear3<double> interpolatedSG( boxDimensions[0], boxDimensions[1], boxDimensions[2], boxOrigin[0], 1, boxOrigin[1], 1, boxOrigin[2], 1, regularSG );
|
protected |
|
protected |
|
protected |
|
virtual |
Calculates the finite size correction.
Implements sisi4s::Algorithm.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticconstexprprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
static |
|
protected |
|
protected |
|
protected |