How mohibpak/phase-forge works
PhaseForge is an interactive binary-alloy phase-diagram and transformation analysis toolkit. Users choose a built-in alloy or define a custom system, inspect phase fields and tie-line/lever-rule results, explore solidification and cooling simulations, then generate downloadable reports. The computational model, simulation routines, preset data, and report renderer form the internal layers behind the Streamlit application. The README and excerpts establish the main connections; unsampled UI details are not expanded into separate components.
Main entry points: app.py Streamlit interface · report.py HTML report builder · simulation.py Solidification tracing · core.py Eutectic model
Components 16
Interactive application
- Streamlit interface
app.py - Alloy selection
app.py - Phase diagram view
app.py - Tie-line analysis
app.py - Solidification view
app.py - Cooling curve view
app.py - Report controls
app.py
Phase analysis
- Eutectic model
phaseforge/core.py - Phase classification
phaseforge/core.py - Tie-line and lever rule
phaseforge/core.py
Transformation simulation
- Solidification tracing
phaseforge/simulation.py - Cooling simulation
phaseforge/simulation.py
Reports and presets
- Alloy presets
phaseforge/presets.py - Static plot renderer
phaseforge/report.py - HTML report builder
phaseforge/report.py
Other components
- Alloy analyst
Connections 17
- Alloy analyst → Streamlit interface: uses
README.md - Streamlit interface → Alloy selection: presents
app.py - Alloy selection → Alloy presets: loads preset data
app.py - Streamlit interface → Eutectic model: constructs model
app.py - Phase diagram view → Eutectic model: plots curves
app.py - Phase diagram view → Phase classification: shades fields
app.py - Tie-line analysis → Phase classification: classifies point
app.py - Tie-line analysis → Tie-line and lever rule: calculates fractions
README.md - Streamlit interface → Solidification tracing: traces path
app.py - Solidification view → Solidification tracing: plots trajectory
app.py - Streamlit interface → Cooling simulation: simulates cooling
app.py - Cooling curve view → Cooling simulation: plots curve
app.py - Streamlit interface → HTML report builder: builds report
app.py - Report controls → Static plot renderer: exports PNG
app.py - HTML report builder → Static plot renderer: embeds plots
phaseforge/report.py - HTML report builder → Solidification tracing: includes path results
phaseforge/report.py - HTML report builder → Cooling simulation: includes cooling results
phaseforge/report.py