!* 2D simulation of spinodal decomposition in the Fe-Cr system

!*YAPFI macro
!*-----------

SET_NUMBER_OF_THREADS
4!Number of threads /1/


MANDATORY_DATA
fe_cr_bcc_demo!GES file / ANALYTICAL [<analytic init file>]
773!(Initial) Temperature [K] /1000.0000/
!Pressure [Pa] /100000.00/
!Element CR substitutional /YES/
!Element FE substitutional /YES/
!Initially homogeneous composition /YES/
0.5!Initial mole fraction of element CR
0.5!Initial mole fraction of element FE
!*Enter state of phases, 1:Entered, 2: Suspended
!State of phase (BCC_A2) /1/
2!Dimensionality /1/
128!Nr of grid points in dimension #1 /10/
128!Nr of grid points in dimension #2 /10/
3.456e-8!Domain width [m] in dimension #1 /1.0000000/
3.456e-8!Domain width [m] in dimension #2 /1.0000000/
y!Periodic boundary in dimension #1 /NO/
y!Periodic boundary in dimension #2 /NO/
!*Grid type. 1:Linear, 2:Geometric, 3: Double geometric, 4: Read from file
!Grid type in dimension #1 /1/
!Grid type in dimension #2 /1/
!*Info: Initial time is always zero
3600000!Simulation time [s] /1.0000000/
!Maximum timestep [s] /3600.0000/
!Minimum timestep [s] /0.10000000E-09/
!Initial timestep [s] /0.10000000E-09/
!Save interval /1/
5000!Minimum elapsed time between saves [f(time)], [s] /1.0/

GRADIENT_ENERGY
y!Use gradient energy contribution /NO/
!Zero positive gradient energy coefficents /YES/
!Use automatically generated gradient energy coefficents /NO/
!*Info: Global minimization set as not allowed (TQ_SETTINGS)
-9e-16!K0102 CR-FE

NUMERICAL_SETTINGS
!Degree of implicity /1.0000000/
!Relative error tolerance /0.50000000E-01/
!Absolute error tolerance /0.10000000E-07/
!Jacobian perturbation parameter /0.10000000E-02/
!Clean Jacobian /NO/
!Minimum mole fraction /0.10000000E-14/
!Minimum mobility /0.10000000E-39/
!Maximum temperature /6000.0000/
!Maximum timestep change factor /2.0000000/
!Enforce a maximum \Delta T per time-step /NO/
!Temporally piece-wise locally constant coefficients /YES/
y!Enable linearized time-steps /NO/
!Assume a maximum width of interfaces /NO/


INITIAL_NOISE_IN_COMPOSITION
y!Apply initial noise to composition /NO/
0.01!Noise level (>0,<1) /0.10000000E-01/

RANDOM_NUMBER_SETTINGS
y!Use a single seed for the pseudorandom number generator /NO/
1!Enter integer seed (1 digit) (<0 for internal vector) /1/



ADAPTIVE_MESHING
y!Use adaptive meshing /NO/
!Initial allocation factor (>=1) /1.0000000/
!Adapt mesh based on composition gradients /YES/
0.01!Max composition Delta for CR /0.10000000/
0.001!Min composition Delta for CR /0.10000000E-01/
0.01!Max composition Delta for FE /0.10000000/
0.001!Min composition Delta for FE /0.10000000E-01/
n!Adapt mesh based on phase-field variable gradients /YES/
n!Adapt mesh based on temperature gradients /YES/
1!Domain size integer aspect ratio, 1st spatial dimension
1!Domain size integer aspect ratio, 2nd spatial dimension
1!Input integer (1) or real valued (2) parameters /1/
7!Initial depth (>0)
5!Minimum depth (>0)
7!Maximum depth (>0)
!Base interval to adapt mesh on cumulative change /NO/


SOLVER
!*Solvers:
!*1.Jacobian solver
!*2.Implicit solver
2!Choose solver /1/


MATRIX_SOLVER
!*Matrix solvers
!*1.QMR
!*2.BiConjugate Gradient
!*3.PARDISO
1!Matrix solver /1/


