Loading...
Searching...
No Matches
ReactiveAtomTypes.h
Go to the documentation of this file.
1// SPDX-License-Identifier: MIT
2// Copyright (c) gpridge developers
3// See LICENSE for details.
4#pragma once
5
6#include <Eigen/Dense>
7#include <array>
8#include <string>
9#include <unordered_map>
10#include <utility>
11#include <vector>
12
14
15namespace gpr::geometry {
16
20[[nodiscard]] double covalentRadius(int atomic_number);
21
25[[nodiscard]] std::vector<std::pair<int, int>> covalentBondGraph(
26 const Eigen::VectorXd& positions, const std::vector<int>& atomic_numbers,
27 const std::array<double, 9>& cell = {});
28
32 std::vector<int> reactive_atoms;
35 std::vector<Index_t> types;
38 std::unordered_map<std::string, Index_t> atomtypes;
39};
40
52 const Eigen::VectorXd& reactant, const Eigen::VectorXd& product,
53 const std::vector<int>& atomic_numbers, const std::vector<Index_t>& types,
54 const std::unordered_map<std::string, Index_t>& atomtypes,
55 const std::array<double, 9>& cell = {});
56
57} // namespace gpr::geometry
double covalentRadius(int atomic_number)
ReactiveAtomTypes assignReactiveAtomTypes(const Eigen::VectorXd &reactant, const Eigen::VectorXd &product, const std::vector< int > &atomic_numbers, const std::vector< Index_t > &types, const std::unordered_map< std::string, Index_t > &atomtypes, const std::array< double, 9 > &cell)
std::vector< std::pair< int, int > > covalentBondGraph(const Eigen::VectorXd &positions, const std::vector< int > &atomic_numbers, const std::array< double, 9 > &cell)
std::unordered_map< std::string, Index_t > atomtypes