Hello, I would like to implement the Fictitious Domain Method in FEniCS.
Let’s say that we have a coupled velocity-pressure FE formulation for Stokes/Navier-Stokes. I would like to add Lagrange multipliers to impose velocity BC on the immersed boundaries described by P1 or P2 1D (line) elements. For example, as shown in Figure.
How can I do this in FEniCS? How to write variational forms by combining mixed-dimensional meshes?
Hi, thank you for your response! I am not sure what you meant by “I would suggest you discuss the topic with your collaborators.” but to me it reads quite condescending.
I know what I am doing. Check my paper https://www.sciencedirect.com/science/article/pii/S0045782515004296
As you need to formulate the variational form on submeshes, there are some things (such as entity maps) that needs to be explicitly mapped. A Lagrange multiplier code shouldn’t be much more than 100 lines of Python code (L262-363) in mixed_domain_demos/lagrange_multiplier.py at main · jpdean/mixed_domain_demos · GitHub
as all earlier code is generate the specific mesh of the fenics logo, which shouldn’t be needed for your problem.