QNANO
Sample.h
1 #ifndef QNANO_NEW_SAMPLE_DEFINED_H_
2 #define QNANO_NEW_SAMPLE_DEFINED_H_
3 
4 #include "structure/Atom_List.h"
5 #include "structure/Neighbor_List.h"
6 #include "tools/Parameter_Map.h"
7 #include "tightbinding/TB_Parameter_List.h"
8 
9 class Sample{
10 public:
19 
20  inline size_t size() const{ return atlist.size(); }
21 
23  void read_atoms(const std::string &filename);
25  void print_atoms(const std::string &filename, const std::vector<std::string> &materials = std::vector<std::string>() ) const;
26  void print_atoms(const std::string &filename, const std::string &material ) const{
27  print_atoms(filename, std::vector<std::string>(1,material) );
28  };
29 
30 
31  void read(const std::string &filename, const std::string &neighborfile="", const std::string &resources_dir="");
32  void setup(Parameter_Map &param_map);
33 
34  Sample();
35  Sample(const std::string &positionfile, const std::string &neighborfile="", const std::string &resources_dir="");
36  Sample(Parameter_Map &param_map);
37 
38 };
39 
40 #endif
Definition: Parameter_Map.h:12
void read_atoms(const std::string &filename)
read atoms from position file
Definition: Sample.cc:7
Neighbor_List nn_list
List of neighbors:
Definition: Sample.h:14
Definition: Atom_List.h:9
Definition: Neighbor_List.h:12
Definition: TB_Parameter_List.h:8
void print_atoms(const std::string &filename, const std::vector< std::string > &materials=std::vector< std::string >()) const
print position file
Definition: Sample.cc:11
Atom_List atlist
List of atoms:
Definition: Sample.h:12
Neighbor_List nn_list_unrelaxed
List of neighbors with distances corresponding to an equlibrium lattice.
Definition: Sample.h:16
TB_Parameter_List parlist
tight-binding Parameter list, used to obtain equilibrium lattice vectors
Definition: Sample.h:18
Definition: Sample.h:9