2 * This file is part of the GROMACS molecular simulation package.
4 * Copyright (c) 1991-2000, University of Groningen, The Netherlands.
5 * Copyright (c) 2001-2004, The GROMACS development team.
6 * Copyright (c) 2012,2013,2014,2015,2016 by the GROMACS development team.
7 * Copyright (c) 2017,2019,2020, by the GROMACS development team, led by
8 * Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
9 * and including many others, as listed in the AUTHORS file in the
10 * top-level source directory and at http://www.gromacs.org.
12 * GROMACS is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU Lesser General Public License
14 * as published by the Free Software Foundation; either version 2.1
15 * of the License, or (at your option) any later version.
17 * GROMACS is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 * Lesser General Public License for more details.
22 * You should have received a copy of the GNU Lesser General Public
23 * License along with GROMACS; if not, see
24 * http://www.gnu.org/licenses, or write to the Free Software Foundation,
25 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
27 * If you want to redistribute modifications to GROMACS, please
28 * consider that scientific software is very special. Version
29 * control is crucial - bugs must be traceable. We will be happy to
30 * consider code for inclusion in the official distribution, but
31 * derived work must not be called official GROMACS. Details are found
32 * in the README & COPYING files - if they are missing, get the
33 * official version at http://www.gromacs.org.
35 * To help us fund GROMACS development, we humbly ask that you cite
36 * the research papers on the package. Check out http://www.gromacs.org.
39 * Declares mdatom data structure.
42 * \ingroup module_mdtypes
44 #ifndef GMX_MDTYPES_MDATOM_H
45 #define GMX_MDTYPES_MDATOM_H
47 #include "gromacs/math/vectypes.h"
48 #include "gromacs/utility/basedefinitions.h"
49 #include "gromacs/utility/real.h"
51 typedef struct t_mdatoms
53 //! Total mass in state A
55 //! Total mass in state B
59 //! Number of atoms in arrays
61 //! Number of elements in arrays
63 //! Number of energy groups
65 //! Do we have multiple center of mass motion removal groups
67 //! Do we have any virtual sites?
69 //! Do we have atoms that are frozen along 1 or 2 (not 3) dimensions?
70 gmx_bool havePartiallyFrozenAtoms
;
71 //! Number of perturbed atoms
73 //! Number of atoms for which the mass is perturbed
75 //! Number of atoms for which the charge is perturbed
77 //! Number of atoms for which the type is perturbed
79 //! Do we have orientation restraints
81 //! Atomic mass in A state
83 //! Atomic mass in B state
85 //! Atomic mass in present state
87 //! Inverse atomic mass per atom, 0 for vsites and shells
89 //! Inverse atomic mass per atom and dimension, 0 for vsites, shells and frozen dimensions
91 //! Atomic charge in A state
93 //! Atomic charge in B state
95 //! Dispersion constant C6 in A state
97 //! Dispersion constant C6 in A state
99 //! Van der Waals radius sigma in the A state
101 //! Van der Waals radius sigma in the B state
103 //! Van der Waals radius sigma^3 in the A state
105 //! Van der Waals radius sigma^3 in the B state
107 //! Is this atom perturbed
108 gmx_bool
* bPerturbed
;
109 //! Type of atom in the A state
111 //! Type of atom in the B state
114 unsigned short* ptype
;
115 //! Group index for temperature coupling
117 //! Group index for energy matrix
118 unsigned short* cENER
;
119 //! Group index for acceleration
120 unsigned short* cACC
;
121 //! Group index for freezing
122 unsigned short* cFREEZE
;
123 //! Group index for center of mass motion removal
124 unsigned short* cVCM
;
125 //! Group index for user 1
127 //! Group index for user 2
129 //! Group index for orientation restraints
130 unsigned short* cORF
;
131 //! Number of atoms on this processor. TODO is this still used?
133 //! The lambda value used to create the contents of the struct