votca 2026-dev
Loading...
Searching...
No Matches
diabatwriter.h
Go to the documentation of this file.
1/*
2 * Copyright 2009-2026 The VOTCA Development Team
3 * (http://www.votca.org)
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License")
6 *
7 * You may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 *
18 */
19
20#pragma once
21#ifndef VOTCA_XTP_DIABATWRITER_H
22#define VOTCA_XTP_DIABATWRITER_H
23
24// Standard includes
25#include <ostream>
26#include <string>
27
28// Local VOTCA includes
29#include "votca/xtp/orbitals.h"
30#include "votca/xtp/qmstate.h"
31
32namespace votca {
33namespace xtp {
34
54 public:
57 void WriteFile(const std::string& filename, const Orbitals& orbitals,
58 QMStateType type, Index nstates = -1) const;
59
60 void Write(std::ostream& out, const Orbitals& orbitals, QMStateType type,
61 Index nstates = -1) const;
62
64 static constexpr const char* FormatIdentifier =
65 "# Information of wavefunction generated by Diabat 2.0";
66};
67
68} // namespace xtp
69} // namespace votca
70
71#endif // VOTCA_XTP_DIABATWRITER_H
Writes BSE excitations in the plain-text electronic-state format read by Diabat 2....
void Write(std::ostream &out, const Orbitals &orbitals, QMStateType type, Index nstates=-1) const
void WriteFile(const std::string &filename, const Orbitals &orbitals, QMStateType type, Index nstates=-1) const
static constexpr const char * FormatIdentifier
First line Diabat 2.0 uses to recognise its native state format.
Container for molecular orbitals and derived one-particle data.
Definition orbitals.h:47
Provides a means for comparing floating point numbers.
Definition basebead.h:33
Eigen::Index Index
Definition types.h:26