Loading...
Searching...
No Matches
forcefields::SpceCcl::Water Struct Reference

Pointers to molecule of water. More...

#include <spce_ccl.hpp>

Public Member Functions

 Water (double const rh1[], double const rh2[], double const ro[], double const rc[], double fh1[], double fh2[], double fo[])
 Water (Water const &w, double fh1[], double fh2[], double fo[])
void addForces (Water const &w)

Public Attributes

const double *const rh1_
const double *const rh2_
const double *const ro_
const double *const rc_
double *const fh1_
double *const fh2_
double *const fo_

Detailed Description

Pointers to molecule of water.

Pointers to coordinates and forces of a molecule of water.

Definition at line 78 of file spce_ccl.hpp.

Constructor & Destructor Documentation

◆ Water() [1/2]

forcefields::SpceCcl::Water::Water ( double const rh1[],
double const rh2[],
double const ro[],
double const rc[],
double fh1[],
double fh2[],
double fo[] )
inline

Definition at line 79 of file spce_ccl.hpp.

81 : rh1_(rh1),
82 rh2_(rh2),
83 ro_(ro),
84 rc_(rc),
85 fh1_(fh1),
86 fh2_(fh2),
87 fo_(fo) {}
const double *const rh1_
Definition spce_ccl.hpp:103
const double *const ro_
Definition spce_ccl.hpp:105
const double *const rc_
Definition spce_ccl.hpp:106
const double *const rh2_
Definition spce_ccl.hpp:104

◆ Water() [2/2]

forcefields::SpceCcl::Water::Water ( Water const & w,
double fh1[],
double fh2[],
double fo[] )
inline

Definition at line 88 of file spce_ccl.hpp.

89 : rh1_(w.rh1_),
90 rh2_(w.rh2_),
91 ro_(w.ro_),
92 rc_(w.rc_),
93 fh1_(fh1),
94 fh2_(fh2),
95 fo_(fo) {}

Member Function Documentation

◆ addForces()

void forcefields::SpceCcl::Water::addForces ( Water const & w)
inline

Definition at line 96 of file spce_ccl.hpp.

96 {
97 for (int a = 0; a < 3; ++a) {
98 fh1_[a] += w.fh1_[a];
99 fh2_[a] += w.fh2_[a];
100 fo_[a] += w.fo_[a];
101 };
102 }

Member Data Documentation

◆ fh1_

double* const forcefields::SpceCcl::Water::fh1_

Definition at line 107 of file spce_ccl.hpp.

◆ fh2_

double* const forcefields::SpceCcl::Water::fh2_

Definition at line 108 of file spce_ccl.hpp.

◆ fo_

double* const forcefields::SpceCcl::Water::fo_

Definition at line 109 of file spce_ccl.hpp.

◆ rc_

const double* const forcefields::SpceCcl::Water::rc_

Definition at line 106 of file spce_ccl.hpp.

◆ rh1_

const double* const forcefields::SpceCcl::Water::rh1_

Definition at line 103 of file spce_ccl.hpp.

◆ rh2_

const double* const forcefields::SpceCcl::Water::rh2_

Definition at line 104 of file spce_ccl.hpp.

◆ ro_

const double* const forcefields::SpceCcl::Water::ro_

Definition at line 105 of file spce_ccl.hpp.


The documentation for this struct was generated from the following file:
  • /home/runner/work/eOn/eOn/include/eon/potentials/Water/spce_ccl.hpp