Gromacs  2016.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
#include <stdio.h>
#include "gromacs/math/vectypes.h"
#include "gromacs/mdtypes/commrec.h"
#include "gromacs/mdtypes/forcerec.h"
#include "gromacs/utility/real.h"
+ Include dependency graph for ewald.h:

Description

This file contains function declarations necessary for computing energies and forces for the plain-Ewald long-ranged part, and the correction for overall system charge for all Ewald-family methods.

Author
David van der Spoel david.nosp@m..van.nosp@m.dersp.nosp@m.oel@.nosp@m.icm.u.nosp@m.u.se
Mark Abraham mark..nosp@m.j.ab.nosp@m.raham.nosp@m.@gma.nosp@m.il.co.nosp@m.m

Functions

void init_ewald_tab (struct gmx_ewald_tab_t **et, const t_inputrec *ir, FILE *fp)
 Initialize the tables used in the Ewald long-ranged part.
 
real do_ewald (t_inputrec *ir, rvec x[], rvec f[], real chargeA[], real chargeB[], rvec box, t_commrec *cr, int natoms, matrix lrvir, real ewaldcoeff, real lambda, real *dvdlambda, struct gmx_ewald_tab_t *et)
 Do the long-ranged part of an Ewald calculation.
 
real ewald_charge_correction (t_commrec *cr, t_forcerec *fr, real lambda, matrix box, real *dvdlambda, tensor vir)
 Calculate the correction to the Ewald sum, due to a net system charge. More...
 

Function Documentation

real ewald_charge_correction ( t_commrec *  cr,
t_forcerec *  fr,
real  lambda,
matrix  box,
real dvdlambda,
tensor  vir 
)

Calculate the correction to the Ewald sum, due to a net system charge.

Should only be called on one thread.