Since I want to consider a seepage velocity on the interface which is calculated by the solid participant, I add “Velocity” as a new variable in the FSI module following the steps of adding
Pressure into the module. After recompiling the OpenFOAM adapter, I modified configuration files and set the boundary condition in U to
type fixedValue; value $internalField;
However, when I ran both solvers, an error occurred:
This participant does not use Data "Velocity", but attempted to write it. Please extend the configuration of participant "Fluid" by defining <write-data mesh="Fluid-Mesh" name="Velocity" />.
So I changed the
<read-data mesh="Fluid-Mesh" name="Velocity" /> to
<write-data mesh="Fluid-Mesh" name="Velocity" /> in the configuration file. And then, even though both solvers were running, the results of U on the interface in every timestep were still
type fixedValue; value uniform (0 0 0);
I’ve checked out the
partitioned-pipe case. In its configuration file, there is
<read-data name="Velocity" mesh="Fluid2-Mesh" /> and the tutorial case runs fine.