n2p2 - A neural network potential package
pair_hdnnp.h
Go to the documentation of this file.
1/* -*- c++ -*- ----------------------------------------------------------
2 LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
3 https://www.lammps.org/ Sandia National Laboratories
4 LAMMPS development team: developers@lammps.org
5
6 Copyright (2003) Sandia Corporation. Under the terms of Contract
7 DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains
8 certain rights in this software. This software is distributed under
9 the GNU General Public License.
10
11 This file initially came from n2p2 (https://github.com/CompPhysVienna/n2p2)
12 Copyright (2018) Andreas Singraber (University of Vienna)
13
14 See the README file in the top-level LAMMPS directory.
15------------------------------------------------------------------------- */
16
17/* ----------------------------------------------------------------------
18 Contributing author: Andreas Singraber
19------------------------------------------------------------------------- */
20
21#ifdef PAIR_CLASS
22// clang-format off
23PairStyle(hdnnp,PairHDNNP);
24// clang-format on
25#else
26
27#ifndef LMP_PAIR_HDNNP_H
28#define LMP_PAIR_HDNNP_H
29
30#include "pair.h"
31
32namespace nnp {
33class InterfaceLammps;
34}
35
36namespace LAMMPS_NS {
37
38class PairHDNNP : public Pair {
39
40 public:
41 PairHDNNP(class LAMMPS *);
42 ~PairHDNNP() override;
43 void compute(int, int) override;
44 void settings(int, char **) override;
45 void coeff(int, char **) override;
46 void init_style() override;
47 double init_one(int, int) override;
48
49 protected:
50 virtual void allocate();
53
54 bool showew;
55 bool resetew;
57 int maxew;
60 double cflength;
61 double cfenergy;
63 char *directory;
64 std::string emap;
66};
67
68} // namespace LAMMPS_NS
69
70#endif
71#endif
long numExtrapolationWarningsSummary
Definition: pair_hdnnp.h:59
void init_style() override
Definition: pair_hdnnp.cpp:226
void handleExtrapolationWarnings()
Definition: pair_hdnnp.cpp:292
~PairHDNNP() override
Definition: pair_hdnnp.cpp:72
double init_one(int, int) override
Definition: pair_hdnnp.cpp:253
void compute(int, int) override
Definition: pair_hdnnp.cpp:81
void settings(int, char **) override
Definition: pair_hdnnp.cpp:120
std::string emap
Definition: pair_hdnnp.h:64
virtual void allocate()
Definition: pair_hdnnp.cpp:262
PairHDNNP(class LAMMPS *)
Definition: pair_hdnnp.cpp:55
void coeff(int, char **) override
Definition: pair_hdnnp.cpp:186
long numExtrapolationWarningsTotal
Definition: pair_hdnnp.h:58
nnp::InterfaceLammps * interface
Definition: pair_hdnnp.h:65
Definition: Atom.h:29