Problem in keeping the volume constant during triaxial undrained test

I am trying to keep the volume of the triaxial specimen constant throughout the test to maintain an undrained condition, but it’s not working. In 2D, the same logic works well, but it fails in 3D to maintain the volume.
volume.txt (2.4 KB)