Skip to main content

Blendpy uses atomistic simulations with ASE calculators to compute alloy properties like enthalpy of mixing. It supports binary and multicomponent systems, including alloys and pseudoalloys.

Project description

License: MIT PyPI

blendpy

Blendpy uses atomistic simulations with ASE calculators to compute alloy properties like enthalpy of mixing. It supports binary and multicomponent systems, including alloys and pseudoalloys.

Installation

Install blendpy easily using pip, Python’s package manager:

$ pip install blendpy

Getting started

from blendpy import Blendpy

# Calculator
from mace.calculators import mace_mp
calc_mace = mace_mp(model="small",
                    dispersion=False,
                    default_dtype="float32",
                    device='cpu')

# The alloy is created by combining two key components.                
alloy_files = ['Au.cif', 'Pt.cif']

# Supercell to create the dilution.
supercell = [2,2,2]

# Create a Blendpy object.
blendpy = Blendpy(alloy_files, supercell, calculator=calc_mace)

# Optimize the structures.
blendpy.optimize(method=BFGSLineSearch, fmax=0.01, steps=500)

# Calculate the enthalpy of mixing for the AuPt alloy.
enthalpy_of_mixing = blendpy.get_enthalpy_of_mixing(A=0, B=1, npoints=21)
print(enthalpy_of_mixing)

License

This is an open source code under MIT License.

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

blendpy-25.2.3.tar.gz (29.5 kB view details)

Uploaded Source

Built Distribution

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

blendpy-25.2.3-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file blendpy-25.2.3.tar.gz.

File metadata

  • Download URL: blendpy-25.2.3.tar.gz
  • Upload date:
  • Size: 29.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for blendpy-25.2.3.tar.gz
Algorithm Hash digest
SHA256 6cc6198260281d5a267aa9b203b26b787fff9505ae00954563099ec7e00f412e
MD5 93ec4c7b8644b46be375b688907e24f4
BLAKE2b-256 999e8e3f446d84b9bb2e14eb7d917d7384189e867b7d086ed19fc1f2def9bed5

See more details on using hashes here.

File details

Details for the file blendpy-25.2.3-py3-none-any.whl.

File metadata

  • Download URL: blendpy-25.2.3-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for blendpy-25.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 214435e374c17570558bccad827e8488e3a21edc478ea92c1a99485a699a9a43
MD5 6e0c3f34edcdf65b0db2cefadc0143c3
BLAKE2b-256 411131b02d27984238ba1cfa4e38eed76730c152ab265cce74e0931f57a719e2

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