Scine::Sparrow  5.0.0
Library for fast and agile quantum chemical calculations with semiempirical methods.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
MoldenFileGenerator.h
Go to the documentation of this file.
1 
7 #ifndef SPARROW_MOLDENFILEGENERATOR_H
8 #define SPARROW_MOLDENFILEGENERATOR_H
9 
12 #include <Eigen/Core>
13 #include <map>
14 #include <memory>
15 #include <ostream>
16 namespace Scine {
17 namespace Sparrow {
18 class GenericMethodWrapper;
31  public:
36  explicit MoldenFileGenerator(const GenericMethodWrapper& calculator);
37  ~MoldenFileGenerator() = default;
38 
43  void generateWavefunctionInformation(std::ostream& out) const;
44 
45  private:
46  void generateAtomBlock(std::ostream& out) const;
47  void generateGTOBlock(std::ostream& out) const;
48  void generateMolecularOrbitalsBlock(std::ostream& out) const;
49  void writeMOBlock(std::ostream& out, Eigen::MatrixXd moMatrix, const std::vector<int>& filledOrb,
50  const std::vector<double>& moEnergies, const std::string& spin) const;
51  const GenericMethodWrapper& calculator_;
52  static std::map<int, nddo::GeneralTypes::orb_t> indexMap_;
53 };
54 } // namespace Sparrow
55 } // namespace Scine
56 
57 #endif // SPARROW_MOLDENFILEGENERATOR_H
MoldenFileGenerator(const GenericMethodWrapper &calculator)
Sets the calculator from which to generate a molden file.
Definition: MoldenFileGenerator.cpp:39
void generateWavefunctionInformation(std::ostream &out) const
Method to generate the molden input and print it somewhere.
Definition: MoldenFileGenerator.cpp:42
A MethodWrapper running Generic calculations.
Definition: GenericMethodWrapper.h:38
Class to create the wavefunction information needed for outputting densities,... Note that NDDO metho...
Definition: MoldenFileGenerator.h:30