Loading...
Searching...
No Matches
Tip4p_Pt.cpp
Go to the documentation of this file.
1/*
2** This file is part of eOn.
3**
4** SPDX-License-Identifier: BSD-3-Clause
5**
6** Copyright (c) 2010--present, eOn Development Team
7** All rights reserved.
8**
9** Repo:
10** https://github.com/TheochemUI/eOn
11*/
13
14void Tip4p_Pt::force(long N, const double *R, const int *atomicNrs, double *F,
15 double *U, double *variance, const double *box) {
16 variance = nullptr;
17 double diagbox[3];
18 diagbox[0] = box[0];
19 diagbox[1] = box[4];
20 diagbox[2] = box[8];
21 int i = 0;
22 while (atomicNrs[i] == 1)
23 i += 2;
24 computeHH_O_Pt_(i / 2, N - i * 3 / 2, R, F, *U, diagbox, 0);
25}
Wrapper for Eon.
void force(long N, const double *R, const int *atomicNrs, double *F, double *U, double *variance, const double *box)
Definition Tip4p_Pt.cpp:14
void computeHH_O_Pt_(const int nWater, const int nPt, const double r[], double f[], double &energy, double const b[], bool const fixed[])
Compute water-platinum forcefield.