Skip to main content

PyQAlloy-compatible Model for D Parameter prediction based on Hu2021

Release: PyPI

Compatible with: PyPI - Python Version

Tests: small runtime test

License: License: LGPL v3

This repository contains a PyQAlloy-compatible compositionalModel, compatible with ULTERA Database (ultera.org) infrastructure, for D Parameter Prediction Based on Yong-Jie Hu 2021 (10.1016/j.actamat.2021.116800) that accepts a chemical formula string of an alloy or a pymatgen.Composition object. It return:

Output Order: [gfse, surf, dparam]

Output Meaning (all based on 10.1016/j.actamat.2021.116800):

  • gfse - Genralized Stacking Fault Energy (GSF) [J/m^2]
  • surf - Surface Energy (Surf) [J/m^2]
  • dparam - D Parameter [unitless] calculated as surf/gfse

Note: The predicted energy is actually the Unstable Stacking Fault Energy, which is the value of GSFE at a spacific high point, but we keep the naming scheme by the original model authors.

Install and use

To run this model you will need Python 3.10+ and R 4.6.0+ installed on your system, ideally before you install this software. For Python, we recommend you use a virtual Conda environment, which chan be created with minimal effort (see Miniconda install instructions). For R, it can be downloaded pre-compiled from a Comprehensive R Archive Network repository (e.g. Case CRAN) and should work on most systems, including ARM-based (e.g. Apple M1).

If you have Python and R, you can simply install this model with:

pip install pqam_dparamhu2021

Then, use should be as simple as:

import pqam_dparamhu2021

print(pqam_dparamhu2021.predict("W30 Mo25 Ta45"))

In some cases, required locfit R package may not be installed automatically. If you get an error message about it, try to go to your R console, typically by typing R in your terminal, and install it manually with:

install.packages("locfit")

Or, if you are automating things and need a single-liner, on Mac OS and Linux, the following should work:

Rscript -e "install.packages('locfit')"

If you see error error: symbol 'R_getVar' not found it most likely means you are using too old R version and need to install >=4.6.0.

Attribution

This repository has been created by Adam M. Krajewski (https://orcid.org/0000-0002-2266-0099) and is licensed under the MIT License. Please cite this repository if you use it in your work.

The featurizer and predictive model (HEA_pred.R and dependencies) have been optimized across and re-styled by Adam M. Krajewski based on code originally developed by Young-Jie Hu (https://orcid.org/0000-0003-1500-4015) et al. for their journal publication and published in Materials Commons at https://doi.org/10.13011/m3-rkg0-zh65, where original code can be accessed, distributed under ODC Open Database License (ODbL) v1.0. Please cite this publication as well:

  • Yong-Jie Hu, Aditya Sundar, Shigenobu Ogata, Liang Qi, Screening of generalized stacking fault energies, surface energies and intrinsic ductile potency of refractory multicomponent alloys, Acta Materialia, Volume 210, 2021, 116800, https://doi.org/10.1016/j.actamat.2021.116800

The gbm-locfit package (Gradient Boosting Machine-Locfit: A GBM framework using local regresssion via Locfit) has been developed by Materials Project in 2016 and is distributed under the terms of the MIT License. Details can be found in its code.

Hu's README File

Hello, thank you for your interest in our work! Here we provide a script written in R language to take an alloy composition of interest and correspondingly predict the GSF energy, surface energy, and the >ductility parameter based on the SL models in our manuscript ( https://doi.org/10.1016/j.actamat.2021.116800) To run the script and make predictions, you need to:

  1. Download the RStudio platform. (https://www.rstudio.com/) ## No worry, it is open access 😊
  2. Put all the files you downloaded from Materials Commons (basically all our files) into one local folder
  3. Open the “predict.R” file in RStudio, input the alloy composition there, execute every line there, and the prediction will jump out in the console window >below.

Please contact qiliang@umich.edu or yh593@drexel.edu if you have any questions.

P.S., “predict_screen_4nary_all.csv” is the original data for plotting Figure 7&8 in the manuscript. Other figures in the manuscript can be reproduced by the data >listed in the tables in the manuscript.

Miscellaneous

Last maintenance check: September 2nd, 2026

Metadata

Release files for pqam-dparamhu2021 0.1.14

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pqam-dparamhu2021 0.1.14
File Size Uploaded Provenance
pqam_dparamhu2021-0.1.14.tar.gz 6.8 MB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for pqam-dparamhu2021 0.1.14
File Interpreter ABI Platform
pqam_dparamhu2021-0.1.14-py3-none-any.whl Python 3 none any Details

Total release size: 13.7 MB

Release files / pqam_dparamhu2021-0.1.14.tar.gz

Download URL pqam_dparamhu2021-0.1.14.tar.gz
Size 6.8 MB
Tags Source
SHA-256 checksum
How to use checksums
ea68624817113699c34f6d68b9127beea3db1d735544e9278d181643704255ba
BLAKE2b-256 checksum
How to use checksums
70deafcf391bd23bac4ad7c59f6c7bf68aba4476ffde8893f5dfcb4626d69ec7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / pqam_dparamhu2021-0.1.14-py3-none-any.whl

Download URL pqam_dparamhu2021-0.1.14-py3-none-any.whl
Size 6.8 MB
Tags Python 3
SHA-256 checksum
How to use checksums
86dc63fa5cd66df44f823c1ccdd47bdb4d1b0d16faa0abb557e10be472d11cf9
BLAKE2b-256 checksum
How to use checksums
efc42f01bf2c088e523ee2ea28d683d4d20ada3f76e5b26e7de7357a9b83f908
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Security for pqam-dparamhu2021 0.1.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page