DirichletBC depending on probe value

Hello,

I am simulating a flow, and I would like to create a Dirichlet boundary condition that evolve according to the flow state at some points.

For that I need to:

  1. create a velocity probe (for example) to get the velocity v at a specific point
  2. create an expression f(v) that will take the velocity v of my probe as argument
  3. create a DirichletBC with that expression

I am new to FEniCS, I understand that I have to work seriously on the code to be able to code myself, an I will, but I don’t want to lose precious time if this kind of DirichletBC is not codable.

Thank you for your answers.

Best regards,
Rémi MOCHON