|
[Sponsors] |
November 8, 2018, 18:22 |
Setting residuals for velocity per direction
|
#1 |
New Member
Join Date: Oct 2018
Posts: 19
Rep Power: 7 |
Hi,
is it possible to set residuals per direction for velocity in fvSolution? I've tried changing "(U)Final" to "(Ux)Final" or "(U1)Final" but it didn't work. Does anybody have any idea? Background: I'm working on axisimmetric no swirl case. My simulation doesn't stop only because of Uz residual which is not reducing below 1e-4. On my simulation Uz speed is in range from -1e-14 to 1e-14 m/s (which is still big enough to spoil the residual) and I found out (searching through the Internet) that setting Uz speed to zero require adjusting openfoam code and recompiling of which I don't feel catable |
|
November 12, 2018, 21:52 |
|
#2 |
Senior Member
Peter Baskovich
Join Date: Jul 2014
Posts: 127
Rep Power: 11 |
Is it axisymmetric as in a wedge mesh? 1e-14 is a good as 0 considering the machine tolerance. Because the numbers are so small, and near machine tolerance, rounding errors and oscillations cause large RELATIVE differences in the filed between steps, hence the fairly large residuals.
I think you need to find another way to decide if the case is converged if you want it to stop automatically. Evidently, you know that by watching the min/max plot for Uz and deciding that the Uz field is effectively 0. I also found this: Residual controls per direction Courtesy of Bruno. Code:
residualControl { p 1e-6; Ux 1e-6; Uy 1e-6; Uz 1e-1; "(k|epsilon|omega|f|v2)" 1e-6; } |
|
November 14, 2018, 06:54 |
|
#3 |
Senior Member
Zander Meiring
Join Date: Jul 2018
Posts: 125
Rep Power: 7 |
I don't see the sense in wanting the residual of a variable you do not care about to want to settle. As pete said, the residual is a result of the actual number being so small that rounding errors become significant between iterations. If the rest of your residuals are converged, and any physical properties (force, pressure difference, etc...) are converged, then the simulation itself is likely converged.
|
|
November 22, 2018, 06:49 |
|
#4 |
New Member
Join Date: Oct 2018
Posts: 19
Rep Power: 7 |
@pete20r2 Thanks a lot
Now my simulation stops when it should. The reason why I wanted the simulation to stop itself is that I'm going to run ~4000 cases so it's crucial to limit unnecessary iterations. |
|
September 18, 2020, 08:52 |
|
#5 |
Member
Andrea Di Ronco
Join Date: Nov 2016
Location: Milano, Italy
Posts: 57
Rep Power: 9 |
Sorry for reopening.
Is this "residual-control-per-component" feature still available? I'm working with OF6 and specifying residual control settings like Code:
residualControl { p 1e-5; Ux 1e-5; } The solver just skips the convergence check on U. I'm asking since I'm doing some simple 2D computations and one of the 2 components is zero. Checking on the whole vector prevents the residual control check to work properly. Andrea |
|
December 26, 2020, 08:56 |
|
#6 |
Member
Hüseyin Can Önel
Join Date: Sep 2018
Location: Ankara, Turkey
Posts: 46
Rep Power: 7 |
Code:
residualControl { p 1e-5; Ux 1e-5; Uy 1e-5; "(k|epsilon|omega|f|v2)" 1e-5; } I am setting the residual control above for SIMPLE solver in OpenFOAM-v1906 and it does not work. Convergence on U is completely ignored. The only thing that works is the following: Code:
residualControl { p 1e-5; U 1e-5; "(k|epsilon|omega|f|v2)" 1e-5; } |
|
July 9, 2021, 10:12 |
|
#7 | |
Member
Sourav Mandal
Join Date: Jul 2019
Posts: 55
Rep Power: 6 |
Quote:
Have you tried setting very low values? For me, in some axisymmetric wedge geometry simulation, residualControl of PHP Code:
PHP Code:
PHP Code:
|
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Tutorials] Tutorial of how to plot residuals ! | wolle1982 | OpenFOAM Community Contributions | 171 | February 20, 2024 02:55 |
Setting boundary conditions for simple pipe flow with flow direction changing in time | Sipher | FLUENT | 1 | May 4, 2015 20:05 |
what to monitor besides residuals? | franzdrs | FLUENT | 5 | March 21, 2013 03:59 |
[Commercial meshers] Trimmed cell and embedded refinement mesh conversion issues | michele | OpenFOAM Meshing & Mesh Conversion | 2 | July 15, 2005 04:15 |
residuals | Karl | CFX | 2 | June 24, 2003 23:13 |