45 beta = 1.0f / (phys::au::k * temperature);
65 double bias = fullbias / 2;
66 double HSB[4] = {bias, delta, delta, -bias};
82 Q[0] = 1.0f,
Q[1] = 0.0f,
Q[2] = 0.0f,
Q[3] = -1.0f;
111 for (
int j = 0, jadd1 = 1; j <
Nb; ++j, ++jadd1) {
112 x[jadd1] =
x[jadd1] * std::sqrt(0.5e0 / (
omegas[j] * tanh(0.5e0 *
beta *
omegas[j])));
113 p[jadd1] =
p[jadd1] * std::sqrt(0.5e0 *
omegas[j] / (tanh(0.5e0 *
beta *
omegas[j])));
137 for (
int j = 0, jadd1 = 1; j <
Nb; ++j, ++jadd1) {
142 for (
int j = 0, jadd1 = 1; j <
Nb; ++j, ++jadd1) {
this file provides Kernel_NADForce class enabling force weighting from electronic properties.
#define ARRAY_CLEAR(_A, _n)
static int rand_gaussian(kids_real *res_arr, int N=1, kids_real sigma=1.0, kids_real mu=0.0)
std::vector< std::shared_ptr< Kernel > > _child_kernels
Vector containing shared pointers to the child kernels of this kernel.
std::shared_ptr< Param > _param
Shared pointer to the Param object associated with this kernel.
Status & executeKernel(Status &stat)
Execute the kernel's algorithm and those of its children.
std::shared_ptr< DataSet > _dataset
Shared pointer to the DataSet object associated with this kernel.
kids_real * omegas
save discrete frequencies (only for simple model, L=1)
virtual int getType() const
Get the type of the kernel.
virtual void setInputParam_impl(std::shared_ptr< Param > &PM)
Virtual function to set input parameters for the kernel implementation.
kids_real * coeffs
save coupling coefficients (only for simple model, L=1)
virtual const std::string getName()
Get the name of the kernel.
virtual void setInputDataSet_impl(std::shared_ptr< DataSet > &DS)
Virtual function to set input data set for the kernel implementation.
virtual Status & executeKernel_impl(Status &stat)
Virtual function to execute the kernel implementation.
virtual Status & initializeKernel_impl(Status &stat)
Virtual function to initialize the kernel implementation.
#define LOC()
show the location information for debug
VARIABLE< kids_real > p_sigma
VARIABLE< kids_real > x_sigma
VARIABLE< kids_real > omegas
VARIABLE< kids_real > coeffs
VARIABLE< kids_real > hess
VARIABLE< kids_real > vpes
VARIABLE< kids_real > grad
VARIABLE< kids_real > mass
std::size_t PN
Product of P and N (P * N).
std::size_t NFF
Product of N, F, and F (N * F * F).
std::size_t N
Number of nuclear degrees of freedom.
std::size_t P
Number of parallel trajectories (swarms of trajectories) in each Monte Carlo run.
std::size_t NN
Product of N and N (N * N).
std::size_t FF
Product of F and F (F * F).
< http://warp.povusers.org/FunctionParser/fparser.html
double kids_real
Alias for real number type.
constexpr dimension7 temperature_d
constexpr dimension7 energy_d
[M*L^2/T^2] force integrate length
constexpr uint32_t hash(const char *str)
declaration of variables used in the program.