Skip to main content

A software package for calculating specific heat capacity based on sound velocity method.

Project description

SoundForCp

SoundForCp is a software package for calculating specific heat capacity based on sound velocity method. A detailed description is available in xxxx.

Requirement

SoundForCp requires Python 3 and several third-party libraries that are used by SoundForCp.

  • Numpy - The fundamental package for scientific computing with Python. (>=1.20)
  • Scipy - Fundamental algorithms for scientific computing in Python for scientific computing with Python. (>=1.7)
  • PyYaml - A full-featured YAML framework for the Python programming language.(>=6.0)
  • Python (>=3.6)

As an example, on Ubuntu Linux some of the required software can be installed using

sudo apt-get install python3 python3-numpy python3-scipy python3-yaml

Before you go any further, make sure you have Python and that the expected version is available from your command line. You can check this by running:

Unix/MacOS:

python3 --version

Windows:

py --version

You should get some output like Python 3.6.3. If you do not have Python, please install the latest 3.x version from python.org or refer to the Installing Python section of the Hitchhiker’s Guide to Python.

We recommend to use PyPI which allows to conveniently install SoundForCp and all its software dependencies with a single command. you’ll need to make sure you have pip available. You can check this by running:

Unix/MacOS:

python3 -m pip --version

Windows:

py -m pip --version

If you installed Python from source, with an installer from python.org, or via Homebrew you should already have pip. If you’re on Linux and installed using your OS package manager, you may have to install pip separately, see Installing pip/setuptools/wheel with Linux Package Managers.

If pip isn’t already installed, then first try to bootstrap it from the standard library:

Unix/MacOS:

python3 -m ensurepip --default-pip

Windows:

python3 -m ensurepip --default-pip

To install the remaining packages see the installation instructions at their respective web pages.

Installation

The preferred method is to use pip command to install from the PyPi official/mirrors site.

pip install SoundForCp

SounfForCp can be then started from a terminal (e.g. “Anaconda Prompt” on Windows) by executing the “SoundForCp” program.

If you don’t use pip or prefer to install from sources, make sure the required software is all in place and run:

python setup.py install

By default the files are installed to standard system directories, which may require the use of sudo for write privileges. If administrator (root) access is not available, see the output from python setup.py install --help for options to install as a regular user to user-writable locations. Note that installation to non-standard directories may require adjustments to the PATH and PYTHONPATH environment variables.

Using

SoundForCp can be then started from a terminal (“Anaconda Prompt” on Windows) by executing the “SoundForCp.exe” program. An alternative method on Windows is to start SoundForCp through double-click the executable program “SoundForCP.exe”.

Before running SoundForCp, a input file, named as input.yaml should have been prepared in a certain folder xxxx. Input.yaml follows the rule of YAML language. input.yaml contains SoundForCp settings which are summarized at setting tags.

cd xxxx
SoundForCp.exe

after running successfully, there is an output file named as “out.csv” written in the same folder.

Setting tags

Basic tags

Sample_Name

Sample_Name represents the sample name.

Longitudinal_Sound_Velocity

Longitudinal_Sound_Velocity represents the longitudinal Sound velocity of the specific sample. The unit is m/s.

Transverse_Sound_Velocity

Transverse_Sound_Velocity represents the transverse Sound velocity of the specific sample. The unit is m/s.

Sample_Density

Sample_Density represents the density of the specific sample, which can be measured by Archimedes method. The unit is g/cm3.

Number_Atoms

Number_Atoms represents the atom numbers per unit cell for the specific sample.

Volume_Cell

Volume_Cell represents the lattice volume per unit cell for the specific sample. The unit is A^3.

Temperature

Temperature represents the calculated temperature range for the specific sample. there are 3 sub-tags, i.e. Start_Temperature. End_Temperature, Interval_Temperature. The unit is K.

Relative_Atomic_Mass

Relative_Atomic_Mass represents relative atomic mass for molecular formula. The unit is g/mol.

Atomic_Mole_Quantity

Relative_Atomic_Mass represents relative mole quantity for molecular formula.

Required tags

Elastic_Constants_Condition

Elastic_Constants_Condition represent elastic constants C12 equal C44 or not. Elastic_Constants_Condition=2 represents non-preferred orientation polycrystals. Elastic_Constants_Condition=1 represents C12=C44. For cubic phase, C12 is equal to C44 in preferred-oritention polycrystals or single crystal. For non cubic phase, C12 is unequal to C44 in preferred-oritention polycrystals or single crystal.

Optional tags

Adiabatic_Bulk_Modulus

Adiabatic_Bulk_Modulus represents the adiabatic bulk modulus for the specific sample. It can also be calculated by sound velocity method. The unit is GPa.

Linear_Expansion_Coefficient

Linear_Expansion_Coefficient represents the linear expansion coefficient for the specific sample. It can also be calculated by sound velocity method. The unit is 1/K.

Debye_Temperature

Debye_Temperature represents the Debye temperature for the specific sample. It can also be calculated by sound velocity method. The unit is K.

Poisson_Ratio

Poisson_Ratio represents the Poisson ratio for the specific sample. It can also be calculated by sound velocity method. The unit is dimensionless.

Gruneisen_Constant

Gruneisen_Constant represents the Gruneisen constant for the specific sample. It can also be calculated by sound velocity method. The unit is dimensionless.

Development

PDFgui is an open-source software available on GitHub https://github.com/JunPei-China/SoundForCp. Feel free to fork the project and contribute.

Contacts

For more information on SoundForCp please visit the project web-page or email Dr. Jun Pei at Jun_Pei@163.com.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

SoundForCp-0.0.2.tar.gz (35.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

SoundForCp-0.0.2-py3-none-any.whl (20.3 kB view details)

Uploaded Python 3

File details

Details for the file SoundForCp-0.0.2.tar.gz.

File metadata

  • Download URL: SoundForCp-0.0.2.tar.gz
  • Upload date:
  • Size: 35.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.0

File hashes

Hashes for SoundForCp-0.0.2.tar.gz
Algorithm Hash digest
SHA256 e6a932c54425c902afd2bbe88682629fb4f26f523d1d50c9b965c86849670c8e
MD5 3b9a0d708cea734be50a93b314bd740e
BLAKE2b-256 2f3a11aa059d28c54726262195d37cdc443731e5e0569b980e83ae63de1f739d

See more details on using hashes here.

File details

Details for the file SoundForCp-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: SoundForCp-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 20.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.0

File hashes

Hashes for SoundForCp-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e7dfed1699213a0992abd1989ab6f1299487d4de525ab255e87a8a1ce87c6647
MD5 329744c7d033b98f86b22707e2e5ae6f
BLAKE2b-256 aeb2fb7a2342f715d844be3cd38073070787b9b117f754548be4000f5d513889

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page