States of matter

What is the main purpose of a virial equation of state?