Running and Plotting the Simulation
The SIMULATE_REACTION command starts the simulation.
simulate_reaction
In order to plot results it is necessary to enter the POST_PROCESSOR sub-module (note that the GOTO_MODULE command is not used).
post_processor
In most cases, either a specific position in the domain or one or more specific times must be specified with the SET_PLOT_CONDITION command, depending on whether time or spatial position is chosen as independent (x-axis) variable.
SET_PLOT_CONDITION <CONDITION WITH ARGUMENTS>
set_plot_condition time 0,1e5
Here, the composition profile of Ni at the initial and final time is plotted and thus time
is chosen as plot condition.
In other cases distance can be given relative to, for example, a phase interface, hence the global specification.
SET_DIAGRAM_AXIS <X OR Y> <AXIS QUANTITY>
set_diagram_axis x distance global
In this example the only meaningful measure of distance is relative to the domain as a whole, i.e. the leftmost position is zero and the rightmost position corresponds to the width of the region (10-4 m).
The dependent property to be plotted is mass-% Ni.
set_diagram_axis y weight_percent ni
Then plot the diagram:
PLOT_DIAGRAM
plot_diagram
In the Console Results plot window, graphs of the initial and final Ni profile display. Finally, the SET_INTERACTIVE_MODE command is executed to return control to the user. If the command is absent in a macro the program terminates when the end of the macro file is reached.
SET_INTERACTIVE_MODE
set_interactive_mode