Hello everyone! I am using solids4foam and OpenFOAM to simulate an FSI problem. I want to use Stress as the exchange date instead of Force. However, solids4foam displayed error messages as:
[31mError (deferred - will exit later) in the preCICE adapter: e[0m Reading forces is not supported.
Sorry for being late to reply!
I used a tutorial case of “perpendicular-flap” to reproduce the issue. I changed the Force to Stress in the config files. The error also displayed as “Reading forces is not supported.”
The following are the config files: precice-config.xml (2.8 KB) preciceDict-fluid.txt (661 Bytes) preciceDict-solid.txt (942 Bytes)
The following are the output log files: fluid.log (6.4 KB) solid.log (5.0 KB)
The following is the modfiled perpendicular-flap case: flap-stress.zip (113.0 KB)
Could you please check where they are set incorrectly? Thank you very much!
Thank you for your reply!
I am wondering if solids4foam can only write the date “displacement” and read data “Force”? So far, it doesn’t support exchanging other types of dates, such as reading “stress”, writing “displacementDelta”, or writing “velocity”, right?
Could I ask some more questions about exchanging data in an FSI simulation? Question 1:OpenFOAM fluid simulation requires ‘velocity’ data on the interface boundary, but solids4faom solid simulation can only provide ‘displacement’. Does Precice have the function to calculate point velocity using the displacement on the interface boundary and then provide the velocity to OpenFOAM?
Question 2:Furthermore, as I understand it, fluid velocity should equal solid velocity at the interface boundary. In the tutorial, many cases only exchange displacement data. Why can velocity be ignored? Could you share your thoughts on this?
Question 3:Also, Precice exchanges displacement and force, which is the Dirichlet–Neumann boundary condition. How is the Robin-Neumann boundary condition used, where fluid takes a combination of kinematic and dynamic interface conditions as the boundary condition? How can this be achieved?
I would be very grateful if you could clear up my confusion!
Since the velocity depends directly on the displacement (derivative), we don’t impose it. One could extend the adapter to exchange the velocity of the interface as well (in fact, we had this in first implementations), but so far we had several successful applications exchanging only displacement and force/stress.
We don’t support such coupling for FSI in the OpenFOAM adapter at the moment, but one could extend it. In terms of preCICE, this is possible, and we already have examples of Robin coupling in CHT applications (see heat exchanger).