public class GCLPCalculator
extends java.lang.Object
implements java.io.Serializable
How to use this class:
runGCLP(magpie.data.materials.CompositionEntry)
Reference: Akbarzadeh, Ozolins, Wolverton. Advanced Materials. 19 (2007), 3233.
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<CompositionEntry,java.lang.Double> |
Phases
Phases to consider for equilibria and their energy.
|
Constructor and Description |
---|
GCLPCalculator()
Initialize a GCLP calculator.
|
Modifier and Type | Method and Description |
---|---|
void |
addPhase(CompositionEntry composition,
double energy)
Add new phase to the list of phases to consider.
|
void |
addPhases(CompositionDataset phases)
Set many phase energies.
|
int |
numPhases()
Get the number of phases being considered for GCLP
|
org.apache.commons.lang3.tuple.Pair<java.lang.Double,java.util.Map<CompositionEntry,java.lang.Double>> |
runGCLP(CompositionEntry composition)
Compute the ground state phase equilibria for a certain composition.
|
void |
setMu(java.lang.String elem,
double mu)
Define the chemical potential of an element
|
protected java.util.Map<CompositionEntry,java.lang.Double> Phases
public GCLPCalculator()
public void setMu(java.lang.String elem, double mu) throws java.lang.Exception
elem
- Abbreviation of elementmu
- Desired chemical potentialjava.lang.Exception
public void addPhases(CompositionDataset phases)
phases
- Dataset containing energy valuespublic void addPhase(CompositionEntry composition, double energy)
composition
- Composition of phaseenergy
- Energy of phasepublic int numPhases()
public org.apache.commons.lang3.tuple.Pair<java.lang.Double,java.util.Map<CompositionEntry,java.lang.Double>> runGCLP(CompositionEntry composition) throws java.lang.Exception
composition
- Composition to be consideredjava.lang.Exception