Passing face values during volume coupling

Hello everybody,

assume that I have one mesh (M1) immersed in another (M2) and want to volume couple an OpenFOAM simulation in M1 to another OpenFOAM simulation in M2. How can I pass/interpolate values from simulation M2 to the boundaries of simulation M1 (use this as boundary conditions in M1) and then pass a calculated value from M1 to the cells from M2? I guess this is something like a surface coupling in one direction and volume coupling in the other.

Thanks and all the best,

Dennis

For the micro-manager I was reading out all the face values around a cell and passing them to the micro simulations, but now I want to couple a domain larger than a single cell.

For the OpenFOAM simulations: everything depends on what locations you configure. Configuration:

I am not sure I follow the model setup, but on the technicalities:

  • For M2 to write all of its inner domain values, you need to define an interface with locations volumeCenters (assuming that a patch is not enough).
  • For M1 to read in patches, configure as usual for surface coupling.
  • You then need an appropriate mapping between preCICE meshes.
  • For the M1 to M2, configure a source terms, as shown in the documentation.

If in doubt, you can always define multiple Interfaces in preciceDict.

1 Like