returns density from state - seems useless, but good for compatibility between PartialMedium and PartialMixedMediumTwoPhase