MIDAS

Six standalone example configurations ship with MIDAS, under each folder’s own examples/ subfolder (identical in matlab/, octave/, and GUI/). Each is a complete parameter set - not a diff on top of the default - and every field it does NOT use for its particular mode combination is set to NaN, so it’s obvious at a glance what actually matters for that run. Together they exercise every mode switch in the model.

Example1_Baseline

The recommended starting point: the fully automated, phase-diagram-driven configuration.

addpath('examples');
params = Example1_Baseline();
R = MIDAS_Main(params);

Example 1: planar, phase-diagram-driven baseline

Animates the crystal/matrix interface position and composition profile evolving along the P-T-t path; frame resolution and grid are trimmed down here purely to keep the GIF small.

Example2_PolyEquilibrium

Runs with no phase-diagram file needed at all.

Example3_ThermalBump

Demonstrates the older, simpler P-T path parameterization.

Example4_ManualPartitioning

A hybrid configuration.

Example5_PlanarGeometry

Same fully automated configuration as Example1, but ndim=1 (planar growth) instead of ndim=3 (spherical) - e.g. for a tabular crystal or a 1-D approximation.

Example6_CylindricalGeometry

Same fully automated configuration as Example1, but ndim=2 (cylindrical growth) instead of ndim=3 (spherical).

Example 6: cylindrical growth geometry

Same animation as Example1_Baseline’s above, for the cylindrical-growth configuration.

Coverage at a glance

Mode switch Values shown Where
PTmode 'peak', 'Tbump' Examples 1/2/4/5/6, Example 3
eqMode 'PD', 'poly' Examples 1/3/4/5/6, Example 2
MnMode / MniBMode 'PD'/'PD', 'fixed'/'manual' Examples 1/3/5/6, Examples 2/4
ndim 3 (spherical), 1 (planar), 2 (cylindrical) Examples 1-4, Example 5, Example 6
isoRefMode 'core', 'bulk', 'wholerock' Examples 1/4/5/6, Example 2, Example 3
recordMode 'time', 'iteration' Examples 1/3/4/5/6, Example 2