D Compression for Grain Material

Two blue cylinders perform the compression from two perpendicular directions.
The mechanism has only one degree of freedom. Motions of two green pistons are interdependent.
Oblique angle of yellow slider determines edge ratio of the created rectangle.
It can be used also for 2D compression strength testing.