36 const char* xmltext = R
"(<tmp> 38 <parameter name="lattice" units="bohr"> 39 6.00000000 0.00000000 0.00000000 40 0.00000000 6.00000000 0.00000000 41 0.00000000 0.00000000 6.00000000 43 <parameter name="bconds"> 46 <parameter name="LR_dim_cutoff"> 15 </parameter> 54 xmlNodePtr part1 = xmlFirstElementChild(root);
68 ions_.
R[0] = {0.0, 0.0, 0.0};
71 elec_.
R[0] = {-0.28, 0.0225, -2.709};
72 elec_.
R[1] = {-1.08389, 1.9679, -0.0128914};
77 tspecies(chargeIdx, upIdx) = -1;
78 tspecies(chargeIdx, downIdx) = -1;
82 const char* particles = R
"(<tmp> 83 <jastrow name="Jk" type="kSpace" source="ion"> 84 <correlation kc="1.5" type="Two-Body" symmetry="isotropic"> 85 <coefficients id="cG2" type="Array"> 96 xmlNodePtr jas1 = xmlFirstElementChild(root); 99 std::unique_ptr<WaveFunctionComponent> jas(jastrow.buildComponent(jas1)); 104 double logpsi_real =
std::real(jas->evaluateLog(elec_, elec_.
G, elec_.
L));
105 CHECK(logpsi_real == Approx(-4.4088303951));
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
Communicate * Controller
Global Communicator for a process.
ParticleLaplacian L
laplacians of the particles
int addAttribute(const std::string &aname)
for a new attribute, allocate the data, !More often used to get the index of a species ...
Wrapping information on parallelism.
CrystalLattice< OHMMS_PRECISION, OHMMS_DIM > lattice
Specialized paritlce class for atomistic simulations.
REQUIRE(std::filesystem::exists(filename))
ParticleGradient G
gradients of the particles
Declaration of Long-range TwoBody Jastrow.
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)
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.
std::unique_ptr< WaveFunctionComponent > buildComponent(xmlNodePtr cur) override
process a xml node at cur
Declaration of ParticleSetPool.