Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lammps
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
multiscale
lammps
Commits
6de45694
Commit
6de45694
authored
6 years ago
by
PabloPiaggi
Browse files
Options
Downloads
Patches
Plain Diff
Removed unused variables - corrected documentation
parent
fbc435a0
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
doc/src/compute_pair_entropy_atom.txt
+16
-16
16 additions, 16 deletions
doc/src/compute_pair_entropy_atom.txt
src/USER-MISC/compute_pair_entropy_atom.cpp
+2
-3
2 additions, 3 deletions
src/USER-MISC/compute_pair_entropy_atom.cpp
with
18 additions
and
19 deletions
doc/src/compute_pair_entropy_atom.txt
+
16
−
16
View file @
6de45694
...
@@ -37,19 +37,19 @@ Define a computation that calculates the pair entropy fingerprint for
...
@@ -37,19 +37,19 @@ Define a computation that calculates the pair entropy fingerprint for
each atom in the group. The fingerprint is useful to distinguish between
each atom in the group. The fingerprint is useful to distinguish between
ordered and disordered environments, for instance liquid and solid-like
ordered and disordered environments, for instance liquid and solid-like
environments, or glassy and crystalline-like environments. Some
environments, or glassy and crystalline-like environments. Some
applications could be the identification of grain boundaries, a
applications could be the identification of grain boundaries, a
melt-solid interface, or a solid cluster emerging from the melt.
melt-solid interface, or a solid cluster emerging from the melt.
The advantage of this parameter over others is that no a priori
The advantage of this parameter over others is that no a priori
information about the solid structure is required.
information about the solid structure is required.
This parameter for atom i is computed using the following formula from
This parameter for atom i is computed using the following formula from
"(Piaggi)"_#Piaggi and "(Nettleton)"_#Nettleton
"(Piaggi)"_#Piaggi and "(Nettleton)"_#Nettleton
,
:c,image(Eqs/pair_entropy.jpg)
:c,image(Eqs/pair_entropy.jpg)
where r is a distance, g(r) is the radial distribution function of atom
where r is a distance, g(r) is the radial distribution function of atom
i and rho is the density of the system. The g(r) computed for each
i and rho is the density of the system. The g(r) computed for each
atom i can be noisy and therefore it is smoothened using:
atom i can be noisy and therefore it is smoothened using:
:c,image(Eqs/pair_entropy2.jpg)
:c,image(Eqs/pair_entropy2.jpg)
...
@@ -57,22 +57,22 @@ where the sum in j goes through the neighbors of atom i, and sigma is a
...
@@ -57,22 +57,22 @@ where the sum in j goes through the neighbors of atom i, and sigma is a
parameter to control the smoothening.
parameter to control the smoothening.
The input parameters are {sigma} the smoothening parameter, and the
The input parameters are {sigma} the smoothening parameter, and the
{cutoff} for the calculation of g(r).
{cutoff} for the calculation of g(r).
If the keyword {avg} has the setting {yes}, then this compute also
If the keyword {avg} has the setting {yes}, then this compute also
averages the parameter over the neighbors of atom i according to:
averages the parameter over the neighbors of atom i according to:
:c,image(Eqs/pair_entropy3.jpg)
:c,image(Eqs/pair_entropy3.jpg)
where the sum j goes over the neighbors of atom i and N is the number
where the sum j goes over the neighbors of atom i and N is the number
of neighbors. This procedure provides a sharper distinction between
of neighbors. This procedure provides a sharper distinction between
order and disorder environments. In this case the input parameter
order and disorder environments. In this case the input parameter
{cutoff2} is the cutoff for the averaging over the neighbors and
{cutoff2} is the cutoff for the averaging over the neighbors and
must also be specified.
must also be specified.
If the {avg yes} option is used, the effective cutoff of the neighbor
If the {avg yes} option is used, the effective cutoff of the neighbor
list should be {cutoff}+{cutoff2} and therefore it might be necessary
list should be {cutoff}+{cutoff2} and therefore it might be necessary
to increase the skin of the neighbor list with:
to increase the skin of the neighbor list with:
neighbor skin bin :pre
neighbor skin bin :pre
...
@@ -85,7 +85,7 @@ by the corresponding volume. This option can be useful when dealing with
...
@@ -85,7 +85,7 @@ by the corresponding volume. This option can be useful when dealing with
inhomogeneus systems such as those that have surfaces.
inhomogeneus systems such as those that have surfaces.
Here are typical input parameters for fcc aluminum (lattice
Here are typical input parameters for fcc aluminum (lattice
constant 4.05 Angstroms),
constant 4.05 Angstroms),
compute 1 all pentropy/atom 0.25 5.7 avg yes 3.7 :pre
compute 1 all pentropy/atom 0.25 5.7 avg yes 3.7 :pre
...
@@ -103,8 +103,8 @@ uses per-atom values from a compute as input. See "Section
...
@@ -103,8 +103,8 @@ uses per-atom values from a compute as input. See "Section
options.
options.
The pair entropy values have units of the Boltzmann constant. They are
The pair entropy values have units of the Boltzmann constant. They are
always negative, and lower values (lower entropy) correspond to more
always negative, and lower values (lower entropy) correspond to more
ordered environments.
ordered environments.
[Restrictions:] none
[Restrictions:] none
...
...
This diff is collapsed.
Click to expand it.
src/USER-MISC/compute_pair_entropy_atom.cpp
+
2
−
3
View file @
6de45694
...
@@ -160,8 +160,8 @@ void ComputePairEntropyAtom::init_list(int id, NeighList *ptr)
...
@@ -160,8 +160,8 @@ void ComputePairEntropyAtom::init_list(int id, NeighList *ptr)
void
ComputePairEntropyAtom
::
compute_peratom
()
void
ComputePairEntropyAtom
::
compute_peratom
()
{
{
int
i
,
j
,
k
,
ii
,
jj
,
kk
,
n
,
inum
,
jnum
;
int
i
,
j
,
ii
,
jj
,
inum
,
jnum
;
double
xtmp
,
ytmp
,
ztmp
,
delx
,
dely
,
delz
,
rsq
,
value
;
double
xtmp
,
ytmp
,
ztmp
,
delx
,
dely
,
delz
,
rsq
;
int
*
ilist
,
*
jlist
,
*
numneigh
,
**
firstneigh
;
int
*
ilist
,
*
jlist
,
*
numneigh
,
**
firstneigh
;
double
rbin
[
nbin
],
rbinsq
[
nbin
];
double
rbin
[
nbin
],
rbinsq
[
nbin
];
...
@@ -198,7 +198,6 @@ void ComputePairEntropyAtom::compute_peratom()
...
@@ -198,7 +198,6 @@ void ComputePairEntropyAtom::compute_peratom()
firstneigh
=
list
->
firstneigh
;
firstneigh
=
list
->
firstneigh
;
// Compute some constants
// Compute some constants
double
nlist_cutoff
=
force
->
pair
->
cutforce
;
double
sigmasq2
=
2
*
sigma
*
sigma
;
double
sigmasq2
=
2
*
sigma
*
sigma
;
double
volume
=
domain
->
xprd
*
domain
->
yprd
*
domain
->
zprd
;
double
volume
=
domain
->
xprd
*
domain
->
yprd
*
domain
->
zprd
;
double
density
=
atom
->
natoms
/
volume
;
double
density
=
atom
->
natoms
/
volume
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment