Binary Phase Diagram Back
Materials Science

Binary Alloy Phase Diagram & Solidification Simulator

Explore Cu-Ni isomorphous, Sn-Pb eutectic, and Fe-C peritectic phase diagrams interactively. Lever rule computes solid fraction instantly; compare equilibrium vs Scheil solidification paths.

Alloy System & Conditions
Alloy System
Composition C₀ (mol% B)
mol%
Temperature T (°C)
°C
Lever Rule Results
Liquid + Solid
View Mode
Results
Solid fraction fs
Liquid fraction fl
Solid compos. Cs (%)
Liquid compos. CL (%)
Phase
Theory & Key Formulas

$$f_s = \frac{C_0 - C_L}{C_S - C_L}$$

$f_s + f_L = 1$ (mass balance)

Valid in the two-phase (L+S) region only. Assumes equilibrium solidification.

What is a Phase Diagram & the Lever Rule?

🙋
What exactly is a phase diagram? I see the simulator has different alloy systems like Cu-Ni and Fe-C, but I'm not sure what the lines mean.
🎓
Basically, it's a map for materials scientists. It tells you what phases—like solid (S) or liquid (L)—are stable at a given temperature and composition. The lines are phase boundaries. In this simulator, try selecting "Cu-Ni" and moving the Temperature slider. You'll see the red dot cross a line, changing the phase field from "Liquid" to "L+S" (Liquid + Solid). That line is the liquidus.
🙋
Wait, really? So in the "L+S" region, both liquid and solid exist at the same time? How do I know how much of each there is?
🎓
Exactly! That's where the lever rule comes in. It's the key calculation this simulator does for you. When your red dot is in the two-phase region, the tool reads the compositions of the solid ($C_S$) and liquid ($C_L$) from the diagram boundaries. Then, it uses the lever rule to compute the solid fraction $f_s$. Try changing the Composition $C_0$ slider and watch how $f_s$ updates instantly.
🙋
So the lever rule is like a mass balance? Why is it called a "lever"?
🎓
Great intuition! It is a mass balance. Imagine the two-phase region as a see-saw. The overall composition $C_0$ is the fulcrum. The distances from $C_0$ to $C_L$ and $C_S$ are the lever arms. The fraction of solid is proportional to the "lever arm" on the liquid side. In practice, if you set $C_0$ very close to $C_S$ on the diagram, you'll see $f_s$ approach 1—almost all solid!

Physical Model & Key Equations

The core principle is conservation of mass. For an alloy of overall composition $C_0$ that has separated into a solid of composition $C_S$ and a liquid of composition $C_L$, the total amount of component B must be conserved. This leads to the lever rule.

$$f_s = \frac{C_0 - C_L}{C_S - C_L}$$

$f_s$: Mass fraction of solid phase.
$C_0$: Overall composition of the alloy (set by the slider).
$C_L$: Composition of the liquid phase (read from the liquidus line).
$C_S$: Composition of the solid phase (read from the solidus line).

The lever rule is only valid under the assumption of equilibrium solidification, meaning diffusion in both solid and liquid is infinitely fast. This ensures the phases maintain uniform compositions ($C_S$ and $C_L$) as defined by the phase boundaries at each temperature.

$$f_s + f_L = 1$$

This simple sum rule states that the mass fractions of all phases must add to one. Combined with the lever rule, it allows you to also solve for the liquid fraction $f_L$.

Frequently Asked Questions

The lever rule is a theoretical value assuming equilibrium conditions. In actual solidification, if the cooling rate is fast, diffusion becomes insufficient, causing composition segregation within the solid phase, so the solid fraction may deviate from the theoretical value. This simulator is a tool for visualizing equilibrium states; please use it to understand trends in actual phenomena.
Yes, the operations are common. By clicking or using sliders to specify the composition and temperature on the phase diagram of each system, the solid fraction based on the lever rule and the composition of each phase are automatically calculated in the two-phase coexistence region, and the solidification process is visualized in real time. For the peritectic Fe-C system, behavior according to the progress of the reaction is also displayed.
If the composition is above the liquidus line (fully liquid region), the solid fraction is displayed as 0%; if it is below the solidus line (fully solid region), the solid fraction is displayed as 100%. Outside the two-phase coexistence region, the lever rule is not applied, and it can be visually confirmed on the phase diagram that it is a single phase.
Yes, it is useful for predicting the solidification temperature range and the final solid fraction. For example, alloys close to the eutectic composition have a narrow solidification temperature range and good fluidity, providing basic knowledge for process design. However, since dynamic factors such as cooling rate and melt flow are not included, please use it in conjunction with other CAE tools in practice.

