eOn client
Long-timescale dynamics: aKMC, NEB, parallel replica
☾
Toggle main menu visibility
Loading...
Searching...
No Matches
Water.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
*/
12
#include "
eon/potentials/Water/Water.hpp
"
13
14
void
Tip4p::force
(
long
N,
const
double
*R,
const
int
*atomicNrs,
double
*F,
15
double
*U,
double
*variance,
const
double
*box) {
16
if
(variance) {
17
*variance = 0.0;
18
}
19
double
diagbox[3];
20
diagbox[0] = box[0];
21
diagbox[1] = box[4];
22
diagbox[2] = box[8];
23
computeHH_O_
(N, R, F, *U, diagbox, 0);
24
}
25
26
void
SpceCcl::force
(
long
N,
const
double
*R,
const
int
*atomicNrs,
double
*F,
27
double
*U,
double
*variance,
const
double
*box) {
28
variance =
nullptr
;
29
double
diagbox[3];
30
diagbox[0] = box[0];
31
diagbox[1] = box[4];
32
diagbox[2] = box[8];
33
computeHH_O_
(N, R, F, *U, diagbox, 0);
34
}
Water.hpp
Wrapper for Eon.
SpceCcl::force
void force(long N, const double *R, const int *atomicNrs, double *F, double *U, double *variance, const double *box) override
Definition
Water.cpp:26
Tip4p::force
void force(long N, const double *R, const int *atomicNrs, double *F, double *U, double *variance, const double *box) override
Definition
Water.cpp:14
forcefields::SpceCcl::computeHH_O_
void computeHH_O_(const int nAtoms, const double R[], double F[], double &U, const double b[])
Compute the forces and the energy.
Definition
spce_ccl.cpp:62
forcefields::Tip4p::computeHH_O_
void computeHH_O_(const int nAtoms, const double R[], double F[], double &U, const double b[])
Compute the forces and the energy.
Definition
tip4p_ccl.cpp:85
client
potentials
Water
Water.cpp
Generated by
1.17.0
Generated by
Doxygen 1.17.0
Analytics by
Antics
provided by
TurtleTech ehf