How to change shaders on fluid simulations? (Incandescent metal simulation)

Hi there!
So, I’m trying to animate a lava-like fluid and it needs to start incandescent and gradually become a solid metal. Is there a way to do this in blender?
I imagined I could use velocity data, but I didn’t find anything like that made in blender yet.

Thank you.