Loading...
Searching...
No Matches
ReadConLoader.h File Reference
#include <algorithm>
#include <array>
#include <cmath>
#include <cstddef>
#include <cstdint>
#include <istream>
#include <limits>
#include <string>
#include <unordered_map>
#include <vector>
#include "../../structures/Structures.h"
#include "readcon-core.h"

Go to the source code of this file.

Classes

struct  gpr::io::FrameEnergyForces

Namespaces

namespace  gpr
 Gaussian-process regression, kernels, priors, and the searches that run on the surrogate.
namespace  gpr::io

Functions

void gpr::io::loadEnvironmentAtomTypes (std::istream &input, gpr::AtomsConfiguration &atoms_config, const gpr::InputParameters &parameters)
void gpr::io::loadEnvironmentAtomTypes (const std::string &path, gpr::AtomsConfiguration &atoms_config, const gpr::InputParameters &parameters)
void gpr::io::initializeAtomsConfiguration (const gpr::Coord &R_init, const gpr::InputParameters &parameters, const std::unordered_map< std::string, gpr::Index_t > &atomtypes, gpr::AtomsConfiguration &atoms_config)
template<typename Type, typename AtomicNr>
std::vector< Type > gpr::io::elementAtomTypes (const AtomicNr *atomic_nrs, std::size_t n_atoms)
std::array< double, 9 > gpr::io::cellMatrixFromLengthsAndAngles (const std::array< double, 3 > &cell, const std::array< double, 3 > &angles)
void gpr::io::setCellDimensionsFromLengthsAndAngles (const std::array< double, 3 > &cell, const std::array< double, 3 > &angles, gpr::InputParameters &parameters)
void gpr::io::loadAtomsConfigurationFromFrame (const readcon::CFrame &frame, gpr::AtomsConfiguration &atoms_config, gpr::Coord &R_init, gpr::InputParameters &parameters, const readcon::CFrame *product, std::vector< int > *reactive_atoms)
double gpr::io::maxAtomicForce (const double *forces, std::size_t n_atoms) noexcept
 Largest atomic force norm. NaN when any component is non-finite.
int gpr::io::addAtomWithOptionalForce (readcon::RKRConFrameBuilder *builder, const char *symbol, double x, double y, double z, bool fixed, std::uint64_t atom_id, double mass, const double *force)
 Add one atom. force is three doubles, or null when the atom has none.
FrameEnergyForces gpr::io::frameEnergyForces (const readcon::RKRConFrame *frame, const readcon::CFrame &parsed)