!* 3D simulation of spinodal decomposition in the Fe-Cr-Mo-ni system
!* Note: A license for the TCFE14 and MOBFE8 databases are required to
!* run the simulation.



!*YAPFI macro
!*-----------
SET_NUMBER_OF_THREADS
16!Number of threads /1/


MANDATORY_DATA
fecrmoni_tcfe14_mobfe8!GES file / ANALYTICAL [<analytic init file>]
773!(Initial) Temperature [K] /1000.0000/
!Pressure [Pa] /100000.00/
!Element CR substitutional /YES/
!Element FE substitutional /YES/
!Element MO substitutional /YES/
!Element NI substitutional /YES/
!Initially homogeneous composition /YES/
.4!Initial mole fraction of element CR
.5!Initial mole fraction of element FE
.05!Initial mole fraction of element MO
.05!Initial mole fraction of element NI
!*Enter state of phases, 1:Entered, 2: Suspended
!State of phase (BCC_A2) /1/
3!Dimensionality /1/
64!Nr of grid points in dimension #1 /10/
64!Nr of grid points in dimension #2 /10/
64!Nr of grid points in dimension #3 /10/
1.728e-8!Domain width [m] in dimension #1 /1.0000000/
1.728e-8!Domain width [m] in dimension #2 /1.0000000/
1.728e-8!Domain width [m] in dimension #3 /1.0000000/
y!Periodic boundary in dimension #1 /NO/
y!Periodic boundary in dimension #2 /NO/
y!Periodic boundary in dimension #3 /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/
!Grid type in dimension #3 /1/
!*Info: Initial time is always zero
1000000!Simulation time [s] /1.0000000/
!Maximum timestep [s] /360000.00/
!Minimum timestep [s] /0.10000000E-09/
!Initial timestep [s] /0.10000000E-09/
!Save interval /1/
0.01*time+100.0!Minimum elapsed time between saves [f(time)], [s] /1.0/

GRADIENT_ENERGY
y!Use gradient energy contribution /NO/
!Zero positive gradient energy coefficents /YES/
y!Use automatically generated gradient energy coefficents /NO/
6e-20



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.04!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/

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/

ADAPTIVE_MESHING
y!Use adaptive meshing /NO/
!Initial allocation factor (>=1) /1.0000000/
!Adapt mesh based on composition gradients /YES/
!Max composition Delta for CR /0.10000000/
!Min composition Delta for CR /0.10000000E-01/
!Max composition Delta for FE /0.10000000/
!Min composition Delta for FE /0.10000000E-01/
!Max composition Delta for MO /0.10000000/
!Min composition Delta for MO /0.10000000E-01/
!Max composition Delta for NI /0.10000000/
!Min composition Delta for NI /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!Domain size integer aspect ratio, 3rd spatial dimension
!Input integer (1) or real valued (2) parameters /1/
6!Initial depth (>0)
6!Minimum depth (>0)
6!Maximum depth (>0)
!Base interval to adapt mesh on cumulative change /NO/


SET_SCREEN_OUTPUT
1!Screen output. 1=Normal, 2=Minimal, 3=Less than minimal, 4=Almost nothing /2/

