general framework to compare different .vtk files (just visualizing)

Don’t do that. I don’t want to dive into technical details of when ParaView does and doesn’t refresh data from files, but suffice it to say that ParaView sometimes pulls new data from files, and there are use cases where refreshing data is desired.

Run your simulation to create solution files in two different places or copy the first solution files before opening them in ParaView.