After I did some google work, I found that, approximately, that equation works, but yes, as you said, the change of the solid states, nonuniform density, or phase separation, etc. which will make the equation not valid for caculation of the mixture refrective index.
Thank you very much for...