-
Notifications
You must be signed in to change notification settings - Fork 47
deformable outlet crash. 3dTube based. preCICE. #369
Comments
Hi! So I guess that the under relaxation factors are not applied by the fluid solver. foam-extend uses the following way to set the underrelaxation factors:
Also, the fluid solvers has quite a large residual in my opinion. So you could consider using a stricter
|
I've just checked the meshes, and you're using non conforming fluid and solid grids. In that case, it is advised to use consistent interpolation between the fluid and solid grids as shown here: (Note that I've just updated the file yesterday. Refer to commit 384bb40 to see the changes.) |
I've changed the solid mesh according to your remark. Now both meshes are conforming.
In my case the pressure field is already initialized by pimpleFoam. It seems that I also should initialize the displacement. However you wrote "and/OR". Therefore I've thought that initialized pressure field would be enough. But the simulation crashed. So, my question is: is there a way to initialize the displacement for solid ? The project file and logs for fluid and solid solvers is located here: https://yadi.sk/d/DwTWDKEjwEHCt |
Nice that you've changed the meshes to be conforming. I haven't had the time yet to look at the problem. I'll take a look at it tomorrow, and let you know how it goes. What I meant with the initialization of the displacement and/or pressure, is of importance when a simulation is restarted. With precice, you can configure whether a variable should be initialized or not. In case of a restart, the displacement needs to be initialized in all cases. The pressure needs to be initialized when the fluid and solid solvers are coupled in parallel (solid solver is not waiting for the fluid solver). |
Just looked at the test case again, and I noticed that you use the I guess that the You should first rerun the pimpleFoam solver, and then try again 👍 Also, when the solid solver is still crashing, you could try to use more relaxation for the structure solver. So set the relaxation factor to 0.1 for example in |
Thanks David. Now the simulation works without crashes. I've simulated the first 80 steps and now I'mlooking on the results. For solid part, it seems to be OK. However for the fluid region the outlet segment deforms a little bit strange. It is difficult to describe by words, please just look on the video The videos and project file are located here: https://yadi.sk/d/kO6ONHrswQtjm |
This strange behaviour at the outlet is most probably caused by the fact that the displacement of the outlet is not well defined. The RBF mesh interpolation interpolates the displacements from the wall, and inlet (fixed) to the outlet. This is only based on interpolation, and not on physical constraints. I'm not really sure what would be a good solution here. |
According to your suggestion #363 I've changed the mesh motion solver to
ElRBFMeshMotionSolver
. Yes, simulation runs OK.The next step for me was to setup a case in such a way that outlet patch could also be deformed by the fluid flow. In #355 you've suggested that:
The brief summary of changes is listed below:
fluid/0/U -> outlet type
myMovingWallVelocity
fluid/constant/couplingProperties ->
movingFluidPatches (wall outlet);
fluid/constant/dynamicMeshDict ->
movingPatches ( wall outlet);
solid/0/U -> outlet
type solidTraction
solid/couplingProperties ->
movingFluidPatches (wall outlet);
However, first step runs OK (outlet patch is really deformed), but on the first iteration of second time step the simulation crashed with floating point problem for
fsiFluidFoam
. The Courant number for the first time step was about 0.13, on the second step it is about 2. I've tried to add the relaxation factors for fluid solver: 0.3 for p and 0.7 for others. The time step is already very small - 1e-4.Nevertheless, the simulation still crashed on the first iteration of second time step.
Maybe a mesh at the outlet patch deforms in such a way that it produces the cells with a high Courant number ?
The project file is here: https://yadi.sk/d/LedohW4iwBUQk
The text was updated successfully, but these errors were encountered: