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 DSIModel

# 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 DSIModel object.
blendpy = DSIModel(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(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.6.tar.gz (30.8 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.6-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: blendpy-25.2.6.tar.gz
  • Upload date:
  • Size: 30.8 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.6.tar.gz
Algorithm Hash digest
SHA256 e126ca5af452a4a8adba555553bb0c77087289a8402ba3fc8796d7795816790f
MD5 33d116bf20f81d75b00c61f788b4683d
BLAKE2b-256 286aea81207898fd523c1094584c51b768168524f5a23f5aa6c02900b25f20f5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: blendpy-25.2.6-py3-none-any.whl
  • Upload date:
  • Size: 8.0 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 8da1e51180d69a04f00bd8bca17c788572cb6d1d61f64a43e4ab6872f1aa49b1
MD5 2944e342d89a2d7d68d0279af2f2adb3
BLAKE2b-256 af4986431b0d48ced7bf77df28d7664bd9c1489993e2c759792a8df06245be33

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