|
[Sponsors] |
Force discontinuity with correctPhi in restart |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 16, 2023, 05:54 |
Force discontinuity with correctPhi in restart
|
#1 |
Senior Member
Dave
Join Date: Jul 2010
Posts: 100
Rep Power: 16 |
Hi All,
I am testing a modified version of pimpleFoam in which I impose the deformation of one of the boundary walls. The case is essentially the cavity tutorial case but with the left wall deforming in a proscribed manner from another code. The solver works fine if I run without stopping the computation. However if I decide to stop and restart the computation I have a discontinuity in the fluid forces (about 2-3%). I observed that the residuals of the mesh deformation, pcorr and the momentum Ux and Uy are perfectly matching at the first non-linear iteration of the restarted case compared to the non-restarted case. The first difference that appears is the initial pressure residual. The deformation applied to the wall is identical for both the non-restarted case and restarted case, so I can eliminate issues from the other code as the source of the problem. After numerous test, I have observed that if I deactivate correctPhi, then there is a perfect match between the forces of the restarted case and the case run without stopping. As I understand, if I leave correctPhi deactivated, I will be violating continuity and it will be worse if I increase the deformations. Clearly the problem comes from the restart of correctPhi and phi. I have not found a PIMPLE keyword that manages to compensate and adding inner loop iterations doesn't really help either. I already have 20 outer loop iterations. I am using Euler for the temporal scheme. Is there something that should be saved that I am unaware of (for instance dPhi/dt)? Any ideas of how to address this are welcome. Best regards, Dave |
|
June 16, 2023, 09:17 |
Influence of time scheme
|
#2 |
Senior Member
Dave
Join Date: Jul 2010
Posts: 100
Rep Power: 16 |
Hi All,
As I mentioned in my prior post, I was using Euler for the temporal scheme in OpenFOAM. On a hunch I decided to test with Backward and my error almost entirely disappeared (0.0013% vs 2-3%). I am quite surprised that Euler would lead to a discontinuity and backward did not as if Euler was missing something during the save (cellDisplacement, p; phi, meshPhi, U, and Uf are all present). I should add that the coupled code is advancing with second order (Newmark scheme). Is it possible that the mismatch in temporal scheme order is sufficient to cause a discontinuity even though the fluid solver received the same positions in both a restart or case without restart? Best regards, Dave |
|
Tags |
fsi restart, phi openfoam, restarting |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
The CoP Does not exist: Validating Aerodynamic forces through a "line of action" | ds4719 | Main CFD Forum | 14 | February 18, 2022 19:05 |
Drag Force Ratio for Flat Plate | Rob Wilk | Main CFD Forum | 40 | May 10, 2020 05:47 |
Finding Drag Force from Skin Friction | Rob Wilk | Main CFD Forum | 0 | May 8, 2020 07:04 |
ActuatorDiskExplicitForce in OF2.1. Help | be_inspired | OpenFOAM Programming & Development | 10 | September 14, 2018 12:12 |
Force can not converge | colopolo | CFX | 13 | October 4, 2011 23:03 |