35 int xidx =
para_.period().x / 2;
36 int yidx =
para_.period().y / 2;
37 int zidx =
para_.period().z / 2;
39 for (
int it1 = 0; it1 <
ucell_.ntype; ++it1)
41 if (
ucell_.atoms[it1].flag_empty_element)
45 for (
int it2 = 0; it2 <
ucell_.ntype; ++it2)
47 if (
ucell_.atoms[it2].flag_empty_element)
51 const double C6_product =
61 for (
int ia1 = 0; ia1 !=
ucell_.atoms[it1].na; ++ia1)
64 for (
int ia2 = 0; ia2 !=
ucell_.atoms[it2].na; ++ia2)
67 for (ilat_loop.
x = -xidx; ilat_loop.
x <= xidx; ++ilat_loop.
x)
69 for (ilat_loop.
y = -yidx; ilat_loop.
y <= yidx; ++ilat_loop.
y)
71 for (ilat_loop.
z = -zidx; ilat_loop.
z <= zidx; ++ilat_loop.
z)
73 if ((!(ilat_loop.
x || ilat_loop.
y || ilat_loop.
z)) && (it1 == it2) && (ia1 == ia2))
79 const double r_sqr = (tau1 - tau2).norm2();
80 const double r = sqrt(r_sqr);
81 f(r, R0_sum, C6_product, r_sqr, it1, ia1, tau1, tau2);
3 elements vector
Definition vector3.h:21
T x
Definition vector3.h:23
T y
Definition vector3.h:24
T z
Definition vector3.h:25
Provide the basic information about unitcell.
Definition unitcell.h:16
const UnitCell & ucell_
Definition vdw.h:55
Vdw(const UnitCell &unit_in)
Definition vdw.h:43
Definition vdwd2_parameters.h:20
const Vdwd2Parameters & parameter() const
Definition vdwd2.h:25
Vdwd2Parameters para_
Definition vdwd2.h:28
Vdwd2(const UnitCell &unit_in)
Definition vdwd2.h:20
Vdwd2Parameters & parameter()
Definition vdwd2.h:24
void index_loops(F &&f)
Definition vdwd2.h:33
void evaluate_impl(const VdwRequest &request, VdwResult &result) override
Definition vdwd2.cpp:17
void WARNING_QUIT(const std::string &, const std::string &)
Combine the functions of WARNING and QUIT.
Definition test_delley.cpp:15
Definition esolver_fp.h:18