1 #ifndef QNANO_NEW_LATTICE_DEFINED_H 2 #define QNANO_NEW_LATTICE_DEFINED_H 4 #include "tools/Reader.h" 5 #include "tools/List_Class.h" 6 #include "structure/Atom.h" 7 #include "tools/Parameter_Map.h" 18 std::vector<int> nn_unitcells;
50 Vec3d cartesian_from_lattice_units(
const Vec3d &v)
const;
53 double get_first_bondlength()
const;
56 std::pair<int, int> find(
const Vec3d& D,
int type,
double tolerance=0.2)
const;
57 std::pair<int, int> find_check(
const Vec3d& D,
int type,
double tolerance=0.2)
const;
61 void read(
const std::string &filename,
const double sx=1.,
const double sy=1.,
const double sz=1.);
67 void print(
const std::string &filename)
const;
68 void read_from_material_file(
const std::string &material,
const std::string &alt_dir=
"");
69 void read_from_positions_file(
const std::string &mat_dir,
const std::string &positionsfilename);
70 void print_info(std::ostream &ofs=std::cout)
const;
74 Lattice(){lattice_vectors_set_up=
false;}
75 Lattice(
const std::string &filename){
76 read(filename,1.,1.,1.);
77 lattice_vectors_set_up=
false;
79 Lattice(
const std::string &filename,
const double sx,
const double sy,
const double sz){
80 read(filename,sx,sy,sz);
bool lattice_vectors_set_up
set if proper lattice constants have been specified and (reciprocal) lattice vectors have been set up...
Definition: Lattice.h:43
Class to store positions and to handle operations on 3d vectors.
Definition: Vec3d.h:9
Definition: List_Class.h:8
A single bond.
Definition: Lattice.h:15
Bonds associated to one atom in a lattice (cf. Lattice)
Definition: Lattice.h:25