-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'brucefan1983:master' into master
- Loading branch information
Showing
44 changed files
with
2,124 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
.. _kw_compute_adf: | ||
.. index:: | ||
single: compute_adf (keyword in run.in) | ||
|
||
:attr:`compute_adf` | ||
=================== | ||
|
||
This keyword computes the angular distribution function (:term:`ADF`) for all atoms or specific triples of species. Each ADF is represented as a histogram, created by measuring the angles formed between a central atom and two neighboring atoms, and binning these angles into `num_bins` bins. Only neighbors with distances `rc_min < R < rc_max` are considered, where `rc_min` and `rc_max` are specified separately for the first and second neighbor atoms in each ADF calculation. | ||
Currently, this feature is only available for classical :term:`MD`. | ||
The results are written to the :ref:`adf.out <adf_out>` file. | ||
|
||
Syntax | ||
------ | ||
|
||
For global ADF, the keyword is used as follows:: | ||
|
||
compute_adf <interval> <num_bins> <rc_min> <rc_max> | ||
|
||
This means the :term:`ADF` calculations will be performed every :attr:`interval` steps, with :attr:`num_bins` data points. | ||
|
||
For local ADF, the keyword is used as follows:: | ||
|
||
compute_adf <interval> <num_bins> <itype1> <jtype1> <ktype1> <rc_min_j1> <rc_max_j1> <rc_min_k1> <rc_max_k1> ... | ||
|
||
This means the :term:`ADF` calculations will be performed every :attr:`interval` steps, with :attr:`num_bins` data points. | ||
The angle formed by the central atom I and neighboring atoms J and K is included in the ADF if the following conditions are met: | ||
|
||
- The distance between atoms I and J is between `rc_min_jN` and `rc_max_jN`. | ||
- The distance between atoms I and K is between `rc_min_kN` and `rc_max_kN`. | ||
- The type of atom I matches `itypeN`. | ||
- The type of atom J matches `jtypeN`. | ||
- The type of atom K matches `ktypeN`. | ||
- Atoms I, J, and K are distinct. | ||
|
||
The ADF value for a bin is computed by dividing the histogram count by the total number of triples that satisfy the criteria, ensuring that the integral of the ADF with respect to the angle is 1. In other words, the ADF is a probability density function. | ||
|
||
Example | ||
------- | ||
|
||
compute_rdf 100 30 0.0 1.2 # Total ADF every 100 MD steps with 30 data points for bond lengths between 0.0 and 1.2 | ||
compute_rdf 500 50 0 1 1 0.0 1.2 0.0 1.3 # Calculate 0-1-1 ADF every 500 MD steps with 50 data points for I-J bond lengths between 0.0 and 1.2, and I-K bond lengths between 0.0 and 1.3 | ||
compute_rdf 500 50 0 1 1 0.0 1.2 0.0 1.3 1 0 1 0.0 1.2 0.0 1.3 # Calculate 0-1-1 and 1-0-1 ADF every 500 MD steps with 50 data points |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
.. _adf_out: | ||
.. index:: | ||
single: adf.out (output file) | ||
|
||
``adf.out`` | ||
=========== | ||
|
||
This file contains the Angular Distribution Function (:term:`ADF`). | ||
It is generated when the :ref:`compute_adf keyword <kw_compute_adf>` is used. | ||
|
||
File Format | ||
------------- | ||
For global ADF, the data in this file are organized as follows: | ||
* Column 1: Angles (in degrees) | ||
* Column 2: The (:term:`ADF`) for the entire system | ||
|
||
For local ADF, the data are organized as follows: | ||
* Column 1: Angles (in degrees) | ||
* The next Ntriples columns: The (:term:`ADF`) for each specific atom triple |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.