Exchange velocity data between Openfoam and Calculix FSI

Hello everyone, I have been trying to modify the perpendicular-flap tutorial where I want to write both displacement and velocity from Calculix to OpenFoam. For that, i changed the boundary condition of U from movingWallVelocity to fixedValue. I configured preciceDict file to read velocity by adding FF module along with FSI module as discussed in https://precice.discourse.group/t/about-passing-velocity-to-the-fluid-solver/1362. Similarly, I configured config.yml files to write velocity too.
I tried running simulation and this is the error message i am getting.

Adapter writing coupling data…
Writing DISPLACEMENTS coupling data with ID ‘3’.
—[precice] ERROR: writeBlockVectorData() was called with valueIndices == nullptr

I have also attached the relevant files and hope to get a solution.
precice-config.xml (2.1 KB)

config.yml (234 Bytes)
preciceDict.txt (479 Bytes)

Hello,I have encountered the similar problem, I don’t know if you have solved it.

Velocity exchange worked for me when I set dimensions to be 3D in precice config. The error that I encountered occurs when the coupling is 2D.

1 Like

@Luffy thanks for the update, and nice that you made it work!

This must be an issue in the CalculiX adapter, even though I don’t immediately see where. Could you please open an issue, describing how you triggered this issue and what you observed? Issues · precice/calculix-adapter · GitHub

In the OpenFOAM adapter, we do account for 2D velocities: openfoam-adapter/FF/Velocity.C at develop · precice/openfoam-adapter · GitHub