I am developing an adapter using preCICE for the Giraffe solver which is an FEM that uses beam elements, similar to the MBDyn, to do FSI couple with OpenFOAM. I ran the single perpendicular flap and the Turek benchmark without problems using both explicity and implicity couplings.
But when I tried to run the multiple perpendicular flap case, I am facing an error with description of ASSERTION FAILED, similar to what was reported in this Topic of the preCICE forum: preCICE/Official adapters and tutorials: ASSERTION FAILED usedDegree >= 1. This error hapens when my adapter requires the preCICE forces calculated by OpenFOAM, in the very first iteration:
// read forces from preCICE
std::cout << "[Giraffe-adapter] Reading forces from preCICE" << std::endl;
participant->readData(meshName, readDataName, nodesIDs, dt , preCICE_Forces);
This happens in both terminals executing the solid part.
I would like any help, because I don’t know if is a problem in my adapter that is not yet prepared for multiple coupling or a configuration or code problem of preCICE.
I am the original poster of the linked post. I managed to mix my issue by re-arranging the mapping in the .xml file.
You have them all under the fluid participant. I changed mine to have the fluid mapping ‘read’ both solid meshes and have each solid mesh ‘read’ the fluid mesh.
I’m not an expert but this worked for me and might be worth trying in your case.