Merge branch 'master' of git.gromacs.org:gromacs
[gromacs/rigid-bodies.git] / include / gpp_atomtype.h
bloba4a41f9a11fe77143348ad3b64e4832f8f65db37
1 /*
2 *
3 * This source code is part of
4 *
5 * G R O M A C S
6 *
7 * GROningen MAchine for Chemical Simulations
8 *
9 * VERSION 3.2.0
10 * Written by David van der Spoel, Erik Lindahl, Berk Hess, and others.
11 * Copyright (c) 1991-2000, University of Groningen, The Netherlands.
12 * Copyright (c) 2001-2004, The GROMACS development team,
13 * check out http://www.gromacs.org for more information.
15 * This program is free software; you can redistribute it and/or
16 * modify it under the terms of the GNU General Public License
17 * as published by the Free Software Foundation; either version 2
18 * of the License, or (at your option) any later version.
20 * If you want to redistribute modifications, please consider that
21 * scientific software is very special. Version control is crucial -
22 * bugs must be traceable. We will be happy to consider code for
23 * inclusion in the official distribution, but derived work must not
24 * be called official GROMACS. Details are found in the README & COPYING
25 * files - if they are missing, get the official version at www.gromacs.org.
27 * To help us fund GROMACS development, we humbly ask that you cite
28 * the papers on the package - you can find them in the top README file.
30 * For more info, check our website at http://www.gromacs.org
32 * And Hey:
33 * Gromacs Runs On Most of All Computer Systems
36 #ifndef _gpp_atomtype_h
37 #define _gpp_atomtype_h
39 #ifdef HAVE_CONFIG_H
40 #include <config.h>
41 #endif
43 #include <stdio.h>
44 #include "typedefs.h"
45 #include "macros.h"
47 #ifdef __cplusplus
48 extern "C" {
49 #endif
51 typedef struct gpp_atomtype *gpp_atomtype_t;
53 extern int get_atomtype_type(const char *str,gpp_atomtype_t at);
54 /* Return atomtype corresponding to case-insensitive str
55 or NOTSET if not found */
57 extern int get_atomtype_ntypes(gpp_atomtype_t at);
58 /* Return number of atomtypes */
60 extern char *get_atomtype_name(int nt,gpp_atomtype_t at);
61 /* Return name corresponding to atomtype nt, or NULL if not found */
63 extern real get_atomtype_massA(int nt,gpp_atomtype_t at);
64 extern real get_atomtype_massB(int nt,gpp_atomtype_t at);
65 extern real get_atomtype_qA(int nt,gpp_atomtype_t at);
66 extern real get_atomtype_qB(int nt,gpp_atomtype_t at);
67 extern real get_atomtype_radius(int nt,gpp_atomtype_t at);
68 extern real get_atomtype_vol(int nt,gpp_atomtype_t at);
69 extern real get_atomtype_surftens(int nt,gpp_atomtype_t at);
70 extern real get_atomtype_gb_radius(int nt,gpp_atomtype_t at);
71 extern real get_atomtype_S_hct(int nt,gpp_atomtype_t at);
72 extern int get_atomtype_ptype(int nt,gpp_atomtype_t at);
73 extern int get_atomtype_batype(int nt,gpp_atomtype_t at);
74 extern int get_atomtype_atomnumber(int nt,gpp_atomtype_t at);
76 /* Return the above variable for atomtype nt, or NOTSET if not found */
78 extern real get_atomtype_nbparam(int nt,int param,gpp_atomtype_t at);
79 /* Similar to the previous but returns the paramth parameter or NOTSET */
81 extern gpp_atomtype_t init_atomtype(void);
82 /* Return a new atomtype structure */
84 extern void done_atomtype(gpp_atomtype_t at);
85 /* Free the memory in the structure */
87 extern int set_atomtype(int nt,gpp_atomtype_t at,t_symtab *tab,
88 t_atom *a,const char *name,t_param *nb,
89 int bondatomtype,
90 real radius,real vol,real surftens,int atomnumber,
91 real gb_radius, real S_hct);
92 /* Set the values of an existing atom type nt. Returns nt on success or
93 NOTSET on error. */
95 int
96 set_atomtype_gbparam(gpp_atomtype_t at, int i,
97 real radius,real vol,real surftens,
98 real gb_radius, real S_hct);
100 extern int add_atomtype(gpp_atomtype_t at,t_symtab *tab,
101 t_atom *a,const char *name,t_param *nb,
102 int bondatomtype,
103 real radius,real vol,real surftens,real atomnumber,
104 real gb_radius, real S_hct);
105 /* Add a complete new atom type to an existing atomtype structure. Returns
106 the number of the atom type. */
108 extern void print_at (FILE * out, gpp_atomtype_t at);
109 /* Print an atomtype record to a text file */
111 extern void renum_atype(t_params plist[],gmx_mtop_t *mtop,
112 int *wall_atomtype,
113 gpp_atomtype_t at,bool bVerbose);
115 extern void copy_atomtype_atomtypes(gpp_atomtype_t atype,t_atomtypes *atypes);
116 /* Copy from one structure to another */
118 #ifdef __cplusplus
120 #endif
122 #endif /* _gpp_atomtype_h */