The boundary condition in FreeFem

Now, I need to solve the MHD system with the following condition
image
But I don’t know how this boundary condition is represented in the code


This is the equations

You can look at