FSI with interFoam and CalculiX: Convergence

(moved from FSI with interFoam and CalculiX)

I am trying to solve the divergence issue with interFoam and CalculiX.
(FSI Flap case modified for interFoam).

I modified a few things with the OpenFoam settings and increased the time it takes for the simulation to diverge.
Initially ‘interFoam’ diverged way before the falling water column hit the flap.

But after these modifications, as soon as the water column hits the flap it diverges rapidly.
I have tried both, explicit and implicit coupling as well to try and increase the time at which the solution diverges, but no help as implicit diverges before explicit. (As per my understanding implicit should be comparably more stable than explicit)
Fluid_interFoam_explicit.log (119.3 KB)
Fluid_implicit_lastParts.log (78.6 KB)

Here, I tried reducing the water column size, but there is a similar results as above.

Any hints, advice are very welcome.

Thank you.

Edit: Here my OpenFoam files.fvSchemes.txt (1.2 KB) fvSolution.txt (2.0 KB)

I am using the following settings in controlDict:

maxCo           2;
maxAlphaCo      1;
maxDeltaT       1;

Could be just a very tough situation for the quasi-Newton coupling due to the sudden change.
Compare this post: IQN fails for quickly changing forces during wetting in a free-surface FSI problem

1 Like

Dear Alphaoo1,
did you modify the OF-adapter according the suggestions of Moaxm https://github.com/precice/openfoam-adapter/issues/127 ?
After this we received a good agreement for the elastic dam break (https://www.dhcae-tools.com/preCICE.html).
Best regards


Dear @Ulrich,
Yes, I did modify the OF adapter according to the suggestion of Moaxm.
And I was able to run the dam break case with the Help of Kyle Davis.

Later on, it was a matter of fine-tuning the Implicit mapping. :sweat_smile:

After this we received a good agreement for the elastic dam break (https://www.dhcae-tools.com/preCICE.html).

I actually started the work on this after looking at the LinkedIn postby DHCAE team. :grin:

Edit: Here I have posted the results.

Dear @Alphaoo1,
Did you do your work by using CastNet? Is it free for us to download? I also want to do FSI works with interFoam and Calculix. Therefore, could you help me about how to debug the OF adapter and set up case?

Hello @Sun,

I have not used CastNet, I directly installed all the adapters needed and ran the case.
I think with the new updates to the OpenFoam adapter the interFoam + CalculiX case should run without any modifications to the adapter.

You can find the case here. The precice-config file is already set and should work without any issues.

1 Like

Dear @Alphaoo1,

Thanks for your help. I’ll do it and learn from it.

Dear Alphaoo1,
I’m sorry to send the private message to you. Now, I’ll keep the conservation going on the topic.
I checked my output of solid and then found there was noting in the folders flap.frd and flap.cvg. The part of solid didn’t run at all. But there is an error in Fulid.log.

Dear @Sun,

Check your Fluid/system/controlDict.
The error

Unknown function type preciceAdapterFunctionObject

means that OpenFOAM cannot find OpenFOAM adapter lib.
You have changed the name of the adapter to libpreciceAdapterFunctionObject_interFoam. Check if the file is there in $FOAM_USER_LIBBIN (/home/OpenFOAM/platforms/version/lib)

This might be caused because

  • You compiled OpenFOAM adapter with a name preciceAdapterFunctionObject (or some other name) but you are using libpreciceAdapterFunctionObject_interFoam
  • The OpenFOAM adapter was not compiled at all (failed due to some errors)