Grand Potential Phase Density Parabolic
GrandPotentialPhaseDensity_Parabolic is the simplest GrandPotentialPhaseDensity implementation: the per-phase grand-potential density is a quadratic function of the component chemical potentials. It is the natural choice when calibrating against linearised thermodynamic data from a CALPHAD-style fit and for method-development studies. It sits alongside the ideal-gas, compressible-fluid, and implicit-parabolic variants used by the Grand Potential Solver.
Model
The parabolic grand-potential density reads
where
The phase concentration is the negative first derivative of the density with respect to the chemical potential:
The susceptibility is the negative second derivative:
Usage
Input
Defined inside the @GrandPotentialDensity block. One (phase, component-name) pair, with <alpha> the phase index (zero-based) and <ComponentName> the component string declared in @Settings.
@GrandPotentialDensity
$EPS_0_FE Parabolic energy coefficient (phase 0, Fe) : 0.10
$EPS_1_FE Parabolic energy coefficient (phase 1, Fe) : 0.08
$C0_0_FE Equilibrium density (phase 0, Fe) : 1
$C0_1_FE Equilibrium density (phase 1, Fe) : 140984Output
No dedicated output file. The parabolic phase-density state is read by the Grand Potential Solver; the resulting chemical-potential evolution and derived composition are written through the solver's VTK output.
Example
#include "GrandPotential/GrandPotentialSolver.h"
// GrandPotentialPhaseDensity_Parabolic is selected at the solver's
// construction time based on the @GrandPotentialDensity block.
GrandPotentialSolver GPS(OPSettings, InputFile);
for(RTC.tStep = RTC.tStart; RTC.tStep <= RTC.nSteps; RTC.IncrementTimeStep())
{
GPS.Solve(Phi, Cx, Tx, BC, RTC.dt);
if (RTC.WriteVTK())
{
GPS.WriteVTK(OPSettings, RTC.tStep);
}
}Dependencies
- GrandPotentialPhaseDensity — base class.
- GrandPotentialSolver — consumer.
- GrandPotentialDensity — the mixture density built from the per-phase densities.
- Composition — component registry.