Skip to content

Latest commit

 

History

History
64 lines (44 loc) · 1.84 KB

File metadata and controls

64 lines (44 loc) · 1.84 KB

rxn-ca

A lattice model for simulating solid state reactions.

Documentation

Overview

rxn-ca is a Python library for predicting the outcome of solid-state synthesis reactions using a cellular automaton approach. It uses thermodynamic data from the Materials Project to enumerate possible reactions and simulate phase evolution during synthesis.

Installation

git clone https://github.com/mcgalcode/rxn-ca.git
cd rxn-ca
pip install -e .

For optional features:

pip install -e ".[optimization]"  # Bayesian/genetic optimization
pip install -e ".[workflow]"      # Jobflow integration
pip install -e ".[vis]"           # Visualization tools

Quick Start

from rxn_ca.core.recipe import ReactionRecipe
from rxn_ca.core.heating import HeatingSchedule, HeatingStep

# Define reactants (mole ratios)
reactants = {"MgO": 1, "Al2O3": 1}

# Create heating schedule
heating_schedule = HeatingSchedule.build(
    HeatingStep.sweep(500, 1600, stage_length=1, temp_step_size=50),
    HeatingStep.hold(1600, stage_length=20)
)

# Create recipe
recipe = ReactionRecipe(
    reactant_amounts=reactants,
    heating_schedule=heating_schedule
)

Documentation

Full documentation is available at mcgalcode.github.io/rxn-ca

Requirements

License

BSD-3-Clause