Hello everyone,
I have imported mesh created in SALOME, with its surfaces defined for boundary conditions.
I am coupling my fsi study between fenics and openfoam using Precice.
For precice to understand the coupling interface in the solid solver, the surface 3-int_walls (see image above) needs to be mentioned in precice.initialize(coupling_boundary, read_function_space=V, write_object=V, fixed_boundary)
I am unable to use SubDomain class, as I can’t use an expression to define coupling interface in a complex geometry.
Please help me correctly input the coupling boundary information from my facet_region.xml file to be fed into the precice.initialize()
From your post, I gather that jumping straight into coupling your code is a bit much.
Please first work through the quickstart and then continue with the couple your code section of the documentation.
Converting a part of a SALOME mesh into a FEniCS SubDomain class object could indeed be difficult or also simply not possible. The FEniCS-preCICE adapter is limited in the sense of how can it accept coupling interface mesh information. One option for you would be to not use the adapter, but use the Python bindings of preCICE, pyprecice to directly couple your FEniCS code using the Python API of preCICE. This will give you greater freedom on ways to pass the coupling mesh vertex coordinates to preCICE.
However, it would still be worth trying to somehow filter the mesh vertices with the particular Name and then somehow pass them as a FEniCS class (not necessarily as the SubDomain class). If you want, please open an issue in the FEniCS-preCICE adapter repository: Issues · precice/fenics-adapter · GitHub