pyCSRO: a python package for calculating chemical short range ordering.
===================================================================================================
pyCSRO is a python package using pairwise multi-component short-range order (PM-SRO) parameters to discover the chemical short range ordering in materials, including crystalline, amorphous, and high-entropy alloys, etc.
The PM-SRO parameter was extended from the Warren-Cowley short-range order (WC-SRO) to describe the local distribution of element pairs in the multicomponent system, which is defined as:
$$\alpha_{ij}^m=\frac{p_{ij}^m - X_j}{X_j-1}\quad \text{($i = j$, for pairs of same species)}$$
$$\alpha_{ij}^m=\frac{p_{ij}^m - X_j}{-X_j}\quad \text{($i \neq j$, for pairs of different species)}$$
where $p_{ij}^m$ is the average probability of finding a $j$-type atom around an $i$-type atom in the $m$-th shell, and $X_j$ is the overall concentration of $j$ atoms in the system.
A negative value of $\alpha_{ij}^m$ indicates the tendency of mixing of $i$ and $j$ atoms, whereas a positive one suggests the tendency toward segregation of $i$ and $j$ atoms. And the value of $\alpha_{ij}^m$ would be zero if $i$ and $j$ atoms are randomly distributed.
Note that in order to keep the same meaning of the $\alpha_{ij}^m$ value when $i=j$ and $i \neq j$, such that a negative $\alpha_{ij}^m$ means tendency of mixing and a positive $\alpha_{ij}^m$ means tendency of segregation, the equation of PM-SRO for $i = j$ has been rewritten.
Required Dependencies:
------------
* Python 3.9+
* matplotlib
* numpy
* scipy
* ase
Installation
------------
The pyCSRO package requires Python 3.9 or later, and run the following command to install it:
```
pip install pycsro
```
If you prefer to install from sources, navigate to the source archive directory and run:
```
python setup.py install
```
Usage
--------
```
from pycsro.main import run_pycsro_pmsro
run_pycsro_pmsro(ion1, cutoff1, file_name, cutoff2, save_name, skip_distance, plot_save, cal_same_pair, safe_mode, partial_neighbors)
```
- ion1: The selected elements for the PM-SRO calculation. (Required, range: elements in the structure model, type: str)
- cutoff1: The cutoff of thr 1st shell. (Required, range: positive number, type: float)
- cutoff2: The cutoff of the 2nd shell. (Cutoff2 should be equal or greater than cutoff1, range: positive number, type: float)
- file_name: The absolute path of input file. (Required, type: str)
- save_name: The absolute path of saved file. (type: str)
- skip_distance: Skip the neighbor distance under this parameter. (Default: 0.1, range: positive number, type: float)
- cal_same_pair: Whether calculate the wcp of same elements but different center atoms. (Default: Yes, range: Yes or No, type: str)
- safe_mode: Whether use the supercell selection function, which can reduce the calculation time. (Default: No, range: Yes or No, type: str)
- plot_save: Whether save the neighbor plot. (Default: No, range: Yes or No, type: str)
- partial_neighbors: Whether plot the partial neighbor distribution of atoms in the cell. (Default: No, range: Yes or No, type: str)
Attention:
1. The calculation requires the user to input parameters of ion1, cutoff1, and filename.
2. Supported input file formats include CIF, POSCAR.
3. For compounds, cations and anions should be placed in different ion groups, and calculated separately.
4. You can try a larger cutoff value at the first time, and then adjust the cutoff value to the trough of the neighbor distribution.
5. The second shell was defined as cutoff1 to cutoff2.
Example
--------
Example models are placed at `/example/`.
The basic command for running Ni system:
```
run_pycsro_pmsro(ion1='Ni', cutoff1=3, file_name='XXX/pyCSRO/example/Ni.vasp')
```
The output:
```
+-----------------------------------------------------------------------------
| Element group: ['Ni']
| Cutoff for the 1st shell: 3 Å Cutoff for the 2nd shell: None
| Read file: Ni.vasp Save file: None
| Skip neighbor distance under 0.1 Å
| Calculate same pair: Yes Safe mode: No
+-----------------------------------------------------------------------------
| The PM-SRO parameter for ['Ni'] element group in the 1st shell
| Ni-Ni 0.0
+-----------------------------------------------------------------------------
```
Contacts
--------
For more information, please email Prof. Long Yang at long_yang@tongji.edu.cn
Raw data
{
"_id": null,
"home_page": "https://github.com/yanglonggroup/pyCSRO",
"name": "pycsro",
"maintainer": "Changyuan Li",
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": "lichangyuan@tongji.edu.cn",
"keywords": "Chemical short range ordering",
"author": "Long Yang",
"author_email": "long_yang@tongji.edu.cn",
"download_url": "https://files.pythonhosted.org/packages/df/dc/e89658060db82aa04e28d1b100a314ab9f3ad5b961ac10f8b49e142aae4f/pycsro-0.1.0.tar.gz",
"platform": null,
"description": "pyCSRO: a python package for calculating chemical short range ordering.\n===================================================================================================\n\npyCSRO is a python package using pairwise multi-component short-range order (PM-SRO) parameters to discover the chemical short range ordering in materials, including crystalline, amorphous, and high-entropy alloys, etc.\nThe PM-SRO parameter was extended from the Warren-Cowley short-range order (WC-SRO) to describe the local distribution of element pairs in the multicomponent system, which is defined as:\n\n$$\\alpha_{ij}^m=\\frac{p_{ij}^m - X_j}{X_j-1}\\quad \\text{($i = j$, for pairs of same species)}$$\n\n$$\\alpha_{ij}^m=\\frac{p_{ij}^m - X_j}{-X_j}\\quad \\text{($i \u200b\\neq j$, for pairs of different species)}$$\n\nwhere $p_{ij}^m$ is the average probability of finding a $j$-type atom around an $i$-type atom in the $m$-th shell, and $X_j$ is the overall concentration of $j$ atoms in the system.\nA negative value of $\\alpha_{ij}^m$ indicates the tendency of mixing of $i$ and $j$ atoms, whereas a positive one suggests the tendency toward segregation of $i$ and $j$ atoms. And the value of $\\alpha_{ij}^m$ would be zero if $i$ and $j$ atoms are randomly distributed.\n\nNote that in order to keep the same meaning of the $\\alpha_{ij}^m$ value when $i=j$ and $i \u200b\\neq j$, such that a negative $\\alpha_{ij}^m$ means tendency of mixing and a positive $\\alpha_{ij}^m$ means tendency of segregation, the equation of PM-SRO for $i = j$ has been rewritten.\n\nRequired Dependencies:\n------------\n* Python 3.9+\n* matplotlib\n* numpy\n* scipy\n* ase\n\n\nInstallation\n------------\nThe pyCSRO package requires Python 3.9 or later, and run the following command to install it:\n```\npip install pycsro\n```\n\nIf you prefer to install from sources, navigate to the source archive directory and run:\n```\npython setup.py install\n```\n\n\nUsage\n--------\n```\nfrom pycsro.main import run_pycsro_pmsro\nrun_pycsro_pmsro(ion1, cutoff1, file_name, cutoff2, save_name, skip_distance, plot_save, cal_same_pair, safe_mode, partial_neighbors)\n```\n\n- ion1: The selected elements for the PM-SRO calculation. (Required, range: elements in the structure model, type: str)\n\n- cutoff1: The cutoff of thr 1st shell. (Required, range: positive number, type: float)\n\n- cutoff2: The cutoff of the 2nd shell. (Cutoff2 should be equal or greater than cutoff1, range: positive number, type: float)\n\n- file_name: The absolute path of input file. (Required, type: str)\n\n- save_name: The absolute path of saved file. (type: str)\n\n- skip_distance: Skip the neighbor distance under this parameter. (Default: 0.1, range: positive number, type: float)\n\n- cal_same_pair: Whether calculate the wcp of same elements but different center atoms. (Default: Yes, range: Yes or No, type: str)\n\n- safe_mode: Whether use the supercell selection function, which can reduce the calculation time. (Default: No, range: Yes or No, type: str)\n\n- plot_save: Whether save the neighbor plot. (Default: No, range: Yes or No, type: str)\n\n- partial_neighbors: Whether plot the partial neighbor distribution of atoms in the cell. (Default: No, range: Yes or No, type: str)\n\nAttention: \n1. The calculation requires the user to input parameters of ion1, cutoff1, and filename.\n2. Supported input file formats include CIF, POSCAR.\n3. For compounds, cations and anions should be placed in different ion groups, and calculated separately.\n4. You can try a larger cutoff value at the first time, and then adjust the cutoff value to the trough of the neighbor distribution.\n5. The second shell was defined as cutoff1 to cutoff2.\n\n\nExample\n--------\nExample models are placed at `/example/`.\n\nThe basic command for running Ni system:\n```\nrun_pycsro_pmsro(ion1='Ni', cutoff1=3, file_name='XXX/pyCSRO/example/Ni.vasp')\n```\n\nThe output:\n```\n+-----------------------------------------------------------------------------\n| Element group: ['Ni']\n| Cutoff for the 1st shell: 3 \u00c5 Cutoff for the 2nd shell: None\n| Read file: Ni.vasp Save file: None\n| Skip neighbor distance under 0.1 \u00c5\n| Calculate same pair: Yes Safe mode: No\n+-----------------------------------------------------------------------------\n| The PM-SRO parameter for ['Ni'] element group in the 1st shell\n| Ni-Ni 0.0\n+-----------------------------------------------------------------------------\n```\n\nContacts\n--------\n\nFor more information, please email Prof. Long Yang at long_yang@tongji.edu.cn\n \n",
"bugtrack_url": null,
"license": "",
"summary": "A python package for CSRO paramater calculation",
"version": "0.1.0",
"project_urls": {
"Homepage": "https://github.com/yanglonggroup/pyCSRO"
},
"split_keywords": [
"chemical",
"short",
"range",
"ordering"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "962f5c867627a65d426c5acf4ed83048655f2055323ab1b703b3a9dae2b02340",
"md5": "7a404969c5af5fea0e4c6c241fb35faa",
"sha256": "fe11e93501320bfe3f0d306c6a7f329cff9b91b706c11beb8eefb5f59e168209"
},
"downloads": -1,
"filename": "pycsro-0.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "7a404969c5af5fea0e4c6c241fb35faa",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 13286,
"upload_time": "2023-12-27T15:10:48",
"upload_time_iso_8601": "2023-12-27T15:10:48.634356Z",
"url": "https://files.pythonhosted.org/packages/96/2f/5c867627a65d426c5acf4ed83048655f2055323ab1b703b3a9dae2b02340/pycsro-0.1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "dfdce89658060db82aa04e28d1b100a314ab9f3ad5b961ac10f8b49e142aae4f",
"md5": "01e4f07e84aa23c51bced71d466d700e",
"sha256": "1bc3752f0440649dfba048ef4785a3a50d063b881d43cc9128ff8ea2fab77dcb"
},
"downloads": -1,
"filename": "pycsro-0.1.0.tar.gz",
"has_sig": false,
"md5_digest": "01e4f07e84aa23c51bced71d466d700e",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 11392,
"upload_time": "2023-12-27T15:10:50",
"upload_time_iso_8601": "2023-12-27T15:10:50.776075Z",
"url": "https://files.pythonhosted.org/packages/df/dc/e89658060db82aa04e28d1b100a314ab9f3ad5b961ac10f8b49e142aae4f/pycsro-0.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-12-27 15:10:50",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "yanglonggroup",
"github_project": "pyCSRO",
"github_not_found": true,
"lcname": "pycsro"
}