Determination of phase diagram of reaction system