ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
socket_frame.h
Go to the documentation of this file.
1#ifndef SOURCE_RELAX_SOCKET_FRAME_H
2#define SOURCE_RELAX_SOCKET_FRAME_H
3
4#include <array>
5#include <cstddef>
6#include <cstdint>
7#include <string>
8#include <vector>
9
10namespace SocketFrame
11{
12using Matrix9 = std::array<double, 9>;
13
23
31
32Matrix9 transpose_matrix9(const Matrix9 &values);
34 const Matrix9 &cell_wire,
35 const Matrix9 &inverse_wire,
36 double max_condition_number,
37 double inverse_absolute_tolerance,
38 double inverse_relative_tolerance);
39bool validate_positions(const std::vector<double> &positions_bohr, std::size_t coordinate_count, std::string &message);
41 std::int32_t nat_socket,
42 int nat_expected,
43 std::size_t &coordinate_count,
44 std::string &message);
46 const Matrix9 &stress_ry_per_bohr3,
47 double volume_bohr3,
48 double antisymmetric_absolute_tolerance,
49 double antisymmetric_relative_tolerance);
50} // namespace SocketFrame
51
52#endif
Definition socket_frame.cpp:12
bool validate_positions(const std::vector< double > &positions_bohr, std::size_t coordinate_count, std::string &message)
Definition socket_frame.cpp:258
std::array< double, 9 > Matrix9
Definition socket_frame.h:12
bool checked_position_count(std::int32_t nat_socket, int nat_expected, std::size_t &coordinate_count, std::string &message)
Definition socket_frame.cpp:277
Matrix9 transpose_matrix9(const Matrix9 &values)
Definition socket_frame.cpp:198
CellValidation validate_ipi_cell(const Matrix9 &cell_wire, const Matrix9 &inverse_wire, double max_condition_number, double inverse_absolute_tolerance, double inverse_relative_tolerance)
Definition socket_frame.cpp:203
VirialConversion make_ipi_virial(const Matrix9 &stress_ry_per_bohr3, double volume_bohr3, double antisymmetric_absolute_tolerance, double antisymmetric_relative_tolerance)
Definition socket_frame.cpp:402
Definition socket_frame.h:15
double condition_number_2
Definition socket_frame.h:19
std::string message
Definition socket_frame.h:17
Matrix9 computed_inverse_wire_bohr_inv
Definition socket_frame.h:21
double determinant_bohr3
Definition socket_frame.h:18
bool ok
Definition socket_frame.h:16
double inverse_residual
Definition socket_frame.h:20
Definition socket_frame.h:25
bool ok
Definition socket_frame.h:26
std::string message
Definition socket_frame.h:27
Matrix9 wire_virial_hartree
Definition socket_frame.h:28
double max_antisymmetric_component
Definition socket_frame.h:29