Hello everyone, I’m using openfoam and solids4foam to calculate a fluid-structure coupling problem. I want to exchange stress data instead of Force data. I’ve changed “Force” to “Stress” in all the config files. But there is solidForce file in the 0 folder in solids4Foam, and I don’t know how to change it to the corresponding stress file.
At present solids4foam reports the following error:
“Participant “Solid” asks for data “Force” from mesh “Solid-Mesh”, but this mesh does not use such data. Please add a use-data tag with name=“Force” to this mesh."
Here are all the configuration files:
precice-config.xml (2.6 KB)
preciceDict-fluid.txt (462 Bytes)
preciceDict-solid.txt (697 Bytes)
Thank you for any advice!
In the precice-config.xml
, I still see:
<read-data name="Force" mesh="Solid-Mesh" />
which is not defined as data and associated to the Solid-Mesh
. This is what the preCICE error is referring to.
You can configure the OpenFOAM adapter to read solidForce
:
Example from our tutorials:
You currently specify nameStress solidStress
, but this name is currently hard-coded in the adapter:
You can try changing this and rebuilding the adapter. If there is a more general use case and you think this would be generally useful (it probably should), please open an issue in the OpenFOAM adapter.
Thank you very much for your help!
I’m sorry for replying so late
1 Like