34 const char* xmltext = R
"(<tmp> 36 <parameter name="lattice" units="bohr"> 37 6.00000000 0.00000000 0.00000000 38 0.00000000 6.00000000 0.00000000 39 0.00000000 0.00000000 6.00000000 41 <parameter name="bconds"> 44 <parameter name="LR_dim_cutoff"> 15 </parameter> 52 xmlNodePtr part1 = xmlFirstElementChild(root);
66 ions_.
R[0] = {2.0, 0.0, 0.0};
67 ions_.
R[1] = {-2.0, 0.0, 0.0};
74 elec_.
R[0] = {1.00, 0.0, 0.0};
75 elec_.
R[1] = {0.0, 0.0, 0.0};
76 elec_.
R[2] = {-1.00, 0.0, 0.0};
77 elec_.
R[3] = {0.0, 0.0, 2.0};
80 int downIdx = target_species.addSpecies(
"d");
81 int chargeIdx = target_species.addAttribute(
"charge");
82 target_species(chargeIdx, upIdx) = -1;
83 target_species(chargeIdx, downIdx) = -1;
89 <jastrow name="Jee" type="Two-Body" function="rpa"/> 96 xmlNodePtr jas_node = xmlFirstElementChild(root); 97 auto jas = std::make_unique<RPAJastrow>(elec_);
103 double logpsi_real =
std::real(jas->evaluateLog(elec_, elec_.
G, elec_.
L));
104 CHECK(logpsi_real == Approx(-1.3327837613));
a class that defines a supercell in D-dimensional Euclean space.
void setName(const std::string &aname)
class that handles xmlDoc
int addSpecies(const std::string &aname)
When a name species does not exist, add a new species.
helper functions for EinsplineSetBuilder
TEST_CASE("complex_helper", "[type_traits]")
void update(bool skipSK=false)
update the internal data
ParticleLaplacian L
laplacians of the particles
CrystalLattice< OHMMS_PRECISION, OHMMS_DIM > lattice
Specialized paritlce class for atomistic simulations.
REQUIRE(std::filesystem::exists(filename))
ParticleGradient G
gradients of the particles
SpeciesSet & getSpeciesSet()
retrun the SpeciesSet of this particle set
void create(const std::vector< int > &agroup)
create grouped particles
bool parseFromString(const std::string_view data)
Declaraton of ParticleAttrib<T>
CHECK(log_values[0]==ComplexApprox(std::complex< double >{ 5.603777579195571, -6.1586603331188225 }))
void createSK()
create Structure Factor with PBCs
Declaration of WaveFunctionComponent.
Custom container for set of attributes for a set of species.