![]() |
ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
|
#include <utils/device_qualifier.hpp>#include <utils/math/sqr.hpp>#include <cmath>#include <numbers>#include <stdexcept>#include <string>Go to the source code of this file.
Namespaces | |
| namespace | math |
Macros | |
| #define | P3M_BRILLOUIN 0 |
| P3M: Number of Brillouin zones taken into account in the calculation of the optimal influence function (aliasing sums). | |
| #define | USE_ERFC_APPROXIMATION 1 |
| Whether to use the Abramowitz/Stegun approximation [1] Utils::AS_erfc_part() for \(\exp(d^2) \mathrm{erfc}(d)\), or the C function std::erfc() in P3M. | |
Functions | |
| DEVICE_QUALIFIER auto | math::abs (double x) |
| Return the absolute value of x. | |
| DEVICE_QUALIFIER auto | math::abs (float x) |
| Return the absolute value of x. | |
| template<typename T> | |
| DEVICE_QUALIFIER auto | math::sinc (T x) |
| Calculate the function \( \mathrm{sinc}(x) = \sin(\pi x)/(\pi x) \). | |
| template<int cao> | |
| DEVICE_QUALIFIER auto | math::analytic_cotangent_sum (int n, double mesh_i) |
| One of the aliasing sums used to compute k-space errors. | |
| auto | math::get_analytic_cotangent_sum_kernel (int cao) |
Variables | |
| constexpr int | p3m_min_cao = 1 |
| Minimal charge assignment order. | |
| constexpr int | p3m_max_cao = 7 |
| Maximal charge assignment order. | |
| #define P3M_BRILLOUIN 0 |
P3M: Number of Brillouin zones taken into account in the calculation of the optimal influence function (aliasing sums).
Definition at line 38 of file math.hpp.
Referenced by Aliasing_sums_ik(), CoulombP3MImpl< FloatType, Architecture, FFTConfig >::calc_influence_function_energy(), DipolarP3MHeffte< FloatType, Architecture, FFTConfig >::calc_influence_function_energy(), CoulombP3MImpl< FloatType, Architecture, FFTConfig >::calc_influence_function_force(), DipolarP3MHeffte< FloatType, Architecture, FFTConfig >::calc_influence_function_force(), dp3m_tune_aliasing_sums(), and p3m_tune_aliasing_sums().
| #define USE_ERFC_APPROXIMATION 1 |
Whether to use the Abramowitz/Stegun approximation [1] Utils::AS_erfc_part() for \(\exp(d^2) \mathrm{erfc}(d)\), or the C function std::erfc() in P3M.
|
inlineconstexpr |
Maximal charge assignment order.
Definition at line 50 of file math.hpp.
Referenced by math::analytic_cotangent_sum(), TuningAlgorithm::determine_cao_limits(), CoulombP3MImpl< FloatType, Architecture, FFTConfig >::init_cpu_kernels(), DipolarP3MHeffte< FloatType, Architecture, FFTConfig >::init_cpu_kernels(), and DipolarP3MHeffte< FloatType, Architecture, FFTConfig >::long_range_kernel().
|
inlineconstexpr |
Minimal charge assignment order.
Definition at line 48 of file math.hpp.
Referenced by math::analytic_cotangent_sum(), TuningAlgorithm::determine_cao_limits(), CoulombP3MImpl< FloatType, Architecture, FFTConfig >::init_cpu_kernels(), DipolarP3MHeffte< FloatType, Architecture, FFTConfig >::init_cpu_kernels(), and DipolarP3MHeffte< FloatType, Architecture, FFTConfig >::long_range_kernel().