Hello everyone!
Intro
I am starting to use the preCICE-adapter to couple an in-house DEM solver with OpenFOAM. I am on the current develop
branch of openfoam-adapter, precice v3.2.0 and am using openfoam2412 and Fedora41. Starting point is this paper: ORBilu: Detailed Reference and the preCICE-Tutorials.
Generic data exchange in volume-coupling
From what I saw in the forums and the documentation, a generic data exchange is currently not supported:
- The OpenFOAM adapter | preCICE - The Coupling Library
- Generic writer/reader for volume coupling · Issue #279 · precice/openfoam-adapter · GitHub
- Can preCICE be used for volume coupling? - #7 by uekerman
And it was discussed that there is being done some work on it currently:
I wanted to inform myself if there is any active development done here or if there is information about the current state.
My use case
My current approach will be misusing the velocity-read of the OpenFOAM-adapter to pass the momentum-sourceterm from DEM->CFD (could also be just passing the void-fraction of each cell - I did not find out what the most convenient way is yet). Unidirectional coupling from CFD->DEM seems to work without an issue.
The issue I am currently facing appears when trying to implement bidirectional coupling. I am not sure if I can read and write to different velocity fields e.g. something like this:
modules (FF);
interfaces
{
Interface1
{
mesh FluidMesh;
patches ();
cellSets (meshBox);
locations volumeCenters;
readData (Velocity0);
writeData (Velocity1);
};
};
FF
{
nameVelocity0 U_vol;
nameVelocity1 U;
};
Is bidirectional volume-coupling supported? I guess misusing the velocity-field for sourceterm exchange is not exactly the “preCICE” way of doing this but it’s my first naive approach. I should mention that I have zero experience with CFD and OpenFOAM but am motivated to work on this
I am willing to take a look into #279 and might be able to contribute some form of generic data-exchange to it. Any input regarding the state of issue or just something about preCICE CFD-DEM coupling is highly welcomed.
Thanks a lot!