Initial and boundary condition

Hello, how to set such boundary conditions in FEniCS?

When xi=xi_a xi = xi_f:
Снимок экрана от 2023-04-27 15-38-02