cij

Semiemperical quasiharmonic thermal elasticity

https://github.com/mineralscloud/cij

Science Score: 67.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 2 DOI reference(s) in README
  • Academic publication links
    Links to: arxiv.org
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (15.0%) to scientific vocabulary

Keywords

ab-initio elasticity high-pressure phonon python scientific scientific-computing solid-state-physics
Last synced: 6 months ago · JSON representation ·

Repository

Semiemperical quasiharmonic thermal elasticity

Basic Info
Statistics
  • Stars: 20
  • Watchers: 3
  • Forks: 5
  • Open Issues: 1
  • Releases: 4
Topics
ab-initio elasticity high-pressure phonon python scientific scientific-computing solid-state-physics
Created almost 7 years ago · Last pushed almost 2 years ago
Metadata Files
Readme Citation

README.md

Cij: Semiemperical thermal elasticity

Calculate high temperature thermal elasticity in Python.

Installation

The package can be installed with pip package manager.

Install from PyPI (Python package index)

shell $ python3 -m pip install cij

Manual install

At the command prompt, one should navigate to the directory that contains the setup.py script and execute pip install .. Then, the package should be ready for use.

Usage

Command-line programs

After installation, the Cij program can be started by typing cij at your command prompt:

``` Usage: cij [OPTIONS] COMMAND [ARGS]...

Options: --version Show the version and exit. --help Show this message and exit.

Commands: extract Create data table at specific P or T. extract-geotherm Create data table at geotherm PT. fill Fill non-zero Cij terms based on symmetry. modes Plot interpolated mode frequency vs volume. plot Plot SAM-Cij calculation results. run Perform SAM-Cij calculation. run-static Calculate elastic moduli and acoustic velocities. ```

SAM-Cij calculations with cij run

Calculation settings file and example

The settings.yaml file is home to all calculation settings. One needs to specify calculation parameters, such as thermal EoS fitting parameters, phonon interpolation settings, input data location, and output variables to store in YAML format. The following is an example settings file.

```yml qha: input: input01 settings: # similar to settings in qha DT: 100 PMIN: 0 DELTAP: 0.5 NTV: 81 order: 3 staticonly: False TMIN: 0 NT: 31 DTSAMPLE: 100 DELTAPSAMPLE: 5 volumeratio: 1.2 elast: input: elast.dat settings: modegamma: interpolator: spline order: 3 symmetry: system: cubic output: pressurebase: - cij - vs - vp - bmV - bmR - bmVRH - GV - GR - GVRH - v volume_base: - p # ...

```

Input data

Input data include a QHA input data file (input01) and a static elasticity input data (elast.dat). See the paper or detailed documentation for description and the examples folder for detailed example.

Command line arguments

```txt Usage: cij run [OPTIONS] SETTINGS_FILENAME

Perform SAM-Cij calculation.

Options: --version Show the version and exit. --debug [CRITICAL|ERROR|WARNING|INFO|DEBUG|NOTSET] Logging level --help Show this message and exit. ```

Structure of the cij package

The cij package is written in Python 3. The Python source code is located in the cij sub-folder. Input for three examples in the examples sub-folder, documentation in the docs sub-folder, and the installation script setup.py.

The Python code is organized into several modules:

  • cij.core: Core functionalities
    • calculator: The calculator that controls the workflow.
    • mode_gamma: Interpolate phonon frequencies and calculate mode Grüneisen parameters.
    • phonon_contribution: Calculate phonon cijph. full_modulus – Interpolate cijst vs. V, and calculate cijS and cijT. tasks – Handles the ordering of cijph calculation.
  • cij.util: Methods used in the main program
    • voigt: Convert between Voigt (cij) and regular (cijkl) notations of elastic coefficients.
    • units: Handle unit conversion.
  • cij.io: Input output functions and classes.
  • cij.plot: Plotting functionalities.
  • cij.cli: Command-line programs
    • cij run (main.py) – Perform a SAM-Cij calculation.
    • cij run-static (static.py) – Calculate static elastic properties.
    • cij extract (extract.py) – Extract calculation results for a specific T or P to a table.
    • cij extract-geotherm (geotherm.py) – Extract calculation results along geotherm PT (given as input) to a table.
    • cij plot (plot.py) – Convert output data table to PNG plot.
    • cij modes (modes.py) – Plot phonon frequency interpolation results.
    • cij fill (fill.py) – Fill all the non-zero terms for elastic coefficients given the constraint of a crystal system.
  • cij.data: Data distributed with the program, e.g., the relationship between cij’s for different crystal systems, the naming scheme for output files, etc.
  • cij.misc: Miscellaneous functionalities that are not used in the main program, e.g., methods that facilitate the preparation of input files.

