apply a specific constant strain field to a design domain and then solve for the node displacement of the grid

Dear deity, I am a student majoring in mechanics. I hope to apply a specific constant strain field to a design domain and then solve for the node displacement of the grid. How should I achieve this in Fenics