If you are working with different states of matter, (you already have plasma & gas) you should give the program some state tables! State conversions can be really complicated.