|
[Sponsors] |
Simple velocity correction difference between ussing grad(p) or pEqn.flux() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 1, 2021, 03:40 |
Simple velocity correction difference between ussing grad(p) or pEqn.flux()
|
#1 |
Member
Join Date: Jun 2019
Posts: 41
Rep Power: 7 |
Hi all.
In the SIMPLE algorithm, after solving the pEqn laplacian equation the velocity is corrected like this : Code:
U = HbyA - rAU*fvc::grad(p); In some other solvers i may see this like this : Code:
U = HbyA + rAU*fvc::reconstruct((-pEqn.flux())/rAUf); According to some of my quick tests these 2 ways provide the same U field. For me the first form is close to the analytical developpement starting with MU = AU - H = - ∇p Thus I don't realy undertand why the second form is working. In which form the pEqn.flux is linked to the gradient of pressure ? Thanks for your help. |
|
July 4, 2021, 10:37 |
|
#2 |
Senior Member
Join Date: Apr 2020
Location: UK
Posts: 746
Rep Power: 14 |
I don't recognise the second bit of coding you have included in your posting. Maybe it's a better idea to copy the exact coding from the solvers you are interested in, and tell us which ones?
It's fairly standard practice in the solvers to see something like the following: Code:
phi = phiHbyA - pEqn.flux(); Last edited by Tobermory; July 4, 2021 at 11:42. |
|
July 9, 2021, 02:04 |
|
#3 |
Member
Join Date: Jun 2019
Posts: 41
Rep Power: 7 |
Thanks for your explanation. The second statement is from a custom solver of my advisor.
I've found the same way here in compressibleInterFoam: https://github.com/OpenFOAM/OpenFOAM...terFoam/pEqn.H line 141. But I'm now convinced why your recall on the fact that a gradient Gauss discretization involve face fluxes. You answered my question. |
|
Tags |
simple algorithm, velocity correction |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Multiphase flow - incorrect velocity on inlet | Mike_Tom | CFX | 6 | September 29, 2016 02:27 |
Velocity correction | Pflaume1891 | Main CFD Forum | 19 | August 1, 2016 22:18 |
Velocity Under-relaxation in SIMPLE type methods | Matt U. | Main CFD Forum | 6 | July 4, 2005 06:29 |
Pressure correction on SIMPLE | Diego Nogueira | Main CFD Forum | 6 | October 10, 2004 15:43 |
Terrible Mistake In Fluid Dynamics History | Abhi | Main CFD Forum | 12 | July 8, 2002 10:11 |