A semi-discrete approachto the confined compression of biphasic mixtures