Multiple Coupling: ASSERTION FAILED / Eigen::VectorXd Storage::sample(double) const / usedDegree >= 1

Hello,

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);

Leading to this error:

ASSERTION FAILED
Location:   Eigen::VectorXd precice::time::Storage::sample(double) const
File:       /home/rodolfo/programas/precice-3.1.2/src/time/Storage.cpp:199
Expression: usedDegree >= 1
Rank:       0
Arguments:  none

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.

Thanks,
Rodolfo Curci Puraca

precice-config.xml (4.7 KB)
Solid_1_error_log.txt (4.3 KB)
Solid_2_error_log.txt (4.3 KB)

Hi Rodolfo,

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.

Bw,
Luke

2 Likes

Hi Luke,

Yes, it worked! Thanks!

Attached is how the precice-config.xml looks after the changes.

precice-config.xml (4.7 KB)

1 Like

It helps to visualize the configuration.

Wrong config:

Correct config:

I opened an issue to improve the error handling here:

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.