votca 2024.1-dev
Loading...
Searching...
No Matches
kmcmultiple.h
Go to the documentation of this file.
1/*
2 * Copyright 2009-2020 The VOTCA Development Team (http://www.votca.org)
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 *
16 */
17
18#pragma once
19#ifndef VOTCA_XTP_KMCMULTIPLE_H
20#define VOTCA_XTP_KMCMULTIPLE_H
21
22// Standard includes
23#include <fstream>
24
25// Local VOTCA includes
27
28namespace votca {
29namespace xtp {
30
31class KMCMultiple final : public KMCCalculator {
32 public:
33 KMCMultiple() = default;
34 ~KMCMultiple() = default;
35 bool WriteToStateFile() const { return false; }
36 std::string Identify() const { return "kmcmultiple"; }
37
38 protected:
39 void ParseSpecificOptions(const tools::Property& user_options);
40 bool Evaluate(Topology& top);
41
42 private:
43 void RunVSSM();
44 void PrintChargeVelocity(double simtime);
45
46 void PrintDiagDandMu(const Eigen::Matrix3d& avgdiffusiontensor,
47 double simtime, unsigned long step);
48
49 void WriteToEnergyFile(std::fstream& tfile, double simtime,
50 unsigned long step) const;
51
52 void WriteToTrajectory(std::fstream& traj,
53 std::vector<Eigen::Vector3d>& startposition,
54 double simtime, unsigned long step) const;
55
56 void PrintDiffandMu(const Eigen::Matrix3d& avgdiffusiontensor, double simtime,
57 unsigned long step);
58
59 double runtime_;
61 std::string timefile_ = "";
63 unsigned long diffusionresolution_ = 1000;
64};
65
66} // namespace xtp
67} // namespace votca
68
69#endif // VOTCA_XTP_KMCMULTIPLE_H
class to manage program options with xml serialization functionality
Definition property.h:55
bool Evaluate(Topology &top)
bool WriteToStateFile() const
Definition kmcmultiple.h:35
unsigned long diffusionresolution_
Definition kmcmultiple.h:63
void PrintChargeVelocity(double simtime)
void WriteToTrajectory(std::fstream &traj, std::vector< Eigen::Vector3d > &startposition, double simtime, unsigned long step) const
void WriteToEnergyFile(std::fstream &tfile, double simtime, unsigned long step) const
void PrintDiffandMu(const Eigen::Matrix3d &avgdiffusiontensor, double simtime, unsigned long step)
void PrintDiagDandMu(const Eigen::Matrix3d &avgdiffusiontensor, double simtime, unsigned long step)
std::string Identify() const
Calculator name.
Definition kmcmultiple.h:36
void ParseSpecificOptions(const tools::Property &user_options)
Container for segments and box and atoms.
Definition topology.h:41
base class for all analysis tools
Definition basebead.h:33
Eigen::Index Index
Definition types.h:26