Grand Potential Solver
The GrandPotentialSolver solves the equation
where
Further details of the grand potential method can be found in e.g.[1]
Dependencies
- BoundaryConditions
- GrandPotentialDensity
- InterfaceProperties
- PhaseField
- RunTimeControl
- Settings
- Temperature
- VTK
Usage
Below a minimalistic usage example is given
cpp
// ....
// Initialize solver and read input of module dependencies
Settings OPSettings (InputFileName);
BoundaryConditions BC (OPSettings, InputFileName);
GrandPotentialDensity omega (OPSettings, InputFileName);
InterfaceProperties BC (OPSettings, InputFileName);
PhaseField Phi (OPSettings, InputFileName);
RunTimeControl RTC (OPSettings, InputFileName);
Temperature Tx (OPSettings, InputFileName);
// ....
// Initialize solver and read input
GrandPotentialSolver GPS (OPSettings, InputFileName);
// ....
omega.Set(Temp.Tx,GPS.ChemicalPotential);
// ....
for(RTC.tStep = RTC.tStart; RTC.tStep <= RTC.nSteps; RTC.IncrementTimeStep())
{
if (RTC.WriteVTK())
{
// ....
// Write VTK output
GPS.WriteVTK (OPSettings, Phase, omega, RTC.tStep);
// ....
}
if (RTC.WriteRawData())
{
// ....
// Write restart output
GPS.Write(OPSettings, RTC.tStep);
// ....
}
// ....
GPS.Solve(Phase,omega,BC,IP,Tx,RTC.dt);
// ....
}Input
opi
@GrandPotentialSolver
$MASS_FE Molar Mass of Fe [kg/mol] : 0.055845
$CI_0_FE Initial moles per volume of Fe in vapor [mol/m^3] : 1
$CI_1_FE Initial moles per volume of Fe in gamma [mol/m^3] : 140984
$M0_0_FE Chemical mobility of Fe in vapor [m^2/s] : 1.00e-12
$M0_1_FE Chemical mobility of Fe in gamma [m^2/s] : 1.00e-12
$IM Use Interface Mobility Coefficient : No
$dMdc Phase Mobility Concentration Coupling : No
$Implicit Use semi implicit Euler scheme : No
$MAXI Maximum of iterations : 1000
$ACC Relative Accuracy of chemical potential : 1.0e-08
$TOC Conserve total amount of components : Yes
$TOCMAXI Maximum of iterations : 10
$TOCACC Relative Accuracy : 1.0e-10References
[1] Mathis Plapp (2011). Unified derivation of phase-field models for alloy solidification from a grand-potential functional. Physical Review E, 84, 031601. DOI: 10.1103/PhysRevE.84.031601 ↩