Modeling pattern formation in soft flowing crystals