git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@12094 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -29,6 +29,7 @@
|
|||||||
#include "compute.h"
|
#include "compute.h"
|
||||||
#include "input.h"
|
#include "input.h"
|
||||||
#include "variable.h"
|
#include "variable.h"
|
||||||
|
#include "neighbor.h"
|
||||||
#include "force.h"
|
#include "force.h"
|
||||||
#include "pair.h"
|
#include "pair.h"
|
||||||
#include "bond.h"
|
#include "bond.h"
|
||||||
@ -54,7 +55,7 @@ using namespace MathConst;
|
|||||||
// xlat, ylat, zlat
|
// xlat, ylat, zlat
|
||||||
// bonds, angles, dihedrals, impropers,
|
// bonds, angles, dihedrals, impropers,
|
||||||
// pxx, pyy, pzz, pxy, pxz, pyz
|
// pxx, pyy, pzz, pxy, pxz, pyz
|
||||||
// fmax, fnorm
|
// fmax, fnorm, nbuild, ndanger,
|
||||||
// cella, cellb, cellc, cellalpha, cellbeta, cellgamma
|
// cella, cellb, cellc, cellalpha, cellbeta, cellgamma
|
||||||
|
|
||||||
// customize a new thermo style by adding a DEFINE to this list
|
// customize a new thermo style by adding a DEFINE to this list
|
||||||
@ -798,6 +799,11 @@ void Thermo::parse_fields(char *str)
|
|||||||
} else if (strcmp(word,"fnorm") == 0) {
|
} else if (strcmp(word,"fnorm") == 0) {
|
||||||
addfield("Fnorm",&Thermo::compute_fnorm,FLOAT);
|
addfield("Fnorm",&Thermo::compute_fnorm,FLOAT);
|
||||||
|
|
||||||
|
} else if (strcmp(word,"nbuild") == 0) {
|
||||||
|
addfield("Nbuild",&Thermo::compute_nbuild,BIGINT);
|
||||||
|
} else if (strcmp(word,"ndanger") == 0) {
|
||||||
|
addfield("Ndanger",&Thermo::compute_ndanger,BIGINT);
|
||||||
|
|
||||||
} else if (strcmp(word,"cella") == 0) {
|
} else if (strcmp(word,"cella") == 0) {
|
||||||
addfield("Cella",&Thermo::compute_cella,FLOAT);
|
addfield("Cella",&Thermo::compute_cella,FLOAT);
|
||||||
} else if (strcmp(word,"cellb") == 0) {
|
} else if (strcmp(word,"cellb") == 0) {
|
||||||
@ -1368,10 +1374,19 @@ int Thermo::evaluate_keyword(char *word, double *answer)
|
|||||||
pressure->invoked_flag |= INVOKED_VECTOR;
|
pressure->invoked_flag |= INVOKED_VECTOR;
|
||||||
}
|
}
|
||||||
compute_pyz();
|
compute_pyz();
|
||||||
|
}
|
||||||
|
|
||||||
} else if (strcmp(word,"fmax") == 0) compute_fmax();
|
else if (strcmp(word,"fmax") == 0) compute_fmax();
|
||||||
else if (strcmp(word,"fnorm") == 0) compute_fnorm();
|
else if (strcmp(word,"fnorm") == 0) compute_fnorm();
|
||||||
|
|
||||||
|
else if (strcmp(word,"nbuild") == 0) {
|
||||||
|
compute_nbuild();
|
||||||
|
dvalue = bivalue;
|
||||||
|
} else if (strcmp(word,"ndanger") == 0) {
|
||||||
|
compute_ndanger();
|
||||||
|
dvalue = bivalue;
|
||||||
|
}
|
||||||
|
|
||||||
else if (strcmp(word,"cella") == 0) compute_cella();
|
else if (strcmp(word,"cella") == 0) compute_cella();
|
||||||
else if (strcmp(word,"cellb") == 0) compute_cellb();
|
else if (strcmp(word,"cellb") == 0) compute_cellb();
|
||||||
else if (strcmp(word,"cellc") == 0) compute_cellc();
|
else if (strcmp(word,"cellc") == 0) compute_cellc();
|
||||||
@ -1972,6 +1987,20 @@ void Thermo::compute_fnorm()
|
|||||||
|
|
||||||
/* ---------------------------------------------------------------------- */
|
/* ---------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
void Thermo::compute_nbuild()
|
||||||
|
{
|
||||||
|
bivalue = neighbor->ncalls;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
void Thermo::compute_ndanger()
|
||||||
|
{
|
||||||
|
bivalue = neighbor->ndanger;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------- */
|
||||||
|
|
||||||
void Thermo::compute_cella()
|
void Thermo::compute_cella()
|
||||||
{
|
{
|
||||||
dvalue = domain->xprd;
|
dvalue = domain->xprd;
|
||||||
|
|||||||
@ -184,6 +184,9 @@ class Thermo : protected Pointers {
|
|||||||
void compute_fmax();
|
void compute_fmax();
|
||||||
void compute_fnorm();
|
void compute_fnorm();
|
||||||
|
|
||||||
|
void compute_nbuild();
|
||||||
|
void compute_ndanger();
|
||||||
|
|
||||||
void compute_cella();
|
void compute_cella();
|
||||||
void compute_cellb();
|
void compute_cellb();
|
||||||
void compute_cellc();
|
void compute_cellc();
|
||||||
|
|||||||
Reference in New Issue
Block a user