Real-World Applications

Casting & Foundry Engineering: Predicting how much solid forms at a given temperature is crucial for designing casting processes. For instance, using the Sn-Pb diagram helps control the solidification of solder to avoid defects like shrinkage pores, which form in the last liquid to freeze.

Alloy Design & Heat Treatment: The Fe-C (steel) phase diagram is the foundation of metallurgy. Engineers use it to design heat treatments like annealing or quenching. By understanding the phases present at different temperatures and carbon contents, they can tailor a steel's strength, hardness, and toughness.

Microstructure Prediction: The lever rule gives the phase fractions, but the assumption of equilibrium solidification often leads to a uniform microstructure. In real, non-equilibrium cooling (like in welding), different microstructures form, but the equilibrium diagram provides the essential starting point for analysis.

Materials Selection: When choosing a corrosion-resistant alloy like Cu-Ni for marine applications, the phase diagram ensures the selected composition will be a single, uniform solid solution at operating temperatures, preventing the formation of weak or corrosive secondary phases.

Common Misconceptions and Points to Note

First, understand that this simulator deals with an equilibrium state. The composition and amount of solid and liquid phases calculated by the lever rule describe an ideal case of "infinitely slow cooling." In actual casting or welding, the cooling rate is faster, so atomic diffusion within the solid cannot keep up, leading to non-equilibrium solidification that differs from the calculation. For example, rapidly cooling a Sn-Pb alloy results in a phenomenon called coring, where the composition differs significantly between the center and surface, rather than the uniform microstructure predicted by the calculation.

Next, be cautious of the oversimplified notion that "a solid fraction of 50% means half of the total is solid." The lever rule yields mass fractions. For alloys where the density of the solid phase and liquid phase differ significantly (like many cast irons), the volume fractions do not match. Since volume change is crucial for predicting shrinkage cavities, confusing these can lead to discrepancies in actual design.

Finally, pay attention to how the behavior changes when you adjust the "initial composition C₀" parameter in the tool. Moving C₀ away from the eutectic point (e.g., 61.9 wt% Sn for Sn-Pb) creates a difference between the temperature where solidification starts (liquidus) and where it ends (solidus). Alloys with a wider temperature range (solidification temperature range) will have a more gradual slope in the solidification curve, making it easier to form a broad, "mushroom-shaped" mushy zone. This means shrinkage porosity tends to be dispersed, making riser design more challenging. The quickest way to understand this is to actually try changing C₀ in the simulator and observe how the shape of the solidification curve changes.

How to Use

  1. Select an alloy system (Cu-Ni, Sn-Pb, or Fe-C) from the dropdown menu.
  2. Set the overall composition C0 (wt%) using the slider or numeric input field (c0Slider or c0ValNum).
  3. Adjust temperature using tempSlider or tempValNum to move along the phase diagram isotherm.
  4. Read instantaneous solid fraction fs, liquid fraction fl, solid composition Cs, and liquid composition CL from the output labels.
  5. Apply the lever rule: fs = (CL – C0)/(CL – Cs) to verify displayed results.

Worked Example

Cu-Ni alloy at C0 = 40 wt% Ni, T = 1250°C. The liquidus intersects at CL ≈ 32 wt% Ni; solidus at Cs ≈ 48 wt% Ni. Lever rule: fs = (32 – 40)/(32 – 48) = 0.50 (50% solid). In foundry practice, this composition reaches the mushy zone during casting, requiring careful cooling control to avoid segregation and hot tearing in investment-cast turbine blades.

Practical Notes

  1. Sn-Pb eutectic (61.9 wt% Sn, 183°C) exhibits no solid-state solubility; use for solder joints where single-phase solidification prevents recrystallization.
  2. Fe-C diagram cementite line (6.67 wt% C) marks white-cast-iron region; compositions above 4.3 wt% C are hypereutectic, prone to brittle primary graphite or cementite networks.
  3. Solid-state diffusion below Teutectic is negligible at typical cooling rates; assume Scheil non-equilibrium solidification for rapid casting (e.g., 10 K/s in die-casting).
  4. Partition coefficient k = Cs/CL governs microsegregation; Cu-Ni k ≈ 0.78 creates dendrite cores enriched in Ni, causing hardness gradients in turbine rotors.