Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F81012308
pair_nb3b_harmonic.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, Sep 3, 18:52
Size
1 KB
Mime Type
text/x-c
Expires
Thu, Sep 5, 18:52 (1 d, 22 h)
Engine
blob
Format
Raw Data
Handle
18838495
Attached To
rLAMMPS lammps
pair_nb3b_harmonic.h
View Options
/* --*- c++ -*- ---------------------------------------------------------
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
http://lammps.sandia.gov, Sandia National Laboratories
Steve Plimpton, sjplimp@sandia.gov
Copyright (2003) Sandia Corporation. Under the terms of Contract
DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains
certain rights in this software. This software is distributed under
the GNU General Public License.
See the README file in the top-level LAMMPS directory.
------------------------------------------------------------------------- */
#ifdef PAIR_CLASS
PairStyle
(
nb3b
/
harmonic
,
PairNb3bHarmonic
)
#else
#ifndef LMP_PAIR_NB3B_HARMONIC_H
#define LMP_PAIR_NB3B_HARMONIC_H
#include "pair.h"
namespace
LAMMPS_NS
{
class
PairNb3bHarmonic
:
public
Pair
{
public:
PairNb3bHarmonic
(
class
LAMMPS
*
);
virtual
~
PairNb3bHarmonic
();
virtual
void
compute
(
int
,
int
);
void
settings
(
int
,
char
**
);
void
coeff
(
int
,
char
**
);
double
init_one
(
int
,
int
);
void
init_style
();
protected:
struct
Param
{
double
k_theta
,
theta0
,
cutoff
;
double
cut
,
cutsq
;
int
ielement
,
jelement
,
kelement
;
};
double
cutmax
;
// max cutoff for all elements
int
nelements
;
// # of unique elements
char
**
elements
;
// names of unique elements
int
***
elem2param
;
// mapping from element triplets to parameters
int
*
map
;
// mapping from atom types to elements
int
nparams
;
// # of stored parameter sets
int
maxparam
;
// max # of parameter sets
Param
*
params
;
// parameter set for an I-J-K interaction
void
allocate
();
void
read_file
(
char
*
);
void
setup
();
void
twobody
(
Param
*
,
double
,
double
&
,
int
,
double
&
);
void
threebody
(
Param
*
,
Param
*
,
Param
*
,
double
,
double
,
double
*
,
double
*
,
double
*
,
double
*
,
int
,
double
&
);
};
}
#endif
#endif
Event Timeline
Log In to Comment