Author

The code in this repo is initially authored by Chenxing Luo.

Documentation

See GitHub pages.

Build status

GitHub Actions codecov pypi pypi

How to cite

If you use this software in any publication, please cite:

Luo, C., Deng, X., Wang, W., Shukla, G., Wu, Z., & Wentzcovitch, R. M. (2021). cij: A Python code for quasiharmonic thermoelasticity. Computer Physics Communications, 108067. https://doi.org/10.1016/j.cpc.2021.108067

The paper is also available from arXiv: https://arxiv.org/abs/2101.12596

Licence

Released under GNU GPLv3 license.

Owner

  • Name: Minerals Cloud
  • Login: MineralsCloud
  • Kind: organization
  • Email: mineralscloudcu@gmail.com
  • Location: Columbia University, New York, NY, USA

Investigates minerals in the cloud

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
- family-names: "Luo"
  given-names: "Chenxing"
  orcid: "https://orcid.org/0000-0003-4116-6851"
- family-names: "Deng"
  given-names: "Xin"
- family-names: "Wang"
  given-names: "Wenzhong"
- family-names: "Gaurav"
  given-names: "Shukla"
  orcid: "https://orcid.org/0000-0003-1002-4842"
- family-names: "Wu"
  given-names: "Zhongqing"
  orcid: "https://orcid.org/0000-0002-4842-6380"
- family-names: "Wentzcovitch"
  given-names: "Renata"
  orcid: "https://orcid.org/0000-0001-5663-9426"
title: "cij: A Python code for quasiharmonic thermoelasticity"
version: 
doi: "10.1016/j.cpc.2021.108067"
date-released: 
url: "https://github.com/MineralsCloud/cij"

GitHub Events

Total
  • Watch event: 5
  • Pull request event: 1
  • Fork event: 1
Last Year
  • Watch event: 5
  • Pull request event: 1
  • Fork event: 1

Committers

Last synced: 10 months ago

All Time
  • Total Commits: 230
  • Total Committers: 1
  • Avg Commits per committer: 230.0
  • Development Distribution Score (DDS): 0.0
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Chazeon c****o@g****m 230

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 0
  • Total pull requests: 3
  • Average time to close issues: N/A
  • Average time to close pull requests: less than a minute
  • Total issue authors: 0
  • Total pull request authors: 2
  • Average comments per issue: 0
  • Average comments per pull request: 0.0
  • Merged pull requests: 2
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 1
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 1
  • Average comments per issue: 0
  • Average comments per pull request: 0.0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
  • chazeon (2)
  • underhill1886 (1)
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 33 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 1
  • Total versions: 3
  • Total maintainers: 1
pypi.org: cij

High temperature thermal elasticity

  • Versions: 3
  • Dependent Packages: 0
  • Dependent Repositories: 1
  • Downloads: 33 Last month
Rankings
Dependent packages count: 10.1%
Forks count: 14.2%
Stargazers count: 16.1%
Average: 19.0%
Dependent repos count: 21.6%
Downloads: 33.2%
Maintainers (1)
Last synced: 6 months ago

Dependencies

dev-requirements.txt pypi
  • docutils >=0.12,<0.17 development
  • markupsafe ==2.0.1 development
  • nbsphinx * development
  • pygments >=2.4.1 development
  • pytest * development
  • pytest-click * development
  • pytest-cov * development
  • sphinx * development
  • sphinx-autobuild * development
  • sphinx-autodoc-typehints * development
  • sphinx-click * development
  • sphinx-jinja * development
  • sphinx-rtd-theme * development
setup.py pypi
  • click *
  • jsonschema *
  • lazy_property *
  • networkx *
  • numpy *
  • pandas *
  • pint *
  • qha *
  • scipy *
  • sympy *
.github/workflows/main.yml actions
  • actions/cache v2 composite
  • actions/checkout v2 composite
  • ad-m/github-push-action master composite
  • codecov/codecov-action v1 composite
  • mikepenz/action-junit-report v2 composite
.github/workflows/python-publish.yml actions
  • actions/checkout v2 composite
  • actions/setup-python v2 composite
Dockerfile docker
  • python 3.8-slim-buster build