Hello, do you know how to make the matrix structure and the recrystallized structure different colors when simulating dynamic recrystallization using the phase-field method?
Attributing colors to a simulated Microstructure would depend on the quantities you are using to visualize that microstructure.
For the case you have mensionned, I guess you would be primarily interested in showing the grain boundaries(GBs) , and thus the sum squared of the order parameter values seems to provide a good choice. Using such quantity will allows you to distinguish between grains and GBs, but you will not distinguish between the recristallized grains and the matrix.
I am guessing that when you are saving the outputs of your simulation, you are saving also the individual output of each field. If my guess is right, then you can overlay the recristallized fields with the matrix fields excluding the interfaces and using different indexes for each type. Finally you add the sum squered of phase fields on the top to represent the GBs. At the end you have different values representing each of you Microstructure entities.
You can use a standard color mapping choosing a suitable "colormap" of matplotlib library for example to attribute different colors.