new-workspace open-thermodynamic-database mc_fe.tdb select-elements c select-phases fcc_a1 read-thermodynamic-database read-mobility-database mc_fe.ddb enter-composition weight-percent c=0,2 set-automatic-startvalues set-temperature-celsius 1000 calculate-equilibrium create-precipitation-domain matrix set-precipitation-parameter matrix thermodynamic-matrix-phase=FCC_A1 set-precipitation-parameter matrix subgrain-evolution-model=abc create-tm-treatment tmt append-tmt-segment tmt edit-tmt-segment tmt . segment-start-temperature=1200 edit-tmt-segment tmt . segment-accumulated-strain=,1 edit-tmt-segment tmt . deformation-rate=1 edit-tmt-segment tmt . precipitation-domain=matrix append-tmt-segment tmt edit-tmt-segment tmt . T_dot+delta_t 0 1e4 edit-tmt-segment tmt . precipitation-domain=matrix set-simulation-parameter temperature-control temperature-control-type=from-tm-treatment set-simulation-parameter tm-treatment-name=tmt start-precipitate-simulation new-gui-window p1 $ create plot window move-gui-window displace . 75 15 800 800 $ move and resize plot window $ define default x-axis properties set-gui-window-property window-id=. default-x-axis-for-all-plots=yes set-gui-window-property window-id=. default-x-axis-data=stepvalue set-gui-window-property window-id=. default-x-axis-title="Time [s]" set-gui-window-property window-id=. default-x-axis-type=log set-gui-window-property window-id=. default-x-axis-scaling=1e-5.. set-gui-window-property window-id=. default-x-axis-legend=bottom set-gui-window-property . number-of-plot-columns=auto $ define plot properties: dislocation density set-plot-option . use-alias-names-in-legend=yes set-plot-option . y-axis-title="Dislocation density [m-2]" set-plot-option . series new buffer DD_TOT$* $set-plot-option . series new buffer DD_EQU_RS$* set-plot-option . series new buffer DD_EX_RS$* set-plot-option . y-axis-type=log set-plot-option . grid major enable-x-axis=yes set-plot-option . grid major enable-y-axis=yes $ define plot properties: subgrain diameter create-new-plot xy-plot . set-plot-option . use-alias-names-in-legend=yes set-plot-option . y-axis-title="Mean subgrain diameter [μm]" set-plot-option . series new buffer SGD$* set-plot-option . y-axis-factor=1e6 set-plot-option . y-axis-type=log set-plot-option . grid major enable-x-axis=yes set-plot-option . grid major enable-y-axis=yes $ define plot properties: grain diameter create-new-plot xy-plot . set-plot-option . use-alias-names-in-legend=yes set-plot-option . y-axis-title="Grain diameter [μm]" set-plot-option . series new buffer GD$* set-plot-option . y-axis-factor=1e6 set-plot-option . y-axis-type=log set-plot-option . grid major enable-x-axis=yes set-plot-option . grid major enable-y-axis=yes rename-current-buffer deformation_only create-calc-buffer deformation&growth set-gui-window-property . buffer-name=deformation&growth set-precipitation-parameter matrix grain-evolution-model=single-class start-precipitate-simulation create-calc-buffer recrystallization set-gui-window-property . buffer-name=recrystallization set-plot-option . series new buffer GD_DEF$* set-plot-option . series new buffer GD_RX$* set-plot-option . y-axis-scaling=..2000 $ define plot properties: Nucleation rate of recrystallized grains create-new-plot xy-plot . set-plot-option . use-alias-names-in-legend=yes set-plot-option . y-axis-title="Nucl. rate of rex. grains [m-3s-1]" set-plot-option . series new buffer RX_NUCL_RATE$* set-plot-option . y-axis-type=log set-plot-option . grid major enable-x-axis=yes set-plot-option . grid major enable-y-axis=yes $ define plot properties: Nucleation density of grains create-new-plot xy-plot . set-plot-option . use-alias-names-in-legend=yes set-plot-option . y-axis-title="Number density of grains [m-3]" set-plot-option . series new buffer NG$* set-plot-option . series new buffer NG_DEF$* set-plot-option . series new buffer NG_RX$* set-plot-option . y-axis-type=log set-plot-option . grid major enable-x-axis=yes set-plot-option . grid major enable-y-axis=yes $ define plot properties: Recrystallized fraction create-new-plot xy-plot . set-plot-option . use-alias-names-in-legend=yes set-plot-option . y-axis-title="Recrystallized fraction" set-plot-option . series new buffer X_RX$* set-plot-option . grid major enable-x-axis=yes set-plot-option . grid major enable-y-axis=yes set-precipitation-parameter matrix allow-recrystallisation=yes start-precipitate-simulation