-
-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some FSI tutorials are not working with OpenFOAM6 #40
Comments
Instead, offer commented-out ways to get the residualControl in the various OpenFOAM versions, with the current values. This may affect convergence, but the purpose of the tutorial is to demonstrate how to configure preCICE and the adapters. This fixes #40.
I can confirm this issue: OpenFOAM.org changed the expected structure of residualControl in version 6, see e.g. this discussion on CFDOnline. The Fluid simulation exits already in the beginning of
#78 comments-out the
On the rest of the comments:
|
What's the problem?
I am using OpenFOAM6 on my machine and the tutorial cases
tutorials/FSI/cylinderFlap/*
do not work. I explicitly tested the casetutorials/FSI/cylinderFlap/OpenFOAM-FEniCS
while checking #38. For the other cases I tried executingrunFluid
and it always resulted in an error thrown by OpenFOAM (OF), even before the coupling was initialized.My proposed workaround
Commenting out some lines in
Fluid/system/fvSolution
does the trick and it works:Note again: I only explicitly tested the case with OpenFOAM and FEniCS. For OpenFOAM and deal.II, OpenFOAM and CalculiX respectively, I only ran
runFluid
and with the changes mentioned above OpenFOAM does not exit with an error, but executes until coupling is initialized and it is waiting for the second participant.What I already did
What should we do now?
The fix I am proposing above seems to work. However, there are some more things we should do in order to improve the compatibility of the tutorials with different version of OpenFOAM (bold for important ones and italics for less important):
residualControl
. I am not an OpenFOAM expert and I did not compare with the performance using a different OpenFOAM version that acceptsresidualControl
.flap_perp
. Here,residualControl
is not provided infvSolution
(see here). Therefore, I also did not observe any problems when runningflap_perp
under OF6 and I did not expect any problems to show up runningcylinderFlap
.fvSolution
of the both cases. Why?pimpleFoam
orpimpleDyMFoam
InFluid/system/controlDict
one has to manually choose the fitting solver. This straightforward, but still has to be done manually.The text was updated successfully, but these errors were encountered: