Solid fraction calculation